/* =====================================================================
   bytekonform: Stylesheet
   Gestaltung: reduziert-brutalistisch. Systemschriften, sichtbare Linien,
   Volltonflächen in #000826 und Weiß, harte Kanten, keine Bilder außer Logo.

   Hierarchie (überall gleich):
   --t1  Seitentitel (h1)
   --t2  Abschnittstitel (h2), große Nummern, Preise
   --t3  Feldtitel (h3), Listeneinträge
   --t-label  Etiketten in Monospace (Eyebrow, Brotkrumen, Tabellenköpfe)
   ===================================================================== */

:root {
  --blau: #000826;
  --weiss: #ffffff;
  --fg: var(--blau);
  --bg: var(--weiss);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --t1: clamp(2.4rem, 6.5vw, 5.5rem);
  --t2: clamp(1.7rem, 3.4vw, 2.6rem);
  --t3: 1.2rem;
  --t-label: .78rem;

  --rand: clamp(16px, 4vw, 48px);
  --wrap: 1280px;
  --linie: 1px solid currentColor;
  --balken: 2px solid currentColor;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

/* ---------------------------------------------------------------- Typografie */
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: var(--t1); letter-spacing: -0.04em; max-width: 16ch; }
h2 { font-size: var(--t2); max-width: 24ch; }
h3 { font-size: var(--t3); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: .6em; }
p { margin: 0 0 1em; max-width: 46em; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 44em; }
.muted { color: inherit; }
.small { font-size: .9rem; }
.mono { font-family: var(--mono); }

.eyebrow, .crumbs, .price-from, .price-note, th, .badge,
.contact-list .k, .cert .mono, .site-footer h4, .footer-bottom, .facts, .tags {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 400; letter-spacing: .04em;
}
.eyebrow, .price-from, th, .badge, .contact-list .k, .cert .mono, .site-footer h4 { text-transform: uppercase; }
.eyebrow { margin: 0 0 1.2rem; }

