/* =============================================================
   De Dietrich Germany Leverkusen GmbH – Website
   Basis: Claude-Design-Entwurf „HDL Website.dc.html“ und
   De Dietrich Design System (colors_and_type.css, kit.css)
   ============================================================= */

/* ---------- Schriften (lokal, kein externer Abruf) ---------- */
@font-face { font-family: 'Another Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/another-sans-regular.woff2') format('woff2'); }
@font-face { font-family: 'Another Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/another-sans-medium.woff2') format('woff2'); }
@font-face { font-family: 'Another Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/another-sans-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-mono-400.woff2') format('woff2'); }

/* ---------- Design-Tokens ---------- */
:root {
  --dd-dark-purple: #1E0032;
  --dd-mid-purple:  #978EFF;
  --dd-enamel:      #F2F0FF;
  --dd-yellow:      #FFD95E;
  --dd-amethyst:    #591C6E;
  --dd-violet:      #802B80;
  --dd-lavender:    #C7A8FF;
  --dd-tint-2:      #E4DFFF;

  --fg-1: var(--dd-dark-purple);
  --fg-2: #4A3A5E;
  --fg-3: #7A6C8A;

  --border-1: rgba(30, 0, 50, 0.12);
  --border-2: rgba(30, 0, 50, 0.24);
  --border-on-dark: rgba(242, 240, 255, 0.18);

  --shadow-sm: 0 1px 2px rgba(30, 0, 50, 0.06);
  --shadow-md: 0 4px 12px rgba(30, 0, 50, 0.08);

  --gradient: linear-gradient(135deg, #1E0032 0%, #591C6E 35%, #802B80 60%, #978EFF 100%);

  --font-sans: 'Another Sans', Arial, system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 48px;
  --maxw: 1200px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: #fff;
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-sans); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
strong { font-weight: 600; }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--dd-mid-purple);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.on-dark:focus-visible { outline-color: var(--dd-yellow); }

[hidden] { display: none !important; }
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--dd-yellow); color: var(--dd-dark-purple);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Labels / Pills (Space Mono) ---------- */
.label, .pill-label, .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.pill-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  background: var(--dd-enamel);
  color: var(--dd-amethyst);
}
.pill-label--white  { background: #fff; color: var(--dd-mid-purple); margin-bottom: 16px; }
.pill-label--yellow { background: var(--dd-yellow); color: var(--dd-dark-purple); margin-bottom: 16px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--dd-enamel);
  color: var(--dd-mid-purple);
  margin-bottom: 14px;
}
.label { color: var(--dd-amethyst); display: block; margin-bottom: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn--dark    { background: var(--dd-dark-purple); color: var(--dd-enamel); }
.btn--dark:hover { background: var(--dd-amethyst); }
.btn--outline { border-color: var(--dd-dark-purple); color: var(--dd-dark-purple); background: transparent; }
.btn--outline:hover { background: var(--dd-enamel); }
.btn--yellow  { background: var(--dd-yellow); color: var(--dd-dark-purple); }
.btn--yellow:hover { background: #ffe58f; }
.btn--small { font-size: 14px; padding: 10px 18px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hinweisleiste oben ---------- */
.topstrip {
  background: var(--dd-dark-purple);
  padding: 9px calc(var(--gutter) + 64px);
  text-align: center;
  position: relative;
}
.topstrip a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--dd-yellow);
  text-decoration: none;
}
.topstrip a:hover { text-decoration: underline; }
/* Sprachumschalter rechts in der Hinweisleiste */
.lang-switch {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
}
.topstrip .lang-switch a {
  color: var(--dd-lavender);
  padding: 2px 5px;
  border-radius: 4px;
}
.topstrip .lang-switch a[aria-current] {
  color: var(--dd-dark-purple);
  background: var(--dd-yellow);
  text-decoration: none;
}

/* ---------- Kopfbereich / Navigation ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  padding: 20px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--border-1);
  background: #fff;
  position: relative;
}
.header-brand { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); flex-shrink: 1; min-width: 0; }
.site-header .logo { display: block; flex-shrink: 1; min-width: 0; line-height: 0; }
.header-group {
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--dd-enamel);
  color: var(--dd-dark-purple);
  padding: 8px 14px;
  font-size: 13px;
}
.header-group:hover { background: var(--dd-lavender); }
.main-nav .nav-group { display: none; }
.site-header .logo img { height: clamp(28px, 3.4vw, 42px); width: auto; }
.main-nav ul {
  display: flex;
  gap: clamp(14px, 2.2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.main-nav a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--dd-dark-purple);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--dd-mid-purple); }
.main-nav a.is-active {
  font-weight: 600;
  color: var(--dd-mid-purple);
  border-bottom-color: var(--dd-mid-purple);
}
.main-nav .nav-contact { display: none; }
.header-contact { flex-shrink: 0; white-space: nowrap; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--dd-dark-purple);
  border-radius: 8px;
  color: var(--dd-dark-purple);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ''; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { max-width: var(--maxw); margin: 0 auto; padding: 72px var(--gutter) 0; }
.page-title {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dd-mid-purple);
  margin: 0 0 32px;
}
.page-title--compact { margin-bottom: 16px; }
.page-title--legal { font-size: 44px; }
.page-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-1);
  max-width: 70ch;
  margin: 0 0 44px;
}
.page-body { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 96px; }
.page-body--solo { padding-top: 72px; }

/* Reiter: Unterstrich (Über uns) */
.tabs-line {
  display: flex;
  gap: 24px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border-1);
  overflow-x: auto;
}
.tabs-line a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--dd-dark-purple);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.tabs-line a:hover { color: var(--dd-mid-purple); }
.tabs-line a[aria-current="page"] { font-weight: 600; color: var(--dd-mid-purple); border-bottom-color: var(--dd-mid-purple); }

