/* ==========================================================================
   Prototypen – gemeinsame Basis
   Schriften (selbst gehostet), Farb-Tokens hell/„Flutlicht“, Buttons,
   Umschalter, Handy- und Tablet-Mockup, Reveal-Animationen
   ========================================================================== */

@font-face {
    font-family: "Costa Rica";
    src: url("../../fonts/CostaRica.woff2") format("woff2"),
         url("../../fonts/CostaRica.woff") format("woff");
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    font-weight: 100 900;
    font-display: swap;
    src: url("../../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-weight: 100 900;
    font-display: swap;
    src: url("../../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens: hell (Standard) ------------------------------------------- */
:root {
    --bg: #F5F7EF;
    --bg-2: #ECF2E3;
    --surface: #FFFFFF;
    --surface-2: #F9FBF5;
    --ink: #14251B;
    --ink-2: #4B5D52;
    --ink-3: #7A8A7F;
    --line: #DDE6D4;
    --green: #2E7D32;
    --green-d: #1E5E23;
    --green-l: #C9F2B9;
    --mint: #E6F7DD;
    --on-green: #FFFFFF;
    --yellow: #FFD23F;
    --coral: #FF6B4A;
    --sky: #DFF1FF;
    --blue: #2F5BEA;
    --shadow: 0 1px 2px rgba(20, 37, 27, .06), 0 14px 34px -14px rgba(20, 37, 27, .22);
    --shadow-lg: 0 34px 80px -26px rgba(20, 70, 30, .38);
    --radius: 22px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Costa Rica", "Inter", sans-serif;
    color-scheme: light;
}

/* --- Tokens: Flutlicht (Dark Mode, nur per Umschalter) -------------------- */
.dark {
    --bg: #0D1712;
    --bg-2: #112019;
    --surface: #16251D;
    --surface-2: #1A2B22;
    --ink: #EDF5EE;
    --ink-2: #B0C1B5;
    --ink-3: #7F9185;
    --line: #26392E;
    --green: #5DC46B;
    --green-d: #92E39C;
    --green-l: #1F3D27;
    --mint: #163024;
    --on-green: #07120B;
    --sky: #132739;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 34px 80px -26px rgba(0, 0, 0, .8);
    color-scheme: dark;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color .4s ease, color .4s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.display { font-family: var(--display); font-weight: normal; letter-spacing: .01em; line-height: 1.02; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    padding: .85em 1.4em;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: var(--on-green); box-shadow: 0 10px 24px -10px var(--green); }
.btn--soft { background: var(--green-l); color: var(--green-d); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }

/* Store-Badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: block; border-radius: 12px; transition: transform .2s ease; }
.store:hover { transform: translateY(-2px); }
.store img { height: 52px; width: auto; }

/* --- Umschalter (Flutlicht / Punk) ---------------------------------------- */
.toggles { display: flex; gap: 8px; }
.tgl {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--ink-2);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.tgl:hover { transform: scale(1.06); color: var(--ink); }
.tgl svg { width: 20px; height: 20px; }
.tgl[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.tgl .when-on { display: none; }
.tgl[aria-pressed="true"] .when-on { display: block; }
.tgl[aria-pressed="true"] .when-off { display: none; }

/* --- Handy-Mockup ---------------------------------------------------------- */
.phone {
    position: relative;
    width: 100%;
    max-width: 290px;
    aspect-ratio: 600 / 1299;
    box-sizing: border-box;
    border-radius: 42px;
    background: #101511;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a312c;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}
.phone img {
    position: absolute;
    top: 9px;
    left: 9px;
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    display: block;
    object-fit: cover;
    object-position: top;
    border-radius: 33px;
    background: #fff;
}

/* --- Tablet-Mockup (selbst scrollbar) -------------------------------------- */
.tablet {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding: 14px;
    border-radius: 36px;
    background: #101511;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a312c;
}
.tablet__screen { position: relative; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; background: #F7F8F2; }
.tablet__scroll {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: none;
    user-select: none;
}
.tablet__scroll::-webkit-scrollbar { display: none; }
.tablet__scroll.is-drag { cursor: grabbing; }
.tablet__scroll img { width: 100%; height: auto; pointer-events: none; }
.tablet__hint {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(16, 28, 21, .92);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    pointer-events: none;
    animation: hint-bob 1.8s ease-in-out infinite;
    transition: opacity .4s ease;
}
.tablet__hint svg { width: 16px; height: 16px; }
.tablet__hint.is-hidden { opacity: 0; }
@keyframes hint-bob { 50% { transform: translate(-50%, -6px); } }

/* --- Reveal beim Scrollen -------------------------------------------------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv[data-d="1"] { transition-delay: .08s; }
.js .rv[data-d="2"] { transition-delay: .16s; }
.js .rv[data-d="3"] { transition-delay: .24s; }

/* --- Prototyp-Hinweis ------------------------------------------------------ */
.proto-badge {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow);
    opacity: .85;
}
.proto-badge:hover { opacity: 1; }
.proto-badge svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .rv { opacity: 1; transform: none; }
}
