/* deintechniknerd – Design angelehnt an die Wix-Vorlage:
   Weiß, Schwarz, Grau (#6E6E6E), Graupetrol (#466A6C); Space Grotesk + Plus Jakarta Sans */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-700.woff2") format("woff2"); }

:root {
  --black: #000;
  --white: #fff;
  --grey: #6e6e6e;
  --grey-dark: #4b4b4b;
  --grey-light: #f2f2f2;
  --line: #dcdcdc;
  --accent: #466a6c;
  --accent-dark: #365254;
  --accent-light: #a9c0c1;
  --accent-soft: #ebf0f0;
  --amber: #d9962b;
  --text: #111;
  --muted: #5c5c5c;
  --success: #1b7f45;
  --success-bg: #e4f5ea;
  --danger: #c0392b;
  --radius: 8px;
  --radius-btn: 5px;
  --head: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* --text-scale: Schriftgröße A / A+ / A++ (1 / 1.15 / 1.3), gesetzt über den Knopf in der Navigation */
html { font-size: calc(17px * var(--text-scale, 1)); scroll-behavior: smooth; }
/* Nur für Bildschirmleser sichtbar */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* „Zum Inhalt springen“ – erscheint nur bei Bedienung mit der Tastatur */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--black); color: #fff;
  border: 0; border-radius: var(--radius-btn); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.skip-link:focus { top: 12px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; outline: none; }
a { color: var(--black); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 36px; padding-bottom: 64px; position: relative; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }

/* ---------- Kopfbereich ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--black); }
.logo img { width: 54px; height: auto; }
.logo span { font-family: var(--head); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button {
  font: inherit;
  font-size: .95rem;
  color: var(--black);
  text-decoration: none;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius-btn);
}
.nav a:hover, .nav button:hover { color: var(--grey); }
.nav a.active { color: var(--grey); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  min-height: 50px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--black);
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s, background .15s, color .15s;
}
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--grey-dark); }
.btn-ghost { background: var(--white); color: var(--black); }
.btn-ghost:hover { background: var(--grey-light); }
.btn-grey { background: var(--grey); color: var(--white); border-color: var(--grey); border-radius: 0; font-family: var(--body); font-weight: 500; font-size: 1.15rem; letter-spacing: .04em; padding: 16px 30px; }
.btn-grey:hover { background: var(--grey-dark); border-color: var(--grey-dark); }
.btn-small { padding: 7px 14px; min-height: 38px; font-size: .9rem; }
.btn-danger { color: var(--danger); border-color: var(--danger); background: var(--white); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Startseite ---------- */
/* Ruhig und hell: viel Weiß, Graupetrol als Akzent, Karten mit weichen Schatten */
.ico-svg { flex-shrink: 0; vertical-align: middle; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-intro h2 { margin-bottom: 8px; }
.section-intro p { margin: 0; font-size: 1.08rem; }

.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--white) 0%, var(--accent-soft) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--accent-light); color: var(--accent-dark); font-size: .88rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: .45em; }
.hero-lead { font-size: clamp(1.12rem, 2vw, 1.35rem); line-height: 1.6; color: var(--grey-dark); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.btn-big { min-height: 56px; padding: 14px 28px; font-size: 1.08rem; }
.trust-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--grey-dark); font-size: .98rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.trust-row .ico-svg { color: var(--accent); }
.hero-photo { position: relative; max-width: 420px; justify-self: end; width: 100%; }
.hero-photo picture, .area-card picture, .tile picture, .choice picture { display: contents; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 456 / 696; object-fit: cover; object-position: center 25%;
  border-radius: 18px; box-shadow: 0 24px 48px -18px rgba(17, 40, 41, .45); }
.founder-card { position: absolute; left: -28px; bottom: 28px; max-width: 290px; background: var(--white); color: var(--text);
  text-decoration: none; border-radius: 14px; padding: 16px 18px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .28); display: grid; gap: 6px; }