/* Reiter: Pills (Leistungen, Spezifikationen, Rechtliches) */
.tabs-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}
.tabs-pill--legal { margin-bottom: 36px; }
.tabs-pill a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  color: var(--fg-2);
  text-decoration: none;
  white-space: nowrap;
}
.tabs-pill a:hover { border-color: var(--border-2); color: var(--dd-dark-purple); }
.tabs-pill a[aria-current="page"] {
  font-weight: 600;
  background: var(--dd-dark-purple);
  border-color: var(--dd-dark-purple);
  color: var(--dd-enamel);
}

/* ---------- Typografie im Inhalt ---------- */
.lead { font-size: 18px; line-height: 1.65; color: var(--fg-1); }
.lead + .lead { margin-top: 20px; }
.text { font-size: 17px; line-height: 1.65; color: var(--fg-1); max-width: 70ch; }
.text + .text { margin-top: 18px; }
.section-title {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--dd-mid-purple);
  margin: 0 0 20px;
}
.subhead { font-size: 20px; line-height: 1.25; font-weight: 600; color: var(--fg-1); margin: 32px 0 12px; }
.block { margin-top: 64px; }
.muted { color: var(--fg-2); }

/* ---------- Raster ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-4--tight { gap: 16px; }
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
.split--48 { gap: 48px; }
.split-contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.align-start { align-self: start; }

/* ---------- Karten ---------- */
.card { background: #fff; border-radius: 12px; padding: 22px; box-shadow: var(--shadow-sm); }
.card p { font-size: 14px; line-height: 1.6; color: var(--fg-1); }
.tile { background: var(--dd-enamel); border-radius: 12px; padding: 24px; }
.tile h3, .tile h2 { font-size: 16px; font-weight: 600; color: var(--fg-1); margin: 0 0 8px; line-height: 1.35; letter-spacing: 0; }
.tile p { font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.panel { background: var(--dd-enamel); border-radius: 12px; padding: 32px; }
.panel--28 { padding: 28px; }
.panel-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.panel-list strong { display: block; font-weight: 600; font-size: 15px; color: var(--fg-1); }
.panel-list span { font-size: 13px; color: var(--fg-2); }
.panel-plain { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--fg-1); }
.label--lg { font-size: 14px; }

/* Aufzählung als Karten mit Punkt */
.bullets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.bullets--1 { grid-template-columns: 1fr; }
.bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-1);
}
.bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dd-mid-purple);
  margin-top: 7px;
  flex: none;
}
/* Werkstoff-Karten (Name + Beschreibung) */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.specs li { background: #fff; border: 1px solid var(--border-1); border-radius: 10px; padding: 18px 20px; }
.specs h2, .specs h3 { font-size: 15px; font-weight: 600; color: var(--fg-1); margin: 0 0 6px; line-height: 1.35; letter-spacing: 0; }
.specs p { font-size: 14px; line-height: 1.5; color: var(--fg-2); }

/* Namens-Kacheln (Referenzen) */
.names { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.names li {
  min-height: 112px;
  background: var(--dd-enamel);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg-1);
}

/* ---------- Startseite ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding: 80px var(--gutter) 96px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-text { position: relative; z-index: 1; }
.hero h1 {
  font-size: 58px;
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dd-mid-purple);
  margin: 0 0 22px;
  max-width: 15ch;
}
.hero p { font-size: 18px; line-height: 1.6; color: var(--fg-1); max-width: 50ch; margin: 0 0 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-visual { position: relative; height: 420px; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/dot-grid.svg');
  background-size: 18px 18px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 50%, #000 35%, transparent 75%);
}
.hero-visual img { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 100%; max-width: 560px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter);
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
.stats div { margin: 0; }
.stats dt { order: 2; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: -0.01em; color: var(--fg-2); margin-top: 10px; }
.stats dd { order: 1; margin: 0; font-size: 56px; font-weight: 500; letter-spacing: -0.02em; color: var(--dd-mid-purple); line-height: .95; }
.stats .stat { display: flex; flex-direction: column; }

.section-tint { background: var(--dd-enamel); padding: 88px var(--gutter); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head h2 {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--dd-mid-purple);
  margin: 0 0 16px;
}
.section-head p { font-size: 17px; line-height: 1.6; color: var(--fg-1); }
.inner { max-width: var(--maxw); margin: 0 auto; }

.section-dark { background: var(--dd-dark-purple); padding: 88px 0; position: relative; overflow: hidden; }
.section-dark .deco {
  position: absolute;
  right: -40px;
  top: 36px;
  width: 440px;
  max-width: 40vw;
  pointer-events: none;
}
.section-dark .container { position: relative; }
.section-dark h2 { font-size: 36px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; color: var(--dd-enamel); max-width: 20ch; margin: 0 0 40px; }
.quicklink {
  display: block;
  background: var(--dd-amethyst);
  border: 1px solid var(--border-on-dark);
  border-radius: 14px;
  padding: 24px 20px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}
.quicklink:hover { border-color: var(--dd-lavender); transform: translateY(-2px); }
.quicklink .tag-y { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: -0.01em; color: var(--dd-yellow); margin-bottom: 10px; }
.quicklink strong { display: block; font-size: 18px; font-weight: 600; color: var(--dd-enamel); margin-bottom: 8px; }
.quicklink span:last-child { display: block; font-size: 14px; line-height: 1.5; color: var(--dd-lavender); }

.cta-band { background: var(--gradient); padding: 80px var(--gutter); text-align: center; color: var(--dd-enamel); }
.cta-band .inner { max-width: 800px; }
.cta-band h2 { font-size: 44px; line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; color: var(--dd-enamel); margin: 0 0 16px; }
.cta-band p { font-size: 17px; line-height: 1.6; color: var(--dd-lavender); margin: 0 0 28px; }

/* ---------- Ankündigung ---------- */
.announcement {
  position: relative;
  min-height: 100vh;
  background: var(--gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  text-align: center;
  overflow: hidden;
}
.announcement::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/dot-grid.svg');
  background-size: 22px 22px;
  opacity: .12;
}
.announcement .deco { position: absolute; right: -60px; bottom: 40px; width: 640px; max-width: 55vw; opacity: .85; pointer-events: none; }
.announcement > *:not(.deco) { position: relative; }
.announcement .logo-white { height: 60px; width: auto; margin-bottom: 56px; }
.announcement h1 {
  font-weight: 500;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--dd-enamel);
  margin: 0 0 24px;
  max-width: 26ch;
}
.announcement p.lead-dark { font-size: 19px; line-height: 1.6; color: var(--dd-lavender); max-width: 56ch; margin: 0 0 40px; }
.announcement .btn { padding: 15px 32px; }
.announcement .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.01em; text-transform: uppercase; color: var(--dd-lavender); opacity: .85; margin-top: 28px; }

