/* Zackbox Bestellstrecke
   CD-Farben hier anpassen. Eigene Schriften (z. B. Barlow) bitte selbst hosten
   und nicht von Google Fonts laden. */

:root {
  --rot: #E30613;          /* exakten CD-Rotton eintragen */
  --rot-dunkel: #B8050F;
  --schwarz: #141414;
  --weiss: #FFFFFF;
  --grau-hell: #F3F3F3;
  --grau-linie: #D6D6D6;
  --grau-text: #555555;
  --radius: 10px;
  --schrift: system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.5;
  color: var(--schwarz);
  background: var(--weiss);
}

a { color: var(--schwarz); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--rot-dunkel); }

.wrap { max-width: 880px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Kopf */
.site-header { background: var(--schwarz); color: var(--weiss); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--weiss); text-decoration: none;
  font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: -0.5px;
}
.brand:hover { color: var(--weiss); }
.brand-box { background: var(--rot); border-radius: 5px; padding: 4px 8px 3px; }
.header-claim { font-size: 15px; color: #E6E6E6; }

/* Inhalt */
main { padding-top: 32px; padding-bottom: 56px; }
h1 { font-size: 36px; line-height: 1.1; letter-spacing: -0.5px; margin: 0 0 12px; }

/* Kopf der Bestellseite: Text links, Bild der Zackbox rechts */
.intro { margin-bottom: 32px; }
.intro-lead { font-size: 19px; margin: 0 0 20px; }
.intro--image { display: flex; align-items: center; gap: 36px; }
.intro-text { flex: 1 1 auto; min-width: 0; }
.intro-image { display: block; flex: 0 0 300px; width: 300px; max-width: 100%; height: auto; }

fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
legend { font-size: 22px; font-weight: 800; padding: 0; margin-bottom: 14px; }

/* Pakete */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { position: relative; display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-body {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 18px; background: var(--weiss);
  border: 2px solid var(--grau-linie); border-radius: var(--radius);
}
.plan input:checked + .plan-body { border-color: var(--rot); box-shadow: inset 0 0 0 2px var(--rot); }
.plan input:focus-visible + .plan-body { outline: 3px solid var(--schwarz); outline-offset: 2px; }
.plan-name { font-size: 19px; font-weight: 800; }
.plan-price { font-weight: 700; }
.plan-rhythm { font-size: 15px; }
.plan-incl { font-size: 15px; font-weight: 600; }
.plan-extra { font-size: 15px; margin-top: -4px; }
.plan-fits { font-size: 15px; color: var(--grau-text); }

/* Startgebühr unter den Paketen, beim Einstiegsangebot rot hervorgehoben */
.start-offer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  margin-top: 16px; padding: 16px 20px; background: var(--weiss);
  border: 2px solid var(--grau-linie); border-radius: var(--radius);
}
.start-offer--promo { background: #FFF5F5; border-color: var(--rot); box-shadow: inset 0 0 0 1px var(--rot); }
.start-offer p { margin: 0; }
.start-offer-figure { display: flex; flex-direction: column; min-width: 120px; }
.start-offer-figure strong { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.start-offer--promo .start-offer-figure strong { color: var(--rot); }
.start-offer-figure span { margin-top: 4px; font-size: 15px; font-weight: 700; }
.start-offer-text { flex: 1 1 300px; }
.start-offer-text .start-offer-badge {
  display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--rot); color: var(--weiss);
  font-size: 13px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase;
}

/* Übersicht zum Aufklappen: graue Leiste mit deutlichem Knopf rechts */
.more {
  margin-top: 16px; background: var(--weiss);
  border: 2px solid var(--grau-linie); border-radius: var(--radius);
}
.more > summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  min-height: 56px; padding: 10px 12px 10px 18px;
  font-weight: 800; cursor: pointer; list-style: none;
  background: var(--grau-hell); border-radius: calc(var(--radius) - 2px);
}
.more > summary::-webkit-details-marker { display: none; }
.more-title { flex: 1 1 240px; }
/* Knopf rechts: zu „Klicken zum Aufklappen ▾“ (steht im HTML), offen „Klicken zum Zuklappen ▴“ */
.more-hint, .more[open] > summary::after {
  flex-shrink: 0; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  color: var(--weiss); font-size: 15px; font-weight: 800; line-height: 1.2;
}
.more-hint { background: var(--rot); }
.more-hint::after { content: " \25BE"; }
.more-paren { display: none; }  /* Klammern nur ohne Stylesheet sichtbar */
.more[open] .more-hint { display: none; }
.more[open] > summary { border-bottom: 1px solid var(--grau-linie); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; }
.more[open] > summary::after {
  content: "Klicken zum Zuklappen \25B4";
  content: "Klicken zum Zuklappen \25B4" / "";  /* Screenreader sagen „erweitert/reduziert“ selbst */
  background: var(--schwarz);
}
@media (hover: hover) {  /* nicht auf Touch, dort bleibt Hover hängen */
  .more > summary:hover { background: #E7E7E7; }
  .more > summary:hover .more-hint { background: var(--rot-dunkel); }
  .more[open] > summary:hover::after { background: #000000; }
}
.more > summary:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 2px; }
.more-body { padding: 2px 18px 16px; }
.more-body h3 { font-size: 17px; line-height: 1.3; margin: 16px 0 8px; }
.more-body p { margin: 0 0 10px; }

.list-incl, .list-excl { list-style: none; margin: 0 0 12px; padding: 0; }
.list-incl li, .list-excl li { position: relative; padding-left: 28px; margin-bottom: 6px; }
.list-incl li::before {
  content: ""; position: absolute; left: 3px; top: 0.4em; width: 13px; height: 7px;
  border-left: 3px solid var(--rot); border-bottom: 3px solid var(--rot); transform: rotate(-45deg);
}
.list-excl li { color: var(--grau-text); }
.list-excl li::before {
  content: ""; position: absolute; left: 4px; top: 0.72em; width: 12px; height: 3px;
  background: var(--grau-text);
}
.note { font-size: 15px; color: var(--grau-text); }

.list-info { list-style: none; margin: 8px 0 12px; padding: 0; }
.list-info li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.list-info li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--rot);
}

