/* ==========================================================================
   ROSE CAD – Stylesheet
   Aufbau: 1 Fonts · 2 Tokens · 3 Basis · 4 Layout · 5 Komponenten · 6 Seiten · 7 Utilities
   Dokumentation: docs/design-system.md
   ========================================================================== */

/* 1 · Fonts (selbst gehostet, keine Übertragung an Dritte) ---------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2 · Design-Tokens --------------------------------------------------------- */
:root {
  /* Navy – abgeleitet aus dem Logo-Blau (dunkelster Wert #061a35) */
  --ink-950: #06121f;
  --ink-900: #0b1a2c;
  --ink-800: #12263d;
  --ink-700: #1f3662; /* bisherige CI-Headlinefarbe */
  --ink-600: #385a81; /* Mittelwert Logo-Blau */

  /* Markenblau / Interaktion */
  --brand-700: #154a7e;
  --brand-600: #1c5e9c;
  --brand-500: #2a73b8;
  --accent: #58a0cd;      /* bisheriger CI-Akzent */
  --accent-200: #b9d8ec;

  /* Stahl / Slate – Logo-Grau #a3a3a3 */
  --steel-600: #4a5968;
  --steel-500: #5b6b7c;
  --steel-400: #8494a5;
  --steel-300: #b4bfca;

  /* Flächen */
  --line: #d9e0e7;
  --mist: #e8edf2;
  --paper: #f5f7fa;
  --white: #ffffff;

  --line-dark: rgb(255 255 255 / 0.12);
  --line-accent: rgb(88 160 205 / 0.35);

  /* Typografie */
  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;

  --fs-display: clamp(2.25rem, 1.35rem + 3.7vw, 4.5rem);
  --fs-h1-page: clamp(2rem, 1.3rem + 2.9vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2.1vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 0.99rem + 0.4vw, 1.3125rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  /* Raum */
  --container: 85rem; /* 1360px */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --section-tight: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --header-h: 4.75rem;

  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --shadow-1: 0 1px 2px rgb(11 26 44 / 0.06), 0 8px 24px -12px rgb(11 26 44 / 0.18);
}

/* 3 · Basis ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: inherit;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-200); color: var(--ink-950); }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.on-dark :focus-visible { outline-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* 4 · Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: var(--section-tight); }
.section--paper { background: var(--paper); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink-900); color: var(--white); }
.section--darkest { background: var(--ink-950); color: var(--white); }
.section--border { border-top: 1px solid var(--line); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.grid-12 > * { grid-column: 1 / -1; }

.bg-grid {
  background-image:
    linear-gradient(to right, rgb(88 160 205 / 0.085) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(88 160 205 / 0.085) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-grid-light {
  background-image:
    linear-gradient(to right, rgb(31 54 98 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(31 54 98 / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* 5 · Komponenten ----------------------------------------------------------- */

/* Skip-Link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink-900);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Eyebrow / Labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--accent); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.on-dark .mono-label { color: var(--steel-400); }

/* Abschnittsüberschrift */
.section-head { max-width: 46rem; }
.section-head h2 { margin-top: 1.1rem; font-size: var(--fs-h2); line-height: 1.12; }
.section-head p { margin-top: 1.25rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--steel-500); }
.on-dark .section-head p { color: var(--steel-300); }
.section-head--split {
  display: grid;
  gap: 1.5rem;
  max-width: none;
  align-items: end;
}
@media (min-width: 64rem) {
  .section-head--split { grid-template-columns: 7fr 5fr; gap: var(--gap); }
  .section-head--split p { margin-top: 0; }
}

/* Buttons */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: var(--white);
  --btn-bd: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover { --btn-bg: var(--brand-700); --btn-bd: var(--brand-700); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: var(--steel-300); }
.btn--outline:hover { --btn-bg: var(--ink-900); --btn-fg: var(--white); --btn-bd: var(--ink-900); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgb(255 255 255 / 0.35); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--ink-900); --btn-bd: var(--white); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink-900); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: var(--accent-200); --btn-bd: var(--accent-200); --btn-fg: var(--ink-950); }
.btn--sm { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-600);
  text-decoration: none;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--brand-700); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--accent); }
