/* ============================================================
   IceCoach Onepager – Styling
   ------------------------------------------------------------
   Farbschema: dunkles "Eis"-Blau statt generischem Corporate-Blau.
   Alles über CSS-Variablen unten – einfach anpassen, der Rest der
   Datei greift automatisch darauf zu.

   Struktur ist bewusst so gebaut, dass du später nur noch:
   - Texte ersetzen (Headline, Absätze, Kartentexte)
   - Bilder ersetzen (assets/screenshot-*.png reinlegen)
   musst, ohne neue CSS-Klassen zu brauchen.
   ============================================================ */

:root {
    /* Hintergrund: sehr dunkles Navy statt Schwarz (wirkt weniger hart) */
    --bg: #060a14;
    --bg-panel: #0d1526;          /* etwas heller für Karten/Sections */
    --bg-panel-2: #101a2e;        /* noch einen Tick heller, für Verschachtelung */
    --bg-panel-border: rgba(255, 255, 255, 0.08);

    /* Nur zwei Akzentfarben: dunkles Blau + Türkis. Alle Verläufe im
       Onepager mischen ausschliesslich diese zwei. */
    --accent-blue: #0ea5e9;       /* dunkles Blau – Haupt-Akzent */
    --accent-teal: #14b8a6;       /* dunkleres Türkis – zweiter Akzent */
    --accent-soft: rgba(14, 165, 233, 0.12);

    /* Text */
    --text: #f8fafc;              /* Überschriften: fast weiss */
    --text-muted: #94a3b8;        /* Fliesstext / Subtext */
    --text-faint: #5b6b84;        /* sehr dezent, z.B. Footer */

    /* Layout */
    --max-width: 1120px;
    --radius: 14px;
    --radius-lg: 20px;
}

/* -------------------- Reset & Basis -------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text-muted);
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

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

/* Farbverlauf statt Vollton – für hervorgehobene Wörter, z.B. in der
   Hero-Headline (<span class="accent">...</span>). */
.accent {
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Generisches SVG-Icon (Sprite via <use href="#icon-...">) */
.icon {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.center {
    text-align: center;
}

/* Kleines, uppercase Label über Überschriften ("eyebrow") */
.eyebrow {
    display: inline-block;
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.eyebrow.center {
    display: block;
}

section > .container > h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 48px;
}

section > .container > h2.center {
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
}

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

.btn {
    display: inline-block;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: #06131f;
    font-weight: 600;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.4);
}

.btn-small {
    padding: 9px 20px;
    font-size: 0.9rem;
}

/* -------------------- Header / Nav -------------------- */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px 24px 0;
    background: transparent;
}

header nav.container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 10px 14px;
    background: rgba(13, 21, 38, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-panel-border);
    border-radius: 999px;
    box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    margin-right: auto;
}

header .logo .logo-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

header nav .nav-links a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.15s ease, background 0.15s ease;
}

header nav .nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

/* Mobile-Menü-Button (Hamburger) – nur < 640px sichtbar, siehe Media Query unten */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

#hero {
    position: relative;
    padding: 120px 24px 0;
    text-align: center;
    overflow: hidden;
    background: var(--bg);
}

/* Weiche, verschwommene Farbverlaufs-Flächen ("Aurora"), die sich sehr
   langsam bewegen – der IceCoach-Ersatz für den Flammen-Schweif im
   Referenzbild, nur in Blau-/Eistönen statt Orange. */
.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.glow-1 {
    width: 560px;
    height: 560px;
    top: -220px;
    left: -160px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    opacity: 0.5;
    animation: drift 20s ease-in-out infinite;
}

.glow-2 {
    width: 460px;
    height: 460px;
    top: -140px;
    right: -140px;
    background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
    opacity: 0.4;
    animation: drift 24s ease-in-out infinite reverse;
}

.glow-3 {
    width: 640px;
    height: 320px;
    bottom: -160px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    opacity: 0.25;
}

@keyframes drift {
    0%, 100% { translate: 0 0; }
    50% { translate: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .glow-1, .glow-2 { animation: none; }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero h1 {
    max-width: 780px;
    margin: 0 auto 20px;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.hero-sub {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-muted);
}

#hero .btn {
    margin-top: 32px;
    margin-bottom: 64px;
}

/* -------------------- Screenshot-Mockup-Rahmen -------------------- */
/* Nutzt onerror im <img>, um bei fehlendem Bild einen Platzhalter zu zeigen.
   Sobald eine echte Datei unter dem angegebenen Pfad liegt, wird sie normal
   angezeigt und der Platzhalter verschwindet automatisch. */

.mockup-frame {
    position: relative;
    width: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--bg-panel-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.mockup-frame img {
    width: 100%;
    display: block;
}

.mockup-frame .mockup-placeholder-text {
    display: none;
}

.mockup-frame.is-placeholder {
    aspect-ratio: 16 / 9;
    border-style: dashed;
    border-color: var(--bg-panel-2);
    background: var(--bg-panel);
}

.mockup-frame.is-placeholder img {
    display: none;
}

.mockup-frame.is-placeholder .mockup-placeholder-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-faint);
    font-size: 0.95rem;
    text-align: center;
    gap: 4px;
}

