/* Landing mylivechat.ch
   ----------------------------------------------------------------------
   Palette aus der Produktwelt statt aus dem Trendkasten:
     nacht   – der Moment, in dem niemand im Büro ist
     indigo  – die Marke
     online  – der Zustand, um den sich alles dreht
     bernstein – der Assistent, der einspringt
   Schrift: nur Inter (liegt lokal, CDN ist im Projekt untersagt). Der
   Kontrast kommt aus dem System-Monospace für technische Details — das
   spart einen Fremdzugriff und passt zum Gegenstand.
   ---------------------------------------------------------------------- */

@font-face { font-family: Inter; src: url("/assets/fonts/inter-regular.woff2") format("woff2");  font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter-medium.woff2") format("woff2");   font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter-bold.woff2") format("woff2");     font-weight: 700; font-display: swap; }

/* Dunkel ist die Vorgabe: Die Seite erzählt von 22:14 Uhr. Der helle Modus
   ist gleichwertig ausgearbeitet, nicht bloss invertiert — Grün und Bernstein
   brauchen auf hellem Grund kräftigere Werte, sonst verschwinden sie. */
:root {
    --nacht:      #0d0e1a;
    --nacht-hell: #16182b;
    --indigo:     #6366f1;
    --indigo-satt:#818cf8;
    --online:     #34d399;
    --bernstein:  #fbbf24;
    --text:       #e8e9f3;
    --text-still: #9ea3bf;
    --linie:      rgba(255,255,255,.09);
    --karte:      rgba(255,255,255,.035);
    --dunkler:    #0a0b15;
    --schatten:   rgba(0,0,0,.5);
    --kegel:      rgba(99,102,241,.30);
    --code-grund: rgba(0,0,0,.35);

    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --rand: 1100px;
}

:root[data-theme="light"] {
    --nacht:      #f7f8fc;
    --nacht-hell: #ffffff;
    --indigo:     #4f46e5;
    --indigo-satt:#4338ca;
    --online:     #059669;
    --bernstein:  #b45309;
    --text:       #14162b;
    --text-still: #5a6080;
    --linie:      rgba(20,22,43,.12);
    --karte:      #ffffff;
    --dunkler:    #eef0f7;
    --schatten:   rgba(20,22,43,.13);
    --kegel:      rgba(99,102,241,.16);
    --code-grund: rgba(20,22,43,.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--nacht);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--rand); margin: 0 auto; padding: 0 24px; }

.skip {
    position: absolute; left: -9999px;
    background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; z-index: 100; }
:focus-visible { outline: 2px solid var(--indigo-satt); outline-offset: 3px; border-radius: 4px; }