.on-dark .link-arrow:hover { color: var(--accent-200); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* deckend weiß: das Original-Logo (JPG mit weißem Grund) fügt sich nahtlos ein */
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(11 26 44 / 0.45); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: var(--radius); }
.brand img { width: auto; height: 46px; }
@media (max-width: 30rem) { .brand img { height: 40px; } }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-desktop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-800);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.45rem;
  height: 2px;
  background: var(--brand-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-desktop a:hover { color: var(--brand-600); }
.nav-desktop a:hover::after, .nav-desktop a[aria-current='page']::after { transform: scaleX(1); }
.nav-desktop a[aria-current='page'] { color: var(--brand-700); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-actions .btn { display: none; }
.lang-switch {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--steel-500);
  text-decoration: none;
  padding: 0.5rem;
  min-height: 2.75rem;
  align-items: center;
}
.lang-switch:hover { color: var(--brand-600); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-900);
  cursor: pointer;
}
.nav-toggle__icon { position: relative; width: 18px; height: 12px; }
.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 5px; }
.nav-toggle__icon span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 2.5rem;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile ul { list-style: none; }
.nav-mobile li + li { border-top: 1px solid var(--line); }
.nav-mobile nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
}
.nav-mobile a[aria-current='page'] { color: var(--brand-600); }
.nav-mobile__meta { margin-top: 2rem; display: grid; gap: 1rem; }
.nav-mobile__meta .btn { width: 100%; }
.nav-mobile__contact { font-size: 0.95rem; color: var(--steel-500); }
.nav-mobile__contact a { color: var(--ink-900); font-weight: 600; }
body.nav-open { overflow: hidden; }

@media (min-width: 40rem) {
  .header-actions .btn { display: inline-flex; }
}
@media (min-width: 64rem) {
  .nav-desktop { display: block; }
  .nav-toggle, .nav-mobile { display: none !important; }
  .lang-switch { display: inline-flex; }
}

/* CAD-Rahmen (Bild im „Viewport“) ----------------------------------------- */
.cad-frame {
  position: relative;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line-accent);
  background: rgb(6 18 31 / 0.35);
}
.cad-frame--light { background: var(--white); border-color: var(--line); }
.cad-frame__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.cad-frame--light .cad-frame__bar { color: var(--steel-500); }
.cad-frame__bar span:last-child { color: var(--accent); }
.cad-frame--light .cad-frame__bar span:last-child { color: var(--brand-600); }
.cad-frame__media { position: relative; overflow: hidden; background: var(--ink-800); }
.cad-frame__media img { width: 100%; aspect-ratio: var(--ratio, 638 / 440); object-fit: cover; }
.cad-frame__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.cad-frame__corner--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.cad-frame__corner--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.cad-frame__corner--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.cad-frame__corner--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.cad-frame--light .cad-frame__corner { border-color: var(--brand-500); }
.cad-frame figcaption {
  padding: 0.7rem 0.25rem 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--steel-400);
}
.cad-frame--light figcaption { color: var(--steel-500); }
.ruler {
  height: 10px;
  margin-top: 0.65rem;
  background-image:
    linear-gradient(to right, var(--line-accent) 1px, transparent 1px),
    linear-gradient(to right, var(--accent) 1px, transparent 1px);
  background-size: 10px 5px, 100px 10px;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0;
  opacity: 0.8;
}
.cad-frame--light .ruler {
  background-image:
    linear-gradient(to right, var(--steel-300) 1px, transparent 1px),
    linear-gradient(to right, var(--brand-500) 1px, transparent 1px);
}

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--white);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
}
.hero__gridbg {
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 72% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 85% at 72% 35%, #000 25%, transparent 78%);
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 60rem;
  height: 60rem;
  right: -20rem;
  top: -18rem;
  background: radial-gradient(circle, rgb(42 115 184 / 0.28), transparent 62%);
  pointer-events: none;
}
.hero__grid { align-items: center; row-gap: clamp(2.5rem, 5vw, 4rem); }
.hero__title {
  margin-top: 1.5rem;
  font-size: var(--fs-display);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--steel-300);
}
.hero .btn-row { margin-top: 2.25rem; }
.hero__figure { position: relative; }
.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-dark);
  list-style: none;
}
.hero__facts li { padding: 1.25rem 1rem 0 0; }
.hero__facts li + li { border-left: 1px solid var(--line-dark); padding-left: 1.25rem; }
.hero__facts li:nth-child(3) { border-left: 0; padding-left: 0; }
.hero__facts dt, .hero__facts .k {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.hero__facts .v {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--white);
}
@media (min-width: 48rem) {
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__facts li:nth-child(3) { border-left: 1px solid var(--line-dark); padding-left: 1.25rem; }
}
@media (min-width: 64rem) {
  .hero__text { grid-column: 1 / span 6; }
  .hero__figure { grid-column: 7 / -1; }
}

