/* hamburg.css – nur für die Startseite: Hafenbühne, Flieger, Feuerwerk, Laufband.
   Farben ändern: die Werte direkt unter :root. */

:root {
    --nacht: #070d3a;
    --tief: #0e1a4d;
    --gold: #d9b24c;
    --gold-hell: #e8cd85;
    --creme: #ece4d0;
    --backstein: #7d3328;
    --stahl: #3f5a8e;
}

/* ---------- Bühne (Startbild) ---------- */
.stage {
    position: relative;
    overflow: hidden;
    min-height: min(88vh, 800px);
    display: flex;
    align-items: flex-start;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(6, 11, 51, 0.82) 0%, rgba(14, 26, 77, 0.46) 42%, rgba(14, 22, 70, 0.62) 72%, rgba(8, 12, 46, 0.92) 100%),
        url("../wp-content/uploads/2022/03/travel-g384cc796a_1920.jpg") center 40% / cover no-repeat,
        linear-gradient(180deg, #060b33 0%, #101a58 38%, #2b3277 62%, #765a78 82%, #b98562 100%);
}

/* Feine Körnung wie bei Film: macht die Flächen lebendiger */
.stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.stage .inner {
    position: relative;
    z-index: 4;
    max-width: var(--breite);
    width: 100%;
    margin: 0 auto;
    padding: 56px 20px clamp(190px, 19vw, 300px);
}

.moin {
    display: inline-block;
    margin: 0 0 20px;
    padding: 6px 16px;
    border: 1px solid rgba(232, 205, 133, 0.7);
    border-radius: 3px;
    color: var(--gold-hell);
    font: 600 0.85rem/1.4 system-ui, sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.stage h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(2.6rem, 7.6vw, 5.4rem);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 30px rgba(0, 0, 20, 0.55);
}

.stage h1 span { color: var(--gold-hell); }

.stage .sub {
    max-width: 38rem;
    margin: 0 0 28px;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 14px rgba(0, 0, 20, 0.6);
}

.stage .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.stage .cta { padding: 13px 28px; border-radius: 3px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem; }
.cta.gold { background: var(--gold); color: var(--nacht); }
.cta.hell { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.cta.hell:hover { background: rgba(255, 255, 255, 0.12); filter: none; }

/* Sterne, Wolken, Skyline */
.sterne {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
}

.wolke {
    position: absolute;
    z-index: 1;
    left: 0;
    width: 520px;
    height: 110px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(22px);
    background: radial-gradient(ellipse at center, rgba(226, 178, 140, 0.34), rgba(160, 130, 160, 0.12) 55%, rgba(0, 0, 0, 0) 75%);
    animation: ziehen var(--dauer, 140s) linear var(--start, 0s) infinite;
}

@keyframes ziehen { from { transform: translateX(-640px); } to { transform: translateX(calc(100vw + 40px)); } }

.skyline {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    z-index: 2;
    width: 100%;
    height: clamp(170px, 22.5vw, 360px);
    display: block;
    pointer-events: none;
}

.schiff { animation: fahrt 170s linear -50s infinite; }
.barkasse { animation: fahrtLinks 75s linear -20s infinite; }

@keyframes fahrt { from { transform: translateX(-640px); } to { transform: translateX(1700px); } }
@keyframes fahrtLinks { from { transform: translateX(1700px); } to { transform: translateX(-120px); } }

.blink { animation: blinken 2.4s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0.15; } }

.funkel { animation: funkeln 3s ease-in-out infinite alternate; }
@keyframes funkeln { from { opacity: 0.12; } to { opacity: 0.85; } }

/* ---------- Laufband ---------- */
.band {
    overflow: hidden;
    background: var(--nacht);
    color: var(--creme);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    font: 600 1rem/1 system-ui, sans-serif;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    white-space: nowrap;
}

.band-track {
    display: inline-block;
    padding: 18px 0;
    animation: lauf 60s linear infinite;
}

.band-track span { margin: 0 26px; }
.band-track b { color: var(--gold); font-weight: 400; }

@keyframes lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Kacheln ---------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 1.5rem 0 3rem;
}

