/* IT Services Braun – Farben direkt aus dem Logo */
@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --petrol: #002133;       /* Schriftzug "braun" */
  --petrol-deep: #001826;
  --petrol-line: #0d3a50;
  --teal: #00978f;         /* "IT" */
  --teal-soft: #57bab6;    /* Streifen im Logo */
  --mist: #ddeaee;         /* Logo-Hintergrund */
  --mist-line: #c3d6dc;
  --white: #ffffff;
  --text: #002133;
  --text-muted: #36556a;
  --on-dark: #e8f1f3;
  --on-dark-muted: #a9c3cc;

  /* Farbrollen – im Dunkelmodus unten neu belegt */
  --bg: var(--white);
  --surface: var(--mist);
  --line: var(--mist-line);
  --accent: var(--teal);
  --accent-text: #007a73;
  --header-bg: var(--mist);
  --cta-bg: var(--petrol);
  --cta-hover: #063349;

  --font: "Lexend", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #001a29;
    --surface: #032a3e;
    --line: #12445c;
    --text: var(--on-dark);
    --text-muted: var(--on-dark-muted);
    --accent: var(--teal-soft);
    --accent-text: var(--teal-soft);
    --header-bg: var(--petrol-deep);
    --cta-bg: var(--teal);
    --cta-hover: #00857e;
  }
}
:root { color-scheme: light dark; }

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

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.125rem; letter-spacing: 0; }
p { margin: 0; }

a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--teal-soft); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--petrol); color: var(--white); padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  background: var(--teal);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s;
}
.button:hover { background: #00857e; }
.button-ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--petrol-line), inset 0 0 0 1px rgba(255,255,255,0.25); }
.button-ghost:hover { background: rgba(255,255,255,0.06); }

/* Header – gleiche Fläche wie der Logo-Hintergrund, das Logo "verschmilzt" */
.site-header { background: var(--header-bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.5rem; }
.brand img { width: clamp(140px, 20vw, 200px); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a { color: var(--text); text-decoration: none; font-weight: 450; }
.nav a:hover { color: var(--accent-text); }
.nav .nav-cta { padding: 0.5rem 1rem; border-radius: 6px; background: var(--cta-bg); color: var(--white); }
.nav .nav-cta:hover { background: var(--cta-hover); color: var(--white); }
.nav a[aria-current="page"] { color: var(--accent-text); }
@media (max-width: 720px) {
  .nav { gap: 1rem; }
  .nav a:not(.nav-cta):not(.nav-legal) { display: none; }
  .nav .nav-legal { font-size: 0.9375rem; }
  .brand img { width: 120px; }
}

/* Hero – Text links, Einzugsgebiet rechts */
.hero { background: var(--petrol); color: var(--on-dark); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero-lead { max-width: 34rem; margin-top: 1.5rem; font-size: 1.1875rem; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-proof {
  max-width: 32rem; margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--petrol-line);
  font-size: 0.9375rem; color: var(--on-dark-muted);
}

.hero-map { margin: 0; justify-self: center; width: 100%; max-width: 30rem; }
.hero-map figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.9375rem; color: var(--on-dark-muted); }
.area-map { display: block; width: 100%; height: auto; font-family: var(--font); overflow: visible; }
.map-area { fill: rgba(87,186,182,0.07); }
.map-ring { fill: none; stroke: var(--petrol-line); stroke-width: 0.12; }
.map-edge { fill: none; stroke: var(--teal-soft); stroke-width: 0.22; stroke-dasharray: 0.9 0.7; }
.map-axis { stroke: var(--petrol-line); stroke-width: 0.1; }
.map-town { fill: var(--on-dark-muted); }
.map-label { fill: var(--on-dark-muted); font-size: 1.7px; }
.map-home { fill: var(--teal-soft); }
.map-home-glow { fill: var(--teal-soft); opacity: 0.22; }
.map-home-label { fill: var(--white); font-size: 2.3px; font-weight: 600; text-anchor: middle; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-map { max-width: 26rem; }
  .map-label { font-size: 2px; }
}

/* Leistungen – Ausgangslage, dann Lösung; Beratung hervorgehoben */
.services { padding-block: var(--section); }
.services-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 5rem); }
.services-intro { align-self: start; position: sticky; top: 2rem; }
.services-intro p { margin-top: 1rem; max-width: 24rem; color: var(--text-muted); font-size: 1.125rem; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list p { margin-top: 0.35rem; color: var(--text-muted); max-width: 34rem; }
.service-list .situation { margin-top: 0.4rem; color: var(--text); font-style: italic; }
.service-list li.service-featured {
  padding: 1.75rem; margin-bottom: 1rem;
  border: 0; border-radius: 6px; background: var(--surface);
}
.service-featured h3 { font-size: 1.375rem; }
.service-featured p { font-size: 1.0625rem; }
.icon { width: 2.25rem; height: 2.25rem; fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 820px) { .services-inner { grid-template-columns: 1fr; } .services-intro { position: static; } }
@media (max-width: 480px) { .service-list li.service-featured { padding: 1.25rem; grid-template-columns: 1fr; } }

/* So arbeite ich */
.approach { padding-block: var(--section); background: var(--surface); }
.approach h2 { margin-bottom: 2.5rem; }
.approach-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
}
.approach-list li { padding-top: 1.25rem; border-top: 3px solid var(--accent); }
.approach-list p { margin-top: 0.5rem; color: var(--text-muted); }
@media (max-width: 960px) { .approach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .approach-list { grid-template-columns: 1fr; } }

