/* ===== CSS Variables ===== */
:root {
    --color-bg: #fafafa;
    --color-bg-alt: #f0fdfa;
    --color-primary: #0d9488;
    --color-primary-light: #99f6e4;
    --color-primary-dark: #0f766e;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Language Switcher ===== */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--color-primary);
}

.lang-btn.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.lang-divider {
    color: var(--color-text-light);
    opacity: 0.5;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 60px 24px 100px;
}

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

.paw-decoration {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--color-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-primary);
    padding: 16px 40px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--color-bg);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ===== Section Styles ===== */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: var(--color-bg);
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ===== Jury Section ===== */
.jury {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.jury-intro {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

.jury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.jury-member {
    text-align: center;
}

.jury-photo-link {
    display: block;
    margin: 0 auto 1rem;
    max-width: 200px;
}

.jury-photo {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--color-white);
    margin: 0 auto 1rem;
    max-width: 200px;
}

.jury-photo-link .jury-photo {
    margin: 0;
    max-width: none;
}

.jury-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.jury-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.jury-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-white) 100%);
}

.jury-placeholder .placeholder-icon {
    font-size: 4rem;
}

.jury-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-text);
    display: block;
    margin-bottom: 0.5rem;
}

.jury-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: var(--transition);
}

.jury-social:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* ===== Gallery Section ===== */
.gallery {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.gallery-intro {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--color-white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Placeholders */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-white) 100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-placeholder {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}

.gallery-item:hover .placeholder-text {
    color: var(--color-white);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.imprint-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
}

.imprint-toggle:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    max-height: 85vh;
    width: 90%;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-text);
}

.imprint {
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.imprint h3 {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.imprint h4 {
    color: var(--color-text);
    font-size: 1.1rem;
    margin: 2rem 0 1rem;
}

.imprint h5 {
    color: var(--color-text);
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
}

.imprint address {
    font-style: normal;
    margin: 0.5rem 0 1.5rem;
    color: var(--color-text-light);
}

.imprint p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-placeholder {
    width: 400px;
    height: 400px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-md);
}

.lightbox-placeholder .placeholder-icon {
    font-size: 8rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: var(--transition);
    opacity: 0.7;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .paw-decoration {
        font-size: 3rem;
    }

    .about,
    .gallery {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .placeholder-icon {
        font-size: 2.5rem;
    }

    .placeholder-text {
        font-size: 0.9rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about,
.gallery {
    animation: fadeIn 0.6s ease-out;
}