.tile {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 30px 28px 32px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    min-height: 230px;
    border-top: 3px solid var(--gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(7, 13, 58, 0.22); }

.tile h2 { margin: 0 0 10px; color: inherit; font-size: 1.45rem; }
.tile p { margin: 0 0 18px; color: inherit; opacity: 0.92; }
.tile .mehr { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.tile .ico { position: absolute; right: -8px; bottom: -12px; width: 118px; opacity: 0.16; }

.tile.blau { background: var(--tief); }
.tile.sand { background: var(--creme); color: var(--nacht); }
.tile.rot  { background: var(--backstein); }

/* ---------- Flieger ---------- */
.flyers {
    transition: opacity 1s ease;
    position: fixed;
    inset: 0;
    z-index: 40;
    overflow: hidden;
    pointer-events: none;
}

.flyer {
    position: absolute;
    left: 0;
    top: var(--top);
    transition: top 1.4s ease;
    display: flex;
    align-items: center;
    animation: fliegeRechts var(--dauer) linear var(--start) infinite;
    will-change: transform;
}

.flyer.links { animation-name: fliegeLinks; }
.flyer.links .flugzeug { transform: scaleX(-1); }

.flyer .nick { display: flex; align-items: center; animation: nicken 3.4s ease-in-out infinite alternate; filter: drop-shadow(0 14px 18px rgba(0, 0, 20, 0.28)); }
.flyer.links .nick { flex-direction: row-reverse; }

.flugzeug { display: block; width: clamp(230px, 24vw, 380px); height: auto; overflow: visible; flex: 0 0 auto; }

@keyframes fliegeRechts {
    from { transform: translateX(-900px); }
    to   { transform: translateX(calc(100vw + 40px)); }
}

@keyframes fliegeLinks {
    from { transform: translateX(calc(100vw + 40px)); }
    to   { transform: translateX(-900px); }
}

@keyframes nicken {
    from { transform: translateY(-8px) rotate(-1.1deg); }
    to   { transform: translateY(8px) rotate(1.1deg); }
}

@keyframes propflimmern { from { transform: scaleY(1); } to { transform: scaleY(0.72); } }

/* Schleppband: Stoff mit Falten, Leine mit leichtem Durchhang */
.leine { flex: 0 0 auto; width: clamp(36px, 5vw, 80px); height: 14px; overflow: visible; }
.leine path { stroke: #222a40; stroke-width: 1.5; fill: none; }

.banner {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 30px;
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 2px, rgba(255, 255, 255, 0.05) 2px 14px),
        linear-gradient(180deg, #f4efe2, #ddd5bf);
    color: #1d2a5a;
    font: 800 clamp(1rem, 1.9vw, 1.55rem)/1 Georgia, "Times New Roman", serif;
    letter-spacing: 0.14em;
    white-space: nowrap;
    border-left: 5px solid #2a2f45;
    border-right: 5px solid #2a2f45;
    box-shadow: 0 8px 20px rgba(0, 0, 20, 0.22);
    transform-origin: 100% 50%;
    animation: wehen 0.9s ease-in-out infinite alternate;
}

.banner.rot {
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 2px, rgba(255, 255, 255, 0.04) 2px 14px),
        linear-gradient(180deg, #8d392c, #6e281f);
    color: #f2e9d2;
}

.flyer.links .banner { transform-origin: 0 50%; }

@keyframes wehen {
    from { transform: skewY(-2.2deg) scaleX(1); }
    to   { transform: skewY(2.2deg) scaleX(0.985); }
}

/* ---------- Feuerwerk ---------- */
.feuerwerk {
    position: fixed;
    inset: 0;
    z-index: 30;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---------- Schalter ---------- */
.show-schalter {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 60;
    padding: 9px 16px;
    border: 1px solid rgba(232, 205, 133, 0.6);
    border-radius: 3px;
    background: rgba(7, 13, 58, 0.92);
    color: var(--creme);
    font: 600 0.8rem system-ui, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.show-schalter:hover { background: var(--tief); }

body.show-aus .flyers,
body.show-aus .feuerwerk { display: none; }

body.show-aus .band-track,
body.show-aus .schiff,
body.show-aus .barkasse,
body.show-aus .wolke { animation-play-state: paused; }

/* ---------- Hamburg-Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 0; padding: 0; list-style: none; }
.chips li {
    padding: 7px 16px;
    border: 1px solid var(--linie);
    border-radius: 3px;
    background: #fff;
    color: var(--tief);
    font-weight: 600;
    letter-spacing: 0.06em;
    font-size: 0.92rem;
}
.chips li:first-child { border-color: var(--gold); }

.hamburg-box { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--linie); }
.hamburg-box h2 { margin-top: 0.4rem; }

/* ---------- Klein & ruhig ---------- */
@media (max-width: 900px) {
    .tiles { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .band { font-size: 0.85rem; }
    .banner { padding: 8px 16px; }
    .stage .inner { padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .flyers, .feuerwerk, .show-schalter { display: none; }
    .band-track, .schiff, .barkasse, .wolke, .blink, .funkel { animation: none; }
    .tile { transition: none; }
}

.band-track i {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    vertical-align: middle;
}

/* Außerhalb des Startbilds: höher und blasser */
body.ausserhalb .flyers { opacity: 0.5; }
body.ausserhalb .flyer { top: var(--top2, 9vh); }
