
:root {
  --bg:          #f5faf2;   /* Seitenhintergrund, leicht grünstichiges Weiß */
  --surface:     #ffffff;   /* Karten, Kästen */
  --fg:          #132011;   /* Haupttextfarbe */
  --muted:       #52654c;   /* Nebentext, Beschriftungen */
  --line:        #d2e3ca;   /* Trennlinien, Rahmen */
  --accent:      #219100;   /* Logo-Grün – für Logo, große Schrift, Flächen */
  --accent-ink:  #1b7800;   /* dunkleres Grün für kleinen Text (Kontrast) */
  --accent-soft: #e3f2da;   /* zarte Grünfläche, z.B. Blätter, Hinterlegungen */
  --on-accent:   #ffffff;   /* Text auf grünen Flächen (Buttons) */
  --grid:        rgba(33, 145, 0, 0.06);  /* Rasterlinien im Hintergrund */

  /* Schriften: Tektur für Wortmarke/Überschriften, Lexend Exa für Fließtext.
     Die Fallbacks greifen, falls die Webfonts nicht laden. */
  --font-display: "Tektur", "Bahnschrift", "DIN Alternate", system-ui, sans-serif;
  --font-body:    "Lexend Exa", "Lexend", system-ui, sans-serif;
  --font-mono:    ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Abstände und Maße */
  --page-width:  1120px;    /* maximale Inhaltsbreite */
  --radius:      4px;       /* Eckenradius für Karten und Buttons */
  --section-gap: clamp(56px, 9vw, 104px);  /* Abstand zwischen Sektionen */
}

/* Dunkles Farbschema ("Matrix-Style" Grün-Schwarz).
   Steht zweimal da – absichtlich:
   a) automatisch, wenn das Betriebssystem auf dunkel steht
      (außer der Besucher hat ausdrücklich "hell" gewählt),
   b) wenn der Besucher über den Knopf ausdrücklich "dunkel" wählt.
   Bei Änderungen bitte BEIDE Blöcke gleich halten. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #040904;
    --surface:     #081208;
    --fg:          #cdf3d1;
    --muted:       #79ad80;
    --line:        #163a1c;
    --accent:      #3dff6e;
    --accent-ink:  #5cff86;
    --accent-soft: #0c2613;
    --on-accent:   #031003;
    --grid:        rgba(61, 255, 110, 0.05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:          #040904;
  --surface:     #081208;
  --fg:          #cdf3d1;
  --muted:       #79ad80;
  --line:        #163a1c;
  --accent:      #3dff6e;
  --accent-ink:  #5cff86;
  --accent-soft: #0c2613;
  --on-accent:   #031003;
  --grid:        rgba(61, 255, 110, 0.05);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  /* Sprungziele (#kontakt usw.) nicht unter der festen Kopfzeile verstecken */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--bg);

  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p, h4 { margin: 0; }

a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

/* Sichtbarer Fokusrahmen für Tastaturbedienung */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


.container {
  max-width: var(--page-width);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Text nur für Screenreader */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* "Zum Inhalt springen"-Link, erscheint nur bei Tastaturfokus */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
}
.skip-link:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }




html:not([data-lang="en"]) [lang="en"],
html[data-lang="en"] [lang="de"] {
  display: none !important;
}


body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 10;
}

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
}

/* Logo + Wortmarke links */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
}
.brand .logo { width: 40px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-ink);
}

/* Navigationslinks */
.main-nav {
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.88rem;
}
.main-nav a:hover { color: var(--accent-ink); }

/* Schalter für Sprache und Farbschema */
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch button {
  font: inherit;
  font-size: 0.78rem;
  padding: 5px 9px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
}
.theme-toggle svg { width: 17px; height: 17px; }
/* Im hellen Modus wird der Mond gezeigt (Wechsel zu dunkel), im dunklen die Sonne */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}



.logo {
  display: block;
  aspect-ratio: 1171 / 720;
  background-color: var(--accent);
  /* --logo-mask ist in css/logo.css definiert */
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
          mask: var(--logo-mask) center / contain no-repeat;
}



.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero-text {
  display: grid;
  gap: 22px;
  min-width: 0;
}

