/* ============================================================
   Tanzschule Duschek — Landing page styles
   ============================================================ */

:root {
    --rose:     #A0525A;
    --rose-lt:  #C97B84;
    --rose-dk:  #8A3B42;
    --mocha:    #4E3535;
    --mocha-dk: #3D2525;
    --mocha-xd: #1C1010;
    --ivory:    #FBF6EE;
    --ivory-2:  #F2E8E1;
    --warm-drk: #2C1A1A;
}

html { scroll-behavior: smooth; }

.font-display { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-body    { font-family: 'Inter', Arial, sans-serif; }

/* ── HERO ─────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(145deg, #1C1010 0%, #2C1A1A 45%, #3D2020 75%, #2C1A1A 100%);
    position: relative;
}
/* Tablet im Querformat (Touch, ab ~1000px): Hero-Inhalt tiefer setzen,
   damit der „Duschek"-Eyebrow nicht an der Navigation klebt. PC/Handy/Portrait bleiben unberührt. */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 1000px) {
    .hero-section { padding-top: 6rem; }
}
/* Handy (Hochformat): mehr Abstand zwischen Navigation und „Duschek"-Eyebrow. */
@media (max-width: 640px) {
    .hero-section { padding-top: 3.5rem; }
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(160,82,90,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160,82,90,0.04) 1px, transparent 1px);
    background-size: 72px 72px;
}
.hero-section::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(160,82,90,0.1) 0%, transparent 65%);
}

/* ── ANIMATIONS ───────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(7px); }
}

.anim-up   { animation: fadeInUp 0.85s cubic-bezier(0.22,1,0.36,1) both; }
.anim-in   { animation: fadeIn 1.1s ease both; }
.anim-bnc  { animation: bounce 1.8s ease-in-out infinite; }

.d-1 { animation-delay: 0.10s; }
.d-2 { animation-delay: 0.25s; }
.d-3 { animation-delay: 0.40s; }
.d-4 { animation-delay: 0.55s; }
.d-5 { animation-delay: 0.70s; }
.d-6 { animation-delay: 0.88s; }

/* ── SCROLL REVEAL ────────────────────────────────── */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: revealUp 0.8s ease both; }

/* ── NAVBAR ───────────────────────────────────────── */
#navbar { transition: all 0.4s ease; }
#navbar.state-top {
    padding-top: 1.6rem; padding-bottom: 1.6rem;
    background: transparent;
}
#navbar.state-scrolled {
    padding-top: 0.9rem; padding-bottom: 0.9rem;
    background: rgba(28,16,16,0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(160,82,90,0.2);
}
.nav-link { position: relative; }
.nav-link::after {
    content: ''; position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--rose-lt);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--rose);
    color: var(--ivory) !important;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.85rem 2.2rem;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none !important;
    outline: none !important; box-shadow: none !important;
    border: 2px solid transparent; cursor: pointer;
}
.btn-primary:hover  { background: var(--rose-dk); transform: translateY(-1px); }
.btn-primary:focus, .btn-primary:active, .btn-primary:focus-visible {
    outline: none !important; box-shadow: none !important; border-color: transparent !important;
}

.btn-outline {
    display: inline-block;
    border: 1.5px solid var(--rose);
    color: var(--rose) !important;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.85rem 2.2rem;
    transition: all 0.3s ease; text-decoration: none !important;
    outline: none !important; box-shadow: none !important; background: transparent; cursor: pointer;
}
.btn-outline:hover  { background: var(--rose); color: var(--ivory) !important; transform: translateY(-1px); }
.btn-outline:focus, .btn-outline:active, .btn-outline:focus-visible {
    outline: none !important; box-shadow: none !important;
}

.btn-outline-ivory {
    display: inline-block;
    border: 1.5px solid rgba(251,246,238,0.45);
    color: var(--ivory) !important;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.85rem 2.2rem;
    transition: all 0.3s ease; text-decoration: none !important;
    outline: none !important; box-shadow: none !important; background: transparent; cursor: pointer;
}
.btn-outline-ivory:hover  { background: rgba(251,246,238,0.12); }
.btn-outline-ivory:focus, .btn-outline-ivory:active, .btn-outline-ivory:focus-visible {
    outline: none !important; box-shadow: none !important;
}

.btn-outline-mocha {
    display: inline-block;
    border: 1.5px solid rgba(78,53,53,0.3);
    color: var(--mocha) !important;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.85rem 2.2rem;
    transition: all 0.3s ease; text-decoration: none !important;
    outline: none !important; box-shadow: none !important; background: transparent; cursor: pointer;
}
.btn-outline-mocha:hover  { background: var(--mocha); color: var(--ivory) !important; }
.btn-outline-mocha:focus, .btn-outline-mocha:active, .btn-outline-mocha:focus-visible {
    outline: none !important; box-shadow: none !important;
}