/* Einstiegsangebot und gestrichene Preise */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 0; padding: 14px 18px; font-size: 18px; font-weight: 600; line-height: 1.35;
  background: var(--rot); color: var(--weiss); border-radius: var(--radius);
  box-shadow: 0 10px 22px -12px rgba(184, 5, 15, 0.7);
}
.promo strong { font-size: 22px; font-weight: 900; letter-spacing: -0.2px; }
.promo-until { white-space: nowrap; }
.promo-label {
  padding: 4px 10px; border-radius: 999px; background: var(--weiss); color: var(--rot-dunkel);
  font-size: 13px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
}
.plan-promo { font-size: 15px; font-weight: 700; color: var(--rot-dunkel); }
s { color: var(--grau-text); text-decoration-thickness: 2px; }
.free { color: var(--rot-dunkel); }
.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;
}

/* Bestätigen */
.terms { margin: 0 0 16px; padding: 12px 16px; background: var(--grau-hell); border-radius: var(--radius); }
.hint.check-hint { margin: -6px 0 12px 30px; }

/* Lohnpreise */
.price-box { padding: 14px 18px; background: var(--grau-hell); border-radius: var(--radius); }
.price-box p { margin: 0 0 4px; }
.price-box p:last-child { margin-bottom: 0; }
.price-sum {
  margin: 14px 0 0; padding: 12px 16px; background: #FFF5F5;
  border-left: 4px solid var(--rot); border-radius: 0 8px 8px 0;
}

