  /* Cardo liegt optional unter /fonts/ (selbst gehostet, kein Google-Fonts-Aufruf).
     Fehlt die Datei, fällt der Browser geräuschlos auf Georgia zurück. */
  @font-face { font-family: "Cardo"; src: url("/fonts/Cardo-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Cardo"; src: url("/fonts/Cardo-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

  :root {
    --bg: #1c1a16;
    --bg-2: #262319;
    --ink: #f3eee4;
    --ink-2: #c9c0b0;
    --line: #3d3729;
    --orange: #f28c28;
    --orange-2: #ffb15e;
    --serif: "Cardo", Georgia, "Iowan Old Style", "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 400 1.125rem/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--orange-2); text-underline-offset: .15em; }
  a:hover { color: var(--ink); }
  :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
  .skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #000; padding: .5rem 1rem; z-index: 10; }
  .skip:focus { left: 8px; }

  .wrap { width: min(100% - 2.5rem, 44rem); margin: 0 auto; }

  header.top { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
  header.top .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
  .marke { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); text-decoration: none; }
  .marke img { width: 2rem; height: 2rem; border-radius: .45rem; }
  nav.haupt a { margin-left: 1.1rem; text-decoration: none; font-size: 1rem; }
  nav.haupt a:hover { text-decoration: underline; }

  /* Hero */
  .hero { padding: 4rem 0 0; margin-top: 0; }
  .hero h1 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.08; margin: 0 0 1.25rem;
    letter-spacing: -.01em;
  }
  .hero p.lead { font-size: 1.3rem; color: var(--ink-2); margin: 0 0 2rem; max-width: 34ch; }
  .laden { display: flex; gap: .85rem; flex-wrap: wrap; }
  .knopf {
    display: inline-flex; align-items: center; gap: .55rem;
    min-height: 3.25rem; padding: .7rem 1.35rem; border-radius: .6rem;
    text-decoration: none; font-weight: 600; font-size: 1.05rem;
  }
  .laden { align-items: center; }
  .badge { display: inline-block; line-height: 0; border-radius: .6rem; }
  .badge img { display: block; height: 3.25rem; width: auto; }
  .knopf.rand { border: 2px solid var(--line); color: var(--ink); height: 3.25rem; }
  .knopf.rand:hover { border-color: var(--orange); }
  .klein { font-size: .95rem; color: var(--ink-2); margin-top: 1rem; }

  /* Screenshots: drei Telefone, seitlich scrollbar auf kleinen Displays */
  .screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 3rem 0 0; }
  .screens figure { margin: 0; }
  .screens a { display: block; border-radius: 1rem; }
  .screens img { display: block; width: 100%; height: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 1rem; }
  .screens figcaption { font-size: .95rem; color: var(--ink-2); margin-top: .5rem; text-align: center; }
  @media (max-width: 30rem) { .screens { grid-template-columns: repeat(2, 1fr); } }

  /* Portrait im Warum-Block */
  .warum .kopf { display: grid; grid-template-columns: 11rem 1fr; gap: 1.75rem; align-items: end; margin-bottom: 1.5rem; }
  .warum .kopf img { display: block; width: 11rem; height: auto; border-radius: .6rem; border-bottom: 4px solid var(--orange); background: var(--bg-2); }
  @media (max-width: 36rem) { .warum .kopf { grid-template-columns: 1fr; align-items: start; } .warum .kopf img { width: 12rem; } }


  /* Abschnitte */
  /* Das Rad: ein Ring wie im App-Icon, auf jeder Trennlinie */
  section, .schluss { position: relative; padding: 0 0 3rem; margin-top: 3rem; }
  section::before, .schluss::before { content: ""; display: block; height: 2px; background: var(--line); margin-bottom: 2.75rem; }
  section::after, .schluss::after {
    content: ""; position: absolute; left: 0; top: -13px; width: 28px; height: 28px; box-sizing: border-box;
    border-radius: 50%; border: 3px solid var(--orange); background: var(--bg);
  }
  .hero::before, .hero::after { display: none; }
  h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.15; margin: 0 0 .5rem; }
  .unter { color: var(--ink-2); margin: 0 0 2rem; max-width: 46ch; }

  /* Vier Bereiche: eine Liste, keine Kacheln */
  .bereiche { list-style: none; margin: 0; padding: 0; }
  .bereiche li {
    position: relative; display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
    padding: .25rem 0 2rem 2.25rem;
  }
  .bereiche li::before {
    content: ""; position: absolute; left: 0; top: .55rem; width: 16px; height: 16px; box-sizing: border-box;
    border-radius: 50%; border: 2.5px solid var(--orange);
  }
  .bereiche li:last-child { padding-bottom: 0; }
  .bereiche h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0; color: var(--orange-2); }
  .bereiche p { margin: 0 0 .5rem; }
  .bereiche .zahl { color: var(--ink-2); font-size: 1rem; }
  @media (max-width: 36rem) { .bereiche li { grid-template-columns: 1fr; gap: .25rem; } }

  /* Connector */
  .endpoint {
    display: block; margin: 1.25rem 0; padding: 1rem 1.15rem; background: var(--bg-2);
    border-left: 3px solid var(--orange); border-radius: 0 .4rem .4rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1rem;
    overflow-wrap: anywhere; color: var(--ink);
  }
  .tools { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; margin: 1.5rem 0 0; }
  @media (max-width: 36rem) { .tools { grid-template-columns: 1fr; } }
  .tools h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .5rem; color: var(--ink-2); }
  .tools ul { margin: 0; padding: 0; list-style: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; line-height: 1.9; }
  .tools li { position: relative; padding-left: 1.3rem; }
  .tools li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--orange); }
  details { margin-top: 1.5rem; }
  summary { cursor: pointer; color: var(--orange-2); }
  .dialog { margin: 1rem 0 0; padding: 0; list-style: none; }
  .dialog li { padding: .6rem .9rem; border-radius: .5rem; margin: .5rem 0; max-width: 40ch; }
  .dialog .frage { background: var(--bg-2); }
  .dialog .antwort { border: 1px solid var(--line); margin-left: 2rem; }

  /* Entwickler */
  dl.dev { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; }
  dl.dev dt { color: var(--ink-2); }
  dl.dev dd { margin: 0; overflow-wrap: anywhere; }
  @media (max-width: 36rem) { dl.dev { grid-template-columns: 1fr; gap: .1rem; } dl.dev dd { margin-bottom: .8rem; } }

  /* Warum */
  .warum p { max-width: 60ch; }

  footer { color: var(--ink-2); font-size: .95rem; }
  footer a { color: var(--ink-2); }
  footer .zeile { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: space-between; }

  /* Mitmachen */
  .hinweis { padding: 1.5rem 1.5rem 1.25rem; background: var(--bg-2); border-left: 4px solid var(--orange); border-radius: 0 .6rem .6rem 0; margin-bottom: 2.5rem; }
  .hinweis h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin: 0 0 .6rem; }
  .hinweis p { margin: 0; max-width: 60ch; }
  .hinweis strong { color: var(--orange-2); font-weight: 600; }
  .mit { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .mit h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 .5rem; }
  .mit p { margin: 0 0 1rem; color: var(--ink-2); }
  @media (max-width: 36rem) { .mit { grid-template-columns: 1fr; } }

  /* Unterseiten (Impressum etc.) */
  .seite { padding: 3rem 0 1rem; }
  .seite h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 .5rem; }
  .seite h2 { font-size: 1.35rem; margin: 2.25rem 0 .5rem; }
  .seite p { max-width: 60ch; margin: 0 0 1rem; }
  .seite address { font-style: normal; line-height: 1.6; }

  /* Mitmachen: Knöpfe der beiden Spalten auf einer Höhe */
  .mit > div { display: flex; flex-direction: column; align-items: flex-start; }
  .mit > div .knopf { margin-top: auto; }

  /* Mitmachen: Knöpfe gleich breit (volle Spaltenbreite), Text zentriert */
  .mit > div { align-items: stretch; }
  .mit .knopf { margin-top: auto; justify-content: center; }
