/* Webseite leihbar.con4tech.com: Startseite und Rechtstexte (add-website/design.md, D4).
   Nur Systemschriften, keine Skripte, hell und dunkel über prefers-color-scheme. */
:root {
  --bg: #fff8f5; --flaeche: #ffffff; --fg: #2a211d; --muted: #6a5f58;
  --accent: #c43d12; --accent-hell: #e64a19; --auf-accent: #ffffff;
  --line: #ead9d0; --zart: #fde9df;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1917; --flaeche: #27221f; --fg: #efe9e4; --muted: #ab9f97;
    --accent: #ff8a5c; --accent-hell: #ff8a5c; --auf-accent: #1d1917;
    --line: #3a322e; --zart: #33261f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
p, li { overflow-wrap: anywhere; }

.rahmen { max-width: 64rem; margin: 0 auto; padding: 0 16px; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--line); }
.kopf .rahmen { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.marke { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.marke img { border-radius: 8px; }
.kopf-app { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Startbereich */
.start { display: grid; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 52rem) { .start { grid-template-columns: 1.1fr 1fr; padding-top: 64px; padding-bottom: 64px; } }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 16px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.knopf { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px;
  background: var(--accent); color: var(--auf-accent); font-weight: 700; text-decoration: none; }
.knopf:hover, .knopf:focus-visible { filter: brightness(1.08); }
.knopf svg { width: 20px; height: 20px; fill: currentColor; }
.hinweis { display: block; margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.bild svg { display: block; width: 100%; height: auto; }
.bild .haus { fill: var(--flaeche); stroke: var(--line); stroke-width: 3; }
.bild .dach { fill: var(--accent-hell); }
.bild .fenster { fill: var(--zart); }
.bild .weg { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.bild .karte { fill: var(--flaeche); stroke: var(--accent); stroke-width: 3; }
.bild .text-stark { fill: var(--fg); font: 700 17px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.bild .text-leise { fill: var(--muted); font: 15px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* Abschnitte */
section { padding: 40px 0; border-top: 1px solid var(--line); }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 20px; }
h3 { font-size: 1.08rem; margin: 0 0 6px; }
.schritte { list-style: none; counter-reset: schritt; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 44rem) { .schritte { grid-template-columns: repeat(3, 1fr); } }
.schritte li { counter-increment: schritt; }
.schritte li::before { content: counter(schritt); display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--zart); color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.schritte p, .kacheln p { margin: 0; color: var(--muted); }
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 40rem) { .kacheln { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .kacheln { grid-template-columns: repeat(3, 1fr); } }
.kacheln li { background: var(--flaeche); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.schluss { text-align: center; }
.schluss p { color: var(--muted); max-width: 36rem; margin: 0 auto 20px; }

/* Rechtstexte */
main.text { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
main.text h1 { font-size: 1.9rem; margin: 32px 0 4px; }
main.text h2 { font-size: 1.25rem; margin: 32px 0 8px; }
main.text h3 { margin: 20px 0 4px; }
.stand { color: var(--muted); margin: 0 0 16px; }
.entwurf { border: 1px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin: 16px 0; }
.platzhalter { background: var(--zart); padding: 0 4px; border-radius: 4px; }

/* Fuß */
.fuss { border-top: 1px solid var(--line); margin-top: 48px; padding: 16px 16px 32px; color: var(--muted);
  max-width: 64rem; margin-left: auto; margin-right: auto; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fuss nav a { white-space: nowrap; }
