/* STOTLY – Webseite
 *
 * Farben und Anmutung wie in der App und auf den Mail-Zielseiten (web/).
 * Bewusst nur Systemschriften: Es wird nichts von fremden Servern geladen. */

:root {
  --bg: #F3EFE6;
  --surface: #FBFAF7;
  --cream: #F7F4EB;
  --line: #DDD4C5;
  --line-strong: #C9BFAF;
  --ink: #2A2420;
  --muted: #6F6358;
  --forest: #1F3A30;
  --accent: #2F5A48;
  --sage: #6B8F71;
  --gold: #A67C52;
  --gold-soft: #EADBC6;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(42, 36, 32, .10);
  --width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 14px;
}

.wrap {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 22px;
}

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

.site-head {
  background: var(--forest);
  border-bottom: 3px solid var(--gold);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}
.brand:hover { color: var(--cream); }

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 6px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #DCE5DE;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

/* ---- Typografie ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.5px;
}

h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }

p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: 19px;
  color: var(--ink);
  max-width: 34em;
}

.muted { color: var(--muted); }

/* ---- Knöpfe -------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--forest);
}

.btn--primary {
  background: var(--forest);
  color: var(--cream);
}
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }

.btn--ghost {
  background: transparent;
  color: var(--forest);
}
.btn--ghost:hover { background: var(--cream); }

/* ---- Startseite ---------------------------------------------------------- */

.hero {
  padding: 72px 0 64px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.demo {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px;
  border: 1px solid var(--line);
}

.demo__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.demo__head img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.demo__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--forest);
  margin: 0;
}

.demo__sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.level {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.level b {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.level--active {
  border-color: var(--sage);
  box-shadow: inset 4px 0 0 var(--sage);
}

.demo__note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__intro {
  max-width: 40em;
  margin-bottom: 34px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.section--alt .card { background: var(--cream); }

.card p:last-child { margin-bottom: 0; }

.card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 14px;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background: var(--forest);
  color: #E6ECE7;
  border-radius: 28px;
  padding: 34px;
}

.notice h2 { color: var(--cream); }
.notice p:last-child { margin-bottom: 0; }

.notice__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}

/* ---- Unterseiten --------------------------------------------------------- */

.page {
  padding: 56px 0 72px;
}

.page .wrap { max-width: 820px; }

.page h2 {
  font-size: 24px;
  margin-top: 40px;
}

.page h3 {
  font-size: 18px;
  margin-top: 26px;
}

.page ul { padding-left: 22px; margin: 0 0 16px; }
.page li { margin-bottom: 6px; }

.page address { font-style: normal; margin-bottom: 16px; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
}

.contact-card .mail {
  font-size: 22px;
  font-family: var(--serif);
  font-weight: 700;
  word-break: break-word;
}

/* Entwurfskennzeichnung – muss vor der Veröffentlichung verschwinden. */
.draft {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 28px;
  font-size: 15px;
}

.todo {
  background: #F6E3B4;
  color: #5A3E12;
  padding: 1px 5px;
  border-radius: 5px;
  font-weight: 600;
}

/* ---- Konto löschen ------------------------------------------------------- */

.loeschen-schritte { padding-left: 22px; margin: 0 0 16px; }
.loeschen-schritte li { margin-bottom: 6px; }

.loeschen-karte {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0 28px;
  max-width: 34em;
}

.loeschen-karte label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin: 14px 0 6px;
}
.loeschen-karte label:first-child { margin-top: 0; }

.loeschen-karte input {
  width: 100%;
  font: inherit;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.loeschen-karte .btn { margin-top: 18px; cursor: pointer; font-family: inherit; }
.loeschen-karte .btn:disabled { opacity: .6; cursor: wait; }

.loeschen-knopf {
  background: #9E2F22;
  border-color: #9E2F22;
  color: #fff;
}
.loeschen-knopf:hover { background: #7F251B; border-color: #7F251B; color: #fff; }

.loeschen-meldung { margin: 14px 0 0; font-size: 15px; }
.loeschen-meldung--fehler { color: #9E2F22; font-weight: 600; }
.loeschen-meldung--ok { color: var(--accent); font-weight: 600; }

/* ---- Fuß ----------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line-strong);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--forest); }

/* ---- Schmale Bildschirme ------------------------------------------------- */

@media (max-width: 880px) {
  .hero { padding: 48px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-head .wrap { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .notice { grid-template-columns: 1fr; padding: 26px; }
  .lead { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
