/* MailFundus — Website. Ruhig, hell, vertrauenswürdig: ein Werkzeug für
   Menschen, die nichts verlieren dürfen. Keine Bibliotheken, keine Schrift
   von außen — die Systemschrift des Mac ist die Schrift der App. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1c1c1e;
  --muted: #62626a;
  --line: #e4e1da;
  --card: #ffffff;
  --card-2: #f4f2ec;
  --accent: #1f8a4c;
  --accent-ink: #166b3b;
  --accent-soft: #e7f4ec;
  --amber: #b8710c;
  --amber-soft: #fbf1df;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(20,20,30,.08);
  --radius: 16px;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --fg: #f2f2f4;
    --muted: #9c9ca4;
    --line: #2a2a2f;
    --card: #1b1b1f;
    --card-2: #222227;
    --accent: #4fc57e;
    --accent-ink: #7ad8a0;
    --accent-soft: #16301f;
    --amber: #e5a43e;
    --amber-soft: #332611;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: .8rem;
}

/* ---------- Kopf ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--fg); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav__links { margin-left: auto; display: flex; gap: 1.3rem; font-size: .95rem; }
.nav__links a { color: var(--fg); opacity: .8; }
.nav__links a:hover { opacity: 1; text-decoration: none; }
@media (max-width: 720px) { .nav__links a:not(.nav__cta) { display: none; } }
.nav__cta { color: var(--accent-ink) !important; font-weight: 600; opacity: 1 !important; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 12px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: var(--card-2); }
.btn--soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn small { font-weight: 500; opacity: .75; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero__claim { margin-bottom: 1rem; }
.hero__claim span { display: block; }
.hero__claim .glow { color: var(--accent-ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1rem; }
.hero__note { font-size: .9rem; color: var(--muted); }

/* Vertrauensleiste */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.7rem; justify-content: center; font-size: .92rem; color: var(--muted); }
.trust span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---------- Gezeichnetes App-Fenster ---------- */
.app {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; font-size: .78rem; line-height: 1.35;
}
.app__bar { display: flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); background: var(--card-2); }
.app__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9d9de; display: inline-block; }
.app__bar i:nth-child(1) { background: #ff5f57; } .app__bar i:nth-child(2) { background: #febc2e; } .app__bar i:nth-child(3) { background: #28c840; }
.app__title { margin-left: .5rem; font-weight: 600; color: var(--muted); }
.app__body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.app__side { border-right: 1px solid var(--line); padding: .6rem .5rem; background: var(--card-2); }
.app__side h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .4rem .35rem .3rem; }
.app__side div { padding: .28rem .45rem; border-radius: 6px; display: flex; justify-content: space-between; gap: .4rem; white-space: nowrap; }
.app__side div span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.app__side .sel { background: var(--accent); color: #fff; }
.app__side .sel span:last-child { color: #fff; opacity: .85; }
.app__main { padding: .8rem; display: grid; gap: .7rem; align-content: start; }
.karte { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; background: var(--card); }
.karte--gruen { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.karte b { display: block; font-size: .86rem; margin-bottom: .2rem; }
.karte .btn { padding: .4rem .7rem; font-size: .76rem; border-radius: 8px; margin-top: .45rem; }
.bilanz { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.bilanz div { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
.bilanz small { display: block; color: var(--muted); font-size: .68rem; }
.bilanz strong { font-size: 1rem; font-variant-numeric: tabular-nums; }

/* Schrittleiste (für „So läuft es“) */
.schritte { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.schritte span { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.schritte span i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: .65rem; background: var(--card-2); }
.schritte .done { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--fg); }
.schritte .done i { background: var(--accent); color: #fff; }
.schritte .now { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.schritte .now i { background: var(--accent); color: #fff; }

/* Gemessene Zahlen */
.sec--zahlen { padding: 4rem 0; }
.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 880px) { .zahlen { grid-template-columns: repeat(2, 1fr); } }
.zahlen div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.zahlen strong { display: block; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.02em; color: var(--accent-ink); font-variant-numeric: tabular-nums; line-height: 1.1; margin-bottom: .4rem; }
.zahlen span { color: var(--muted); font-size: .95rem; }

/* Gezeichnete Suche */
.such { padding: .8rem; display: grid; gap: .6rem; }
.such__feld { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 9px; padding: .5rem .7rem; background: var(--card-2); font-size: .9rem; }
.such__lupe { color: var(--muted); font-size: 1.05rem; }
.such__filter { margin-left: auto; font-size: .7rem; padding: .15rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.such__filter + .such__filter { margin-left: 0; }
.such__zahl { font-size: .72rem; color: var(--muted); padding: 0 .2rem; }
.treffer { display: grid; gap: .3rem; }
.treffer__zeile { display: grid; grid-template-columns: 62px 1fr; grid-template-areas: "datum wer" "datum betreff" "datum tag"; gap: .1rem .6rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 9px; }
.treffer__datum { grid-area: datum; color: var(--muted); font-variant-numeric: tabular-nums; }
.treffer__wer { grid-area: wer; font-weight: 600; }
.treffer__betreff { grid-area: betreff; }
.treffer__betreff em { font-style: normal; background: color-mix(in srgb, var(--amber) 22%, transparent); border-radius: 3px; padding: 0 .1em; }
.treffer__tag { grid-area: tag; font-size: .68rem; color: var(--accent-ink); }

/* ---------- Abschnitte ---------- */
.sec { padding: 5rem 0; }
.sec--alt { background: var(--card-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec__head { max-width: 42rem; margin-bottom: 2.5rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 880px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card--accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 1.3rem; margin-bottom: 1rem;
}

/* Schritte als Liste */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--muted); }
.steps p b { color: var(--fg); font-weight: 600; }

/* Ehrlich gesagt */
.ehrlich { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.ehrlich li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; }
.ehrlich li::before { content: "—"; color: var(--accent); font-weight: 700; }
.ehrlich b { font-weight: 650; }

/* Hinweis-Kasten */
.hinweis {
  border-left: 4px solid var(--amber); background: var(--amber-soft);
  border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; margin-top: 1.5rem;
}
.hinweis b { color: var(--amber); }
.hinweis p:last-child { margin: 0; }

/* Tabelle Fristen */
.fristen { width: 100%; border-collapse: collapse; margin: 1rem 0 0; font-size: .97rem; }
.fristen th, .fristen td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fristen th { font-weight: 650; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.fristen td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Ausgaben */
.ausgabe { display: flex; flex-direction: column; }
.ausgabe ul { padding-left: 1.2rem; margin: .6rem 0 1.2rem; color: var(--muted); }
.ausgabe li { margin: .25rem 0; }
.ausgabe .btn { align-self: flex-start; margin-top: auto; }
.badge { display: inline-block; font-size: .75rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--card-2); color: var(--muted); margin-bottom: .8rem; }
.badge--gruen { background: var(--accent-soft); color: var(--accent-ink); }
.preis { font-size: 1.05rem; font-weight: 600; margin: .2rem 0 1rem; }

/* Fuß */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .9rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: center; }
.footer nav { margin-left: auto; display: flex; gap: 1.4rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--fg); }

/* ---------- Rechts- und Supportseiten ---------- */
.legal { max-width: 44rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal .kurz { background: var(--accent-soft); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.legal .kurz p:last-child { margin: 0; }
.legal__stand { color: var(--muted); font-size: .9rem; }
.faq details { border-top: 1px solid var(--line); padding: .9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }
.back { display: inline-block; margin-top: 2.5rem; }

/* Schmale Bildschirme: das gezeichnete Fenster ohne Seitenleiste, die
   Knöpfe in voller Breite — sonst schneidet das Handy die Bilanz ab. */
@media (max-width: 600px) {
  .app__body { grid-template-columns: 1fr; min-height: 0; }
  .app__side { display: none; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .bilanz { grid-template-columns: repeat(3, 1fr); }
  .bilanz strong { font-size: .9rem; }
}
