/* ===================================================
   Wendland Kids — Design System
   Warm · Clean · Professional
   =================================================== */

/* --- Custom Properties --- */
:root {
    --color-bg: #FFF9F0;
    --color-surface: #FFFFFF;
    --color-text: #2C2524;
    --color-text-secondary: #78706A;
    --color-text-muted: #A89D96;
    --color-accent-red: #f50a0a;
    --color-accent-green: #4dbd97;
    --color-accent-yellow: #FFD63A;
    --color-accent-pink: #FF8FAB;
    --color-accent-blue: #64BFFF;
    --color-accent-red-soft: rgba(245, 10, 10, 0.05);
    --color-accent-yellow-soft: rgba(255, 214, 58, 0.15);
    --color-accent-blue-soft: rgba(100, 191, 255, 0.12);
    --color-accent-pink-soft: rgba(255, 143, 171, 0.12);
    --color-border: #E8E0D8;
    --color-border-light: #F0EBE5;
    --color-nav-bg: #2C2524;
    --color-nav-text: #FAF8F5;

    --font-logo: 'Rajdhani', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --max-width: 1100px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.06), 0 8px 28px rgba(0,0,0,0.08);
    --shadow-elevated: 0 4px 16px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.1);
    --transition: 200ms ease;
    --transition-slow: 350ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(circle, rgba(255, 214, 58, 0.25) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 143, 171, 0.18) 1.2px, transparent 1.2px),
        radial-gradient(circle, rgba(100, 191, 255, 0.18) 1.3px, transparent 1.3px);
    background-size: 100px 100px, 130px 130px, 170px 170px;
    background-position: 0 0, 50px 70px, 100px 35px;
}

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

a {
    color: var(--color-accent-green);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-red);
}

a:focus-visible {
    outline: 2px solid var(--color-accent-green);
    outline-offset: 3px;
    border-radius: 2px;
}

ul {
    list-style: none;
}

/* --- Header --- */
.site-header {
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.page-hero .site-header {
    background-color: transparent;
    position: fixed;
    left: 0;
    right: 0;
    box-shadow: none;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
}

/* --- Logo --- */
.logo {
    font-family: var(--font-logo);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity var(--transition);
}

.logo:hover {
    opacity: 0.85;
}

.logo-wendland {
    color: var(--color-accent-red);
}

.logo-kids {
    color: var(--color-accent-green);
}

/* --- Navigation --- */
.main-nav > ul {
    display: flex;
    gap: 2px;
    align-items: center;
}

.main-nav > ul > li > a {
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
    display: block;
    white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    color: var(--color-text);
    transform: translateY(-1px);
}

.page-hero .main-nav > ul > li > a {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.page-hero .main-nav > ul > li > a:hover,
.page-hero .main-nav > ul > li > a.active {
    color: #fff;
}

.main-nav > ul > li:nth-child(1) > a:hover,
.main-nav > ul > li:nth-child(1) > a.active { background-color: rgba(255, 214, 58, 0.3); }
.main-nav > ul > li:nth-child(2) > a:hover,
.main-nav > ul > li:nth-child(2) > a.active { background-color: var(--color-accent-pink-soft); }
.main-nav > ul > li:nth-child(3) > a:hover,
.main-nav > ul > li:nth-child(3) > a.active { background-color: rgba(255, 214, 58, 0.3); }
.main-nav > ul > li:nth-child(4) > a:hover,
.main-nav > ul > li:nth-child(4) > a.active { background-color: var(--color-accent-blue-soft); }
.main-nav > ul > li:nth-child(5) > a:hover,
.main-nav > ul > li:nth-child(5) > a.active { background-color: var(--color-accent-pink-soft); }

/* --- Dropdown --- */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '\25BE';
    display: inline-block;
    margin-left: 4px;
    font-size: 0.75em;
    vertical-align: middle;
    opacity: 0.7;
}

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    min-width: 200px;
    padding: 6px;
    z-index: 110;
    border: 1px solid var(--color-border-light);
    flex-direction: column;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
    display: flex;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.dropdown li a {
    display: block;
    padding: 9px 16px;
    color: var(--color-text);
    font-size: 14.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), color var(--transition);
}

.dropdown li a:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* --- Hamburger --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
}

.page-hero .hamburger span {
    background-color: #fff;
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Main Content --- */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 24px 72px;
    min-height: 60vh;
}

/* --- Hero (Startseite) --- */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: rgba(44, 37, 36, 0.45);
    color: #fff;
}

.hero-overlay h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-brand {
    font-family: 'Courgette', cursive;
    font-weight: 400;
    font-size: 1.05em;
}

.hero-overlay p {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 500;
}

/* --- Page Header --- */
.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-yellow), var(--color-accent-pink), var(--color-accent-blue));
    border-radius: 2px;
    margin-top: 14px;
}

.page-header p {
    color: var(--color-text-secondary);
    margin-top: 8px;
}

/* --- Cards --- */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.card p {
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    line-height: 1.65;
}

.card p:last-child {
    margin-bottom: 0;
}