/* ---------- Projekte ---------- */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--dd-enamel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-card .media { aspect-ratio: 4 / 3; background: var(--dd-tint-2); border-bottom: 1px solid var(--border-1); overflow: hidden; }
.project-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card .body { padding: 20px 22px 24px; }
.project-card h2, .project-card h3 { font-size: 18px; font-weight: 600; color: var(--fg-1); margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.3; }
.project-card p { font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.project-card .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--dd-amethyst); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--dd-tint-2); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 240ms ease; }
.gallery a:hover img { transform: scale(1.03); }
.backlink { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; color: var(--dd-amethyst); text-decoration: none; margin-top: 40px; }
.backlink:hover { text-decoration: underline; }
.project-nav { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border-1); }

/* ---------- Bildbanner ---------- */
.figure { margin: 56px 0 0; }
.figure img { display: block; width: 100%; border-radius: 12px; }
.figure figcaption { font-size: 13px; color: var(--fg-2); margin-top: 10px; }

/* ---------- Prozess / Ablauf ---------- */
.steps { display: flex; gap: 0; align-items: flex-start; margin: 0; padding: 0; list-style: none; }
.steps li { flex: 1; position: relative; padding-right: 12px; }
.steps .num-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.steps .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--dd-dark-purple); color: var(--dd-enamel);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; flex: none;
}
.steps .line { height: 1.5px; flex: 1; background: var(--border-2); }
.steps li:last-child .line { visibility: hidden; }
.steps h2, .steps h3 { font-size: 15px; font-weight: 600; color: var(--fg-1); margin: 0 0 6px; letter-spacing: 0; line-height: 1.35; }
.steps p { font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }

.flow-band {
  background: var(--dd-dark-purple);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  list-style: none;
}
.flow-band li { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 100px; }
.flow-band .num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--dd-amethyst); border: 2px solid var(--dd-mid-purple);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; color: var(--dd-yellow);
}
.flow-band span:last-child { font-size: 13px; color: var(--dd-enamel); text-align: center; font-weight: 500; }

/* Detailliertes Ablaufschema */
.flow { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: center; }
.flow > li { width: 100%; display: flex; flex-direction: column; align-items: center; }
.flow > li + li::before {
  content: '';
  width: 2px;
  height: 28px;
  background: var(--dd-mid-purple);
  -webkit-mask: linear-gradient(#000, #000);
}
.flow-node {
  width: min(100%, 440px);
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 14px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg-1);
}
.flow-node--key { background: var(--dd-dark-purple); border-color: var(--dd-dark-purple); color: var(--dd-enamel); }
.flow-branch {
  width: 100%;
  margin-top: 0;
  padding: 18px;
  background: var(--dd-enamel);
  border-radius: 12px;
}
.flow-branch .label { text-align: center; margin-bottom: 12px; }
.flow-branch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.flow-branch li {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  color: var(--fg-1);
}
.flow-branch li ul { display: block; margin-top: 8px; }
.flow-branch li li { border: 0; background: var(--dd-enamel); margin-top: 6px; font-size: 13px; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0 28px; border: 1px solid var(--border-1); border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; color: var(--fg-1); background: #fff; }
.data-table caption { text-align: left; font-weight: 600; font-size: 15px; padding: 14px 16px 6px; color: var(--fg-1); }
.data-table th, .data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-1); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--dd-enamel); font-weight: 600; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .c { text-align: center; }
.data-table tbody th { font-weight: 500; }

