/* ============================================================
   FC Kosova Regensburg e.V. – Stylesheet
   Farben: Kosova-Blau, Flaggen-Gold, Adler-Rot
   ============================================================ */

:root {
    --navy:       #14295e;   /* Kosova-Blau (dunkel) */
    --navy-deep:  #0d1b40;
    --gold:       #d8a425;   /* Flaggen-Gold */
    --gold-soft:  #f3d98b;
    --red:        #c8102e;   /* Adler-Rot – sparsam als Akzent */
    --ink:        #1a2233;
    --muted:      #5b6478;
    --line:       #e3e6ee;
    --tint:       #f2f4f9;   /* kühles Blau-Grau statt Creme */
    --white:      #ffffff;

    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body:    "Barlow", "Segoe UI", sans-serif;

    --wrap: 1100px;
    --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--gold); color: var(--navy-deep);
    padding: .5rem 1rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Typografie ---------- */
h1, h2, h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.05;
    margin: 0 0 .6em;
    color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }

.eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .95rem;
    color: var(--red);
    margin: 0 0 .35rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 1.05rem;
    padding: .7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold  { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); }
.btn-navy  { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-navy { border: 2px solid var(--navy); color: var(--navy); }
.btn-ghost-navy:hover { border-color: var(--red); color: var(--red); }
.btn-block { display: block; text-align: center; margin-top: .6rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.5rem;
    text-transform: uppercase; color: #fff; letter-spacing: .03em;
}
.brand-sub { font-size: .78rem; color: var(--gold-soft); letter-spacing: .08em; text-transform: uppercase; }

.main-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.main-nav a {
    font-family: var(--font-display);
    font-weight: 600; font-size: 1.1rem;
    text-transform: uppercase; letter-spacing: .05em;
    color: #dfe4f2; text-decoration: none;
    padding: .55rem .8rem; border-radius: 4px;
    position: relative;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem;
    height: 3px; background: var(--gold);
}
.nav-lang { border: 1px solid rgba(255,255,255,.35); }

.nav-toggle {
    display: none;
    background: none; border: 0; cursor: pointer;
    padding: .6rem; margin: 0;
}
.nav-toggle span {
    display: block; width: 26px; height: 3px; margin: 5px 0;
    background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--navy-deep);
    color: #fff;
    overflow: hidden;
    min-height: min(72vh, 620px);
    display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: .45;
}
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(15deg, rgba(13,27,64,.95) 25%, rgba(13,27,64,.35) 70%);
}
/* Schärpe: diagonaler Trikot-Streifen in Gold/Rot */
.hero-sash {
    position: absolute; top: -12%; right: -6%;
    width: 30%; height: 130%;
    transform: rotate(14deg);
    background:
        linear-gradient(90deg,
            var(--red) 0 14px,
            transparent 14px 26px,
            var(--gold) 26px 44px,
            transparent 44px);
    opacity: .85;
    pointer-events: none;
}
.hero-content { position: relative; padding-block: 4.5rem 3.5rem; }
.hero-kicker {
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--gold); font-weight: 600; margin: 0 0 .5rem;
}
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Motto-Banner (Signature-Element) ---------- */
.motto {
    background: var(--navy);
    border-block: 4px solid var(--gold);
    color: #fff;
    text-align: center;
    padding-block: 2.2rem;
}
.motto p {
    font-family: var(--font-display);
    text-transform: uppercase;
    margin: 0;
}
.motto-sq { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: .04em; }
.motto-rule {
    display: block; width: 90px; height: 3px;
    background: var(--gold); margin: .9rem auto;
}
.motto-de { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; letter-spacing: .12em; color: #c7d0e8; }

/* ---------- Sektionen ---------- */
.section { padding-block: 4rem; }
.section-tint { background: var(--tint); }

.page-head {
    background: var(--navy);
    color: #fff;
    padding-block: 3rem 2.5rem;
    border-bottom: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
}
.page-head::after { /* dezente Schärpe auch auf Unterseiten */
    content: ""; position: absolute; top: -30%; right: -3%;
    width: 120px; height: 160%;
    transform: rotate(14deg);
    background: linear-gradient(90deg, var(--red) 0 10px, transparent 10px 20px, var(--gold) 20px 32px, transparent 32px);
    opacity: .7;
}
.page-head h1 { color: #fff; margin-bottom: .3rem; }
.page-head p { margin: 0; color: #c7d0e8; max-width: 60ch; }

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

/* ---------- Fakten-Karte ---------- */
.fact-card {
    background: var(--tint);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.6rem;
    position: sticky; top: 96px;
}
.facts { margin: 0 0 1.2rem; }
.facts div {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- FuPa ---------- */
.fupa-widget { min-height: 200px; }
.fupa-widget iframe { width: 100%; border: 0; }

.fupa-fallback {
    background: var(--white);
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.6rem;
    text-align: center;
}
.section-tint .fupa-fallback { background: var(--white); }
.fupa-fallback p { margin: 0 0 .8rem; }
.fupa-fallback .btn { margin-top: .4rem; }

.fupa-credit {
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--muted);
    text-align: right;
}

/* ---------- Galerie ---------- */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.galerie-item {
    display: block; overflow: hidden; border-radius: var(--radius);
    aspect-ratio: 4 / 3; background: var(--tint);
}
.galerie-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .25s ease;
}
.galerie-item:hover img { transform: scale(1.05); }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(13,27,64,.94);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.lightbox-close {
    position: absolute; top: 1rem; right: 1.4rem;
    background: none; border: 0; color: #fff;
    font-size: 2.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { color: var(--gold); }

/* ---------- Sponsoren ---------- */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}
.sponsor-card {
    display: flex; flex-direction: column; align-items: center; gap: .8rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.2rem;
    text-decoration: none;
    transition: border-color .15s ease, transform .12s ease;
}
.sponsor-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.sponsor-card img { max-height: 70px; width: auto; object-fit: contain; }
.sponsor-card span {
    font-family: var(--font-display);
    font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    color: var(--ink);
}
.sponsor-cta { text-align: center; margin-top: 2.5rem; }
.sponsor-cta p { margin-bottom: .8rem; }

/* ---------- Impressum ---------- */
.legal { max-width: 46rem; }
.legal h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.legal h3 { margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: #c7d0e8;
    margin-top: 0;
    border-top: 4px solid var(--gold);
}
.footer-grid {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1.5rem;
    padding-block: 2.2rem 1.4rem;
}
.footer-motto { margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.footer-motto span {
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: .06em;
}
.footer-motto span:first-child { color: var(--gold); font-weight: 700; font-size: 1.15rem; }
.footer-motto span:last-child { font-size: .9rem; }
.footer-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-nav a { color: #c7d0e8; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-block: 1rem;
    font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-credit a { color: #c7d0e8; }
.footer-credit a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .fact-card { position: static; }
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--navy-deep);
        flex-direction: column; gap: 0;
        padding: .5rem 1rem 1rem;
        border-bottom: 3px solid var(--gold);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: .85rem .6rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .main-nav a[aria-current="page"]::after { display: none; }
    .nav-lang { border: 0; }
    .hero { min-height: 60vh; }
    .hero-sash { display: none; }
}