/* ── Kopf ─────────────────────────────────────────────────────────── */
.kopf {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--nacht) 86%, transparent);
    border-bottom: 1px solid var(--linie);
}
.kopf-innen { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.marke { font-weight: 700; letter-spacing: -.02em; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.marke-punkt {
    width: 9px; height: 9px; border-radius: 50%; background: var(--online);
    box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: puls 2.6s infinite;
}
@keyframes puls {
    0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
    70%  { box-shadow: 0 0 0 11px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.kopf nav { display: flex; align-items: center; gap: 26px; }
/* :not(.knopf), weil ".kopf nav a" sonst die Textfarbe von ".knopf"
   überschreibt (höhere Spezifität) — der Knopf im Kopf hatte dadurch grauen
   Text auf Indigo, gemessen 1.02:1. */
.kopf nav a:not(.knopf) { text-decoration: none; color: var(--text-still); font-size: 15px; }
.kopf nav a:not(.knopf):hover { color: var(--text); }
.kopf nav a.knopf { text-decoration: none; }

/* ── Schaltflächen ────────────────────────────────────────────────── */
.knopf {
    display: inline-block; text-decoration: none; font-weight: 600;
    padding: 13px 24px; border-radius: 10px;
    background: var(--indigo); color: #fff; border: 1px solid var(--indigo);
    transition: transform .15s ease, background .15s ease;
}
.knopf:hover { background: var(--indigo-satt); transform: translateY(-1px); }
.knopf-still { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf-still:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.22); }
.knopf-klein { padding: 8px 16px; font-size: 14px; }
.knopf-gross { padding: 17px 34px; font-size: 18px; }

/* Umschalter Hell/Dunkel — im Kopf, neben der Navigation. */
.schalter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0;
    background: transparent; color: var(--text-still);
    border: 1px solid var(--linie); border-radius: 9px;
    cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.schalter:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.schalter svg { width: 17px; height: 17px; }
/* Sonne im dunklen Modus (Angebot: hell machen), Mond im hellen. */
.schalter .sonne { display: block; }
.schalter .mond  { display: none; }
:root[data-theme="light"] .schalter .sonne { display: none; }
:root[data-theme="light"] .schalter .mond  { display: block; }

/* ── Typografie ───────────────────────────────────────────────────── */
.augen {
    font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--indigo-satt); margin: 0 0 14px;
}
h1 {
    /* Obergrenze bewusst unter dem, was die Spalte theoretisch trüge: sonst
       bricht "Um 22:14 fragt jemand" mitten im Satz und der gesetzte Umbruch
       verliert seinen Sinn. */
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    line-height: 1.08; letter-spacing: -.032em; font-weight: 700; margin: 0 0 22px;
    text-wrap: balance;
}
h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    line-height: 1.14; letter-spacing: -.028em; font-weight: 700; margin: 0 0 18px;
}
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.akzent { color: var(--online); }
.fliess { color: var(--text-still); max-width: 54ch; font-size: 1.06rem; margin: 0 0 26px; }
.klein { color: var(--text-still); font-size: 13.5px; margin-top: 18px; }
code { font-family: var(--mono); font-size: .88em; color: var(--indigo-satt); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { padding: 76px 0 72px; position: relative; overflow: hidden; }
.hero::before {
    /* einzelner, weicher Lichtkegel — kein flächiger Verlauf */
    content: ""; position: absolute; top: -280px; left: 46%; width: 900px; height: 620px;
    background: radial-gradient(closest-side, var(--kegel), transparent 72%);
    pointer-events: none;
}
.hero-raster { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; }
.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Chatfenster (die Signatur der Seite) ─────────────────────────── */
.fenster {
    background: var(--nacht-hell);
    border: 1px solid var(--linie);
    border-radius: 18px;
    box-shadow: 0 34px 70px var(--schatten);
    overflow: hidden;
}
.fenster-kopf {
    display: flex; align-items: center; gap: 9px;
    padding: 14px 18px; border-bottom: 1px solid var(--linie);
    font-size: 14px; font-weight: 500;
}
.fenster-zeit { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-still); }
.punkt-online, .punkt-bot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); }
.punkt-bot { background: var(--bernstein); }
.fenster-verlauf { padding: 20px 18px; display: flex; flex-direction: column; gap: 11px; min-height: 296px; }
.fenster-klein .fenster-verlauf { min-height: 232px; }
.fenster-eingabe {
    padding: 13px 18px; border-top: 1px solid var(--linie);
    color: #5b6080; font-size: 14px;
}

.blase {
    max-width: 82%; padding: 11px 15px; border-radius: 15px; font-size: 15px; line-height: 1.5;
    opacity: 0; transform: translateY(9px);
    animation: blase-auf .42s ease forwards;
}
@keyframes blase-auf { to { opacity: 1; transform: none; } }
.blase-besucher { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: 5px; }
.blase-team     { align-self: flex-start; background: color-mix(in srgb, var(--text) 9%, transparent); border-bottom-left-radius: 5px; }
.blase-bot      { align-self: flex-start; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.28); border-bottom-left-radius: 5px; }
.blase-hinweis  { align-self: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
                  text-transform: uppercase; color: var(--text-still); background: none; padding: 3px 0; }