/* Description text before gallery — no card chrome */
.card:has(+ .gallery-grid) {
    border: none;
    background: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
}

.card:has(+ .gallery-grid):hover {
    box-shadow: none;
}

.card:has(+ .gallery-grid) p {
    color: var(--color-text-secondary);
    font-size: 16px;
    max-width: 680px;
}

/* Highlight Card (Sales) */
.card--highlight {
    border-left: 3px solid var(--color-accent-red);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-accent-red-soft) 100%);
}

.card--highlight:hover {
    box-shadow: var(--shadow-hover);
}

/* --- Info Grid (Startseite) --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* --- Opening Hours Table --- */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid var(--color-border-light);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 7px 0;
    font-size: 15px;
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--color-text);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--color-text-secondary);
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    position: relative;
    transition: box-shadow var(--transition-slow);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 37, 36, 0);
    transition: background var(--transition-slow);
    pointer-events: none;
    border-radius: inherit;
}

.gallery-item:hover {
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover::after {
    background: rgba(44, 37, 36, 0.06);
}

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

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

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 15, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 88vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

/* --- Google Maps --- */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.map-container iframe {
    width: 100%;
    height: 320px;
    border: none;
    display: block;
}

/* --- Legal Pages --- */
.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 10px;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 22px;
    margin-bottom: 8px;
    color: var(--color-text);
}

.legal-content p {
    margin-bottom: 10px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.legal-content ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 12px;
}

.legal-content ul li {
    margin-bottom: 6px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.legal-content a {
    word-break: break-all;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-nav-bg);
    color: var(--color-nav-text);
    margin-top: 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--color-nav-bg);
    clip-path: ellipse(52% 100% at 50% 100%);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 48px;
}

.footer-col h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--color-accent-green);
}

.footer-col p,
.footer-col a {
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(250, 248, 245, 0.65);
}

.footer-col a:hover {
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    padding: 16px 24px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(250, 248, 245, 0.35);
}

/* --- Colored Card Variants --- */
.card--yellow {
    border-left: 4px solid var(--color-accent-yellow);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-accent-yellow-soft) 100%);
}

.card--blue {
    border-left: 4px solid var(--color-accent-blue);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-accent-blue-soft) 100%);
}

.card--pink {
    border-left: 4px solid var(--color-accent-pink);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-accent-pink-soft) 100%);
}

/* --- Responsive: Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Responsive: Mobile (≤ 768px) --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        right: 24px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        padding: 8px 0 16px;
        border-top: 1px solid var(--color-border-light);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav > ul > li > a {
        padding: 14px 24px;
        border-radius: 0;
        font-size: 17px;
        font-weight: 700;
        text-shadow: none;
    }

    /* Jeder Mobile-Link in eigener Farbe */
    .main-nav > ul > li:nth-child(1) > a,
    .page-hero .main-nav > ul > li:nth-child(1) > a { color: #F59E0B; }
    .main-nav > ul > li:nth-child(2) > a,
    .page-hero .main-nav > ul > li:nth-child(2) > a { color: #E8507A; }
    .main-nav > ul > li:nth-child(3) > a,
    .page-hero .main-nav > ul > li:nth-child(3) > a { color: #3B9FD9; }
    .main-nav > ul > li:nth-child(4) > a,
    .page-hero .main-nav > ul > li:nth-child(4) > a { color: #E80909; }
    .main-nav > ul > li:nth-child(5) > a,
    .page-hero .main-nav > ul > li:nth-child(5) > a { color: #3A9A7A; }

    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        border-radius: 0;
        padding: 0;
        transform: none;
        min-width: 0;
    }

    /* Auf Mobile nur .open steuert Dropdown, nicht :hover */
    .has-dropdown:hover .dropdown {
        display: none;
    }

    .has-dropdown.open .dropdown {
        display: flex;
    }

    /* Dropdown-Links erben Eltern-Farbe */
    .main-nav > ul > li:nth-child(2) .dropdown a { color: #E8507A; }
    .main-nav > ul > li:nth-child(3) .dropdown a { color: #3B9FD9; }
    .main-nav > ul > li:nth-child(5) .dropdown a { color: #3A9A7A; }

    .dropdown li a {
        padding: 10px 40px;
        border-radius: 0;
        font-size: 15px;
        font-weight: 600;
    }

    .dropdown li a:hover {
        background-color: transparent;
        opacity: 0.7;
    }

    /* Pfeil dreht sich bei offenem Dropdown */
    .has-dropdown.open > a::after {
        display: inline-block;
        transform: rotate(180deg);
    }

    .hero {
        height: 100svh;
    }

    .hero-overlay {
        padding: 28px 24px;
    }

    .hero-overlay h1 {
        font-size: 32px;
    }

    .site-main {
        padding: 36px 16px 52px;
    }

    .page-header h1 {
        font-size: 24px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 24px 28px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 12px 10px;
        font-size: 20px;
    }

    .lightbox-close {
        font-size: 20px;
        padding: 8px 12px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