/* ---------------------------------------------------------------- Links & Aktionen */
a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus-visible { background: var(--fg); color: var(--bg); text-decoration: none; outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.btn {
  display: inline; padding: 0; margin: 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.btn:hover, .btn:focus-visible { background: var(--fg); color: var(--bg); text-decoration: none; }
.btn-primary::after { content: " →"; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 2rem; margin-top: 1.8rem; }

.wrap { width: min(100% - 2 * var(--rand), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--weiss); color: var(--blau); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: var(--rand); top: .5rem; }

/* ---------------------------------------------------------------- Kopf */
.site-header { --fg: var(--weiss); --bg: var(--blau); background: var(--bg); color: var(--fg); border-bottom: var(--balken); }
.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: 1.1rem; }
.brand { display: inline-block; flex-shrink: 0; }
.brand:hover, .brand:focus-visible { background: none; outline: 2px solid currentColor; outline-offset: 4px; }
.brand img { height: 22px; width: auto; }
.kopf-kontakt { margin: 0 0 0 auto; font-family: var(--mono); font-size: .86rem; }
.nav { border-top: var(--balken); font-family: var(--mono); font-size: .86rem; line-height: 1.9; }
.nav .wrap { padding-block: .7rem; }
.nav a { margin-right: 1.1em; white-space: nowrap; }
.nav a[aria-current="page"] { background: var(--fg); color: var(--bg); text-decoration: none; padding-inline: .25em; }

/* ---------------------------------------------------------------- Flächen */
main > section { background: var(--bg); color: var(--fg); border-bottom: var(--balken); padding-block: clamp(3rem, 7vw, 5.5rem); }
main > section:nth-child(odd) { --fg: var(--weiss); --bg: var(--blau); }
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.crumbs { margin-bottom: 2rem; }
.section-head { margin-bottom: 2.5rem; }
.section-head p { max-width: 46em; }

/* ---------------------------------------------------------------- Raster */
.grid, .steps, .certs, .facts { display: grid; list-style: none; padding: 0; border-top: var(--linie); border-left: var(--linie); }
.grid { counter-reset: feld; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { display: flex; flex-direction: column; padding: 1.2rem 1.2rem 1.4rem; border: var(--linie); }
.grid > .card { border-width: 0 1px 1px 0; }
.grid > .card::before {
  counter-increment: feld; content: counter(feld, decimal-leading-zero);
  font-family: var(--mono); font-size: var(--t-label); margin-bottom: .8rem;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { text-decoration: none; }
.card .more { margin-top: auto; padding-top: 1rem; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-icon, .portrait-card { display: none; }

.check { list-style: square; padding-left: 1.1em; margin: 0 0 1rem; }
.check li { margin-bottom: .3em; }

.facts { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 2.5rem; }
.facts li { border-right: var(--linie); border-bottom: var(--linie); padding: .8rem 1rem; }

.tags { display: flex; flex-wrap: wrap; gap: .2rem .6em; list-style: none; padding: 0; font-size: .95rem; }
.tags li:not(:last-child)::after { content: "/"; margin-left: .6em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split-wide { grid-template-columns: 1.2fr .8fr; }

/* ---------------------------------------------------------------- Startseite: nummerierte Liste */
.liste { list-style: none; border-top: var(--balken); }
.liste li { border-bottom: var(--linie); }
.liste a {
  display: grid; grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.4fr) 1.5rem; gap: .4rem 1.5rem;
  align-items: baseline; padding: 1.3rem .4rem; text-decoration: none;
}
.liste-nr { font-family: var(--mono); font-size: var(--t2); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.liste-titel { font-size: var(--t3); font-weight: 800; line-height: 1.2; }
.liste-pfeil { font-family: var(--mono); justify-self: end; }
.nachsatz { margin: 1.5rem 0 0; }

/* ---------------------------------------------------------------- Preise */
.price-card { position: relative; }
.price-card .badge { position: absolute; top: 1rem; right: 1.2rem; background: var(--fg); color: var(--bg); padding: .15rem .45rem; }
.price-card.featured { box-shadow: inset 0 0 0 3px currentColor; }
.price { font-size: var(--t2); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: .2rem 0 .3rem; }
.price small { font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.price-from { margin: 0; }
.price-note { margin: 0 0 1.2rem; }
.price-card .btn { margin-top: auto; padding-top: 1rem; align-self: flex-start; }

.table-wrap { overflow-x: auto; border: var(--linie); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { border: var(--linie); padding: .8rem 1rem; text-align: left; vertical-align: top; }
tr > :first-child { border-left: 0; }
tr > :last-child { border-right: 0; }
thead tr:first-child > * { border-top: 0; }
tbody tr:last-child > * { border-bottom: 0; }
td.num { white-space: nowrap; font-weight: 700; }

/* ---------------------------------------------------------------- Hinweise, Ablauf, Abschluss */
.notice { border: var(--balken); padding: 1rem 1.2rem; max-width: 56em; }
.notice p:last-child { margin: 0; }

.steps { counter-reset: s; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: s; border-right: var(--linie); border-bottom: var(--linie); padding: 1.2rem 1.2rem 1.4rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); font-size: var(--t-label); margin-bottom: .8rem; }
.steps p { margin: 0; }

.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band .btn-row { margin-top: 0; justify-content: flex-end; }

/* ---------------------------------------------------------------- Formulare */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: .9rem; margin-bottom: .35rem; }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: transparent; border: var(--linie); padding: .7rem .8rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid currentColor; outline-offset: 0; }
select option { color: var(--blau); background: var(--weiss); }
textarea { min-height: 150px; resize: vertical; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.checkbox input { width: 18px; height: 18px; margin-top: .2rem; flex-shrink: 0; accent-color: currentColor; }
.form-status { font-size: .92rem; }
.hp { position: absolute; left: -9999px; }
.domain-check { display: flex; gap: 1.2rem; align-items: center; }
.domain-check input { font-family: var(--mono); }
.domain-check .btn { flex-shrink: 0; }

/* ---------------------------------------------------------------- Kontakt, Zertifikate, Fragen */
.contact-list { list-style: none; border-top: var(--linie); }
.contact-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: var(--linie); }
.contact-list .k { padding-top: .25rem; }

.certs { grid-template-columns: repeat(2, 1fr); }
.cert { border-right: var(--linie); border-bottom: var(--linie); padding: 1.2rem 1.2rem 1.4rem; }
.cert h3 { margin: .8rem 0 .3rem; }
.cert p { margin: 0; }

.faq { border-top: var(--linie); max-width: 56em; }
.faq details { border-bottom: var(--linie); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .85rem; font-family: var(--mono); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.2rem; }

.legal { max-width: 50rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- Fuß */
.site-footer { --fg: var(--blau); --bg: var(--weiss); background: var(--bg); color: var(--fg); padding-block: 3rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border-top: var(--linie); border-left: var(--linie); }
.footer-grid > div { border-right: var(--linie); border-bottom: var(--linie); padding: 1.2rem 1.2rem 1.4rem; }
.site-footer h4 { margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 30ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.footer-bottom ul { display: flex; gap: 1.5rem; }
.footer-bottom li { margin: 0; }

/* ---------------------------------------------------------------- Responsiv */
@media (max-width: 1000px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .split, .split-wide, .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .liste a { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .liste-text { grid-column: 2; }
  .liste-pfeil { display: none; }
  .kopf-kontakt { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .steps, .certs, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .domain-check { flex-direction: column; align-items: stretch; }
}

@media print {
  .nav, .cta-band, .btn-row { display: none !important; }
  main > section, .site-header { --fg: #000; --bg: #fff; }
}
