/* ============================================================
   Migo, der Pirat — Neues Layout 2026
   Palette aus der Migo-Buchwelt (Strauss Verlag)
   ============================================================ */

:root {
    --tinte:        #1E4E79;   /* Navy-Tinte, Migo-Schriftzug */
    --tinte-dunkel: #16395A;
    --meer:         #2FA8CC;   /* Türkismeer vom Buchcover */
    --meer-tief:    #1B84A8;
    --himmel:       #EAF5FB;   /* heller Himmel / Seitengrund */
    --schaum:       #FFFFFF;
    --sand:         #F8ECD3;   /* Sandband */
    --sand-tief:    #EFDDB4;
    --rot:          #D94F43;   /* Migos Ringelshirt — CTA */
    --rot-tief:     #BE3D32;
    --gold:         #F2C64B;   /* Flagge & Schatz */
    --pink:         #DB2E87;   /* "Insel Nr. X"-Sticker */
    --text:         #2A4358;
    --text-hell:    #51677A;

    --display: 'Baloo 2', 'Trebuchet MS', sans-serif;
    --body: 'Atkinson Hyperlegible', 'Verdana', sans-serif;

    --radius: 18px;
    --schatten: 0 6px 24px rgba(22, 57, 90, .12);
    --schatten-gross: 0 14px 40px rgba(22, 57, 90, .18);
    --breite: 1080px;
}

* { margin: 0; padding: 0; 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 {
    font-family: var(--body);
    font-size: 1.06rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--himmel);
}

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

a { color: var(--meer-tief); }
a:hover { color: var(--tinte); }

:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 3px;
    border-radius: 4px;
}

.container { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }

/* ---------- Typografie ---------- */

h1, h2, h3, .btn, .brand, .buoy {
    font-family: var(--display);
    color: var(--tinte);
    line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; margin-bottom: .5em; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
    display: inline-block;
    font-family: var(--display);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--meer-tief);
    background: rgba(47, 168, 204, .14);
    border-radius: 999px;
    padding: .25em 1em;
    margin-bottom: .9em;
}