/* Kompetenz-Karten --------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 80rem) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: background-color 0.3s var(--ease);
}
.card__media { overflow: hidden; background: var(--ink-800); }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card__body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2rem); }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__icon { width: 2.25rem; height: 2.25rem; color: var(--brand-600); }
.card h3 { margin-top: 1.25rem; font-size: var(--fs-h3); line-height: 1.3; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card p { margin-top: 0.75rem; color: var(--steel-500); font-size: 0.975rem; }
.card .link-arrow { margin-top: auto; padding-top: 1.5rem; }
.card:hover { background: var(--paper); }
.card:hover .card__media img { transform: scale(1.04); }
.card:focus-within { outline: 2px solid var(--brand-500); outline-offset: -2px; }
.card:focus-within a:focus-visible { outline: none; }

/* Split-Sektion ------------------------------------------------------------ */
.split { align-items: center; row-gap: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 64rem) {
  .split__media { grid-column: 1 / span 6; }
  .split__content { grid-column: 8 / -1; }
  .split--reverse .split__media { grid-column: 7 / -1; grid-row: 1; }
  .split--reverse .split__content { grid-column: 1 / span 5; grid-row: 1; }
}
.split__content h2 { margin-top: 1.1rem; font-size: var(--fs-h2); line-height: 1.12; }
.split__content > p { margin-top: 1.25rem; color: var(--steel-600); }
.split__content > p.lead { font-size: var(--fs-lead); color: var(--ink-800); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.facts div { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-500); }
.facts dd { margin: 0.35rem 0 0; font-family: var(--font-display); font-weight: 700; color: var(--ink-900); line-height: 1.35; }

/* Leistungen im Detail ----------------------------------------------------- */
.detail-list { display: grid; gap: clamp(4rem, 8vw, 7rem); margin-top: clamp(3rem, 6vw, 5rem); }
.detail { align-items: start; row-gap: 2rem; }
.detail__media { position: relative; }
.detail__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--brand-600);
}
.detail h3 { margin-top: 0.85rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.15; }
.detail__steps { margin-top: 1.75rem; display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
.detail__steps li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.detail__steps .k { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-500); padding-top: 0.25rem; }
.detail__steps p { color: var(--ink-800); }
.detail__steps li.is-benefit p { font-weight: 600; color: var(--ink-900); }
.detail .btn-row { margin-top: 1.75rem; }
@media (max-width: 30rem) {
  .detail__steps li { grid-template-columns: 1fr; gap: 0.35rem; }
}
@media (min-width: 64rem) {
  .detail__media { grid-column: 1 / span 6; position: sticky; top: calc(var(--header-h) + 2rem); }
  .detail__content { grid-column: 8 / -1; }
  .detail:nth-child(even) .detail__media { grid-column: 7 / -1; grid-row: 1; }
  .detail:nth-child(even) .detail__content { grid-column: 1 / span 5; grid-row: 1; }
}

/* Projektablauf ------------------------------------------------------------ */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  list-style: none;
}
.step { position: relative; padding: 0 0 2.5rem 3.5rem; }
.step::before {
  content: '';
  position: absolute;
  left: 0.95rem;
  top: 2.25rem;
  bottom: 0;
  width: 1px;
  background: var(--line-accent);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--ink-900);
}
.step h3 { font-size: 1.15rem; line-height: 1.35; padding-top: 0.2rem; }
.step p { margin-top: 0.6rem; font-size: 0.95rem; color: var(--steel-300); }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
  .step { padding: 3.75rem 0 0 0; }
  .step::before { left: 2.75rem; right: calc(-1 * var(--gap)); top: 1rem; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { display: block; right: 0; background: linear-gradient(to right, var(--line-accent), transparent); }
}
.note {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--steel-400);
}

/* Steckbrief / Datenblatt -------------------------------------------------- */
.spec { width: 100%; border-collapse: collapse; }
.spec caption { text-align: left; padding-bottom: 1rem; }
.spec th, .spec td { padding: 1rem 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--line); }
.spec th {
  width: 38%;
  padding-right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-500);
  padding-top: 1.2rem;
}
.spec td { font-weight: 600; color: var(--ink-900); }
.spec td span { display: block; font-weight: 400; color: var(--steel-500); font-size: 0.95rem; }
@media (max-width: 30rem) {
  .spec th, .spec td { display: block; width: 100%; }
  .spec th { padding-bottom: 0.25rem; }
  .spec td { border-top: 0; padding-top: 0; }
  .spec tr:last-child th { border-bottom: 0; }
}

