/* Landeseite prontoweb.io (WEB-710). Warme Grundfarben wie die bisherige
   Wurzelseite, WhatsApp-Grün nur für den einen Knopf. Handy zuerst, hell und
   dunkel, keine Skripte. */

/* Bricolage Grotesque, SIL OFL 1.1 (schriften/OFL.txt) — vom eigenen Server statt von Google Fonts:
   kein Aufruf bei Dritten beim Laden der Seite (WEB-946). Eine variable Datei je Zeichensatz (500–800). */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/schriften/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/schriften/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  color-scheme: light dark;
  --grund: #fbfaf8;
  --grund-2: #f3f0ea;
  --karte: #ffffff;
  --schrift: #1b1a18;
  --leise: #6b6862;
  --linie: #e4e0d8;
  --akzent: #1d9e57;
  --akzent-dunkel: #167a43;
  --akzent-schrift: #ffffff;
  --blase-kunde: #dff7c8;
  --blase-wir: #ffffff;
  --platzhalter: #fff1a8;
  --vermerk: #fff4d6;
  --vermerk-rand: #c98a00;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 18px;
  --schatten: 0 1px 2px rgba(27, 26, 24, .06), 0 12px 32px -16px rgba(27, 26, 24, .25);
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #161513;
    --grund-2: #1d1c19;
    --karte: #22211d;
    --schrift: #f2efe9;
    --leise: #9a958c;
    --linie: #2e2c28;
    --akzent: #2fbf6c;
    --akzent-dunkel: #27a35c;
    --akzent-schrift: #0e1a12;
    --blase-kunde: #1f4a2e;
    --blase-wir: #2a2925;
    --platzhalter: #6b5a00;
    --vermerk: #2f2610;
    --vermerk-rand: #d9a227;
    --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.5vw + 1rem, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.5vw + 1rem, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .35em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.gross { font-size: 1.2rem; line-height: 1.55; }