.lead { font-size: 1.18rem; color: var(--text-hell); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05rem;
    padding: .65em 1.5em;
    border-radius: 999px;
    text-decoration: none;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-rot {
    background: var(--rot);
    color: #fff;
    box-shadow: 0 4px 14px rgba(217, 79, 67, .35);
}
.btn-rot:hover { background: var(--rot-tief); color: #fff; transform: translateY(-2px); }
.btn-umriss {
    background: transparent;
    color: var(--tinte);
    border-color: var(--tinte);
}
.btn-umriss:hover { background: var(--tinte); color: #fff; }
.btn-klein { font-size: .95rem; padding: .5em 1.2em; }

/* ---------- Header / Navigation ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(22, 57, 90, .10);
}
.topbar-inner {
    max-width: var(--breite);
    margin: 0 auto;
    padding: .55rem 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tinte);
    text-decoration: none;
    white-space: nowrap;
}
.brand svg { flex: none; }
.brand:hover { color: var(--meer-tief); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: .4rem;
    cursor: pointer;
    color: var(--tinte);
}

.hauptnav ul {
    display: flex;
    gap: .25rem;
    list-style: none;
}
.hauptnav a {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    padding: .45em .85em;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}
.hauptnav a:hover { background: var(--himmel); color: var(--tinte); }
.hauptnav a.aktiv { background: var(--tinte); color: #fff; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .hauptnav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 14px 24px rgba(22, 57, 90, .16);
        display: none;
    }
    .hauptnav.offen { display: block; }
    .hauptnav ul { flex-direction: column; padding: .75rem 1.25rem 1.25rem; }
    .hauptnav a { padding: .7em 1em; border-radius: 12px; }
}

/* ---------- Wellen-Trenner ---------- */

.wave { line-height: 0; }
.wave svg { display: block; width: 100%; height: 70px; }
@media (max-width: 640px) { .wave svg { height: 44px; } }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: linear-gradient(180deg, #F4FAFE 0%, #D9EDF8 55%, #BFE2F2 100%);
    overflow: hidden;
}
.hero-inner {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 4.5rem 24px 3.5rem;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 3rem;
    align-items: center;
}
.hero .eoedl-chip {
    display: inline-block;
    font-size: .92rem;
    font-weight: 700;
    color: var(--tinte);
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 999px;
    padding: .35em 1.1em;
    margin-bottom: 1.2rem;
    text-decoration: none;
}
.hero .eoedl-chip:hover { background: var(--gold); }
.hero h1 { margin-bottom: .4em; }
.hero .slogan {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--meer-tief);
    margin: .8em 0 1.4em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-bild {
    position: relative;
    transform: rotate(-2deg);
}
.hero-bild img {
    border-radius: var(--radius);
    border: 10px solid #fff;
    box-shadow: var(--schatten-gross);
}
.hero-moewe {
    position: absolute;
    top: 8%;
    right: 6%;
    animation: schweben 6s ease-in-out infinite;
    opacity: .9;
}
@keyframes schweben {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; padding: 3rem 24px 2.5rem; gap: 2rem; }
    .hero-bild { max-width: 460px; }
}

/* ---------- Sektionen ---------- */

.sektion { padding: 4rem 0; }
.sektion-kopf { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }

.bg-schaum { background: var(--schaum); }
.bg-himmel { background: var(--himmel); }
.bg-sand   { background: var(--sand); }
.bg-meer   { background: linear-gradient(180deg, var(--meer) 0%, var(--meer-tief) 100%); }
.bg-tinte  { background: var(--tinte); }

.bg-meer h2, .bg-meer .sektion-kopf p { color: #fff; }
.bg-meer .eyebrow { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Video ---------- */

.video-rahmen {
    max-width: 780px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schatten-gross);
    border: 8px solid #fff;
    background: #000;
}
.video-rahmen video { display: block; width: 100%; height: auto; }

/* ---------- Buch-Feature ---------- */

.buch-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    align-items: center;
}
.buch-cover img {
    border-radius: 12px;
    box-shadow: var(--schatten-gross);
    transform: rotate(2deg);
    transition: transform .2s ease;
}
.buch-cover img:hover { transform: rotate(0deg) scale(1.02); }
.buch-text p { margin-bottom: 1em; }
.buch-text .btn { margin-top: .5rem; }
.autorin { font-size: .95rem; color: var(--text-hell); margin-top: 1.2rem; }

@media (max-width: 760px) {
    .buch-grid { grid-template-columns: 1fr; }
    .buch-cover { max-width: 280px; margin: 0 auto; }
}

/* ============================================================
   Signature: Die Fahrtroute durchs Fehlermeer
   ============================================================ */

.route {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 0 0;
}
.route::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    border-left: 4px dashed rgba(255, 255, 255, .55);
    transform: translateX(-2px);
}

.route-start, .route-ziel {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: .5rem 0 1.5rem;
}
.route-ziel { padding: 1.5rem 0 .5rem; }
.route-start .schiff, .route-ziel .schatz-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--schatten);
}
.route-start p, .route-ziel p {
    font-family: var(--display);
    font-weight: 700;
    color: #fff;
    margin-top: .5rem;
}