/* Kompetenzen – als Server-Rack; die Bauhöhe der Einschübe zeigt die Gewichtung */
.skills { padding-block: var(--section); background: var(--petrol); color: var(--on-dark); }
.skills-intro { margin-bottom: 3rem; }
.skills-intro h2 { color: var(--white); }
.skills-intro p { margin-top: 0.75rem; color: var(--on-dark-muted); font-size: 1.125rem; }

.skills-lead h3, .racks h3 { margin-bottom: 0.9rem; font-size: 1.125rem; font-weight: 500; color: var(--teal-soft); }

/* Stufe 1: ruhiges Raster ohne Rack-Dekoration */
.lead-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem);
}
.lead-grid li { padding-block: 1.4rem; border-top: 1px solid var(--petrol-line); }
.lead-grid h4 { margin: 0; font-size: 1.1875rem; font-weight: 600; color: var(--white); }
.lead-grid p { margin-top: 0.4rem; color: var(--on-dark); max-width: 32rem; }
@media (max-width: 720px) { .lead-grid { grid-template-columns: 1fr; } }

/* Stufe 2: das Rack */
.racks { margin-top: 3.5rem; }

.rack {
  list-style: none; margin: 0;
  padding: 0.5rem 1.75rem;
  background-color: var(--petrol-deep);
  border-radius: 6px;
  /* Rack-Schienen mit Lochraster links und rechts */
  background-image:
    radial-gradient(circle, #0a2c3d 2.2px, transparent 2.6px),
    radial-gradient(circle, #0a2c3d 2.2px, transparent 2.6px);
  background-size: 1.75rem 1.25rem, 1.75rem 1.25rem;
  background-position: left top, right top;
  background-repeat: repeat-y, repeat-y;
  box-shadow: inset 0 0 0 1px var(--petrol-line);
}
.unit {
  display: grid;
  grid-template-columns: 0.6rem minmax(10rem, 17rem) 1fr auto 4.5rem;
  align-items: center;
  column-gap: 1.25rem;
  padding: 1rem 1.25rem;
  margin-block: 0.4rem;
  background: #032a3e;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 0 0 1px #0b3a52;
}
/* Lüftungsschlitze – die Streifen aus dem "a" im Logo */
.unit::after {
  content: ""; grid-column: 5; grid-row: 1; justify-self: end;
  width: 4.5rem; height: 1.4rem;
  background: repeating-linear-gradient(90deg, var(--teal-soft) 0 2px, transparent 2px 6px);
  opacity: 0.35;
}
.unit h4 { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.3; color: var(--white); }
.unit p { grid-column: 3; color: var(--on-dark-muted); font-size: 0.9375rem; line-height: 1.5; max-width: 40rem; }
.cert { grid-column: 4; width: 150px; border-radius: 3px; }

.led {
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: 0 0 0.5rem 0.1rem rgba(87,186,182,0.6);
}
.racks.is-booting .led { background: #0b3a52; box-shadow: none; transition: background-color 0.25s, box-shadow 0.25s; }
.racks.is-on .led { background: var(--teal-soft); box-shadow: 0 0 0.5rem 0.1rem rgba(87,186,182,0.6); }

@media (max-width: 760px) {
  .rack { padding-inline: 1rem; background-size: 1rem 1.25rem, 1rem 1.25rem; }
  .unit { grid-template-columns: 0.6rem 1fr; row-gap: 0.35rem; padding: 0.9rem 1rem; }
  .unit::after { display: none; }
  .unit p, .cert { grid-column: 2; }
}

/* Über mich */
.about { padding-block: var(--section); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { max-width: 38rem; }
.about-text p + p { margin-top: 1rem; }
.about-side { padding: 1.75rem; background: var(--surface); border-radius: 6px; }
.about-side h3 { margin-bottom: 1.25rem; }
.about-side h3 + * { margin-top: 0; }
.about-side .certs { margin-bottom: 0; }
.about-side .timeline + h3 { margin-top: 2rem; }

/* Werdegang: senkrechte Linie mit Stationen, aktuelle Station hervorgehoben */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 1fr; row-gap: 0.1rem;
  padding: 0 0 1.25rem 1.5rem;
  border-left: 2px solid var(--line);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 0.3rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); }
.timeline .when { font-size: 0.875rem; color: var(--accent-text); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.3; }
.timeline .what { font-weight: 500; line-height: 1.35; }
.timeline .where { font-size: 0.9375rem; color: var(--text-muted); }

.certs { padding-left: 1.1rem; color: var(--text-muted); }
.certs li + li { margin-top: 0.4rem; }
.certs li::marker { color: var(--accent); }
@media (max-width: 820px) { .about-inner { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { padding-block: var(--section); background: var(--surface); }
.contact-inner p { margin-top: 1rem; max-width: 34rem; color: var(--text-muted); font-size: 1.125rem; }
.mail {
  display: inline-block; margin-top: 2rem;
  font-size: clamp(1.4rem, 4.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em;
  color: var(--text); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 3px; text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent-text); text-decoration-thickness: 3px; }

/* Footer */
.site-footer { background: var(--petrol); color: var(--on-dark-muted); font-size: 0.9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; }
.site-footer a { color: var(--on-dark); }

/* Impressum / Datenschutz */
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .wrap { max-width: 48rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.legal h3 { margin: 1.5rem 0 0.5rem; }
.legal p + p { margin-top: 1rem; }
.legal address { font-style: normal; padding: 1.5rem; background: var(--surface); border-radius: 6px; border-left: 4px solid var(--accent); }