.leise { color: var(--leise); }
.klein { font-size: .9rem; }
.innen { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.innen.schmal { max-width: 46rem; }
section { padding: clamp(3rem, 8vw, 6rem) 0; }
section + section { border-top: 1px solid var(--linie); }

/* Platzhalter, bis Philipp sie ersetzt */
mark.platzhalter { background: var(--platzhalter); color: var(--schrift); padding: .1em .35em; border-radius: 6px; font-style: italic; }

/* ---------- Knopf ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--akzent); color: var(--akzent-schrift);
  font-weight: 700; font-size: 1.1rem; text-decoration: none;
  padding: .95rem 1.5rem; border-radius: 999px;
  box-shadow: var(--schatten);
  transition: transform .15s ease, background .15s ease;
}
.knopf:hover { background: var(--akzent-dunkel); transform: translateY(-1px); }
.knopf:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
.knopf.klein { font-size: .95rem; padding: .55rem 1rem; box-shadow: none; }
.aktion { margin: 1.6rem 0 .9rem; }
.sandbox { font-size: .9rem; color: var(--leise); border-left: 3px solid var(--akzent); padding-left: .75rem; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 1rem;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.marke { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.02em; }
.zeichen { width: 26px; height: 26px; }
.sprachen { margin-left: auto; display: flex; gap: .1rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.sprachen a, .sprachen span { padding: .3rem .45rem; border-radius: 8px; text-decoration: none; color: var(--leise); }
.sprachen a:hover { background: var(--grund-2); color: var(--schrift); }
.sprachen [aria-current] { color: var(--schrift); background: var(--grund-2); }
@media (max-width: 480px) { .kopf .knopf.klein { display: none; } .sprachen { gap: 0; } }

/* ---------- Bühne ---------- */
.buehne { padding-top: clamp(2.5rem, 6vw, 5rem); }
.zweispaltig { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .zweispaltig { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.ueber { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--leise); margin-bottom: 1.2rem; }

/* Handy mit Chat */
.handy {
  margin: 0 auto; width: min(100%, 22rem);
  background: var(--grund-2); border: 1px solid var(--linie); border-radius: 34px;
  padding: .8rem; box-shadow: var(--schatten);
}
.handy-kopf { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem .8rem; font-size: .9rem; line-height: 1.25; }
.handy-kopf small { color: var(--leise); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--akzent); color: var(--akzent-schrift); display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.chat { list-style: none; margin: 0; padding: .6rem .4rem .3rem; display: flex; flex-direction: column; gap: .5rem; background: var(--karte); border-radius: 22px; }
.blase { max-width: 86%; padding: .55rem .8rem; border-radius: 16px; font-size: .92rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.blase.kunde { align-self: flex-end; background: var(--blase-kunde); border-bottom-right-radius: 5px; }
.blase.wir { align-self: flex-start; background: var(--blase-wir); border: 1px solid var(--linie); border-bottom-left-radius: 5px; }

/* Dialog-Animation: Zeiten kommen je Seite aus dem Build (bauen.mjs).
   Mehrere Dialoge liegen im selben Rasterfeld übereinander — der Rahmen ist so
   hoch wie der längste, die Blasen wechseln nur ihre Sichtbarkeit. */
.chats { display: grid; }
.chats > .chat { grid-area: 1 / 1; align-self: start; }
.chat .blase { position: relative; opacity: 0; will-change: opacity, transform; }
.chat .blase .text { display: block; opacity: 0; }
.chat .wir::before {
  content: ""; position: absolute; left: .8rem; top: 50%; width: 2rem; height: .5rem; transform: translateY(-50%);
  opacity: 0; pointer-events: none;
  background:
    radial-gradient(circle, var(--leise) 45%, transparent 50%) 0 50% / .5rem .5rem no-repeat,
    radial-gradient(circle, var(--leise) 45%, transparent 50%) 50% 50% / .5rem .5rem no-repeat,
    radial-gradient(circle, var(--leise) 45%, transparent 50%) 100% 50% / .5rem .5rem no-repeat;
}
@keyframes tippen { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.6); } }
@media (prefers-reduced-motion: reduce) {
  .chat .blase, .chat .blase .text { animation: none !important; opacity: 1; transform: none; }
  .chat .wir::before { display: none; }
  .chats > .chat:not(:first-child) { display: none; }
}

/* ---------- Karten ---------- */
.karten { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.karten.drei { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.karten > li { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.5rem; }
.karten > li p { margin: 0; color: var(--leise); }
.nummer { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--akzent); color: var(--akzent-schrift); font-family: var(--display); font-weight: 800; margin-bottom: 1rem; }

/* Branchen */
.chips { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { border: 1px solid var(--linie); background: var(--karte); border-radius: 999px; padding: .45rem .95rem; font-weight: 600; font-size: .95rem; }

/* Beispiele */
.beispiel-liste > li { padding: 1rem 1rem 1.25rem; }
.beispiel .rahmen { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; border: 1px solid var(--linie); background: var(--grund-2); margin-bottom: 1rem; }
.beispiel .rahmen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.beispiel .leer { height: 100%; display: grid; place-items: center; padding: 1.5rem; text-align: center; color: var(--leise); font-size: .95rem; }
.beispiel h3 { margin: 0 0 .2rem; }

/* Preis */
.kasten { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.kasten .aktion { margin-bottom: 0; }

/* Fragen */
details { border-top: 1px solid var(--linie); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--linie); }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--akzent); font-weight: 800; flex: none; }
details[open] summary::after { content: "–"; }
details p { margin: .7rem 0 0; color: var(--leise); }

/* Schluss */
.schluss { text-align: center; background: var(--grund-2); }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding: 2rem 0 3rem; font-size: .9rem; color: var(--leise); }
.fuss nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .5rem 0; }
.fuss a { color: var(--leise); }
/* § 312k BGB: der Kündigungsknopf gut lesbar, nicht im Grau der übrigen Links (WEB-1162). */
.fuss a.kuendigen { color: var(--schrift); font-weight: 600; text-decoration: underline; }

/* Rechtstexte */
main.text { padding: clamp(2rem, 5vw, 4rem) 0; }
/* Lange Wörter wie „Auftragsverarbeitungsvereinbarung“ brechen auf dem Handy um, statt die Seite breit zu schieben (Regel 27). */
main.text h1 { font-size: clamp(1.9rem, 3vw + 1rem, 2.8rem); hyphens: auto; overflow-wrap: break-word; }
main.text h2 { font-size: 1.35rem; margin-top: 2rem; hyphens: auto; overflow-wrap: break-word; }
main.text h3 { font-size: 1.1rem; margin-top: 1.4rem; }
main.text ul, main.text ol { padding-left: 1.4rem; }
main.text li { margin: .35rem 0; }
main.text table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .95rem; display: block; overflow-x: auto; }
main.text th, main.text td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--linie); }
main.text ul.formular { list-style: none; padding-left: 0; border-left: 3px solid var(--linie); padding-left: 1rem; }
/* Fassungen (WEB-1167): Vermerk bei einem Entwurf, Kennung, frühere Fassungen */
.vermerk { background: var(--vermerk); border-left: 4px solid var(--vermerk-rand); border-radius: 8px; padding: .8rem 1rem; margin: 0 0 1.5rem; }
.vermerk strong { display: block; font-size: 1.05rem; }
.fassung { font-size: .9rem; color: var(--leise); margin-bottom: 1.5rem; }
.fassung code, main.text code { font-size: .9em; overflow-wrap: anywhere; }
.fassungen { border-top: 1px solid var(--linie); margin-top: 3rem; padding-top: 1rem; font-size: .9rem; color: var(--leise); }

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