/*
 * MyTime – die Werbeseite.
 *
 * Eigenes Stilblatt, wie beim Kundenbericht und bei den Rechtstexten: Diese
 * Seite sieht jemand, der die Anwendung noch nicht kennt. Sie soll in einem
 * Wimpernschlag dastehen – deshalb kein Skript, keine fremde Schrift, kein
 * Bild, das erst geladen werden muss.
 *
 * Die Farben sind dieselben wie in der Anwendung. Wer sich danach anmeldet,
 * soll nicht das Gefühl haben, das Haus gewechselt zu haben.
 */

:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #f0f2f5;
    --border: #e2e5ea;
    --text: #1c2430;
    --muted: #6b7684;
    --accent: #2f6fd0;
    --accent-hover: #2860b8;
    --accent-soft: #e8f0fc;
    --running: #1f8a5b;
    --radius: 12px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14181f;
        --surface: #1b212b;
        --surface-2: #222a36;
        --border: #2c3542;
        --text: #e6eaf0;
        --muted: #98a3b3;
        --accent: #5b9bf0;
        --accent-hover: #74abf4;
        --accent-soft: #1f2c40;
        --running: #4cc38a;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
}

/* Eine Spalte, ein Rand – ueberall derselbe. */
.reihe, main > section, .fuss {
    max-width: 62rem;
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

a { color: var(--accent); }

/* ---------- Kopf ---------- */

.kopf {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.kopf .reihe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.marke { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.marke-zwei { color: var(--accent); }

.kopf nav { display: flex; align-items: center; gap: 18px; }
.kopf nav a { text-decoration: none; }
.kopf nav a:hover { text-decoration: underline; }

.knopf-klein {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    text-decoration: none;
}

.knopf-klein:hover { background: var(--surface-2); text-decoration: none; }

/* ---------- Abschnitte ---------- */

main > section { padding-top: 56px; padding-bottom: 8px; }

@media (max-width: 640px) {
    main > section { padding-top: 40px; }
}

h1 {
    font-size: clamp(30px, 5.2vw, 44px);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 16px;
}

h2 {
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 0 0 14px;
}

h3 { font-size: 17px; margin: 0 0 6px; }

p { margin: 0 0 14px; }

/*
 * Der Fuehrungstext unter einer Ueberschrift.
 *
 * Groesser als der Fliesstext und kuerzer als die Spalte: Er soll gelesen
 * werden, bevor jemand entscheidet, ob er weiterliest.
 */
.führung {
    font-size: 19px;
    color: var(--muted);
    max-width: 40rem;
}

.klein { font-size: 14px; color: var(--muted); }

/* ---------- Der Aufmacher ---------- */

.aufmacher { padding-top: 64px; }

.tat {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 26px;
}

.knopf {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
}

.knopf:hover { background: var(--accent-hover); }

/* ---------- Was es kann ---------- */

.raster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.feld {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.feld p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Was wir nicht tun ---------- */

.haken { list-style: none; margin: 0; padding: 0; }

.haken li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    max-width: 46rem;
}

/*
 * Der Haken als Zeichen und nicht als Bild: Er druckt sich, laedt nicht nach
 * und behaelt beim Vergroessern der Schrift seine Groesse bei.
 */
.haken li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--running);
    font-weight: 700;
}

/* ---------- Preise ---------- */

.tarife {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.tarif {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

/* Der Tarif, den die meisten nehmen, traegt den Rand in der Akzentfarbe. */
.tarif.ist-hervor { border-color: var(--accent); }

.tarif .wen { font-size: 15px; color: var(--muted); margin-bottom: 16px; }

.betrag { margin: 0; line-height: 1.1; }
.betrag strong { font-size: 34px; letter-spacing: -.02em; }
.betrag span { font-size: 15px; color: var(--muted); }

.jahr { font-size: 14px; color: var(--muted); margin: 6px 0 16px; }

.tarif ul { margin: 0; padding-left: 20px; font-size: 15px; }
.tarif li { margin-bottom: 5px; }

.rechnung {
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--accent-soft);
    font-size: 15px;
    max-width: 46rem;
}

.hinweis { font-size: 15px; color: var(--muted); }

/* ---------- Fragen ---------- */

.fragen dl { margin: 0; max-width: 46rem; }

.fragen dt {
    font-weight: 600;
    margin-top: 20px;
}

.fragen dd {
    margin: 4px 0 0;
    color: var(--muted);
}

/* ---------- Fuss ---------- */

.fuss {
    margin-top: 64px;
    padding-top: 22px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    font-size: 15px;
}

.fuss nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 10px;
}