/* ---------- Zertifikate ---------- */
.cert {
  display: flex;
  flex-direction: column;
  background: var(--dd-enamel);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  height: 100%;
}
.cert .media { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 18px; background: var(--dd-tint-2); }
.cert .media img { max-height: 100%; width: auto; box-shadow: var(--shadow-md); background: #fff; }
.cert .body { padding: 16px 18px 20px; }
.cert strong { display: block; font-size: 15px; line-height: 1.35; color: var(--fg-1); }
.cert .meta { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: -0.01em; color: var(--dd-amethyst); }
.cert:hover strong { text-decoration: underline; }

/* ---------- Rechtliches ---------- */
.legal { background: var(--dd-enamel); border-radius: 12px; padding: 40px; }
.legal h2 { font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: -0.015em; color: var(--dd-mid-purple); margin: 0 0 20px; }
.legal h3 { font-size: 20px; line-height: 1.25; font-weight: 600; color: var(--fg-1); margin: 32px 0 12px; }
.legal h4 { font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--dd-amethyst); margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--fg-1); max-width: 80ch; }
.legal p { margin: 0 0 14px; }
.legal ol, .legal ul { margin: 0 0 14px; padding-left: 24px; max-width: 80ch; }
.legal li { margin: 0 0 8px; padding-left: 4px; }
.legal ul.dash { list-style: none; padding-left: 0; }
.legal ul.dash li { position: relative; padding-left: 20px; }
.legal ul.dash li::before { content: '–'; position: absolute; left: 0; }
.legal a { color: var(--dd-amethyst); text-decoration: underline; word-break: break-word; }
.legal .sig { margin-top: 32px; font-size: 14px; color: var(--fg-2); }
.legal .table-wrap { max-width: 100%; }
.legal--plain { background: transparent; padding: 0; }
.draft-note {
  border: 2px dashed var(--dd-violet);
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-1);
}
.draft-note strong { color: var(--dd-violet); }
.todo { background: var(--dd-yellow); padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* ---------- Kontakt ---------- */
.contact-box + .contact-box { margin-top: 20px; }
.contact-box address, .contact-box p { font-style: normal; font-size: 15px; line-height: 1.8; color: var(--fg-1); }
.contact-box a { color: var(--fg-1); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-intro { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0 0 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--fg-1); }
.field .req { color: var(--dd-violet); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  font-size: 15px;
  color: var(--fg-1);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--dd-mid-purple); outline-offset: 2px; border-color: var(--dd-mid-purple); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { font-size: 13px; color: #B3261E; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; line-height: 1.55; color: var(--fg-2); }
.form-note a { color: var(--dd-amethyst); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { border-radius: 10px; padding: 14px 18px; font-size: 15px; line-height: 1.55; }
.form-status:empty { display: none; }
.form-status.is-error { background: #FCEBEA; color: #6E1712; border: 1px solid #F0B8B4; }
.form-status.is-info { background: var(--dd-enamel); color: var(--fg-1); }
.success-box { background: var(--dd-dark-purple); border-radius: 12px; padding: 40px; color: var(--dd-enamel); }
.success-box h2 { font-size: 24px; font-weight: 500; margin: 0 0 12px; color: var(--dd-enamel); line-height: 1.25; }
.success-box p { font-size: 15px; line-height: 1.6; color: var(--dd-lavender); margin: 0 0 24px; }
.noscript-note { background: var(--dd-enamel); border-radius: 10px; padding: 14px 18px; font-size: 14px; line-height: 1.55; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--dd-dark-purple); color: var(--dd-enamel); padding: 64px var(--gutter) 32px; }
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: var(--dd-lavender); max-width: 26ch; }
.footer-col h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; color: var(--dd-yellow); margin: 0 0 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--dd-lavender); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--dd-enamel); text-decoration: underline; }
.footer-col .gap { margin-top: 6px; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: -0.01em;
  color: var(--dd-lavender);
}
.footer-bottom a { color: var(--dd-yellow); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Fehlerseite ---------- */
.error-page { text-align: left; }
.error-code { font-family: var(--font-mono); font-size: 13px; color: var(--dd-amethyst); text-transform: uppercase; }

/* =============================================================
   Responsiv
   ============================================================= */
@media (max-width: 1100px) {
  .grid-4, .names { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .steps { flex-wrap: wrap; row-gap: 28px; }
  .steps li { flex: 1 1 30%; }
}

@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--border-1);
    box-shadow: var(--shadow-md);
    padding: 8px clamp(20px, 4vw, 48px) 20px;
  }
  .js .main-nav.is-open { display: block; }
  .js .main-nav ul { flex-direction: column; gap: 0; }
  .js .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border-1); font-size: 16px; }
  .js .main-nav a.is-active { border-bottom-color: var(--border-1); }
  .js .main-nav .nav-contact { display: block; }
  .js .header-contact { display: none; }
  /* ohne JavaScript: Navigation umbrechen */
  html:not(.js) .site-header { flex-wrap: wrap; }
  html:not(.js) .main-nav { order: 3; width: 100%; }
  html:not(.js) .main-nav ul { flex-wrap: wrap; gap: 12px 20px; }

  .hero { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .hero h1 { font-size: 46px; }
  .hero-visual { height: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .split, .split-contact { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .section-dark .deco { opacity: .35; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .topstrip { text-align: left; padding-left: var(--gutter); padding-right: calc(var(--gutter) + 72px); }
  .topstrip a { white-space: normal; }
  /* zu wenig Platz neben Logo und Menü-Button: Link wandert ins Menü */
  .js .header-group { display: none; }
  .js .main-nav .nav-group { display: block; }
  .page-head { padding-top: 48px; }
  .page-title, .page-title--legal { font-size: 36px; margin-bottom: 24px; }
  .page-intro { margin-bottom: 32px; }
  .page-body { padding-bottom: 72px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { height: 220px; }
  .stats dd { font-size: 40px; }
  .section-tint, .section-dark { padding-top: 64px; padding-bottom: 64px; }
  .section-head h2, .section-dark h2 { font-size: 30px; }
  .cta-band { padding: 64px var(--gutter); }
  .cta-band h2 { font-size: 34px; }
  .grid-2, .grid-3, .grid-4, .bullets, .specs, .gallery, .form-row { grid-template-columns: 1fr; }
  .names { grid-template-columns: 1fr 1fr; gap: 12px; }
  .names li { min-height: 88px; font-size: 14px; }
  .steps { flex-direction: column; }
  .steps li { padding-right: 0; }
  .steps .line { display: none; }
  .flow-band { padding: 28px 20px; justify-content: center; }
  .legal, .panel, .success-box { padding: 24px 20px; }
  .legal h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .announcement .logo-white { height: 44px; margin-bottom: 40px; }
  .announcement .deco { opacity: .35; max-width: 90vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .topstrip, .site-header .nav-toggle, .main-nav, .header-contact, .header-group, .site-footer, .tabs-pill, .tabs-line, .skip-link { display: none !important; }
  .legal { background: none; padding: 0; }
  body { font-size: 11pt; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}

/* ---------- Hilfsklassen ---------- */
.list-reset { list-style: none; margin: 0; padding: 0; }
.gallery-note { margin-top: 14px; }
.lead { max-width: 70ch; }
.block-sm { margin-top: 36px; }
.block-xs { margin-top: 14px; }
.grid-2.split-even { gap: 20px; }
.panel .text { font-size: 15px; }
.panel .text + .text { margin-top: 12px; }
.panel .section-title { font-size: 24px; }
.panel .subhead { font-size: 17px; margin-top: 24px; }
@media (max-width: 960px) { .grid-2.split-even { grid-template-columns: 1fr; } }
.section-head .pill-label { font-size: 11px; line-height: 1.55; }
.stats dd { font-size: clamp(36px, 3.7vw, 56px); white-space: nowrap; }
@media (max-width: 640px) {
  .stats { gap: 20px; }
  .stats dd { font-size: 32px; white-space: normal; }
}
.announcement > picture:not(.deco) { position: static; }
.project-card { height: 100%; }

/* ---------- ALTCHA-Widget im Markendesign ---------- */
altcha-widget {
  --altcha-border-radius: 8px;
  --altcha-border-color: var(--border-2);
  --altcha-color-base: #fff;
  --altcha-color-base-content: var(--fg-1);
  --altcha-color-primary: var(--dd-dark-purple);
  --altcha-color-primary-content: var(--dd-enamel);
  --altcha-checkbox-border-color: var(--border-2);
  --altcha-checkbox-outline-color: var(--dd-mid-purple);
  --altcha-max-width: 100%;
  font-family: var(--font-sans);
  display: block;
}
