/* kundenservice.de – Basis-Stil (mobil zuerst, ohne Webfonts, ohne Bilder) */
:root {
  --bg: #f5f7f8; --surface: #fff; --ink: #1b2a2f; --muted: #5a6a70; --line: #dde4e7;
  --brand: #1f4d5c; --brand-ink: #fff; --brand-soft: #e7f0f2;
  --link: #1a5f9e; --star: #e8a200; --star-off: #d5dcdf;
  --ok: #17703f; --ok-bg: #e4f4ea; --warn: #9a4a00; --warn-bg: #fff1dc;
  --radius: 12px; --shadow: 0 1px 2px rgba(20, 40, 50, .06), 0 4px 14px rgba(20, 40, 50, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181b; --surface: #182226; --ink: #e6edef; --muted: #9db0b6; --line: #2a383d;
    --brand: #5fa8bd; --brand-ink: #0c1416; --brand-soft: #1d2f35;
    --link: #8cc4ff; --star: #f3b83a; --star-off: #3a4a50;
    --ok: #6fd49b; --ok-bg: #173226; --warn: #ffb766; --warn-bg: #3a2a14;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.65rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
.wrap { max-width: 800px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }

/* Kopf */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; font-size: 1.35rem; color: var(--muted); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand span { color: var(--brand); }
.brand small { font-size: .7em; font-weight: 600; color: var(--muted); }
.search { display: flex; flex: 1 1 260px; min-width: 0; }
.search input { flex: 1; min-width: 0; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; }
.search button { padding: 0 14px; border: 0; border-radius: 0 10px 10px 0; background: var(--brand); color: var(--brand-ink); cursor: pointer; }

/* Brotkrumen + Kopf der Firmenseite */
.breadcrumb { font-size: .875rem; color: var(--muted); margin: 14px 0 10px; }
.breadcrumb a { color: var(--muted); }
.co-head { margin-bottom: 14px; }
.co-head h1 { margin-bottom: 4px; }
.co-sub { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.rating-chip { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .9rem; }

/* Sterne (halbe Sterne über Breite) */
.stars { position: relative; display: inline-block; line-height: 1; font-size: 1rem; letter-spacing: 1px; white-space: nowrap; }
.stars-bg { color: var(--star-off); }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--star); }

/* Antwortbox */
.answer { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 0 0 16px; }
.answer h2 { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.call { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; }
.call:hover { filter: brightness(1.06); }
.call-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.call-ic .ic { width: 22px; height: 22px; }
.call-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
@media (max-width: 380px) { .call-go { display: none; } }
.call-label { font-size: .85rem; opacity: .9; }
.call-num { white-space: nowrap; font-size: clamp(1.2rem, 6vw, 1.6rem); font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.call-go { flex: none; margin-left: auto; font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.cost { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--ink); }
.cost-free { background: var(--ok-bg); color: var(--ok); }
.cost-premium { background: var(--warn-bg); color: var(--warn); }
.cost-note { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.cost-note.warn { color: var(--warn); font-weight: 600; }
.no-hotline { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; margin: 0 0 4px; }
.no-hotline .ic { margin-top: .2em; color: var(--brand); }
.answer-foot { font-size: .85rem; color: var(--muted); margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }

/* Kontaktkanäle */
.channels { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.ch { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ch-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); flex: none; }
.ch-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ch-kind { font-size: .8rem; color: var(--muted); }
.ch-val { font-weight: 600; overflow-wrap: anywhere; }
.ch-main .cost { align-self: flex-start; }
.ch-note { font-size: .875rem; color: var(--muted); }

/* Werbeflächen: feste Höhe gegen Layout-Springen */
.ad { position: relative; display: grid; place-items: center; min-height: 280px; margin: 0 0 16px;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(127, 127, 127, .05) 10px 20px); border: 1px dashed var(--line); border-radius: var(--radius); }
.ad-label { position: absolute; top: 6px; left: 10px; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 728px) { .ad { min-height: 250px; } }
/* echte Fläche: Platz für Kennzeichnung über dem Werbemittel (300×250 + Rand) */
.ad[data-ad] { min-height: 290px; padding: 26px 8px 8px; background: none; border-style: solid; }
.ad[data-ad] > :not(.ad-label) { max-width: 100%; }
.ads-off .ad[data-ad], .ad.ad-empty { display: none; }
.clist-ad:has(.ad-empty), .ads-off .clist-ad:has(.ad[data-ad]) { display: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Inhaltsblöcke */
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.addr-grid { display: grid; gap: 10px 24px; }
@media (min-width: 640px) { .addr-grid { grid-template-columns: 1fr 1fr; } }
address { font-style: normal; }
.prose p { margin: 0 0 .9em; }
.prose > :last-child { margin-bottom: 0; }

/* Bewertungen */
.rsum { display: grid; gap: 14px; align-items: center; margin-bottom: 8px; }
@media (min-width: 560px) { .rsum { grid-template-columns: 170px 1fr; } }
.rsum-score { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rsum-avg { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.rsum-score .stars { font-size: 1.2rem; }
.rsum-count { font-size: .9rem; color: var(--muted); }
.rsum-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .85rem; }
.rsum-bars li { display: grid; grid-template-columns: 34px 1fr 44px; gap: 8px; align-items: center; }
.rb-bar { height: 8px; border-radius: 4px; background: var(--star-off); overflow: hidden; }
.rb-bar span { display: block; height: 100%; background: var(--star); }
.rb-n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hint { font-size: .85rem; color: var(--muted); }
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.review-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.review-h h3 { margin: 0; }
.review p { margin: 6px 0; overflow-wrap: anywhere; }
.review footer { color: var(--muted); }
.response { background: var(--brand-soft); border-radius: 8px; padding: 8px 12px; margin-top: 8px; font-size: .95rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: .95rem; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 600; }

/* Kacheln (verwandte Firmen, Listen) */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
.tiles a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface); }
.tiles a:hover { border-color: var(--brand); }
.tile-name { font-weight: 600; }
.tile-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.tile-meta .stars { font-size: .8rem; }

/* Suche gross + Vorschläge */
.search { position: relative; }
.search-big { margin: 16px 0 4px; }
.search-big input { padding: 14px 16px; font-size: 17px; background: var(--surface); }
.search-big button { display: flex; gap: 8px; align-items: center; padding: 0 18px; font: inherit; font-weight: 600; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.suggest a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.suggest [aria-selected=true] a, .suggest a:hover { background: var(--brand-soft); }

/* Start- und Fehlerseite */
.hero { padding: 28px 0 20px; }
.lead { font-size: 1.05rem; color: var(--muted); margin: 0; max-width: 40em; }
.tiles-cat { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 2px; padding-left: 40px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .9rem; }
.steps span { color: var(--muted); font-size: .95rem; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); }
.pills a:hover { border-color: var(--brand); }

/* Firmenlisten (Kategorie, Suche) */
.clist { list-style: none; margin: 0; padding: 0; }
.crow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.clist > li:first-child, .clist-letter + .crow { border-top: 0; }
.crow-name { font-weight: 600; text-decoration: none; color: var(--ink); }
.crow-name:hover { color: var(--link); text-decoration: underline; }
.crow-rating { grid-column: 2; grid-row: 1; display: flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); }
.crow-rating .stars { font-size: .85rem; }
.crow-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .95rem; }
.crow-tel { font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none; font-weight: 600; }
.crow-tel:hover { text-decoration: underline; }
.crow-nophone { color: var(--muted); font-size: .9rem; }
.clist-letter { font-weight: 700; color: var(--brand); padding: 14px 0 2px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.clist > .clist-letter:first-child { padding-top: 0; border-top: 0; }
.clist-ad { list-style: none; padding: 12px 0; border-top: 1px solid var(--line); }
.clist-ad .ad { margin: 0; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.az a { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }

/* Bestehende Seiten */
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.company-list { padding-left: 1.2em; }
.company-list small { color: var(--muted); }

/* Fuß */
.site-footer { margin-top: 32px; padding: 24px 0 32px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; }
.site-footer .fine { font-size: .8rem; }

/* Formulare */
.form { display: grid; gap: 16px; }
.notice { background: var(--warn-bg); color: var(--ink); border-left: 4px solid var(--warn); border-radius: 8px; padding: 10px 14px; font-size: .95rem; }
.form-error { background: var(--warn-bg); color: var(--warn); font-weight: 600; border-radius: 8px; padding: 10px 14px; margin: 0; }
.field { display: grid; gap: 6px; margin: 0; min-width: 0; align-content: start; }
fieldset.field { border: 0; padding: 0; }
.field > label, .field legend { font-weight: 600; }
.field input[type=text], .field input[type=email], .field input[type=url], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.field textarea { resize: vertical; min-height: 7em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--warn); }
.field-error { color: var(--warn); font-size: .9rem; font-weight: 600; margin: 0; }
.field-hint { color: var(--muted); font-size: .85rem; margin: 0; }
.req, .opt { font-weight: 400; font-size: .8rem; color: var(--muted); margin-left: 4px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-check label, .inline-check, .field > label.inline-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.field > label.inline-check { font-weight: 400; }
.field-check input, .inline-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.2rem; line-height: 1; color: var(--star-off); cursor: pointer; padding: 2px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 3px solid var(--link); border-radius: 4px; }
.current { display: grid; gap: 6px; }
.current-l { font-size: .85rem; color: var(--muted); }
.current .channels { margin: 0; grid-template-columns: 1fr; }
.write { margin-top: 8px; }
.write > summary { list-style: none; cursor: pointer; display: inline-block; }
.write > summary::-webkit-details-marker { display: none; }
.write[open] > summary { margin-bottom: 14px; }
/* Geöffnetes Bewertungsformular als eigene Fläche absetzen */
.write[open] { margin: 16px 0 28px; padding: 18px; background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface));
  border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow); }
.write[open] + .review { border-top: 0; }
@media (max-width: 480px) { .write[open] { margin-left: -6px; margin-right: -6px; padding: 14px 12px; } }
.ch-fix { font-size: .8rem; color: var(--muted); }
.thanks .notice { margin: 16px 0; }
.answer-foot a { color: var(--muted); }

@media (min-width: 720px) {
  h1 { font-size: 2rem; }
  .answer, .block { padding: 20px 24px; }
  .channels { grid-template-columns: 1fr 1fr; }
  .channels-list { grid-template-columns: 1fr 1fr; }
  .crow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 120px; }
  .crow-rating { justify-content: flex-end; }
  .crow-meta { grid-column: 2; grid-row: 1; }
  .crow-rating { grid-column: 3; }
  .hero h1 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