.founder-card strong { font-family: var(--head); font-size: 1.05rem; }
.founder-card span { font-size: .92rem; line-height: 1.45; color: var(--grey-dark); }
.founder-card em { font-style: normal; font-weight: 600; font-size: .9rem; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.founder-card:hover em { text-decoration: underline; }

.areas { background: var(--white); padding: 72px 0; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.area { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .35); transition: transform .2s, box-shadow .2s; }
.area:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .4); }
.area-card { aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-light); }
.area-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.area-body { padding: 20px 22px 24px; }
.area h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 8px; }
.area-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.area p { margin: 0; color: var(--grey-dark); line-height: 1.6; }

.steps-section { padding: 72px 0; background: var(--grey-light); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--white); border-radius: 16px; padding: 28px 26px; box-shadow: 0 10px 28px -20px rgba(0, 0, 0, .35); }
.step-ico { position: relative; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px; }
.step-num { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  color: var(--white); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: .85rem; border: 2px solid var(--white); }

.trust-section { padding: 72px 0; background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-item { text-align: center; padding: 0 8px; }
.trust-ico { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; }
.trust-item h3 { margin-bottom: 8px; }
.trust-item p { margin: 0; }
.free-band { padding: 8px 0 72px; background: var(--white); }
.free-band .row { width: calc(100% - 32px); max-width: 1148px; justify-content: space-between; flex-wrap: nowrap; gap: 32px; background: var(--accent-dark); color: var(--white);
  border-radius: 20px; padding: 40px 44px; box-shadow: 0 24px 48px -24px rgba(17, 40, 41, .55); }
.free-band .row > div { max-width: 720px; }
.free-band span { line-height: 1.55; color: #e3ecec; }
.free-band .btn { flex-shrink: 0; background: var(--white); color: var(--accent-dark); border-color: var(--white); }
.free-band .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.free-band strong { color: var(--white); font-family: var(--head); font-size: clamp(1.6rem, 4vw, 2.4rem); display: block; line-height: 1.2; margin-bottom: 6px; }

/* ---------- Werbeflächen (Platzhalter) ---------- */
.ad-slot {
  border: 1px dashed #b5b5b5;
  background: repeating-linear-gradient(45deg, #fafafa, #fafafa 10px, #f3f3f3 10px, #f3f3f3 20px);
  color: #8a8a8a;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  min-height: 110px;
  margin: 28px auto;
  position: relative;
}
.ad-slot::before {
  content: "Anzeige"; position: absolute; top: 5px; left: 9px;
  font-size: .62rem; letter-spacing: .06em; text-transform: none; color: #9a9a9a;
}
.ad-slot.ad-wide { max-width: 970px; min-height: 100px; }
/* Zwischen Listeneinträgen – sieht aus wie ein Eintrag der Liste */
.ad-slot.ad-infeed { margin: 0; min-height: 110px; }
.notif-list .ad-slot.ad-infeed { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 90px; }
.ratgeber-grid .ad-slot.ad-infeed { grid-column: 1 / -1; min-height: 100px; }
.ratgeber-grid { grid-auto-flow: dense; } /* Karten füllen die Lücke vor der Werbefläche auf */
/* Schmale Seitenleiste: nur auf breiten Bildschirmen neben dem Inhalt, läuft beim Scrollen mit */
.ad-rail { display: none; }
.ad-rail .ad-slot { position: sticky; top: 24px; margin: 0; min-height: 0; height: 600px; max-height: 100%; }
@media (min-width: 1600px) {
  .page > .ad-rail { display: block; position: absolute; top: 36px; bottom: 64px; left: calc(100% + 8px); width: 160px; }
}
@media (min-width: 1200px) {
  .article-body > .ad-rail { display: block; position: absolute; top: 0; bottom: 0; left: calc(100% + 32px); width: 160px; }
}

/* ---------- Karten & Formulare ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.form-card { max-width: 680px; margin: 0 auto; padding: 32px; border-color: var(--black); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #9a9a9a;
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--text);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); outline: 2px solid var(--accent); outline-offset: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.hint { font-size: .84rem; color: var(--muted); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset.field { border: none; padding: 0; margin: 0 0 18px; }
.error { color: var(--danger); font-weight: 600; min-height: 1.2em; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice {
  position: relative;
  border: 1px solid #9a9a9a;
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice .ico { font-size: 1.4rem; }
.choice-big { flex-direction: column; text-align: center; padding: 18px 12px; }
.lang-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.choice-small { padding: 8px 12px; font-size: .92rem; min-height: 0; }
.choice-big .ico { font-size: 2rem; }

.check-line { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 4px 0 16px; }
.check-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--black); flex-shrink: 0; }

.photo-preview { margin-top: 10px; display: flex; gap: 12px; align-items: center; }
.photo-preview img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- Mein Bereich ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.dash-head h1 { margin: 0; }
.radius-picker { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.radius-picker select { font: inherit; padding: 8px 12px; border-radius: var(--radius-btn); border: 1px solid var(--black); background: var(--white); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 2px solid var(--black);
}
a.tile:hover, button.tile:hover { border-color: var(--accent-light); }
button.tile { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.tile.active { border-color: var(--accent-light); box-shadow: 0 0 0 2px var(--accent-light); }
.tile img { width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; border-radius: 6px; }
.tile .num { font-family: var(--head); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--accent-light); }
.tile .lbl { font-size: .9rem; }

.section { margin-top: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 1.5rem; }

.ticket-list { display: grid; gap: 14px; }
.ticket {
  display: block;
  border: 1px solid var(--line);
  border-left: 6px solid var(--grey);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
a.ticket:hover { border-color: var(--black); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.ticket.urg-eilt { border-left-color: var(--danger); }
.ticket.urg-bald { border-left-color: var(--amber); }
.ticket h3 { margin: 4px 0 6px; font-size: 1.12rem; }
.ticket p { margin: 0; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--muted); margin-top: 10px; }

.badge {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grey-light);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #c5d4d5; }
.badge-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.badge-green { background: var(--success-bg); color: var(--success); border-color: #bfe3cc; }
.badge-red { background: #fdecea; color: var(--danger); border-color: #f5c2bd; }

.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.ticket-photo img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); cursor: zoom-in; }
.desc { white-space: pre-wrap; }

.offer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.offer.accepted { border-color: var(--accent); background: var(--accent-soft); }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--black);
  color: var(--accent-light);
  display: grid; place-items: center;
  font-family: var(--head); font-weight: 700;
  flex-shrink: 0;
}
.offer-main { flex: 1; min-width: 200px; }
.quote { background: var(--grey-light); border-radius: var(--radius-btn); padding: 10px 14px; margin: 8px 0 0; white-space: pre-wrap; }
.contact-box { background: var(--success-bg); border: 1px solid #bfe3cc; border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.contact-box strong { color: var(--success); }

.notice {
  display: flex; gap: 10px; align-items: center;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.notice-warn { background: #fff0e0; border-color: #e0a060; }
.notice-safety { display: block; background: #fff7e8; border-color: #e3b65f; line-height: 1.55; }
.notice-safety a { white-space: nowrap; }

.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--black); }
.offer-main .link-btn { margin-top: 8px; }
.report-open { border-left: 4px solid var(--danger); }
details > summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: 8px; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); border: 1px dashed #b5b5b5; border-radius: var(--radius); }

/* ---------- Laden ohne Springen ---------- */
/* Platz für den Inhalt reservieren: Die Fußzeile springt beim Laden nicht nach oben und wieder runter */
#app { min-height: calc(100vh - 80px); }
/* Platzhalter in der Form der Seite, solange Daten geladen werden */
.skeleton { display: grid; gap: 14px; }
.sk {
  background: linear-gradient(90deg, #ececec 0%, #f6f6f6 50%, #ececec 100%);
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: sk-shimmer 1.2s ease-in-out infinite;
}
.sk-line { height: 14px; }
.sk-title { height: 34px; width: 45%; }
.sk-tile { height: 92px; }
.sk-card { height: 110px; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ---------- Schriftgröße, Helfer-Profil, Filter, Vorlagen, Pause ---------- */
.nav .text-size { border: 1px solid var(--line); font-weight: 700; min-width: 44px; padding: 6px 10px; line-height: 1.2; }
.nav .text-size:hover { border-color: var(--grey); }
.avatar-big { width: 64px; height: 64px; font-size: 1.4rem; flex: none; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-stats > div { background: var(--accent-soft); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; }
.profile-stats strong { font-family: var(--head); font-size: 1.5rem; line-height: 1.2; }
.profile-stats span { font-size: .85rem; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-bar .chips { gap: 8px; flex-wrap: wrap; }
.filter-bar a.chip { text-decoration: none; }
.sort-select { font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.sort-select select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--white); }
.templates { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.template { display: inline-flex; align-items: center; }
.templates .chip { font-size: .82rem; text-align: left; }
.template-del { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; padding: 0 4px; }
.notice-pause { background: #fff7e8; border-color: #e3b65f; flex-wrap: wrap; }

/* ---------- Bestätigungsseiten ---------- */
.done-icon { font-size: 3rem; line-height: 1; }
.done-steps { text-align: left; max-width: 440px; margin: 0 auto; padding-left: 22px; line-height: 1.6; }
.done-steps li { margin-bottom: 6px; }

/* ---------- Neuigkeiten (Glocke) ---------- */
.nav a.bell { position: relative; font-size: 1.15rem; line-height: 1; padding: 8px 10px; }
.bell-count {
  position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--danger); color: #fff;
  font: 700 .72rem/19px var(--body, sans-serif); text-align: center;
}
.notice-push { flex-wrap: wrap; }
.notif-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.notif {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px;
  color: var(--black); text-decoration: none; border-bottom: 1px solid var(--line);
}
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--accent-soft); }
.notif.unread { background: #f5f8f8; }
.notif-ico { font-size: 1.4rem; line-height: 1.2; }
.notif-text { flex: 1; display: flex; flex-direction: column; gap: 3px; line-height: 1.45; }
.notif:not(.unread) .notif-text { color: var(--muted); }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; }

table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.list th { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.stat { font-family: var(--head); font-size: 2.2rem; font-weight: 700; }

.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 90px 16px; color: var(--muted); font-weight: 600; }
.spinner {
  width: 1.1em; height: 1.1em;
  border: 2.5px solid currentColor; border-right-color: transparent;
  border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.legal ul, .legal ol { color: var(--muted); padding-left: 1.4em; }
.legal li { margin-bottom: 4px; }
.legal h2 { font-size: 1.15rem; margin: 18px 0 0; }
.contact-mail { font-family: var(--head); font-weight: 700; font-size: clamp(1.3rem, 4vw, 1.8rem); word-break: break-all; margin: 8px 0 18px; }
.contact-mail a { color: var(--accent); text-decoration: none; }
.contact-mail a:hover { text-decoration: underline; }

/* ---------- Fußbereich (Graupetrol) ---------- */
.site-footer { background: var(--accent); color: var(--white); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.footer-brand { font-family: var(--head); font-weight: 700; font-size: 1.35rem; margin-bottom: 8px; }
.site-footer h3 { font-family: var(--body); font-size: 1.1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--white); }
.site-footer a:focus-visible { outline-color: var(--white); }
.footer-bottom { background: var(--black); color: var(--white); text-align: center; font-size: .82rem; padding: 10px 16px; }

/* ---------- Dialog & Hinweis ---------- */
.dialog { border: 1px solid var(--black); border-radius: var(--radius); padding: 0; max-width: 520px; width: calc(100% - 32px); }
.dialog::backdrop { background: rgba(0, 0, 0, .55); }
.dialog-body { padding: 26px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.dialog img.full { max-width: 100%; display: block; }
.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(150px);
  background: var(--black); color: var(--white);
  padding: 13px 22px; border-radius: var(--radius-btn);
  font-weight: 600; transition: transform .25s; z-index: 50;
  max-width: calc(100% - 32px);
  border-bottom: 4px solid var(--accent-light);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Bewertungen & Abzeichen ---------- */
.badge-soft { background: var(--white); border-color: var(--accent-light); color: var(--accent-dark); font-weight: 600; }
.rating { color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.rating-big { font-size: 1.6rem; letter-spacing: 3px; }
.star-picker { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 4px 0 14px; }
.star-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-picker label { font-size: 2.2rem; line-height: 1; color: #c9c9c9; cursor: pointer; padding: 0 2px; transition: color .1s; }
.star-picker label:hover, .star-picker label:hover ~ label,
.star-picker input:checked ~ label { color: var(--accent); }
.star-picker input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.tile-plain .num { color: var(--accent-light); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 16px; }
.badge-card {
  display: grid; gap: 4px; justify-items: center; text-align: center;
  border: 1px dashed #c4c4c4; border-radius: var(--radius); padding: 16px 12px;
  opacity: .5; filter: grayscale(1);
}
.badge-card .ico { font-size: 2rem; }
.badge-card.earned { opacity: 1; filter: none; border: 2px solid var(--accent); background: var(--accent-soft); }
.thanks-card .quote { margin-top: 8px; }

/* ---------- Kostenangabe im Hilfsangebot ---------- */
.cost-line { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: var(--radius-btn); font-size: .92rem; border: 1px solid; }
.cost-free { background: var(--success-bg); border-color: #bfe3cc; color: var(--success); }
.cost-aufwand { background: #fff7e8; border-color: #e3b65f; color: #7a5410; }

/* ---------- Nachrichten ---------- */
.dialog:has(.chat) { max-width: 600px; }
.chat-list {
  height: min(52vh, 420px); overflow-y: auto; margin-top: 14px; padding: 12px;
  background: var(--grey-light); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px;
}
.msg { max-width: 82%; align-self: flex-start; }
.msg.mine { align-self: flex-end; text-align: right; }
.bubble {
  display: inline-block; text-align: left; white-space: pre-wrap; word-wrap: break-word;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 13px;
}
.msg.mine .bubble { background: var(--accent); color: var(--white); border-color: var(--accent); border-radius: 14px 14px 4px 14px; }
.msg-meta { font-size: .74rem; color: var(--muted); margin-top: 3px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea {
  flex: 1; font: inherit; min-height: 48px; max-height: 140px; resize: vertical;
  padding: 10px 12px; border: 1px solid #9a9a9a; border-radius: var(--radius-btn);
}

/* ---------- Betreiber: Diagramm, Karte, Suche ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--muted); margin-top: 10px; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.chart-legend i.ring { background: rgba(70, 106, 108, .15); border: 1px solid #466a6c; }
.admin-map { height: 440px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--grey-light); }
.admin-map .leaflet-popup-content { font-family: var(--body); font-size: .9rem; line-height: 1.5; }
.search-input { font: inherit; padding: 8px 12px; border: 1px solid #9a9a9a; border-radius: var(--radius-btn); min-width: 240px; }

/* ---------- Startseite: Zähler & Ratgeber ---------- */
.stats-band { background: var(--white); padding: 40px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stats-grid strong { display: block; font-family: var(--head); font-size: clamp(2rem, 5vw, 3rem); color: var(--accent); line-height: 1.1; }
.stats-grid span { color: var(--muted); }
.section-ratgeber { padding: 8px 0 64px; }
.ratgeber-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ratgeber-card {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--text); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.ratgeber-card:hover { border-color: var(--black); border-top-color: var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.ratgeber-card[hidden] { display: none; }
.ratgeber-card h3 { margin: 4px 0 0; }
.ratgeber-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.ratgeber-card .more { margin-top: auto; font-weight: 700; color: var(--accent); }

/* ---------- Ratgeber-Artikel ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-body { position: relative; }
.article h1 { margin-top: 10px; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin: 0 0 12px; }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--grey-dark); }
.article-body { font-size: 1.05rem; line-height: 1.7; }
.article-body h2 { font-size: 1.35rem; margin-top: 30px; }
.article-body li { margin-bottom: 8px; }
.tip { background: var(--accent-soft); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; margin: 26px 0; }
.cta-box {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--accent-dark); color: var(--white); border-radius: 18px; padding: 26px 30px; margin: 30px 0;
  box-shadow: 0 20px 40px -24px rgba(17, 40, 41, .55);
}
.cta-box strong { display: block; font-family: var(--head); font-size: 1.3rem; color: var(--white); }
.cta-box span { color: #e3ecec; }
.cta-box .btn-accent { background: var(--white); color: var(--accent-dark); border-color: var(--white); }
.cta-box .btn-accent:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.cta-box .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.cta-box .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
/* Startseite: Hinweis für künftige Helfer unter dem Hauptknopf */
.cta-sub { display: block; margin-top: 18px; color: var(--black); font-weight: 600; }

/* Helfer werden */
.become-hero { max-width: 760px; }
.become-hero h1 { margin-top: 6px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit h3 { margin: 6px 0 6px; font-size: 1.1rem; }
.benefit p { margin: 0; }
.benefit-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.benefit { border-radius: 16px; box-shadow: 0 10px 28px -20px rgba(0, 0, 0, .35); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: "✔"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; }

/* Häufige Fragen und Über uns */
.faq-page { max-width: 820px; }
.about-hero { display: grid; grid-template-columns: 228px 1fr; gap: 36px; align-items: center; }
.about-hero img { width: 228px; height: auto; border-radius: var(--radius); display: block; }
@media (max-width: 700px) { .about-hero { grid-template-columns: 1fr; gap: 18px; } .about-hero img { width: 180px; } }

/* Drucken (z. B. Ratgeber-Artikel): nur den Inhalt, ohne Kopf, Fuß, Werbung und Knöpfe */
@media print {
  .site-header, .site-footer, .skip-link, .toast, .no-print, .ad-slot, .ad-rail, .reco, .cta-box { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; }
}

/* Zwei-Faktor-Anmeldung (Betreiber) */
.mfa-code { max-width: 150px; font-size: 1.35rem; letter-spacing: .25em; text-align: center; }
.mfa-qr { display: block; margin: 10px 0 4px; background: var(--white); padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.mfa-secret { font-size: .95rem; word-break: break-all; background: var(--grey-light); padding: 2px 6px; border-radius: 4px; }
/* Kaufempfehlungen im Ratgeber (Amazon-Partnerprogramm) – dezent, klar als Anzeige gekennzeichnet */
.reco { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 12px; margin: 30px 0; }
.reco-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.reco-head strong { font-family: var(--head); font-size: 1.15rem; }
.reco-label { font-size: .75rem; color: var(--muted); }
.reco ul { list-style: none; margin: 4px 0 0; padding: 0; }
.reco li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reco li strong { display: block; }
.reco li span { color: var(--muted); font-size: .92rem; }
.reco li .btn { flex-shrink: 0; }
.reco-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 600px) { .reco li { flex-direction: column; align-items: flex-start; gap: 10px; } }
.chip { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chip:hover { border-color: var(--black); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { justify-self: center; max-width: 320px; }
  .founder-card { left: 50%; transform: translateX(-50%); bottom: -24px; width: calc(100% - 24px); max-width: 300px; }
  .hero-photo { margin-bottom: 24px; }
  .areas-grid, .steps-grid, .trust-grid, .tiles { grid-template-columns: 1fr; }
  .areas, .steps-section, .trust-section { padding: 52px 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  html { font-size: calc(16px * var(--text-scale, 1)); }
  .field-row { grid-template-columns: 1fr; }
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
  .logo span { font-size: 1.15rem; }
  .nav { width: 100%; justify-content: flex-start; }
  .form-card { padding: 22px; }
  .btn-grey { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .free-band .row { flex-wrap: wrap; padding: 28px 24px; }
  .free-band .btn { width: 100%; }
  .admin-map { height: 340px; }
  .search-input { min-width: 0; width: 100%; }
  .msg { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 2s; }
}
