/* ============================================================
   Computernotdienst Berlin – Stylesheet
   ============================================================ */

:root {
  --blau:        #12325c;
  --blau-hell:   #1d4d8c;
  --blau-sehr-hell: #eef4fb;
  --signal:      #e8460f;
  --signal-dunkel: #c33a0c;
  --gruen:       #1a7a4c;
  --text:        #1c2530;
  --text-grau:   #5b6675;
  --linie:       #dde3ea;
  --weiss:       #ffffff;
  --bg:          #f7f9fc;
  --radius:      10px;
  --schatten:    0 1px 3px rgba(18,50,92,.08), 0 8px 24px rgba(18,50,92,.06);
  --breite:      1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blau-hell); }

h1, h2, h3 { line-height: 1.25; color: var(--blau); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

.nur-screenreader {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Notfall-Leiste ---------- */
.notfallleiste {
  background: var(--blau);
  color: #cfe0f5;
  font-size: .875rem;
  padding: 8px 0;
}
.notfallleiste .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  align-items: center; justify-content: center;
}
.notfallleiste a { color: var(--weiss); text-decoration: none; font-weight: 600; }
.notfallleiste a:hover { text-decoration: underline; }

/* ---------- Kopfbereich ---------- */
.kopf {
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 50;
}
.kopf .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 42px; height: 42px; flex: none; border-radius: 9px; display: block; }
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; color: var(--blau); font-size: 1.05rem; }
.logo-text span { display: block; color: var(--text-grau); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }


.menue-knopf {
  display: none;
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: 8px; padding: 9px 13px;
  font-size: .95rem; font-weight: 600; color: var(--blau); cursor: pointer;
}

.navi ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.navi a {
  display: block; padding: 9px 13px; border-radius: 7px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem;
}
.navi a:hover { background: var(--blau-sehr-hell); color: var(--blau); }
.navi a.aktiv { color: var(--blau); font-weight: 700; background: var(--blau-sehr-hell); }
.navi .knopf-navi {
  background: var(--signal); color: var(--weiss); font-weight: 700; margin-left: 8px;
}
.navi .knopf-navi:hover { background: var(--signal-dunkel); color: var(--weiss); }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 8px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: .15s;
}
.knopf-signal { background: var(--signal); color: var(--weiss); }
.knopf-signal:hover { background: var(--signal-dunkel); }
.knopf-rand { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,.5); }
.knopf-rand:hover { background: rgba(255,255,255,.12); border-color: var(--weiss); }
.knopf-blau { background: var(--blau); color: var(--weiss); }
.knopf-blau:hover { background: var(--blau-hell); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #12325c 0%, #1d4d8c 100%);
  color: var(--weiss);
  padding: 68px 0 76px;
}
.hero h1 { color: var(--weiss); max-width: 17ch; }

/* Startseite: Text links, Grafik rechts */
.hero-start .wrap {
  display: grid; gap: 44px; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}
.hero-bild { width: 100%; height: auto; }
.hero-text { font-size: 1.14rem; color: #d3e2f4; max-width: 54ch; margin-bottom: 30px; }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }
.hero-fakten {
  display: flex; flex-wrap: wrap; gap: 12px 34px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18);
  font-size: .95rem; color: #cfe0f5;
}
.hero-fakten b { color: var(--weiss); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 62px 0; }
.abschnitt-weiss { background: var(--weiss); }
.abschnitt-kopf { max-width: 62ch; margin-bottom: 38px; }
.abschnitt-kopf p { color: var(--text-grau); font-size: 1.05rem; margin: 0; }

.augenbraue {
  display: block; font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 10px;
}

/* ---------- Raster / Karten ---------- */
.raster { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.karte {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--schatten);
}
.karte h3 { margin-bottom: .4em; }
.karte p:last-child { margin-bottom: 0; }
.karte-symbol {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 15px;
  background: var(--blau-sehr-hell); color: var(--blau);
  display: grid; place-items: center;
}
.karte-symbol svg { width: 24px; height: 24px; }
.symbol svg { width: 21px; height: 21px; color: var(--blau-hell); }