.mockup-frame.is-placeholder .mockup-placeholder-text small {
    font-family: monospace;
    color: var(--text-faint);
    opacity: 0.8;
}

.mockup-large {
    max-width: 960px;
}

/* -------------------- Hero-Slider -------------------- */
/* Baut auf .mockup-frame/.mockup-large auf (Rahmen, Schatten, abgerundete Ecken
   bleiben gleich) – zusätzlich mehrere .slide-Bilder übereinander, per Klasse
   .active eingeblendet, automatisch durchgeschaltet via js/script.js. */

.hero-slider {
    aspect-ratio: 2 / 1;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}

.slider-dots .dot.active {
    width: 22px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
}

.mockup-small {
    margin-top: 24px;
}

.mockup-small.is-placeholder {
    aspect-ratio: 4 / 3;
}

/* -------------------- Quick-Feature-Leiste -------------------- */

.quick-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
    padding: 40px 24px 100px;
}

.quick-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.quick-feature .icon {
    width: 18px;
    height: 18px;
}

/* -------------------- Funktionen -------------------- */

#funktionen {
    padding: 100px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--bg-panel-border);
    border-radius: var(--radius);
    padding: 28px;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Dünner Farbverlaufs-Strich oben, blendet beim Hover ein */
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px -24px rgba(14, 165, 233, 0.45);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(14, 165, 233, 0.08));
    margin-bottom: 16px;
}

.icon-box .icon {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* -------------------- App / iPhone-Mockup -------------------- */
/* Reiner CSS-Handy-Rahmen (Dynamic-Island-Look), Screenshot wird per
   object-fit:cover in den Screen-Ausschnitt eingepasst. Bild austauschen:
   assets/screenshot-screenshot-screenshot-app.png ersetzen, object-position bei Bedarf anpassen. */

#app {
    padding: 100px 24px;
    background: var(--bg-panel);
    border-top: 1px solid var(--bg-panel-border);
    border-bottom: 1px solid var(--bg-panel-border);
    overflow: hidden;
}

.app-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
}

.app-text h2 {
    margin-bottom: 18px;
}

.phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-glow {
    position: absolute;
    inset: -70px;
    z-index: 0;
    background:
        radial-gradient(circle at 30% 20%, var(--accent-blue), transparent 60%),
        radial-gradient(circle at 70% 80%, var(--accent-teal), transparent 60%);
    filter: blur(70px);
    opacity: 0.35;
}

.phone-shot {
    position: relative;
    z-index: 1;
    width: min(280px, 75vw);
}

.phone-shot img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}

.phone-shot .phone-placeholder-text {
    display: none;
}

.phone-shot.is-placeholder {
    aspect-ratio: 9 / 19.5;
    border-radius: 46px;
    background: var(--bg-panel-2);
    border: 1px dashed var(--bg-panel-border);
}

.phone-shot.is-placeholder img {
    display: none;
}

.phone-shot.is-placeholder .phone-placeholder-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 16px;
    color: var(--text-faint);
    font-size: 0.8rem;
    text-align: center;
    gap: 4px;
}

.phone-shot.is-placeholder .phone-placeholder-text small {
    font-family: monospace;
    opacity: 0.8;
}

/* -------------------- So funktioniert's -------------------- */

#so-funktionierts {
    padding: 100px 24px;
    background: var(--bg-panel);
    border-top: 1px solid var(--bg-panel-border);
    border-bottom: 1px solid var(--bg-panel-border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* -------------------- Über uns / Showcase -------------------- */

.showcase {
    padding: 100px 24px;
}

.showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.showcase-text h2 {
    margin-bottom: 18px;
}

.showcase-text p {
    margin-bottom: 14px;
    font-size: 1rem;
}

/* -------------------- Kontakt -------------------- */

#kontakt {
    padding: 100px 24px;
    text-align: center;
    background:
        radial-gradient(ellipse 50% 60% at 50% 100%, var(--accent-soft), transparent 70%),
        var(--bg);
}

#kontakt h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}

#kontakt p {
    max-width: 440px;
    margin: 0 auto 28px;
}

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

footer {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--bg-panel-border);
}

footer p {
    color: var(--text-faint);
    font-size: 0.85rem;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 860px) {
    .showcase-inner,
    .app-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .phone-wrap {
        display: flex;
        justify-content: center;
        margin-top: 12px;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 20;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        background: rgba(13, 21, 38, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--bg-panel-border);
        border-radius: var(--radius-lg);
        box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.65);
    }

    .nav-links.is-open {
        display: flex;
    }

    header nav .nav-links a {
        width: 100%;
        padding: 12px 14px;
        border-radius: var(--radius);
    }

    #hero {
        padding: 100px 20px 0;
    }

    .quick-features {
        padding: 32px 20px 70px;
    }

    #funktionen,
    #app,
    #so-funktionierts,
    .showcase,
    #kontakt {
        padding: 70px 20px;
    }
}
