/* ============================================
   FAIR WINE AWARD - MODERN DESIGN SYSTEM
   ============================================ */

/* --- ROOT VARIABLES --- */
:root {
    --primary-green: #47A018;
    --primary-green-light: #5FB821;
    --primary-green-dark: #3A8012;
    --primary-blue: #0099C6;
    --neutral-50: #F8F9FA;
    --neutral-100: #F1F3F5;
    --neutral-200: #E9ECEF;
    --neutral-300: #DEE2E6;
    --neutral-700: #495057;
    --neutral-900: #212529;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- TYPOGRAPHY IMPROVEMENTS --- */
body {
    font-family: 'Cera Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--neutral-700);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Elinga', serif;
    font-weight: normal;
    color: var(--neutral-900);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 {
    font-size: 2.25rem;
    color: var(--primary-green);
}
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-family: 'Cera Pro', sans-serif;
    opacity: 0.95;
    margin-bottom: 0;
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* --- COUNTDOWN SECTION --- */
.countdown-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: -2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.countdown-intro {
    font-size: 1.1rem;
    color: var(--neutral-700);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0;
}

.countdown-item {
    text-align: center;
    min-width: 120px;
}

.countdown-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.countdown-circle svg {
    width: 100%;
    height: 100%;
    display: block;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Robust centering for the numeric overlay */
.countdown-circle .countdown-value {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
}

.countdown-circle-bg {
    fill: none;
    stroke: var(--neutral-200);
    stroke-width: 8;
}

.countdown-circle-progress {
    fill: none;
    stroke: var(--primary-green);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.countdown-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-green);
    font-family: 'Cera Pro', sans-serif;
}

.countdown-label {
    font-size: 0.95rem;
    color: var(--neutral-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .countdown-timer {
        gap: 1rem;
    }
    .countdown-item {
        min-width: 90px;
    }
    .countdown-circle {
        width: 90px;
        height: 90px;
    }
    .countdown-value {
        font-size: 1.75rem;
    }
}

/* Stack the three countdown circles on smartphones */
@media (max-width: 576px) {
    .countdown-timer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        margin: 1.25rem 0;
    }
    .countdown-item {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    /* Remove circular graphics and show plain numbers */
    .countdown-circle {
        width: auto;
        height: auto;
        margin: 0 0 .25rem;
        position: static;
    }
    .countdown-circle svg {
        display: none !important;
    }
    .countdown-circle .countdown-value {
        position: static;
        display: block;
        transform: none;
        font-size: 2rem;
        line-height: 1.1;
        color: var(--primary-green);
    }
    .countdown-label { margin-top: .1rem; }
}

/* --- CALL TO ACTION --- */
.cta-primary {
    display: inline-block;
    background: var(--primary-green);
    color: white !important;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(71, 160, 24, 0.3);
    border: none;
    white-space: nowrap;
    min-width: 200px;
    text-align: center;
}

@media (max-width: 768px) {
    .cta-primary {
        display: block;
        padding: 0.65rem 1rem;
        border-radius: 14px;
        min-width: 100%;
        width: 100%;
        white-space: normal;
        text-align: center;
        margin-bottom: .65rem;
    }
}

.cta-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 160, 24, 0.4);
    color: white !important;
}

.cta-primary:active {
    transform: translateY(0);
}

/* --- INFO CALLOUT --- */
.info-callout {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-callout-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
    margin-top: 0.25rem;
}

.info-callout-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: #1565C0;
    margin: 0;
}

/* --- MODERN CARDS --- */
.modern-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--neutral-200);
}

.modern-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.modern-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--neutral-200);
}

.modern-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.modern-card-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--neutral-900);
}

.modern-card-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--neutral-700);
}

/* --- FEATURE GRID --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--neutral-900);
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--neutral-700);
    margin: 0;
}

/* --- PROCESS STEPS --- */
.process-steps {
    counter-reset: step-counter;
    margin: 3rem 0;
}

.process-step {
    counter-increment: step-counter;
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.process-step::before {
    content: counter(step-counter);
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    font-family: 'Cera Pro', sans-serif;
    box-shadow: 0 4px 12px rgba(71, 160, 24, 0.3);
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 56px;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(180deg, var(--primary-green) 0%, var(--neutral-300) 100%);
}

.process-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.process-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .process-step {
        gap: 1rem;
    }
    .process-step::before {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    .process-step:not(:last-child)::after {
        left: 22px;
        top: 44px;
    }
}

/* --- MODERN ACCORDION --- */
.modern-accordion {
    margin: 3rem 0;
}

.modern-accordion-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.modern-accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.modern-accordion-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition-smooth);
}

.modern-accordion-header:hover {
    background: var(--neutral-50);
}

.modern-accordion-header.active {
    background: var(--primary-green);
    color: white;
}

.modern-accordion-title {
    font-size: 1.25rem;
    font-family: 'Cera Pro', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.modern-accordion-title i {
    font-size: 1.5rem;
}

.modern-accordion-icon {
    transition: transform 0.3s ease;
    color: var(--primary-green);
    font-size: 1.25rem;
}

.modern-accordion-header.active .modern-accordion-icon {
    transform: rotate(180deg);
    color: white;
}

.modern-accordion-body {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.modern-accordion-body.show {
    padding: 1.5rem 2rem 2rem;
    max-height: 5000px;
}

.modern-accordion-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--neutral-700);
}

/* --- SECTION SPACING --- */
.section-spacer {
    margin: 4rem 0;
}

.section-spacer-lg {
    margin: 6rem 0;
}

/* --- UTILITIES --- */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 769px) {
    .text-center-mobile {
        text-align: left;
    }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* --- COMPACT CARDS --- */
.modern-card-body ul li {
    line-height: 1.8;
}

.modern-card-body ul li strong {
    color: var(--neutral-900);
}

.modern-card-body ul li i {
    color: var(--primary-green);
    margin-right: 0.25rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* --- IMPROVED NAVBAR --- */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- IMPROVED FOOTER --- */
.footer {
    background-color: var(--neutral-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer a:hover {
    color: var(--primary-green-light);
}

/* --- EINREICHUNGEN CARD VIEW --- */
.view-toggle-buttons {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
}

.view-toggle-btn {
    border-color: var(--neutral-300) !important;
    transition: var(--transition-smooth);
}

.view-toggle-btn:hover {
    background-color: var(--neutral-50);
}

.view-toggle-btn.btn-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: white !important;
}

.einreichungen-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.einreichungen-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bottle-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--neutral-200);
}

.bottle-image-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.bottle-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.bottle-image-link:hover .bottle-thumbnail {
    transform: scale(1.05);
}

.bottle-image-link:hover .bottle-placeholder {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    color: white;
}

.bottle-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--neutral-200) 0%, var(--neutral-300) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-700);
    font-size: 2.5rem;
    transition: var(--transition-smooth);
}

.card-body-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wine-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wine-vintage {
    font-size: 0.9rem;
    color: var(--neutral-700);
    font-weight: 500;
}

.wine-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

.detail-item i {
    color: var(--primary-green);
    width: 16px;
    text-align: center;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-200);
    margin-top: 1rem;
}

.card-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: var(--transition-smooth);
}

.card-actions .btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .bottle-image-container {
        height: 180px;
    }

    .bottle-placeholder {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .card-body-content {
        padding: 1rem;
    }

    .wine-name {
        font-size: 1.1rem;
    }
}
