/* Bankomat – Web-Designsystem.
   Farben, Radien und Schriften sind aus dem App-Theme übernommen
   (lib/core/theme.dart): warme Naturfarben, weiche Radien, ruhige Flächen.
   Alle Pfade absolut, weil Seiten auch unter /bench/<id>, /support … liegen. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fraunces.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/assets/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #2f6b3c;
  --moss: #8fbc8b;
  --sand: #f6f1e7;
  --bark: #3e2f23;

  --bg: var(--sand);
  --surface: #fff;
  --text: var(--bark);
  --muted: #6d6055;
  --border: #e3ddd0;
  --primary: var(--forest);
  --on-primary: #fff;
  --shadow: 0 18px 40px rgba(62, 47, 35, .10);

  --radius: 20px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --surface: #1d1a15;
    --text: var(--sand);
    --muted: #a79c8d;
    --border: #2e2a22;
    --primary: var(--moss);
    --on-primary: #14210f;
    --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--text { max-width: 720px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.35rem; margin: 40px 0 10px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 28px 0 4px; }

p, ul { margin-bottom: 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--primary); text-underline-offset: 3px; }

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Kopfzeile */

.site-header { padding: 24px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  background: var(--primary);
  color: var(--on-primary);
  transition: transform .15s ease, opacity .15s ease;
}

.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }

/* Startseite */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0 64px;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 16px 0 28px;
  max-width: 30ch;
}

.hero .note {
  color: var(--muted);
  font-size: .9rem;
  margin: 16px 0 0;
}

.shot {
  position: relative;
  justify-self: center;
  max-width: 310px;
}

.shot::after {
  /* weicher Farbschimmer hinter dem Screenshot */
  content: '';
  position: absolute;
  inset: 12% -14% -6%;
  background: radial-gradient(closest-side, var(--moss), transparent);
  opacity: .3;
}

.shot img {
  position: relative;
  z-index: 1;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1fr auto;
    gap: 64px;
    padding: 56px 0 96px;
  }
}

/* Feature-Kacheln */

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 72px;
}

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

.feature svg { width: 24px; height: 24px; stroke: var(--primary); }

.feature h2 {
  font-size: 1.1rem;
  margin: 12px 0 4px;
}

.feature p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}

/* Textseiten */

.page-title {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin: 24px 0 6px;
}
.updated { color: var(--muted); font-size: .95rem; }

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

.card h2 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

section.num { margin-bottom: 28px; }
section.num h2 { margin-top: 0; }

section.num h2 .no {
  color: var(--primary);
  margin-right: 8px;
}

/* Fußzeile */

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: .88rem;
}

footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

footer a { color: var(--muted); }
footer p { margin: 0; }
