/* =========================================================
   Wotawa – Sorbischer Tanzverein
   Farben nach der sorbischen Flagge (Blau / Rot / Weiß),
   helles, freundliches Erscheinungsbild.
   ========================================================= */

:root {
    --blue:        #1b4d9b;
    --blue-dark:   #143a77;
    --red:         #d1232a;
    --red-dark:    #a81a20;
    --white:       #ffffff;

    --bg:          #f6f8fc;   /* heller Hintergrund mit leichtem Blaustich */
    --bg-alt:      #eef2fa;
    --surface:     #ffffff;
    --ink:         #1e2733;
    --ink-soft:    #55606f;
    --line:        #dbe3f0;

    --radius:      14px;
    --radius-sm:   9px;
    --shadow:      0 1px 2px rgba(20, 40, 80, .06), 0 12px 30px rgba(20, 40, 80, .08);
    --wrap:        1120px;

    --font-head:   "Fraunces", Georgia, "Times New Roman", serif;
    --font-body:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }

code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: .08em .38em;
    font-size: .9em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Flaggen-Streifen ---------- */
.flag-bar {
    height: 6px;
    background: linear-gradient(
        to right,
        var(--blue) 0 33.33%,
        var(--red) 33.33% 66.66%,
        #cfd8e8 66.66% 100%
    );
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--blue);
}
.brand-mark { display: inline-flex; color: var(--red); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
    font-family: var(--font-head);
    font-size: 1.35rem;
    color: var(--ink);
    letter-spacing: .01em;
}
.brand-text small { color: var(--ink-soft); font-size: .74rem; }

.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: .95rem;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 460px at 78% -12%, rgba(27, 77, 155, .10), transparent 60%),
        radial-gradient(760px 380px at 8% 8%, rgba(209, 35, 42, .08), transparent 55%),
        var(--surface);
    border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 84px 24px 92px; position: relative; z-index: 2; max-width: 760px; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--red);
    margin: 0 0 14px;
}

.hero h1 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.05;
    margin: 0 0 18px;
    color: var(--ink);
}
.hero-sub {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(.95rem, 2vw, 1.1rem);
    color: var(--blue);
    margin-top: 12px;
    letter-spacing: .02em;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 28px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: .98rem;
    padding: 13px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: transform .12s ease, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue); color: #fff; }

.hero-deco {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: min(46vw, 460px);
    color: rgba(27, 77, 155, .12);
    z-index: 1;
    pointer-events: none;
}
.hero-deco svg { width: 100%; height: auto; }

/* ---------- Sektionen ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    margin: 0 0 18px;
    color: var(--ink);
    position: relative;
    padding-bottom: 14px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 68px; height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--blue) 0 50%, var(--red) 50% 100%);
}

.section-intro { color: var(--ink-soft); max-width: 62ch; margin: 0 0 34px; }

.grid-2 {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: start;
}
.grid-2 p { margin-top: 0; }

.facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.facts li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px;
    font-size: .95rem;
    color: var(--ink-soft);
}
.fact-num {
    display: block;
    font-family: var(--font-head);
    font-size: 1.7rem;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 6px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--red);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-family: var(--font-head); font-weight: 600; }
.card-note { color: var(--ink-soft); font-size: .9rem; margin-bottom: 0; }

/* ---------- Galerien ---------- */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.gallery-tabs a {
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 500;
    font-size: .92rem;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color .15s, color .15s, background .15s;
}
.gallery-tabs a:hover { border-color: var(--blue); color: var(--blue); }
.tab-count {
    background: var(--bg-alt);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: .78rem;
    color: var(--ink-soft);
}

.gallery { margin-bottom: 60px; scroll-margin-top: 100px; }
.gallery:last-child { margin-bottom: 0; }

.gallery-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 6px;
}
.gallery-head h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
    color: var(--ink);
}
.gallery-meta { color: var(--ink-soft); font-size: .88rem; margin: 0; }
.gallery-desc { color: var(--ink-soft); margin: 0 0 20px; max-width: 66ch; }

.thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.thumb {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--bg-alt);
    box-shadow: var(--shadow);
    transition: transform .16s ease, box-shadow .16s ease;
}
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 0 var(--blue);
    transition: box-shadow .16s ease;
    border-radius: inherit;
}
.thumb:hover { transform: translateY(-3px); }
.thumb:hover img { transform: scale(1.05); }
.thumb:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--blue);
    border-radius: var(--radius);
    padding: 30px;
    color: var(--ink-soft);
}
.empty-state p { margin: 0 0 10px; }
.empty-state p:last-child { margin-bottom: 0; }
.empty-state strong { color: var(--ink); }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 480px; }
.contact-list li {
    display: flex;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}
.contact-label {
    font-weight: 600;
    color: var(--blue);
    min-width: 78px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 26px 24px;
    color: var(--ink-soft);
    font-size: .88rem;
}
.footer-inner p { margin: 0; }
.dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin: 0 3px 0 10px;
    vertical-align: middle;
}
.dot-blue { background: var(--blue); }
.dot-red { background: var(--red); }
.dot-white { background: #fff; border: 1px solid var(--line); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vmin;
    background: rgba(16, 26, 45, .82);
    backdrop-filter: blur(3px);
}
.lightbox[hidden] { display: none; }

.lb-figure {
    margin: 0;
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
#lb-image {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    background: #fff;
}
#lb-caption { color: #eef2fa; font-size: .92rem; text-align: center; }

.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    transition: background .15s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-close {
    top: 3vmin; right: 3vmin;
    width: 46px; height: 46px;
    font-size: 1.7rem; line-height: 1;
}
.lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px; height: 54px;
    font-size: 2rem; line-height: 1;
}
.lb-prev { left: 3vmin; }
.lb-next { right: 3vmin; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .grid-2 { grid-template-columns: 1fr; gap: 32px; }
    .hero-deco { opacity: .5; }
}
@media (max-width: 620px) {
    .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px 0; }
    .brand-text small { display: none; }
    .section { padding: 56px 0; }
    .hero-inner { padding: 60px 24px 68px; }
    .facts { grid-template-columns: 1fr; }
    .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