.tippt { display: inline-flex; gap: 4px; align-items: center; }
.tippt i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-still); animation: tipp 1.3s infinite; }
.tippt i:nth-child(2) { animation-delay: .18s; }
.tippt i:nth-child(3) { animation-delay: .36s; }
@keyframes tipp { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ── Abschnitte ───────────────────────────────────────────────────── */
.abschnitt { padding: 84px 0; }
.dunkel { background: var(--dunkler); border-block: 1px solid var(--linie); }

.schritte { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.schritte li { border-top: 2px solid var(--linie); padding-top: 20px; }
.nr { font-family: var(--mono); font-size: 12px; color: var(--indigo-satt); letter-spacing: .1em; }
.schritte h3 { margin-top: 10px; }
.schritte p { color: var(--text-still); font-size: 15px; margin: 0 0 14px; }
.code {
    background: var(--code-grund); border: 1px solid var(--linie); border-radius: 9px;
    padding: 12px 14px; font-size: 12.5px; overflow-x: auto; margin: 0;
}
.code code { color: var(--text-still); }
.farbreihe { display: flex; gap: 8px; }
.farbreihe span { width: 26px; height: 26px; border-radius: 7px; background: var(--f); }

.raster { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 44px; }
.karte {
    background: var(--karte); border: 1px solid var(--linie);
    border-radius: 13px; padding: 22px;
    transition: border-color .2s ease, transform .2s ease;
}
.karte:hover { border-color: rgba(129,140,248,.42); transform: translateY(-3px); }
.karte p { color: var(--text-still); font-size: 14.5px; margin: 0; }

.assistent-raster { display: grid; grid-template-columns: 1fr .85fr; gap: 60px; align-items: center; }
.haken { list-style: none; padding: 0; margin: 26px 0 0; }
.haken li { position: relative; padding-left: 30px; margin-bottom: 13px; color: var(--text-still); }
.haken li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 15px; height: 9px; border-left: 2px solid var(--online); border-bottom: 2px solid var(--online);
    transform: rotate(-45deg);
}

/* ── Tarife ───────────────────────────────────────────────────────── */
.tarife { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 44px; align-items: start; }
.tarif {
    background: var(--karte); border: 1px solid var(--linie);
    border-radius: 15px; padding: 26px 22px; position: relative;
}
.tarif-hervor { border-color: var(--indigo); background: rgba(99,102,241,.09); }
.tarif-marke {
    position: absolute; top: -11px; left: 22px;
    background: var(--indigo); color: #fff; font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px; letter-spacing: .02em;
}
.preis { font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 18px; }
.waehrung { font-size: .95rem; font-weight: 500; color: var(--text-still); margin-right: 5px; }
.tarif ul { list-style: none; padding: 0; margin: 0 0 22px; }
.tarif li { font-size: 14.5px; color: var(--text-still); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.tarif li strong { color: var(--text); font-weight: 600; }
.tarif li.nein { opacity: .45; }
.tarif li.ja { color: var(--text); }
.tarif .knopf { display: block; text-align: center; }

.schluss { padding: 108px 0; text-align: center; }
.schluss .fliess { margin: 0 auto 30px; }

.fuss { border-top: 1px solid var(--linie); padding: 26px 0; color: var(--text-still); font-size: 14px; }
.fuss-innen { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fuss a { text-decoration: none; margin-left: 20px; }
.fuss a:hover { color: var(--text); }

/* ── Scroll-Einblendung ───────────────────────────────────────────── */
.zeig { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.zeig.da { opacity: 1; transform: none; }

/* ── Schmale Fenster ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-raster, .assistent-raster { grid-template-columns: 1fr; gap: 40px; }
    .schritte, .raster, .tarife { grid-template-columns: 1fr; }
    .kopf nav a:not(.knopf) { display: none; }
    .hero { padding: 60px 0 56px; }
    .abschnitt { padding: 68px 0; }
}
@media (max-width: 1100px) and (min-width: 901px) {
    .raster, .tarife { grid-template-columns: repeat(2,1fr); }
}

/* Wer Bewegung reduziert haben will, bekommt die Inhalte sofort. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .zeig { opacity: 1; transform: none; transition: none; }
    .blase { opacity: 1; transform: none; animation: none; }
    .marke-punkt, .tippt i { animation: none; }
}

/* Modellauswahl, Datenhinweis und der Betrieb ohne Assistent.
   Die Chips sind bewusst ruhig gehalten: sie sind eine Aufzählung von
   Namen, kein Preisvergleich — Gewicht bekommt der Satz darunter. */
.modelle-titel {
    margin: 2rem 0 .75rem;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-still);
}
.modelle {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    margin: 0 0 1rem;
    list-style: none;
}
.modelle li {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    padding: .4rem .75rem;
    border: 1px solid var(--rand);
    border-radius: 999px;
    background: var(--karte);
    font-size: .9rem;
    font-weight: 600;
}
.modelle li span {
    font-weight: 400;
    font-size: .78rem;
    color: var(--text-still);
}
.fliess.klein { font-size: .92rem; }

.daten-hinweis,
.ohne-ki {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--indigo);
    border-radius: 0 8px 8px 0;
    background: var(--karte);
    font-size: .95rem;
    line-height: 1.6;
}
.daten-hinweis { border-left-color: var(--text-still); }

@media (max-width: 640px) {
    .modelle li { font-size: .85rem; }
}

/* Die beiden Hinweise gelten fuer den ganzen Assistent-Abschnitt und stehen
   deshalb unter dem Raster nebeneinander — in der Textspalte machten sie
   diese laenger als das Chatfenster daneben. */
.assistent-fuss {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.assistent-fuss > p { margin: 0; }
@media (max-width: 860px) {
    .assistent-fuss { grid-template-columns: 1fr; }
}
