/* IB Greulich – Stylesheet
   Layout: dunkler Bauplan-Grund, schmale Kontaktleiste, sticky Navigation,
   Inhalte in einer 1200px-Spalte, ein blaues Akzentband pro Seite. */

:root {
  --bg: #0e1319;
  --surface: #151c25;
  --surface-2: #1b2430;
  --line: #273342;
  --fg: #e7edf3;
  --muted: #9aa9b9;
  /* Petrol aus dem Logo (#41788c), für dunklen Grund aufgehellt */
  --accent: #59a4c0;
  --accent-strong: #41788c;
  --accent-deep: #34606f;
  --accent-soft: rgba(89, 164, 192, 0.14);
  --grid: rgba(110, 170, 195, 0.07);

  --font-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);

  --radius: 6px;
  --wrap: 1200px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 16px; }

/* ---------- Kontaktleiste & Navigation ---------- */

.topbar {
  background: #0a0e13;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.topbar .wrap {
  display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap;
  padding-block: 6px;
}
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--fg); }
@media (max-width: 640px) { .topbar .hide-sm { display: none; } }

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(14, 19, 25, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 12px;
}

.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }
@media (max-width: 420px) { .logo img { height: 42px; } }
.site-footer .logo img { height: 60px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; letter-spacing: 0.02em;
  color: var(--fg); text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.call { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.icon-btn.call:hover { background: var(--accent-deep); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.2rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.03em;
  padding: 12px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--fg); }
.btn-light { background: #fff; color: #0e1319; }
.btn-light:hover { background: #dce8f5; color: #0e1319; }

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(44px, 6vw, 76px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 62ch; margin-bottom: 30px; }
.section-head p { color: var(--muted); }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}

.blueprint {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* In Inhaltsbereichen läuft das Raster nach oben und unten weich aus */
.section.blueprint { position: relative; isolation: isolate; background-image: none; }
.section.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding-block: clamp(44px, 7vw, 88px);
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-figure { min-width: 0; }
.hero-figure svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-figure { max-width: 560px; }
}

/* Hero mit Foto: dunkler Verlauf, damit der Text immer lesbar bleibt */
.hero-photo { background: #0a0e13; isolation: isolate; }
.hero-photo .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  z-index: -2;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,14,19,0.94) 0%, rgba(10,14,19,0.82) 45%, rgba(10,14,19,0.35) 100%),
    linear-gradient(0deg, rgba(10,14,19,0.6), transparent 40%);
}
.hero-photo .wrap { grid-template-columns: minmax(0, 640px); padding-block: clamp(60px, 9vw, 124px); }
.hero-photo .lead { color: #c9d4de; }
@media (max-width: 700px) {
  .hero-photo::before { background: linear-gradient(0deg, rgba(10,14,19,0.95) 10%, rgba(10,14,19,0.75)); }
}

/* Bildnachweis auf Fotos */
.credit {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.03em;
  color: rgba(231,237,243,0.82); background: rgba(10,14,19,0.62);
  padding: 4px 8px; border-top-left-radius: 4px;
}

/* Statik-Zeichnung neben dem Einleitungstext */
.intro-figure {
  margin: 0; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius);
}
.intro-figure svg { width: 100%; height: auto; display: block; }
.intro-figure.tight { padding: clamp(8px, 1.4vw, 14px); }

/* Statik-Zeichnung */
.drawing .ink { stroke: var(--fg); fill: none; stroke-width: 2.5; }
.drawing .thin { stroke: var(--muted); fill: none; stroke-width: 1.2; }
.drawing .acc { stroke: var(--accent); fill: none; stroke-width: 2.2; }
.drawing .accfill { fill: var(--accent-soft); stroke: none; }
.drawing .hatch { stroke: var(--muted); stroke-width: 1.2; }
.drawing text { font-family: var(--font-mono); font-size: 13px; fill: var(--muted); }
.drawing text.acc-t { fill: var(--accent); }
.drawing .draw {
  stroke-dasharray: 900; stroke-dashoffset: 0;
  animation: draw 2.2s ease-out both;
}
@keyframes draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .drawing .draw { animation: none; } }

/* ---------- Kennzahlen-Leiste ---------- */