/* Status-Anzeige im Stil einer SPS-LED */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.status-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 8px var(--accent);
}
.status-run {
  color: var(--accent-ink);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Logo + große Wortmarke */
.hero-brand {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
}
.hero-brand .logo {
  width: clamp(84px, 14vw, 150px);
  flex: none;
}
.wordmark {
  font-size: clamp(3.2rem, 10vw, 6.2rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 500;
}

.hero-lead {
  max-width: 58ch;
  color: var(--muted);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
}
.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button-secondary {
  color: var(--accent-ink);
  background: transparent;
}
.button:hover { filter: brightness(1.08); }

/* Zeile mit Steuerungssystemen unter den Buttons */
.tech-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* Grafik: Leiterbahnen, die zu Ranken mit Blättern werden */
.hero-art {
  min-width: 0;
}
.hero-art svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-inline: auto;
}
.hero-art .chip      { fill: var(--surface); stroke: var(--fg); stroke-width: 2; }
.hero-art .chip-pin  { stroke: var(--fg); stroke-width: 2; }
.hero-art .chip-text { fill: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.hero-art .trace     { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .stem      { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.hero-art .via       { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
/* Leuchtender "Signalimpuls", der über die Leiterbahnen läuft */
.hero-art .pulse {
  fill: none;
  stroke: var(--fg);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 5 100;   /* kurzer Strich, dann lange Lücke */
  stroke-dashoffset: 105;
  opacity: 0;                /* ohne Animation unsichtbar */
}


.section {
  padding-block: var(--section-gap) 0;
}
.section:last-of-type {
  padding-bottom: var(--section-gap);
}

/* Überschriftenblock jeder Sektion */
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 62ch;
}
.section-head p {
  color: var(--muted);
}

/* Karten/Kästen */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  min-width: 0;
}

/* Kleine Beschriftung über Inhalten */
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Listen mit Häkchen bzw. Kreuz */
.check-list,
.cross-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li,
.cross-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: baseline;
}
.check-list li::before {
  content: "✓";
  color: var(--accent-ink);
  font-weight: 700;
}
.cross-list li::before {
  content: "✕";
  color: var(--muted);
}
.cross-list li { color: var(--muted); }




/* --- Über mich ----------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.about-text {
  display: grid;
  gap: 16px;
  max-width: 62ch;
}

/* Eckdaten (Standort, Sprachen, Erfahrung) */
.facts {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
}
.facts div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 12px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}
.facts dt {
  color: var(--muted);
  font-size: 0.85rem;
}
.facts dd { margin: 0; }

/* Platzhalter für das spätere Foto */
.photo-placeholder {
  aspect-ratio: 4 / 5;
  max-width: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.photo-placeholder .logo {
  width: 96px;
  opacity: 0.35;
}


/* --- Leistungen ---------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.services-grid .panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

/* Kasten "So arbeite ich" */
.work-model {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  border-left: 3px solid var(--accent);
}
.work-model svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}
.work-model h3 { margin-bottom: 6px; }


/* --- Ablauf: Phasenmodell als Schrittkette ------------------------------- */

/* Links die Schrittkette, rechts die Zahlungsbedingungen */
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* Die Kette: zwei Spalten – links Schritt-Kästen und Verbindungslinie,
   rechts der Text. Die senkrechte Linie verläuft durch die linke Spalte. */
.phases {
  --step-size: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  position: relative;
  min-width: 0;
}
.phases::before {
  content: "";
  position: absolute;
  left: calc(var(--step-size) / 2 - 1px);
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--accent);
}

.phase {
  display: grid;
  grid-template-columns: var(--step-size) 1fr;
  gap: 20px;
  position: relative;
}

/* Schritt-Kasten mit Phasennummer */
.step {
  position: relative;
  z-index: 1;
  width: var(--step-size);
  height: var(--step-size);
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-ink);
}
/* Initialschritt (Phase 0): Doppelrahmen wie in der Ablaufsprache */
.step.initial {
  outline: 2px solid var(--accent);
  outline-offset: -8px;
}

.phase-body {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  min-width: 0;
}

/* Ergebnis / Abrechnung je Phase */
.phase-meta {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  font-size: 0.86rem;
}
.phase-meta div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding-block: 7px;
  border-top: 1px dashed var(--line);
}
.phase-meta dt { color: var(--muted); }
.phase-meta dd { margin: 0; }

/* Transition zwischen zwei Schritten: Querbalken auf der Linie, daneben
   die Weiterschaltbedingung als hinterlegtes Feld. Mehr Abstand nach unten
   als nach oben, damit klar ist, dass sie zum nächsten Schritt führt. */
.transition {
  display: grid;
  grid-template-columns: var(--step-size) 1fr;
  gap: 20px;
  align-items: center;
  padding-block: 22px 30px;
}
.t-bar {
  justify-self: center;
  width: 32px;
  height: 5px;
  background: var(--fg);
  position: relative;
  z-index: 1;
}
.transition p {
  justify-self: start;
  position: relative;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--fg);
  text-wrap: balance;
}
/* Kurze Verbindung vom Querbalken zum Bedingungsfeld */
.transition p::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 14px;
  border-top: 1px dashed var(--accent);
}

/* Kasten Zahlungsbedingungen bleibt beim Scrollen sichtbar (nur Desktop) */
.payment {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}