.station {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    align-items: center;
    margin: .4rem 0;
}
.buoy {
    grid-column: 2;
    justify-self: center;
    z-index: 2;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    border: 4px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
}
.buoy small {
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.insel-karte {
    grid-row: 1;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 1.1rem;
    display: flex;
    gap: 1.1rem;
    align-items: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.insel-karte:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
.station.links .insel-karte { grid-column: 1; }
.station.rechts .insel-karte { grid-column: 3; }

.insel-karte img {
    width: 108px;
    flex: none;
    border-radius: 10px;
    border: 2px solid var(--himmel);
}
.insel-karte .insel-nr {
    font-family: var(--display);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pink);
}
.insel-karte h3 { margin: .1em 0 .25em; }
.insel-karte .thema { font-size: .95rem; color: var(--text-hell); margin-bottom: .7em; }

/* Scroll-Reveal: versteckt NUR, wenn JS den Observer aktiviert hat (html.js-anim) */
html.js-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
html.js-anim .reveal.sichtbar { opacity: 1; transform: none; }

@media (max-width: 760px) {
    .route::before { left: 30px; }
    .station { grid-template-columns: 60px 1fr; margin: 1rem 0; }
    .buoy { grid-column: 1; grid-row: 1; width: 52px; height: 52px; font-size: 1.1rem; }
    .station.links .insel-karte,
    .station.rechts .insel-karte { grid-column: 2; grid-row: 1; }
    .insel-karte img { width: 84px; }
    .route-start, .route-ziel { text-align: left; padding-left: 0; }
    .route-start .schiff, .route-ziel .schatz-x { width: 60px; height: 60px; margin-left: 0; }
    .route-start, .route-ziel { padding-left: 0; }
    .route-start .schiff, .route-ziel .schatz-x { position: relative; left: 0; }
    .route-start p, .route-ziel p { margin-left: 0; }
}

/* ---------- Karten (Kapitäns-Werkzeug) ---------- */

.karten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}
.karte {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--himmel); }
.karte-text { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.karte-text p { font-size: .95rem; color: var(--text-hell); flex: 1; }
.karte-text .btn { align-self: flex-start; margin-top: .4rem; }

/* ---------- EÖDL-Band ---------- */

.eoedl-band { color: #fff; text-align: center; }
.eoedl-band h2 { color: #fff; }
.eoedl-band p { max-width: 700px; margin: 0 auto 1em; color: rgba(255, 255, 255, .92); }
.eoedl-band a { color: var(--gold); }
.eoedl-band .btn-gold {
    background: var(--gold);
    color: var(--tinte-dunkel);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.eoedl-band .btn-gold:hover { background: #fff; color: var(--tinte); transform: translateY(-2px); }

/* ---------- Unterseiten ---------- */

.seiten-kopf {
    background: linear-gradient(180deg, #F4FAFE 0%, #D9EDF8 100%);
    text-align: center;
    padding: 3.5rem 24px 2.5rem;
}
.seiten-kopf p { max-width: 680px; margin: .5em auto 0; color: var(--text-hell); }

.inhalt { max-width: 820px; margin: 0 auto; padding: 3.5rem 24px; }
.inhalt h2 { margin-top: 1.6em; }
.inhalt h2:first-child { margin-top: 0; }
.inhalt p { margin-bottom: 1em; }
.inhalt ul { margin: 0 0 1.2em 1.3em; }
.inhalt li { margin-bottom: .5em; }

/* Logbuch-Schritte (Beschreibung) */
.logbuch { list-style: none; margin: 2rem 0 0; counter-reset: schritt; }
.logbuch li {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 1.4rem 1.6rem 1.4rem 5.2rem;
    margin-bottom: 1.2rem;
    counter-increment: schritt;
}
.logbuch li::before {
    content: counter(schritt);
    position: absolute;
    left: 1.2rem;
    top: 1.3rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}
.logbuch h3 { margin-bottom: .3em; }
.logbuch p { margin: 0; color: var(--text-hell); }

/* Merk-Kästen (Besonderheiten) */
.merk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.merk-kasten {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 1.6rem 1.7rem;
}
.merk-kasten h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .8em; }
.merk-kasten ul { list-style: none; margin: 0; }
.merk-kasten li {
    position: relative;
    padding-left: 1.7em;
    margin-bottom: .65em;
}
.merk-kasten li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .28em;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background: var(--meer);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 12.2 2.3 8l1.4-1.4 2.8 2.8 5.8-5.8L13.7 5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 12.2 2.3 8l1.4-1.4 2.8 2.8 5.8-5.8L13.7 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 700px) { .merk-grid { grid-template-columns: 1fr; } }

/* Impressum-Kontaktkarte */
.kontakt-karte {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 1.8rem 2rem;
    margin: 1.5rem 0;
}
.kontakt-karte p { margin-bottom: .3em; }

/* ---------- Footer ---------- */

footer { background: var(--tinte-dunkel); color: rgba(255, 255, 255, .85); }
.footer-inner {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 3rem 24px 2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: 2.5rem;
}
.footer-inner h3 { color: #fff; font-size: 1.05rem; margin-bottom: .8em; }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: .45em; }
.footer-inner a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-inner a:hover { color: var(--gold); }
.footer-brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
}
.footer-slogan { font-size: .95rem; }
.footer-unten {
    border-top: 1px solid rgba(255, 255, 255, .15);
    text-align: center;
    padding: 1.2rem 24px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .6);
}
@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
}