.trust { row-gap: clamp(2.5rem, 5vw, 3rem); }
@media (min-width: 64rem) {
  .trust__intro { grid-column: 1 / span 5; }
  .trust__spec { grid-column: 7 / -1; }
}
.pillars { display: grid; gap: 1.75rem; margin-top: 2.25rem; list-style: none; }
.pillars li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; }
.pillars svg { width: 1.75rem; height: 1.75rem; color: var(--brand-600); margin-top: 0.15rem; }
.pillars h3 { font-size: 1.05rem; line-height: 1.4; }
.pillars p { margin-top: 0.3rem; font-size: 0.95rem; color: var(--steel-500); }

/* Kontakt-CTA -------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -15rem;
  bottom: -30rem;
  width: 55rem;
  height: 55rem;
  background: radial-gradient(circle, rgb(42 115 184 / 0.25), transparent 62%);
}
.cta-band__grid { align-items: end; row-gap: 2.5rem; }
.cta-band h2 { margin-top: 1.1rem; font-size: clamp(2rem, 1.3rem + 2.9vw, 3.75rem); line-height: 1.06; letter-spacing: -0.03em; }
.cta-band p.lead { margin-top: 1.25rem; font-size: var(--fs-lead); color: var(--steel-300); max-width: 36rem; }
.cta-band .btn-row { margin-top: 2.25rem; }
.contact-lines { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.contact-lines li { border-bottom: 1px solid var(--line-dark); }
.contact-lines a, .contact-lines div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  text-decoration: none;
}
.contact-lines .k { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-400); }
.contact-lines .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); color: var(--white); overflow-wrap: anywhere; }
.contact-lines a:hover .v { color: var(--accent); }
@media (min-width: 64rem) {
  .cta-band__text { grid-column: 1 / span 7; }
  .cta-band__contact { grid-column: 9 / -1; }
}

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--ink-950); color: var(--steel-300); font-size: 0.95rem; }
.site-footer__grid { padding-block: clamp(3.5rem, 6vw, 5rem); row-gap: 2.5rem; }
.footer-logo {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  background: var(--white);
  border-radius: var(--radius);
}
.footer-logo img { height: 40px; width: auto; }
.site-footer p { margin-top: 1.25rem; max-width: 24rem; }
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.site-footer ul { list-style: none; margin-top: 1rem; display: grid; gap: 0.15rem; }
.site-footer a { color: var(--white); text-decoration: none; display: inline-flex; min-height: 2.25rem; align-items: center; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; margin-top: 1rem; line-height: 1.7; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: var(--steel-400);
}
.site-footer__bottom ul { display: flex; gap: 1.5rem; margin: 0; }
.site-footer__bottom a { color: var(--steel-300); min-height: 2rem; }
@media (min-width: 48rem) {
  .site-footer__brand { grid-column: 1 / span 12; }
  .site-footer__col { grid-column: span 4; }
}
@media (min-width: 64rem) {
  .site-footer__brand { grid-column: 1 / span 5; }
  .site-footer__col { grid-column: span 2; }
  .site-footer__col--wide { grid-column: span 3; }
}

/* Unterseiten-Hero --------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--white);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg picture { height: 100%; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; filter: saturate(0.85); }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--ink-900) 25%, rgb(11 26 44 / 0.86) 55%, rgb(11 26 44 / 0.55));
}
.page-hero h1 { margin-top: 1.25rem; max-width: 52rem; font-size: var(--fs-h1-page); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.page-hero p.lead { margin-top: 1.25rem; max-width: 42rem; font-size: var(--fs-lead); color: var(--steel-300); }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero--plain { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; font-size: 0.8125rem; color: var(--steel-400); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: '/'; color: var(--steel-500); }
.breadcrumbs a { color: var(--steel-300); text-decoration: none; display: inline-flex; min-height: 1.5rem; align-items: center; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--accent); }
.breadcrumbs + .eyebrow { margin-top: 2rem; }

/* Fließtext / Rechtstexte -------------------------------------------------- */
.prose { max-width: 46rem; color: var(--ink-800); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.5em; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.25; color: var(--ink-900); }
.prose h3 { margin-top: 2em; font-size: 1.15rem; color: var(--ink-900); }
.prose h2 + *, .prose h3 + * { margin-top: 0.75em; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--brand-500); }
.prose a { color: var(--brand-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--brand-700); }
.prose dl { display: grid; gap: 0; border-top: 1px solid var(--line); }
.prose dl > div { display: grid; gap: 0.25rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .prose dl > div { grid-template-columns: 14rem 1fr; } }
.prose dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-500); padding-top: 0.3rem; }
.prose dd { margin: 0; }