.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts .wrap {
  display: grid; grid-template-columns: 0.85fr 1fr 1fr 1.45fr; gap: 0;
}
.fact { padding: 13px 20px; border-left: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.fact span { color: var(--muted); font-size: var(--step--1); line-height: 1.4; }
@media (max-width: 860px) {
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { padding: 12px 14px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Intro ---------- */

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split .text { display: grid; gap: 18px; }
.split .text p { color: var(--muted); max-width: 62ch; }
.split .text p.strong { color: var(--fg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Bild-Platzhalter: werden später durch Fotos ersetzt */
.ph {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(120,160,205,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #1d2734, #121922);
  border: 1px solid var(--line);
  display: grid; place-items: end start;
}
.ph > span:not(.credit) {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--muted); background: rgba(10,14,19,0.75); padding: 6px 10px; margin: 12px;
  border-radius: 3px;
}
.ph.wide { aspect-ratio: 16 / 9; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Leistungskarten ---------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1040px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; color: var(--fg); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card { padding: 0; overflow: hidden; }
.card > :not(.card-img) { margin-inline: 22px; }
.card > .more { margin-bottom: 22px; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); margin-bottom: 6px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card:hover .card-img img { transform: none; } }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.more {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.03em;
  color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
}
.more::after { content: "→"; transition: transform .2s; }
.card:hover .more::after { transform: translateX(4px); }

.sketch .ink { stroke: var(--fg); fill: none; stroke-width: 2; }
.sketch .acc { stroke: var(--accent); fill: none; stroke-width: 2; }
.sketch .thin { stroke: var(--muted); fill: none; stroke-width: 1.2; }

/* ---------- Akzentband ---------- */

.band {
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(120deg, #2b5363, #41788c 60%, #4f8ea6);
  color: #fff;
}
.band .wrap {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  padding-block: 36px;
}
.band .portrait {
  width: 112px; height: 112px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.5);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
}
.band .portrait img { width: 100%; height: 100%; object-fit: cover; }
.band h2 { font-size: var(--step-2); }
.band p { color: rgba(255,255,255,0.86); max-width: 60ch; margin-top: 8px; }
@media (max-width: 760px) {
  .band .wrap { grid-template-columns: 1fr; justify-items: start; }
}

/* ---------- Referenzen ---------- */

.refs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .refs { grid-template-columns: 1fr; } }
.ref {
  display: grid; grid-template-rows: auto 1fr; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--fg); text-decoration: none; transition: border-color .2s;
}
a.ref:hover { border-color: var(--accent); color: var(--fg); }
.ref .ph { border: 0; border-radius: 0; aspect-ratio: 16 / 9; }
.ref-body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
.ref-meta { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); }
.ref h3 { font-size: 1.45rem; }
.ref p { color: var(--muted); font-size: 0.98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-size: 0.78rem; padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg);
}

.center-cta { margin-top: 28px; display: flex; justify-content: center; }

/* ---------- Unterseiten ---------- */

.page-head { border-bottom: 1px solid var(--line); }
/* Seitenkopf mit abgedunkeltem Foto, Raster liegt fein darüber */
.page-head.photo { position: relative; overflow: hidden; isolation: isolate; background: #0a0e13; }
.page-head.photo .head-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  z-index: -2; filter: saturate(0.55);
}
.page-head.photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(10,14,19,0.95) 0%, rgba(10,14,19,0.86) 50%, rgba(10,14,19,0.62) 100%);
}
.page-head.photo p { color: #c9d4de; }@media (max-width: 700px) {
  .page-head.photo::before {
    background:
      linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
      linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
      rgba(10,14,19,0.86);
  }
}
.page-head .wrap { padding-block: clamp(40px, 5.5vw, 68px); display: grid; gap: 16px; }
.page-head p { color: var(--muted); max-width: 62ch; font-size: var(--step-1); }
.crumbs { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

.service {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 64px);
  padding-block: 44px; border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service > * { min-width: 0; }
.service-head { display: grid; gap: 14px; align-content: start; }
.service-head p { color: var(--muted); }
.service-img {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin-top: 8px;
  border: 1px solid var(--line); background: var(--surface-2);
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }

/* Projektgalerie auf der Referenzseite */
.gallery { display: grid; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #0a0e13; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs button {
  width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden;
  background: var(--surface-2); cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.gallery-main img { cursor: zoom-in; }
.gallery-zoom {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(231,237,243,0.25); border-radius: 4px;
  background: rgba(10,14,19,0.62); color: var(--fg); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.gallery-zoom:hover, .gallery-zoom:focus-visible { background: var(--accent-deep); border-color: var(--accent); }
.gallery-zoom svg, .lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Vollbild-Ansicht */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,9,13,0.97);
  display: grid; place-items: center;
  padding: 56px 72px;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lb-stage { position: relative; margin: 0; max-width: 100%; max-height: 100%; display: flex; }
.lb-stage img {
  display: block; max-width: calc(100vw - 144px); max-height: calc(100vh - 112px);
  width: auto; height: auto; object-fit: contain; user-select: none;
}
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(231,237,243,0.22); border-radius: 50%;
  background: rgba(21,28,37,0.8); color: var(--fg); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--accent-deep); border-color: var(--accent); }