/* ── BOOKING DRAWER ───────────────────────────────── */
#booking-overlay {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(28,16,16,0.55);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
#booking-overlay.open { opacity: 1; pointer-events: all; }

#booking-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
    width: 100%; max-width: 440px;
    background: var(--ivory);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
    overflow-y: auto;
    display: flex; flex-direction: column;
}
#booking-drawer.open { transform: translateX(0); }

.drawer-input {
    width: 100%; padding: 0.8rem 1rem;
    font-family: 'Inter', Arial, sans-serif; font-size: 0.85rem;
    border: 1.5px solid rgba(78,53,53,0.18);
    background: white; color: var(--mocha-dk);
    outline: none; transition: border-color 0.25s ease;
}
.drawer-input:focus { border-color: var(--rose); outline: none; box-shadow: none; }
.drawer-input::placeholder { color: rgba(78,53,53,0.35); }

/* ── SHARED ───────────────────────────────────────── */
.eyebrow {
    display: block;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.75rem; letter-spacing: 0.32em;
    text-transform: uppercase; color: var(--rose);
}
.rule    { display: block; width: 48px; height: 2px; background: var(--rose); }
.rule-sm { display: block; width: 32px; height: 2px; background: var(--rose); }

/* ── COURSE CARDS (on light bg) ───────────────────── */
.course-card { transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(78,53,53,0.1); }
.course-card:hover .card-frame { border-color: var(--rose) !important; }
.course-card:hover .card-icon  { color: var(--rose) !important; }

/* ── TABLE ────────────────────────────────────────── */
.course-row td { background: white; }
.course-row { transition: background 0.2s ease; }
.course-row:hover td { background: rgba(160,82,90,0.05); }
.spots-low  { color: #C0623A; font-weight: 600; }
.spots-good { color: #6A8F4E; }

/* ── MOBILE TABLE → CARDS ────────────────────────── */
@media (max-width: 640px) {
    .course-table table,
    .course-table thead,
    .course-table tbody,
    .course-table tr,
    .course-table td { display: block; box-sizing: border-box; }

    .course-table thead { display: none; }

    .course-table tr {
        border: 1px solid rgba(78,53,53,0.12);
        margin-bottom: 0.75rem;
        padding: 0.25rem 0;
        background: white;
    }

    .course-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.55rem 1rem;
        border: none;
        border-bottom: 1px solid rgba(78,53,53,0.06);
        font-size: 0.875rem;
        gap: 0.75rem;
        text-align: right;
        background: transparent;
    }
    .course-table td:last-child { border-bottom: none; }

    .course-table td::before {
        content: attr(data-label);
        font-family: 'Inter', Arial, sans-serif;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: rgba(78,53,53,0.4);
        flex-shrink: 0;
        text-align: left;
    }

    .course-table .td-book {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    .course-table .td-book::before { display: none; }
    .course-table .td-book button { width: 100%; }
}

/* ── COURSE ACCORDION ────────────────────────────── */
.course-accordion {
    background: #fff;
    border: 1px solid rgba(78,53,53,0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.course-accordion summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s ease;
}
.course-accordion summary::-webkit-details-marker { display: none; }
.course-accordion summary::marker { display: none; }
.course-accordion summary:hover { background: rgba(160,82,90,0.04); }
.course-accordion[open] > summary {
    background: rgba(160,82,90,0.06);
    border-bottom: 1px solid rgba(78,53,53,0.08);
}
.course-accordion-chevron { transition: transform 0.25s ease; flex-shrink: 0; }
.course-accordion[open] .course-accordion-chevron { transform: rotate(180deg); }

/* Summary named parts — desktop flex */
.cacc-info  { flex: 1; min-width: 0; }
.cacc-price { flex-shrink: 0; white-space: nowrap; }
.cacc-book  { flex-shrink: 0; }

/* Mobile: switch to CSS grid, flatten cacc-info with display:contents */
@media (max-width: 640px) {
    .course-accordion summary {
        display: grid;
        grid-template-areas:
            "chevron name  price"
            ".       meta  meta";
        grid-template-columns: 22px 1fr auto;
        gap: 0.35rem 0.6rem;
        padding: 0.9rem 1rem;
        align-items: center;
    }
    /* Flatten the info wrapper so name+meta become direct grid children */
    .cacc-info  { display: contents; }
    .course-accordion-chevron { grid-area: chevron; align-self: start; margin-top: 0.25rem; }
    .cacc-name  { grid-area: name; }
    .cacc-price { grid-area: price; align-self: start; }
    .cacc-meta  { grid-area: meta; }
}

.course-accordion-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.4rem;
    border-bottom: 1px solid rgba(78,53,53,0.06);
}
.course-accordion-row:last-child { border-bottom: none; }

/* ── TEAM ─────────────────────────────────────────── */
.team-card:hover .team-avatar { border-color: var(--rose) !important; box-shadow: 0 0 0 4px rgba(160,82,90,0.12); }

/* ── INFO CARDS ───────────────────────────────────── */
.info-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(78,53,53,0.08); }

/* ── NEWS ─────────────────────────────────────────── */
.news-section {
    background: linear-gradient(150deg, #2C1010 0%, #3D1A1A 45%, #1C1010 100%);
    position: relative;
}
.news-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(160,82,90,0.15) 0%, transparent 65%);
}
.news-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }

/* ── NEWSLETTER ───────────────────────────────────── */
.nl-input { transition: border-color 0.3s ease; }
.nl-input:focus { outline: none; border-color: var(--rose) !important; }

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--ivory-2); }
::-webkit-scrollbar-thumb { background: var(--rose); }

/* ── GALERIE ──────────────────────────────────────── */
.tz-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.tz-gallery-tab {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.45rem 1.2rem;
    border: 1px solid rgba(160,82,90,0.3);
    border-radius: 2px;
    color: rgba(78,53,53,0.55);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tz-gallery-tab:hover {
    border-color: var(--rose);
    color: var(--rose);
}
.tz-gallery-tab.active {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
}
.tz-gallery-folder { display: none; }
.tz-gallery-folder.active { display: block; }

.tz-gallery-stage {
    position: relative;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    /* Matches the recommended 4:3 upload so the photo shows completely, not cropped */
    aspect-ratio: 4/3;
    max-height: 600px;
    width: 100%;
}
.tz-gallery-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    /* contain = whole image always visible (like the lightbox); a correctly sized
       4:3 photo fills the 4:3 stage edge-to-edge with no bars */
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.45s ease;
    cursor: zoom-in;
}
.tz-gallery-slide.active { opacity: 1; z-index: 1; }

.tz-gallery-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 44px; height: 44px;
    border: 1px solid rgba(251,246,238,0.3);
    border-radius: 2px;
    background: rgba(28,16,16,0.55);
    backdrop-filter: blur(4px);
    color: rgba(251,246,238,0.85);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tz-gallery-arrow:hover {
    background: rgba(160,82,90,0.75);
    border-color: var(--rose-lt);
}
.tz-gallery-arrow--prev { left: 0.85rem; }
.tz-gallery-arrow--next { right: 0.85rem; }
.tz-gallery-arrow svg   { width: 18px; height: 18px; pointer-events: none; }

.tz-gallery-counter {
    position: absolute;
    bottom: 0.75rem; right: 1rem;
    z-index: 10;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(251,246,238,0.7);
}

.tz-gallery-caption {
    min-height: 1.4rem;
    margin-top: 0.85rem;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.78rem;
    color: rgba(78,53,53,0.5);
    text-align: center;
    letter-spacing: 0.04em;
    font-style: italic;
}

.tz-gallery-thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.85rem 0 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--rose) transparent;
}
.tz-gallery-thumbs::-webkit-scrollbar { height: 3px; }
.tz-gallery-thumbs::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 2px; }
.tz-gallery-thumb {
    flex-shrink: 0;
    width: 72px; height: 52px;
    object-fit: cover;
    border-radius: 2px;
    border: 2px solid transparent;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tz-gallery-thumb:hover { opacity: 0.8; }
.tz-gallery-thumb.active {
    border-color: var(--rose-lt);
    opacity: 1;
}

/* ── LIGHTBOX ─────────────────────────────────────── */
.tz-lightbox {
    display: none;
    position: fixed; inset: 0;
    z-index: 9999;
    background: rgba(10,4,4,0.95);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.tz-lightbox.open { display: flex; }
.tz-lightbox img {
    max-width: 94vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.tz-lightbox-close {
    position: absolute; top: 1.2rem; right: 1.2rem;
    width: 40px; height: 40px;
    border: 1px solid rgba(251,246,238,0.25);
    border-radius: 2px;
    background: transparent;
    color: rgba(251,246,238,0.7);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.tz-lightbox-close:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.tz-lightbox-close svg { width: 16px; height: 16px; pointer-events: none; }
.tz-lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    border: 1px solid rgba(251,246,238,0.25);
    border-radius: 2px;
    background: transparent;
    color: rgba(251,246,238,0.7);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
}
.tz-lightbox-arrow:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.tz-lightbox-arrow svg   { width: 20px; height: 20px; pointer-events: none; }
.tz-lightbox-arrow--prev { left: 1.2rem; }
.tz-lightbox-arrow--next { right: 1.2rem; }

/* Prevent casual image saving */
.tz-gallery-slide,
.tz-gallery-thumb,
#tz-lightbox-img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 640px) {
    .tz-gallery-stage   { aspect-ratio: 4/3; }
    .tz-gallery-arrow   { width: 36px; height: 36px; }
    .tz-gallery-thumb   { width: 56px; height: 40px; }
}