/* Felder */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 600; }
.optional { font-weight: 400; color: var(--grau-text); }

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; min-height: 48px; padding: 11px 12px;
  font: inherit; color: var(--schwarz); background: var(--weiss);
  border: 2px solid var(--grau-linie); border-radius: 8px;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus {
  outline: none; border-color: var(--schwarz);
}
.has-error input { border-color: var(--rot); }

.error { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--rot-dunkel); }
.hint { margin: 0 0 12px; font-size: 15px; color: var(--grau-text); }

.choice-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 12px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px;
  border: 2px solid var(--grau-linie); border-radius: 8px; cursor: pointer;
}
.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-weight: 500; cursor: pointer; }
.check input, .choice input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--rot); }
.choice input { margin-top: 0; }

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px; border: 0; border-radius: var(--radius);
  font: inherit; font-size: 18px; font-weight: 800; text-decoration: none;
  color: var(--weiss); background: var(--rot); cursor: pointer;
}
.btn:hover { color: var(--weiss); background: var(--rot-dunkel); }
.btn:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 3px; }

/* Hinweise */
.alert {
  margin-bottom: 24px; padding: 14px 18px; background: #FFF5F5;
  border: 2px solid var(--rot); border-radius: var(--radius);
}
.alert p { margin: 0 0 6px; }
.alert p:last-child { margin-bottom: 0; }
.done p { font-size: 18px; }

/* Rechtstexte: AGB, AV-Vertrag, Datenschutz */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 6px; }
.legal-sub { margin: 0 0 18px; color: var(--grau-text); }
.legal-actions { margin: 0 0 24px; font-weight: 700; }
.legal-intro { margin: 0 0 12px; }
.legal h2 { font-size: 20px; line-height: 1.25; margin: 32px 0 10px; scroll-margin-top: 16px; }
.legal p { margin: 0 0 10px; }
.legal-list { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: absatz; }
.legal-list > li { position: relative; margin-bottom: 10px; padding-left: 38px; counter-increment: absatz; }
.legal-list > li::before { content: "(" counter(absatz) ")"; position: absolute; left: 0; font-weight: 700; }
.legal .list-info { margin-top: 6px; }
.legal-box { margin-top: 28px; padding: 2px 18px 8px; background: #FFF5F5; border-left: 4px solid var(--rot); border-radius: 0 8px 8px 0; }
.legal-box h2 { margin-top: 16px; }
mark.todo { padding: 0 2px; background: #FFE58F; color: inherit; border-radius: 3px; }

/* Wechsel zwischen Zackbox und Zackscan unter der Einleitung */
.switch-link { margin: 14px 0 0; font-size: 16px; }
.switch-link a { font-weight: 800; }

/* Zackscan im Formular: Smartphone oder Scanner */
.weg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan-scanner { font-size: 15px; font-weight: 700; color: var(--rot-dunkel); }
.weg-note {
  margin: 12px 0 0; padding: 10px 14px; color: var(--schwarz);
  background: #FFF5F5; border-left: 4px solid var(--rot); border-radius: 0 8px 8px 0;
}
.weg-grid + .weg-note + .error, .weg-grid + .error { margin-top: 10px; }
[data-show-if-scanner] { margin-top: 16px; }

/* Zackscan-Seite */
.scan-hero { margin-bottom: 44px; }
.scan-hero--image { display: flex; align-items: center; gap: 36px; }
.scan-hero-text { flex: 1 1 auto; min-width: 0; }
.scan-kicker {
  margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--grau-text);
}
.scan-wordmark {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -1px;
}
.scan-wordmark-box { background: var(--rot); color: var(--weiss); border-radius: 8px; padding: 5px 12px 3px; }
.scan-claim { margin: 0 0 12px; font-size: 26px; font-weight: 800; line-height: 1.2; }
.scan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0 0 18px; }
.scan-secondary { font-weight: 700; }

.scan-section { margin: 0 0 48px; }
.scan-section h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.3px; margin: 0 0 16px; }