.lb-btn[hidden] { display: none; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 12px; right: 14px; width: 42px; height: 42px; }
.lb-count {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted);
}
@media (max-width: 640px) {
  .lightbox { padding: 60px 0 80px; }
  .lb-stage img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } }
/* Desktop: Stichpunkte beginnen auf Höhe der Bildoberkante */
@media (min-width: 861px) {
  .service { row-gap: 14px; }
  .service-head { display: contents; }
  .service-head > * { grid-column: 1; }
  .service-head > .service-img { grid-row: 4; }
  .service > .checklist { grid-column: 2; grid-row: 4; margin-top: 8px; }
  .service .checklist li:first-child { padding-top: 0; }
  .service .checklist li:first-child::before { top: 2px; }
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: start; }
.checklist li {
  padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative;
}
.checklist li:first-child { padding-top: 4px; }
.checklist li:first-child::before { top: 6px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 18px; width: 16px; height: 16px;
  border: 2px solid var(--accent); border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent)) center / 6px 6px no-repeat;
}

.project {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 56px);
  padding-block: 44px; border-top: 1px solid var(--line); align-items: start;
}
.project:first-child { border-top: 0; padding-top: 0; }
.project > * { min-width: 0; }
.project .body { display: grid; gap: 14px; }
.project .body p { color: var(--muted); }
.project .note {
  font-size: var(--step--1); color: var(--muted); border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 4px 0 0; font-size: 0.95rem; }
.spec dt { color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; padding-top: 2px; }
.spec dd { margin: 0; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } }

/* Vita: echte zeitliche Abfolge */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 28px 28px; display: grid; gap: 6px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.timeline .when { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }
.timeline h3 { font-size: 1.35rem; }
.timeline p { color: var(--muted); }
.timeline ul { list-style: none; margin: 4px 0 0; padding: 0; color: var(--muted); display: grid; gap: 8px; }
.timeline ul li { position: relative; padding-left: 30px; }
/* gleicher Marker wie bei den Leistungen (.checklist) */
.timeline ul li::before {
  content: ""; position: absolute; left: 2px; top: 0.3em; width: 16px; height: 16px;
  border: 2px solid var(--accent); border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent)) center / 6px 6px no-repeat;
}

.vita-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.vita-grid > * { min-width: 0; }
.vita-grid h2 { font-size: var(--step-2); margin-bottom: 28px; }
@media (max-width: 860px) { .vita-grid { grid-template-columns: 1fr; } }

.prose { max-width: 70ch; display: grid; gap: 14px; }
.prose h2 { font-size: var(--step-1); margin-top: 18px; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--fg); font-weight: 600; }

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

.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); }
.contact > * { min-width: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info p { color: var(--muted); }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-item .ico {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item small { display: block; color: var(--muted); font-size: 0.8rem; }
.contact-item a, .contact-item span.v { color: var(--fg); text-decoration: none; font-weight: 500; user-select: all; }
.contact-item a:hover { color: var(--accent); }

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--muted); }
.form-status { font-size: 0.95rem; padding: 12px 14px; border-radius: var(--radius); }
.form-status.ok { background: rgba(60, 170, 110, 0.14); color: #8fdcb0; }
.form-status.err { background: rgba(220, 90, 80, 0.14); color: #f0a49c; }

/* ---------- Footer ---------- */

.site-footer { background: #0a0e13; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 44px 28px;
}
.site-footer h4 {
  margin: 0 0 12px; font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer .legal {
  grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem;
}
.site-footer address { font-style: normal; display: grid; gap: 2px; margin-top: 12px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
