/* Sen Datenwerk – Stylesheet
   Modern und seriös für Geschäftskunden: helle Flächen, Werksblau,
   ein Petrol-Akzent, klare Raster. Nur Systemschriften (DSGVO). */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;     /* Wechselflächen */
  --ink: #12233f;        /* Werksblau: Überschriften, Logo */
  --text: #2f3c50;       /* Fließtext */
  --muted: #5f6d80;
  --line: #dde2e9;
  --accent: #0f6b73;     /* Petrol: Buttons, Links */
  --accent-dark: #0b5259;
  --accent-soft: #e3f0f1;
  --warn: #b4531c;       /* auffällige Werte */
  --good: #2f7d4f;

  --font-head: "Bahnschrift", "DIN Alternate", "DIN Next", "Segoe UI Semibold",
               system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1140px;
  --r: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 66ch; }
.lead { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--muted); }

/* ---------- Kopf ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand span { font-weight: 400; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 8px 14px; color: var(--text); text-decoration: none; font-size: .98rem; border-radius: var(--r); }
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .btn { margin-left: 10px; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.nav .btn-primary:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; border-radius: var(--r); font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); display: none; box-shadow: 0 12px 24px rgba(18,35,63,.08); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 22px; border-radius: var(--r); text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: #b9c2ce; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.nav .btn-primary { padding: 10px 18px; }

/* ---------- Abschnitte ---------- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
main > section.rule:nth-of-type(odd) { background: var(--bg-alt); }
.rule { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero p.lead { margin-bottom: 1.6em; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 20px; font-size: .95rem; color: var(--muted); }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Cockpit-Vorschau */
.cockpit { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(18,35,63,.06), 0 18px 40px -12px rgba(18,35,63,.18); overflow: hidden; font-size: .95rem; }
.cockpit-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--ink); color: #fff; }
.cockpit-bar strong { font-family: var(--font-head); font-weight: 600; }
.cockpit-bar span { font-size: .8rem; color: #b8c4d6; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.kpis > div { padding: 16px 20px; border-left: 1px solid var(--line); }
.kpis > div:first-child { border-left: 0; }
.kpis span { display: block; font-size: .8rem; color: var(--muted); }
.kpis strong { display: block; font-family: var(--font-head); font-size: 1.55rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.3; }
.kpis em { font-style: normal; font-size: .78rem; color: var(--muted); }
.kpis em.up { color: var(--good); }
.kpis em.down { color: var(--warn); }
.auftraege { width: 100%; border-collapse: collapse; }
.auftraege caption { text-align: left; padding: 14px 20px 6px; font-weight: 600; color: var(--ink); font-size: .9rem; }
.auftraege th { text-align: left; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 6px 20px; }
.auftraege td { padding: 10px 20px; border-top: 1px solid var(--line); }
.auftraege td.m { width: 42%; }
.auftraege .bar { display: inline-block; vertical-align: middle; height: 8px; width: var(--w); max-width: 70%; background: var(--accent); border-radius: 4px; margin-right: 10px; }
.auftraege .v { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.auftraege tr.warn td { background: #fdf3ec; }
.auftraege tr.warn .bar { background: var(--warn); }
.auftraege tr.warn .v { color: var(--warn); }
.cockpit figcaption { padding: 12px 20px 16px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr; }
  .kpis > div { border-left: 0; border-top: 1px solid var(--line); }
  .kpis > div:first-child { border-top: 0; }
  .auftraege th:nth-child(2), .auftraege td:nth-child(2) { display: none; }
}

/* ---------- Probleme ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.problem { border-top: 3px solid var(--ink); padding-top: 20px; }
.problem h3 { margin-bottom: .4em; }
.problem p { margin: 0; color: var(--muted); }
.problem .after { margin-top: 16px; padding: 12px 14px; background: var(--accent-soft); border-radius: var(--r); color: var(--ink); }
.problem .after::before { content: "Danach: "; color: var(--accent); font-weight: 600; }

/* Branchen */
.branche { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.branche .tag { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 3px 12px; margin-bottom: 14px; }
.branche p { color: var(--muted); }
.branche ul { margin: 0; padding-left: 1.15em; }
.branche li { margin: .35em 0; }
.branche li::marker { color: var(--accent); }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.steps li::before { content: "Schritt " counter(s); display: block; font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.steps li p { color: var(--muted); }
.steps .price { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-head); color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* CTA-Band */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; }
.cta-band p { margin: 0; color: #c3cddb; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--accent-soft); color: var(--ink); }

/* ---------- Leistungen ---------- */
.pakete { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.paket { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(160px, .7fr); gap: 28px; padding: 28px 32px; border-top: 1px solid var(--line); }
.paket:first-child { border-top: 0; }
.paket h3 { margin-bottom: .2em; }
.paket .fuer { color: var(--muted); font-size: .95rem; margin: 0; }
.paket ul { margin: 0; padding-left: 1.15em; }
.paket li { margin: .25em 0; }
.paket li::marker { color: var(--accent); }
.paket .preis { text-align: right; }
.paket .preis strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.paket .preis span { color: var(--muted); font-size: .9rem; }
.paket.einstieg { background: var(--accent-soft); }
.paket.einstieg h3::after { content: "Einstieg"; margin-left: 10px; font-family: var(--font-body); font-size: .76rem; font-weight: 600; vertical-align: middle; background: var(--accent); color: #fff; padding: 2px 9px; border-radius: 99px; letter-spacing: 0; }
@media (max-width: 860px) { .paket { grid-template-columns: 1fr; gap: 12px; } .paket .preis { text-align: left; } }
.fussnote { font-size: .92rem; color: var(--muted); margin-top: 16px; }

.tabelle { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 8px; }
.tabelle th, .tabelle td { text-align: left; padding: 15px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.tabelle thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: .9rem; background: var(--bg-alt); }
.tabelle td:first-child { font-weight: 600; color: var(--ink); }
.tabelle td.p { white-space: nowrap; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .tabelle thead { display: none; }
  .tabelle tr { display: block; border-top: 1px solid var(--line); padding: 10px 0; }
  .tabelle tr:first-child { border-top: 0; }
  .tabelle td { display: block; border: 0; padding: 4px 20px; }
  .tabelle td.p { white-space: normal; }
}

/* ---------- Über mich ---------- */
.profil { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 56px; align-items: start; }
.foto { aspect-ratio: 4 / 5; border-radius: 12px; border: 1px dashed #b9c2ce; background: var(--bg-alt); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .9rem; padding: 16px; }
.foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
@media (max-width: 760px) { .profil { grid-template-columns: 1fr; } .foto { max-width: 240px; } }
.fakten { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.fakten li { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fakten li b { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .fakten li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .kontakt { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .97rem; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; background: #fff; color: var(--text); border: 1px solid #c4ccd7; border-radius: var(--r); font: inherit; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.form .check { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; align-items: start; font-weight: 400; color: var(--text); font-size: .95rem; }
.form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .hint { font-size: .9rem; color: var(--muted); margin: 0; }
.direkt { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.direkt dl { margin: 0; }
.direkt dt { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.direkt dt:first-child { margin-top: 0; }
.direkt dd { margin: 2px 0 0; font-size: 1.05rem; color: var(--ink); }
.alert { border-left: 4px solid var(--warn); background: #fdf3ec; color: var(--ink); padding: 12px 16px; border-radius: 0 var(--r) var(--r) 0; margin-bottom: 8px; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.platzhalter { background: #fff1c2; color: var(--ink); padding: 0 4px; border-radius: 3px; }

/* ---------- Fuß ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0; background: var(--bg-alt); font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-foot strong { color: var(--ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

.page-head { padding: 72px 0 28px; background: var(--bg-alt); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--muted); }