.scan-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  list-style: none; margin: 0; padding: 0;
}
.scan-steps li { padding: 18px; background: var(--grau-hell); border-radius: var(--radius); }
.scan-step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 10px; border-radius: 50%;
  background: var(--rot); color: var(--weiss); font-size: 18px; font-weight: 900;
}
.scan-steps h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; }
.scan-steps p { margin: 0; font-size: 16px; }

.scan-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.scan-way { padding: 20px; border: 2px solid var(--grau-linie); border-radius: var(--radius); }
.scan-way--scanner { border-color: var(--schwarz); }
.scan-way-tag {
  display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--grau-hell); color: var(--schwarz);
  font-size: 13px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase;
}
.scan-way--scanner .scan-way-tag { background: var(--schwarz); color: var(--weiss); }
.scan-way h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
.scan-way p { margin: 0 0 8px; }
.scan-way .list-info { margin-bottom: 0; }

.scan-prices { width: 100%; margin: 0 0 12px; border-collapse: collapse; }
.scan-prices th, .scan-prices td {
  padding: 14px 12px 14px 0; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--grau-linie);
}
.scan-prices thead th {
  padding-top: 0; font-size: 14px; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--grau-text); border-bottom: 2px solid var(--schwarz);
}
.scan-prices tbody th { font-size: 19px; font-weight: 800; }
.scan-prices small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--grau-text); }
.scan-prices .price { font-size: 22px; font-weight: 900; letter-spacing: -0.3px; }
.scan-prices .none { color: var(--grau-text); }
.scan-order { display: inline-block; margin-top: 6px; font-size: 15px; font-weight: 800; }

.scan-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.scan-faq h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.scan-faq p { margin: 0; }

.scan-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 26px 28px; background: var(--schwarz); color: var(--weiss); border-radius: var(--radius);
}
.scan-cta h2 { margin: 0 0 4px; font-size: 26px; line-height: 1.2; }
.scan-cta p { margin: 0; color: #E6E6E6; }

/* Honeypot gegen Bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Fuß */
.site-footer { background: var(--grau-hell); border-top: 1px solid var(--grau-linie); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 18px; padding-bottom: 18px; font-size: 15px;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner p { margin: 0; color: var(--grau-text); }

/* Smartphone */
@media (max-width: 720px) {
  .plan-grid, .grid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  /* Bild klein neben der Überschrift, Text und Angebot darunter in voller Breite */
  .intro--image { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 0 12px; }
  .intro--image .intro-text { display: contents; }
  .intro--image h1 { grid-column: 1; grid-row: 1; align-self: center; margin: 0; }
  .intro--image .intro-image { grid-column: 2; grid-row: 1; width: 128px; }
  .intro--image .intro-lead { grid-column: 1 / -1; margin-top: 12px; }
  .intro--image .promo { grid-column: 1 / -1; }
  .intro--image .switch-link { grid-column: 1 / -1; }
  .promo strong { font-size: 20px; }

  /* Zackscan */
  .weg-grid, .scan-steps, .scan-ways, .scan-faq { grid-template-columns: 1fr; }
  .scan-hero--image { display: block; }
  .scan-hero-image { display: block; width: 100%; max-width: 340px; margin: 22px auto 0; }
  .scan-wordmark { font-size: 46px; }
  .scan-claim { font-size: 22px; }
  .scan-section h2 { font-size: 24px; }
  .scan-prices th, .scan-prices td { padding-right: 8px; }
  .scan-prices tbody th { font-size: 17px; }
  .scan-prices .price { font-size: 19px; }
  .scan-cta { padding: 22px 20px; }
}

/* Drucken: nur der Inhalt */
@media print {
  .site-header, .site-footer, .legal-actions { display: none; }
  body { font-size: 11pt; }
  main { padding: 0; }
  .legal { max-width: none; }
  .legal h2 { break-after: avoid; }
  .legal-list > li { break-inside: avoid; }
}
