/* Daniel Weyers Datenverarbeitung – Stylesheet */

/* ---------- Schriften (lokal, keine externen Verbindungen) ---------- */
@font-face { font-family: "Archivo"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Farben & Grundwerte ---------- */
/*
  Farbrollen statt Farbnamen: Jedes Token sagt, WOFÜR die Farbe da ist.
  Nur so lässt sich der Dunkelmodus weiter unten an einer einzigen Stelle umschalten.
*/
:root {
  color-scheme: light dark;

  /* Dunkle Flächen: Kopfbereich, Hero, Kontakt, Fußbereich */
  --forest: #12301F;
  --forest-deep: #0B1D13;
  --forest-line: #22452F;
  --on-forest-strong: #F3F1EA;   /* Überschriften und Wortmarke darauf */
  --on-forest: #C4D6CA;          /* Fließtext darauf */
  --on-forest-soft: #A9C9B4;     /* Nebentext darauf */
  --on-forest-nav: #DCE8DF;      /* Navigations- und Fußzeilenlinks */

  /* Grünflächen: Leistungsband und Hauptbutton */
  --green: #1E5B3F;
  --green-dark: #123A28;
  --on-green: #FFFFFF;
  --lime: #C8E36B;

  /* Akzent für Schrift: Links, Kicker, Ziffern, Fokusrahmen */
  --accent: #1E5B3F;
  --accent-hover: #123A28;

  /* Helle Flächen */
  --bg: #F3F1EA;                 /* Seitenhintergrund */
  --surface: #FFFFFF;            /* Karten, Referenzbereich, Eingabefelder */
  --surface-alt: #E3EBE2;        /* Datenkarten, Hinweisboxen, Bildflächen */
  --surface-alt-line: #CCD9CB;
  --form-bg: #F3F1EA;            /* Formularfläche auf dunklem Grund */
  --line: #DCE0D6;
  --field: #B9C7BC;
  --error-bg: #F7E4DF;
  --error-line: #E4B9AE;

  /* Schrift */
  --ink: #16211B;
  --muted: #4A564F;
  --muted-alt: #3E4A43;          /* Fließtext auf --surface-alt */

  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --pad-x: clamp(20px, 6.5vw, 96px);
  --section-y: clamp(72px, 9vw, 120px);
  --max: 1248px;
}

/* ---------- Dunkelmodus (folgt der Einstellung des Betriebssystems) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    /* Die dunklen Flächen bleiben dunkel, rücken aber näher an den Seitengrund */
    --forest: #10281B;
    --forest-deep: #081410;
    --forest-line: #23452F;
    --on-forest-strong: #EAF1EB;
    --on-forest: #C4D6CA;
    --on-forest-soft: #A9C9B4;
    --on-forest-nav: #D6E5DA;

    --green: #1E5B3F;
    --green-dark: #2A7151;       /* Hover wird heller statt dunkler */
    --on-green: #F4FAF6;
    --lime: #C8E36B;

    /* Sattes Grün ist auf Dunkel unlesbar – der Akzent wird hell */
    --accent: #8FD3A8;
    --accent-hover: #B4E5C6;

    /* Aus hellen Flächen werden gestufte dunkle Ebenen */
    --bg: #0B1410;
    --surface: #131F18;
    --surface-alt: #18291F;
    --surface-alt-line: #2B4435;
    --form-bg: #131F18;
    --line: #26362C;
    --field: #3B5144;
    --error-bg: #3A211C;
    --error-line: #6B3A30;

    --ink: #E6EDE7;
    --muted: #A5B4AA;
    --muted-alt: #A9BBAE;
  }
}


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

html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--lime); color: var(--forest); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad-x)); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; }
p { margin: 0; }

.kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.h2 {
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 17px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime:hover { background: #D6EC86; color: var(--forest); }
.btn-ghost { border-color: #4E7A60; color: var(--on-forest-strong); font-weight: 500; }
.btn-ghost:hover { border-color: var(--lime); color: var(--on-forest-strong); }
.btn-green { background: var(--green); color: var(--on-green); border: 0; }
.btn-green:hover { background: var(--green-dark); color: var(--on-green); }

/* ---------- Header ---------- */
.site-header { background: var(--forest); border-bottom: 1px solid var(--forest-line); }
.site-header .wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--on-forest-strong); letter-spacing: -0.02em; }
.brand-sub { font-family: var(--font-mono); font-size: 13px; line-height: 1.1; color: var(--on-forest-soft); text-transform: uppercase; letter-spacing: 0.12em; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a { color: var(--on-forest-nav); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--lime); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 16px; color: var(--forest); }
.nav .btn:hover { color: var(--forest); }

/* ---------- Hero ---------- */
.hero { background: var(--forest); padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 128px); }
.hero-inner { display: flex; flex-direction: column; gap: 28px; max-width: 1120px; }
/* Anders als die Abschnitts-Etiketten ist der Hero-Kicker ein ganzer Satz.
   Versalien und weite Sperrung machen ihn unnötig laut und mehrzeilig. */
.hero .kicker { color: var(--lime); text-transform: none; letter-spacing: 0.01em; font-size: 15px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--on-forest-strong);
  hyphens: none;   /* bricht nicht am weichen Trennzeichen, siehe Notventil unten */
}
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--on-forest); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* ---------- Leistungsband ---------- */
.band { background: var(--green); color: #E4EFE7; }
.band ul {
  list-style: none; margin: 0 auto; padding-top: 26px; padding-bottom: 26px;
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em;
}

/* ---------- Leistungen ---------- */
.services { padding: var(--section-y) 0 calc(var(--section-y) - 8px); }
.services .wrap { display: flex; flex-direction: column; gap: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }
.section-head-title { display: flex; flex-direction: column; gap: 16px; }
.section-head p { max-width: 440px; font-size: 18px; color: var(--muted); }

.group { display: flex; flex-direction: column; gap: 20px; }
.group-label {
  font-family: var(--font-mono); font-size: 14px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 0;
}
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(26px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px;
}
.card-data { background: var(--surface-alt); border-color: var(--surface-alt-line); }
.card-num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.card h4 { font-weight: 700; font-size: 28px; line-height: 1.15; hyphens: manual; }
.card p { color: var(--muted); }
.card-data p { color: var(--muted-alt); }

.tools { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.tools-label { font-size: 16px; color: var(--muted); margin-right: 8px; }
.tools ul { display: contents; }
.tools li {
  list-style: none; font-family: var(--font-mono); font-size: 15px;
  padding: 9px 18px; border: 1px solid var(--field); border-radius: 999px;
}

/* ---------- Referenzen ---------- */
.refs { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--section-y) 0; }
.refs .wrap { display: flex; flex-direction: column; gap: 56px; }
.ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; list-style: none; margin: 0; padding: 0; }
.ref { display: flex; flex-direction: column; gap: 18px; }
.ref-media {
  aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background: var(--surface-alt); border: 1px solid var(--line);
}
.ref-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ref-media.is-placeholder {
  border: 1px dashed var(--field); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 15px; color: var(--muted);
}
.ref-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.ref h3 { font-weight: 700; font-size: 26px; }
.ref h3 a { color: var(--ink); text-decoration: none; }
.ref h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.ref-type { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.ref p { color: var(--muted); }

/* ---------- Ablauf ---------- */
.steps { padding: var(--section-y) 0; }
.steps .wrap { display: flex; flex-direction: column; gap: 56px; }
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--accent); padding-top: 28px; counter-increment: step; }
.step::before { content: counter(step); font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.step h3 { font-weight: 700; font-size: 26px; }
.step p { color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { background: var(--forest); padding: var(--section-y) 0; }
.contact .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 96px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 24px; }
.contact .kicker { color: var(--lime); }
.contact .h2 { color: var(--on-forest-strong); }
.contact-intro p { font-size: 19px; color: var(--on-forest); max-width: 480px; }
.contact-details { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-family: var(--font-mono); font-size: 16px; color: var(--on-forest-nav); font-style: normal; }
.contact-details a { color: var(--on-forest-nav); text-underline-offset: 4px; }
.contact-details a:hover { color: var(--lime); }

.form { background: var(--form-bg); border-radius: 18px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: 10px; background: var(--surface);
  font: 400 16px/1.5 var(--font-body); color: var(--ink);
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 150px; }

/* Das Auswahlfeld zeichnet der Browser sonst als natives Bedienelement, mit
   eigenen Maßen. Dadurch wirkt es je nach Browser höher oder flacher als die
   Textfelder daneben. Ohne native Darstellung greift min-height zuverlässig. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%234A564F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

/* Muss NACH der Regel oben stehen: gleiche Spezifität, also gewinnt die spätere. */
@media (prefers-color-scheme: dark) {
  .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23A5B4AA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { min-height: 56px; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-forest-soft); font-size: 15px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 32px; }
.site-footer a { color: var(--on-forest-nav); text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }

/* Partnerbanner in der Hosting-Karte. Die Grafik liegt bewusst auf dem eigenen
   Server: direkt von all-inkl eingebunden würde sie die IP jedes Besuchers
   dorthin senden, was der Datenschutzerklärung widerspräche. */
.partner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 4px 0 0; }
.partner a { display: block; line-height: 0; flex: none; }   /* nicht schrumpfen, sonst verzerrt das Logo */
.partner img { width: 120px; height: 60px; border: 1px solid var(--line); border-radius: 8px; }
/* Muss NACH der Zeile oben stehen: gleiche Spezifität, die spätere Regel gewinnt.
   Die schwarze Fassung gibt es nur in 185x35, daher die abweichende Größe. */