/* ---------- Listen ---------- */
.haken { list-style: none; padding: 0; margin: 0; }
.haken li {
  position: relative; padding: 7px 0 7px 30px;
  border-bottom: 1px solid var(--linie);
}
.haken li:last-child { border-bottom: 0; }
.haken li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--gruen); font-weight: 700;
}

.spalten-liste { columns: 2; column-gap: 40px; }
.spalten-liste li { break-inside: avoid; }

/* ---------- Preistabelle ---------- */
.tabelle-huelle { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
caption { text-align: left; padding: 18px 20px 0; font-weight: 700; color: var(--blau); }
th, td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--linie); }
thead th { background: var(--blau-sehr-hell); color: var(--blau); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td.preis { text-align: right; font-weight: 700; color: var(--blau); white-space: nowrap; }

/* ---------- Hinweisbox ---------- */
.hinweis {
  border-left: 4px solid var(--signal);
  background: #fdf3ef; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 26px 0;
}
.hinweis p:last-child { margin-bottom: 0; }
.hinweis strong { color: var(--signal-dunkel); }

.info {
  border-left: 4px solid var(--blau-hell);
  background: var(--blau-sehr-hell); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 26px 0;
}
.info p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
details {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); margin-bottom: 11px; overflow: hidden;
}
details[open] { box-shadow: var(--schatten); }
summary {
  padding: 17px 50px 17px 22px; cursor: pointer; position: relative;
  font-weight: 600; color: var(--blau); list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--signal); line-height: 1;
}
details[open] summary::after { content: "–"; }
summary:hover { background: var(--blau-sehr-hell); }
.faq-inhalt { padding: 2px 22px 20px; border-top: 1px solid var(--linie); }
.faq-inhalt p:last-child, .faq-inhalt ul:last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.kontakt-raster { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.kontakt-zeile {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 15px 0; border-bottom: 1px solid var(--linie);
}
.kontakt-zeile:last-child { border-bottom: 0; }
.kontakt-zeile .symbol { font-size: 1.3rem; width: 28px; flex: none; text-align: center; }
.kontakt-zeile .wert { font-size: 1.15rem; font-weight: 700; color: var(--blau); text-decoration: none; }
.kontakt-zeile .wert:hover { text-decoration: underline; }
.kontakt-zeile .kennzeichnung { font-size: .82rem; color: var(--text-grau); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--blau); color: var(--weiss);
  padding: 54px 0; text-align: center;
}
.cta-band h2 { color: var(--weiss); }
.cta-band p { color: #cfe0f5; max-width: 52ch; margin: 0 auto 26px; }
.cta-knoepfe { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ---------- Fußbereich ---------- */
.fuss {
  background: #0d2545; color: #a9c1de;
  padding: 48px 0 26px; font-size: .93rem;
}
.fuss-raster { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 34px; }
.fuss h4 { color: var(--weiss); font-size: .85rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 14px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 8px; }
.fuss a { color: #a9c1de; text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }
.fuss-unten {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: .87rem; color: #8aa5c6;
}

/* ---------- Platzhalter-Markierung ---------- */
.platzhalter {
  background: #fff3c4; color: #7a5b00;
  padding: 1px 7px; border-radius: 4px;
  font-weight: 700; font-size: .93em;
}

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .hero-start .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-bild { max-width: 400px; margin: 0 auto; }
  .menue-knopf { display: block; }
  .navi {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--weiss); border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten); padding: 10px 20px 18px;
  }
  .navi.offen { display: block; }
  .navi ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .navi a { padding: 13px 14px; font-size: 1.02rem; }
  .navi .knopf-navi { margin: 8px 0 0; text-align: center; }
  .kopf .wrap { position: relative; }
  .hero { padding: 46px 0 52px; }
  .abschnitt { padding: 46px 0; }
  .spalten-liste { columns: 1; }
  .hero-knoepfe .knopf, .cta-knoepfe .knopf { flex: 1 1 100%; }
}

@media print {
  .kopf, .notfallleiste, .cta-band, .hero-knoepfe { display: none; }
  body { background: #fff; font-size: 12pt; }
}