/* --- Technisches Datenblatt ---------------------------------------------- */

/* Tabelle im Stil eines Datenblatts. Auf schmalen Bildschirmen kann sie
   innerhalb ihres Rahmens seitlich gescrollt werden. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.datasheet {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.datasheet caption {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 2px solid var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
}
.datasheet th,
.datasheet td {
  text-align: left;
  vertical-align: top;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.datasheet tr:last-child th,
.datasheet tr:last-child td {
  border-bottom: 0;
}
.datasheet th {
  width: 30%;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
.datasheet td {
  font-size: 0.9rem;
}


/* --- Referenzprojekte ---------------------------------------------------- */

.featured {
  display: grid;
  gap: 24px;
}
.featured-head {
  display: grid;
  gap: 8px;
}
.featured-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0 24px;
  margin: 0;
}
.featured-meta div {
  padding-block: 10px;
  border-top: 1px solid var(--line);
}
.featured-meta dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.featured-meta dd { margin: 0; }

.featured-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.featured-blocks section {
  display: grid;
  gap: 8px;
  align-content: start;
}
.featured-blocks p { font-size: 0.88rem; }

.project-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.project-list li {
  display: grid;
  gap: 8px;
  align-content: start;
}
.project-list p {
  font-size: 0.88rem;
  color: var(--muted);
}


/* --- Werdegang (Zeitleiste) ---------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 4px 24px;
  padding: 0 0 28px 24px;
}
.timeline li:last-child { padding-bottom: 0; }
/* Punkt auf der Linie */
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.timeline p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* Qualifikationen neben/unter der Zeitleiste */
.career-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.career-grid .panel {
  display: grid;
  gap: 14px;
}
.note {
  font-size: 0.82rem;
  color: var(--muted);
}


/* --- Einsatzgebiet ------------------------------------------------------- */

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.area-grid .panel {
  display: grid;
  gap: 8px;
  align-content: start;
}
.area-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-ink);
}


/* --- Kontakt ------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.contact-item {
  display: grid;
  gap: 8px;
}
.contact-value {
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}
.copy-button {
  justify-self: start;
  font: inherit;
  font-size: 0.78rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.copy-button:hover { color: var(--accent-ink); border-color: var(--accent); }


/* --- Rechtliches (Impressum, Datenschutz) -------------------------------- */

.legal {
  display: grid;
  gap: 16px;
}
.legal .panel {
  display: grid;
  gap: 14px;
  font-size: 0.85rem;
}
.legal h3 {
  font-size: 1rem;
  margin-top: 6px;
}
.legal address { font-style: normal; }


/* ==========================================================================
   8. Fußzeile
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-inner nav {
  display: flex;
  gap: 18px;
}


/* ==========================================================================
   9. Animationen und Barrierefreiheit
   --------------------------------------------------------------------------
   Animationen laufen nur, wenn der Besucher in seinem System keine
   reduzierte Bewegung eingestellt hat.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Status-LED blinkt langsam wie bei einer laufenden SPS */
  .status-led {
    animation: led-blink 2.4s ease-in-out infinite;
  }

  /* Signalimpulse laufen über die Leiterbahnen bis in die Blätter */
  .hero-art .pulse {
    opacity: 0.85;
    animation: signal 3.6s linear infinite;
  }
  .hero-art .pulse:nth-of-type(2) { animation-delay: 0.9s; }
  .hero-art .pulse:nth-of-type(3) { animation-delay: 1.8s; }
  .hero-art .pulse:nth-of-type(4) { animation-delay: 2.7s; }
}

@keyframes led-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@keyframes signal {
  from { stroke-dashoffset: 105; }
  to   { stroke-dashoffset: 0; }
}


/* ==========================================================================
   10. Responsive Anpassungen
   ========================================================================== */

/* Tablets und kleine Laptops */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .career-grid {
    grid-template-columns: 1fr;
  }
  .hero-art svg { max-width: 300px; }
  .photo-placeholder { max-width: 320px; }
  .featured-blocks { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .payment { position: static; }
  .area-grid { grid-template-columns: 1fr; }
}

/* Handys: Navigation rutscht in eine eigene, seitlich scrollbare Zeile */
@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .header-controls { margin-left: auto; }
  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }
  .main-nav ul { gap: 18px; padding-bottom: 2px; }
  .main-nav a { white-space: nowrap; }

  .services-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .timeline li { grid-template-columns: 1fr; }
  .work-model { grid-template-columns: 1fr; }
  .phases { --step-size: 40px; }
  .phase, .transition { gap: 14px; }
  .transition p::before { width: 8px; }
  .phase-meta div { grid-template-columns: 1fr; gap: 2px; }
}