.layout-aside { row-gap: 3rem; }
@media (min-width: 64rem) {
  .layout-aside__main { grid-column: 1 / span 7; }
  .layout-aside__side { grid-column: 9 / -1; }
}
.aside-box { border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2rem); background: var(--white); }
.aside-box h2, .aside-box h3 { font-size: 1.15rem; }
.aside-box p { margin-top: 0.75rem; color: var(--steel-500); font-size: 0.95rem; }
.aside-box .btn { margin-top: 1.25rem; width: 100%; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.5rem; }

.point-list { display: grid; gap: 0; margin-top: 2rem; list-style: none; border-top: 1px solid var(--line); }
.point-list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.point-list .n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brand-600); padding-top: 0.25rem; }
.point-list h3 { font-size: 1.1rem; line-height: 1.35; }
.point-list p { margin-top: 0.35rem; color: var(--steel-500); }

/* Technik-Kacheln */
.tech-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 48rem) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech-tile { background: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem); }
.tech-tile svg { width: 2rem; height: 2rem; color: var(--brand-600); }
.tech-tile h2, .tech-tile h3 { margin-top: 1.25rem; font-size: var(--fs-h3); }
.tech-tile ul { margin-top: 1.25rem; list-style: none; display: grid; gap: 0; }
.tech-tile li { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; }
.tech-tile li::before { content: ''; width: 6px; height: 6px; background: var(--accent); flex: none; }
.tech-tile p { margin-top: 0.75rem; color: var(--steel-500); font-size: 0.95rem; }

/* Timeline (Unternehmen) */
.timeline { list-style: none; margin-top: 2rem; border-left: 1px solid var(--line-accent); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 0.5rem; width: 9px; height: 9px; background: var(--white); border: 2px solid var(--brand-500); }
.timeline .y { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--brand-600); }
.timeline h3 { margin-top: 0.25rem; font-size: 1.1rem; }
.timeline p { margin-top: 0.3rem; color: var(--steel-500); }

/* Formulare ---------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-family: var(--font-display); font-weight: 700; font-size: 0.925rem; color: var(--ink-900); }
.field .req { color: var(--brand-600); }
.field .hint { font-size: 0.8125rem; color: var(--steel-500); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--steel-300);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235b6b7c' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgb(42 115 184 / 0.22); }
.field [aria-invalid='true'] { border-color: #b42318; }
.field [aria-invalid='true']:focus { box-shadow: 0 0 0 3px rgb(180 35 24 / 0.2); }
.field .error { font-size: 0.875rem; font-weight: 600; color: #b42318; }
.field .error:empty { display: none; }
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.925rem; color: var(--steel-600); }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--brand-600); }
.check a { color: var(--brand-600); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1.1rem 1.25rem; border: 1px solid; border-left-width: 4px; border-radius: var(--radius); }
.alert h2 { font-size: 1.05rem; }
.alert p, .alert ul { margin-top: 0.4rem; font-size: 0.95rem; }
.alert ul { padding-left: 1.1rem; }
.alert--success { background: #ecf7f0; border-color: #1a7f45; color: #0f4d2a; }
.alert--error { background: #fdf0ef; border-color: #b42318; color: #7a1a12; }
.alert--info { background: var(--paper); border-color: var(--brand-500); color: var(--ink-800); }
.alert a { color: inherit; font-weight: 700; }

/* 6 · Animation ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* 7 · Utilities ------------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0 !important; }
.text-muted { color: var(--steel-500); }

@media print {
  .site-header, .nav-mobile, .cta-band, .skip-link { display: none !important; }
  body { color: #000; }
  .hero, .page-hero, .section--dark { background: #fff !important; color: #000 !important; }
}

/* Ergänzungen */
main:focus { outline: none; }
.nav-mobile a svg { width: 1.15rem; height: 1.15rem; color: var(--steel-400); }
.contact-lines--light { margin-top: 1rem; border-color: var(--line); }
.contact-lines--light li { border-color: var(--line); }
.contact-lines--light .k { color: var(--steel-500); }
.contact-lines--light .v { color: var(--ink-900); font-size: 1rem; }
.contact-lines--light a:hover .v { color: var(--brand-600); }
.alert:focus { outline: 2px solid var(--brand-500); outline-offset: 2px; }