@media (prefers-color-scheme: dark) {
  .partner img { width: 185px; height: 35px; }
}
.partner span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- Unterseiten (Impressum, Datenschutz, Formular-Rückmeldung) ---------- */
.page { padding: var(--section-y) 0; }
.page .wrap { max-width: calc(820px + 2 * var(--pad-x)); }
.page h1 { font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 40px; }
.page h2 { font-weight: 700; font-size: 24px; margin: 40px 0 12px; }
.page h3 { font-weight: 700; font-size: 19px; margin: 28px 0 8px; }
.page p, .page ul { margin: 0 0 16px; }
.page ul { padding-left: 22px; }
.page address { font-style: normal; margin-bottom: 16px; }
.note { background: var(--surface-alt); border: 1px solid var(--surface-alt-line); border-radius: 12px; padding: 20px 24px; margin-bottom: 32px; }
.note.is-error { background: var(--error-bg); border-color: var(--error-line); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards, .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 24px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  /* Navigation rückt unter die Wortmarke, statt zu verschwinden */
  .site-header .wrap { min-height: 0; padding-top: 14px; padding-bottom: 14px; gap: 0; flex-wrap: wrap; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 11px; }
  .brand { flex: 1 1 auto; }
  .nav {
    order: 3; width: 100%;
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--forest-line);
    flex-wrap: wrap; gap: 10px 16px;
  }
  .nav a:not(.btn) { font-size: 15px; }
  .nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; margin-left: auto; }
  .cards, .step-list, .ref-grid, .form-row { grid-template-columns: minmax(0, 1fr); }
  .band ul { flex-direction: column; gap: 8px; font-size: 13px; }
  .hero-actions .btn { width: 100%; }
  .card h4 { font-size: 24px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Notventil: nur auf sehr schmalen Displays darf »Datenlösungen« getrennt werden,
   sonst liefe die Überschrift über den Rand hinaus. */
@media (max-width: 400px) {
  .hero h1 { hyphens: manual; }
}
