/* ==========================================================================
   Cohnen Bauelemente – Relaunch
   Farben der bisherigen Seite (Akzentblau #0069b3, Gelb #FFC000, Footer #191919)
   Typografie, Abstände, Komponenten nach Designsystem.
   Kontrastwerte (WCAG, gemessen):
   - Weiss auf Primär #0069b3 ........ 5.7:1   - Weiss auf Hover #00548f ... 7.9:1
   - Text #222 auf Seite #F5F7FA ..... 14.5:1  - Nebentext #555 auf Seite ... 6.9:1
   - Primär #0069b3 auf Seite ........ 5.3:1   - Gelb #FFC000 nur als Linie/Fokus auf Dunkel
   ========================================================================== */

:root {
  /* Farben */
  --primary: #0069b3;
  --primary-hover: #00548f;
  --accent: #ffc000;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #222222;
  --text-muted: #555555;
  --border: #d5dce3;
  --border-strong: #7b8794;
  --error: #b91c1c;
  --dark: #191919;
  --on-dark: #e8ebee;

  /* Abstandssystem */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 64px;
  --s8: 96px;

  /* Layout */
  --container: 1200px;
  --gutter: 16px;
  --section-y: 48px;
  --header-h: 80px;

  /* Komponenten */
  --radius-btn: 8px;
  --radius-card: 16px;
  --radius-field: 8px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --ease: 180ms ease;

  /* Typografie */
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: clamp(1rem, 0.96rem + 0.12vw, 1.125rem);
  --fs-h1: clamp(2.25rem, 1.55rem + 2.9vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem);
  --fs-h3: clamp(1.375rem, 1.3rem + 0.3vw, 1.5rem);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --section-y: 96px; }
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; transition: color var(--ease); }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--text); }
h1 { font-size: var(--fs-h1); line-height: 1.15; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0; max-width: 65ch; }
ul { margin: 0; padding: 0; list-style: none; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Fokus ------------------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.glass-dark :focus-visible,
.site-footer :focus-visible,
.topbar :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute; left: var(--s3); top: -80px; z-index: 100;
  background: var(--primary); color: #fff; padding: var(--s2) var(--s3);
  border-radius: var(--radius-btn); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s3); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s4);
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  cursor: pointer; transition: background-color var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: #fff; color: var(--text); border-color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn .icon { transition: transform var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

/* Glass ------------------------------------------------------------------ */
.glass {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.glass-dark {
  background: rgba(12, 28, 44, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.98); }
  .glass-dark { background: rgba(12, 28, 44, 0.92); }
}

/* Topbar ----------------------------------------------------------------- */
.topbar { background: var(--dark); color: var(--on-dark); font-size: 0.875rem; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s4); padding-block: var(--s2); }
.topbar ul { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.topbar a, .topbar span.item { display: inline-flex; align-items: center; gap: var(--s2); color: var(--on-dark); text-decoration: none; min-height: 24px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .icon { width: 16px; height: 16px; color: var(--accent); }
.topbar .hours { display: none; }
@media (min-width: 768px) { .topbar .hours { display: inline-flex; } }

/* Header / Navigation ---------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); border-width: 0 0 1px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s4); }
.logo { display: inline-flex; align-items: center; border-radius: 4px; }
.logo img { height: 56px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-btn); cursor: pointer;
  transition: background-color var(--ease);
}
.nav-toggle:hover { background: rgba(0, 105, 179, 0.1); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.main-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  padding: var(--s3) var(--gutter) var(--s4);
}
.main-nav.is-open { display: block; }
.main-nav ul.menu { display: flex; flex-direction: column; }
.main-nav .menu > li > a,
.main-nav .menu > li > .sub-toggle-row > a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border);
}
.main-nav .menu a:hover, .main-nav .menu a[aria-current="page"] { color: var(--primary); }
.sub-toggle-row { display: flex; align-items: stretch; }
.sub-toggle-row > a { flex: 1; }
.sub-toggle {
  width: 48px; background: transparent; border: 0; border-bottom: 1px solid var(--border); color: var(--text); cursor: pointer;
}
.sub-toggle .icon { margin: auto; transition: transform var(--ease); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.submenu { display: none; padding-left: var(--s4); }
.submenu.is-open { display: block; }
.submenu a { display: flex; align-items: center; min-height: 48px; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--border); }
.submenu a:hover { color: var(--primary); }
.main-nav .nav-cta { margin-top: var(--s3); width: 100%; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static; display: flex; align-items: center; gap: var(--s4);
    max-height: none; overflow: visible; background: transparent; border: 0; box-shadow: none; padding: 0;
  }
  .main-nav ul.menu { flex-direction: row; align-items: center; gap: var(--s1); }
  .main-nav .menu > li { position: relative; }
  .main-nav .menu > li > a,
  .main-nav .menu > li > .sub-toggle-row > a {
    min-height: 48px; padding: 0 var(--s3); border: 0; border-radius: var(--radius-btn);
    font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.02em; position: relative;
  }
  .main-nav .menu > li > a::after,
  .main-nav .menu > li > .sub-toggle-row > a::after {
    content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: 6px; height: 3px;
    background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
  }
  .main-nav .menu > li > a:hover::after,
  .main-nav .menu > li > .sub-toggle-row > a:hover::after,
  .main-nav .menu a[aria-current="page"]::after { transform: scaleX(1); }
  .sub-toggle { width: 24px; border: 0; margin-left: -12px; border-radius: var(--radius-btn); }
  .submenu {
    position: absolute; left: 0; top: 100%; min-width: 220px; padding: var(--s2);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-btn); box-shadow: var(--shadow);
  }
  .submenu a { padding: 0 var(--s3); border: 0; border-radius: 4px; color: var(--text); }
  .submenu a:hover { background: var(--bg); }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: block; }
  .main-nav .nav-cta { margin: 0; width: auto; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + var(--s7));
  padding-bottom: var(--s6);
  min-height: 640px; display: flex; flex-direction: column; justify-content: center;
  background: #14354f;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 600ms ease;
  background-color: #14354f;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.45) 100%); }

.hero-inner { display: grid; gap: var(--s5); }
.hero-card { border-radius: var(--radius-card); padding: var(--s4); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); max-width: 680px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-eyebrow::before { content: ""; width: 32px; height: 4px; background: var(--accent); border-radius: 2px; }
.hero-card h1 { color: #fff; }
.hero-card p { margin-top: var(--s3); color: #fff; }
.hero-actions { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s5); }
.hero-badge { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s4); padding: var(--s2) var(--s3); border-radius: 999px; font-weight: 600; font-size: 0.9375rem; }
.hero-badge .icon { color: var(--accent); }

.hero-info { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
.info-tile { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3); border-radius: var(--radius-card); }
.info-tile .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.info-tile strong { display: block; font-weight: 700; }
.info-tile span, .info-tile a { color: #fff; font-size: 0.9375rem; line-height: 1.45; }
.info-tile a { text-decoration: none; }
.info-tile a:hover { color: #fff; text-decoration: underline; }

.hero-controls { display: flex; align-items: center; gap: var(--s3); }
.hero-controls button {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  color: #fff; cursor: pointer; border-radius: 50%; transition: background-color var(--ease);
}
.hero-controls button:hover { background: rgba(12, 28, 44, 0.92); }
.hero-dots { display: flex; gap: var(--s1); }
.hero-dots button { width: 48px; height: 48px; background: transparent; border: 0; border-radius: 50%; position: relative; }
.hero-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; background: transparent; transition: background-color var(--ease), transform var(--ease); }
.hero-dots button[aria-current="true"]::before { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }
.hero-dots button:hover { background: transparent; }

@media (min-width: 768px) {
  .hero-card { padding: var(--s5); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-info { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + var(--s8)); padding-bottom: var(--s7); min-height: 720px; }
  .hero-info { grid-template-columns: repeat(4, 1fr); }
  .hero-bottom { display: flex; align-items: stretch; gap: var(--s4); }
  .hero-bottom .hero-info { flex: 1; }
}
.hero-bottom { display: grid; gap: var(--s4); }
@media (min-width: 1024px) { .hero-bottom { display: flex; } }

/* Abschnitt: Über unsere Firma ------------------------------------------- */
.intro-head { max-width: 800px; }
.line-label { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); color: var(--primary); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase; }
.line-label::before { content: ""; width: 50px; height: 4px; background: var(--accent); border-radius: 2px; }
.intro-head p { margin-top: var(--s3); color: var(--text-muted); }
.cards { display: grid; gap: var(--s4); margin-top: var(--s5); grid-template-columns: 1fr; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12); }
.card-media { aspect-ratio: 3 / 2; background: #dde4ea; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s4); }
.card-body h3 { margin-bottom: var(--s3); }
.card-body p { color: var(--text-muted); }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-body p + .btn { margin-top: var(--s4); }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .cards > .card:last-child:nth-child(odd) .card-media { width: 45%; aspect-ratio: auto; }
  .card-body { padding: var(--s5); }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards > .card:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; }
  .cards > .card:last-child:nth-child(odd) .card-media { width: auto; aspect-ratio: 3 / 2; }
}
@media (max-width: 767.98px) { .card-body { padding: var(--s4); } }

/* CTA-Band --------------------------------------------------------------- */
.cta { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: #14354f; }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.5); }
.cta-card { max-width: 760px; padding: var(--s4); border-radius: var(--radius-card); }
.cta-card h2 { color: #fff; }
.cta-card p { margin: var(--s3) 0 var(--s5); color: #fff; }
@media (min-width: 768px) { .cta-card { padding: var(--s5); } }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--on-dark); }
.footer-grid { display: grid; gap: var(--s5); padding-block: var(--s6); grid-template-columns: 1fr; }
.site-footer h3 { color: #fff; font-size: 1.125rem; margin-bottom: var(--s3); display: flex; align-items: center; gap: var(--s3); }
.site-footer h3::before { content: ""; width: 24px; height: 4px; background: var(--accent); border-radius: 2px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-list li { display: flex; gap: var(--s2); align-items: flex-start; margin-bottom: var(--s2); }
.footer-list .icon { margin-top: 4px; color: var(--accent); }
.social { display: flex; gap: var(--s3); }
.social a {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius-btn); transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.social a:hover { background: #fff; border-color: #fff; color: var(--dark); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.footer-bottom .container { display: flex; flex-direction: column; gap: var(--s3); padding-block: var(--s4); font-size: 0.875rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.footer-bottom a, .footer-bottom button { display: inline-flex; align-items: center; min-height: 44px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--accent); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom .container { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Formularfelder (für Kontakt/Admin, Basis) ------------------------------ */
.field { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 48px; width: 100%; padding: 0 var(--s3); font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-field);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field textarea { padding-block: var(--s3); min-height: 144px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field .error-msg { color: var(--error); font-weight: 600; display: flex; gap: var(--s2); }
.field input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

/* Bewegung reduzieren ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .card:hover { transform: none; }
}

/* Ergänzungen: Unterseiten, Inhalte, Formulare ---------------------------- */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sprite { position: absolute; }

.page-hero { position: relative; isolation: isolate; padding-block: var(--s6) var(--s5); background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero h1 { position: relative; padding-bottom: var(--s3); }
.page-hero h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: var(--s3); background: var(--accent); border-radius: 2px; }
.page-hero .lead { margin-top: var(--s2); color: var(--text-muted); font-size: 1.125rem; }
.page-hero.has-image { padding-block: var(--s8) var(--s6); color: #fff; border: 0; background: #14354f; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.6); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image h1, .page-hero.has-image .crumbs, .page-hero.has-image .crumbs a { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); font-size: 0.9375rem; color: var(--text-muted); }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--primary); }
.page-hero.has-image .crumbs a:hover { color: var(--accent); }

.prose { max-width: 65ch; }
.prose > * + * { margin-top: var(--s3); }
.prose h2 { margin-top: var(--s6); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: var(--s5); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--s1); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-card); }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: var(--s2) var(--s3); border: 1px solid var(--border); text-align: left; }
.prose .cards, .prose .service-grid, .prose .project-grid, .prose .partner-grid, .prose .info-cards, .prose .job-list, .prose .form-card { max-width: none; }
.container.prose { max-width: calc(var(--container) + 2 * var(--gutter)); }
.container.prose > * { max-width: 65ch; }
.container.prose > .cards, .container.prose > .service-grid, .container.prose > .project-grid, .container.prose > .partner-grid, .container.prose > .info-cards, .container.prose > .job-list { max-width: none; }
.container.prose > .form-card { max-width: 720px; }

.chips-label { margin-top: var(--s3); font-weight: 600; font-size: 0.9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); list-style: none; padding: 0; }
.chip { padding: var(--s1) var(--s3); background: #e6f0f8; color: #00416d; border-radius: 999px; font-size: 0.9375rem; font-weight: 600; }
.card-media--ph { background: linear-gradient(135deg, #dbe6ef, #eef3f7); min-height: 160px; }
.product-grid .card-body .prose { max-width: none; }
.product-grid .card-body .prose > * + * { margin-top: var(--s2); }

.service-grid, .project-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin-block: var(--s4); }
.service-card { padding: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.service-card h3 { margin-top: var(--s3); }
.service-card p { margin-top: var(--s2); color: var(--text-muted); }
.service-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; background: var(--primary); color: #fff; border-radius: var(--radius-btn); }
.service-icon .icon { width: 28px; height: 28px; }

.project-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform var(--ease), box-shadow var(--ease); }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14); }
.project-card .card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.project-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.project-card .card-body { display: grid; gap: var(--s1); padding: var(--s3) var(--s4) var(--s4); }
.project-card strong { color: var(--primary); }
.project-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.project-detail { display: grid; gap: var(--s5); margin-bottom: var(--s5); }
.project-detail > img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-card); box-shadow: var(--shadow); }

.job-list { list-style: none; padding: 0; display: grid; gap: var(--s3); margin-block: var(--s4); }
.job-list li { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-btn); }
.job-list .icon { color: var(--primary); flex: none; margin-top: 2px; }
.partner-grid { list-style: none; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); margin-block: var(--s4); }
.partner-grid li { display: grid; place-items: center; min-height: 112px; padding: var(--s3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); text-align: center; font-weight: 600; }
.partner-grid a { display: grid; place-items: center; width: 100%; min-height: 48px; }
.partner-grid img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }

.info-cards { display: grid; gap: var(--s3); grid-template-columns: 1fr; margin-block: var(--s4); }
.info-card { display: flex; gap: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.info-card > .icon { flex: none; color: var(--primary); width: 28px; height: 28px; }
.info-card strong { display: block; margin-bottom: var(--s1); }
.info-card a { display: inline-block; margin-top: var(--s1); }

.form-card { padding: var(--s4); border-radius: var(--radius-card); background: rgba(255, 255, 255, 0.75); border: 1px solid var(--border); box-shadow: var(--shadow); margin-block: var(--s4); }
.field-hint { margin-bottom: var(--s3); color: var(--text-muted); font-size: 0.9375rem; }
.field-check { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s3); }
.field-check input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--primary); }
.field-check input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.error-msg { color: var(--error); font-weight: 600; margin-bottom: var(--s3); }
.field-check.has-error + .error-msg { margin-top: calc(-1 * var(--s2)); }
.has-error input, .has-error textarea { border-color: var(--error); border-width: 2px; }

.alert { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); margin-bottom: var(--s3); border-radius: var(--radius-btn); border: 1px solid; font-weight: 600; }
.alert-success { background: #e8f5ec; border-color: #1d7a3a; color: #12532a; }
.alert-error { background: #fdecec; border-color: var(--error); color: #7f1313; }
.alert .icon { flex: none; margin-top: 2px; }
.flash-region { padding-top: var(--s4); }
.footer-note { margin-top: var(--s2); }

@media (min-width: 768px) {
  .service-grid, .project-grid, .info-cards { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: var(--s5); }
}
@media (min-width: 1024px) {
  .service-grid, .project-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .info-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .project-card:hover { transform: none; } }

/* ==========================================================================
   Unterseiten – überarbeitet: Hero, Navigation, Inhalte, Kontakt
   ========================================================================== */
:root { --header-h: 84px; --primary-dark: #004a80; }
.site-header { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07); }
.logo img { height: 60px; }
@media (min-width: 1024px) {
  .main-nav .menu > li > a[aria-current="page"],
  .main-nav .menu > li > .sub-toggle-row > a[aria-current="page"] { background: rgba(0, 105, 179, 0.08); color: var(--primary); }
  .main-nav .menu > li > a::after, .main-nav .menu > li > .sub-toggle-row > a::after { background: var(--accent); height: 3px; }
}

/* Hero */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; border: 0;
  padding-block: var(--s6) var(--s6);
  background: linear-gradient(125deg, var(--primary-dark) 0%, var(--primary) 55%, #1b86cf 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 88% 15%, rgba(255, 192, 0, 0.28), transparent 38%), radial-gradient(circle at 8% 120%, rgba(255, 255, 255, 0.16), transparent 45%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -200px; width: 460px; height: 460px;
  border: 56px solid rgba(255, 255, 255, 0.07); border-radius: 50%;
}
.page-hero.has-image { padding-block: var(--s7) var(--s6); background: var(--primary-dark); }
.page-hero.has-image::before { background: linear-gradient(100deg, rgba(0, 62, 110, 0.95) 0%, rgba(0, 105, 179, 0.82) 48%, rgba(0, 105, 179, 0.3) 100%); }
.page-hero-bg { z-index: -2; filter: saturate(1.05); }
.page-hero h1, .page-hero .lead { color: #fff; }
.page-hero h1 { padding-bottom: 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.page-hero h1::after { width: 72px; height: 5px; margin-top: var(--s3); background: var(--accent); }
.page-hero .lead { max-width: 60ch; margin-top: var(--s3); font-size: 1.125rem; color: rgba(255, 255, 255, 0.92); }
.hero-row { display: flex; align-items: center; gap: var(--s4); }
.ph-badge {
  display: none; flex: none; place-items: center; width: 84px; height: 84px; border-radius: 24px; color: var(--accent);
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.ph-badge .icon { width: 40px; height: 40px; stroke-width: 1.75; }
@media (min-width: 640px) { .ph-badge { display: grid; } }
.crumbs {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); padding: 6px 16px 6px 12px;
  font-size: 0.875rem; color: #fff; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs .icon { width: 16px; height: 16px; }
.crumbs .sep { opacity: 0.6; width: 14px; height: 14px; }
.page-hero :focus-visible { outline-color: var(--accent); }

/* Inhalt */
.section { background: var(--bg); }
.prose { max-width: none; }
.container.prose > * { max-width: 72ch; }
.container.prose > p:first-child { font-size: 1.1875rem; color: var(--text); max-width: 78ch; }
.container.prose > h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: var(--s7); display: flex; align-items: center; gap: var(--s3); }
.container.prose > h2::before { content: ""; flex: none; width: 6px; height: 1.1em; border-radius: 3px; background: linear-gradient(180deg, var(--accent), #ffd966); }
.container.prose > h2:first-child { margin-top: 0; }
.container.prose > h3 { font-size: 1.25rem; margin-top: var(--s5); padding: var(--s2) var(--s3) var(--s2) var(--s4); border-left: 4px solid var(--primary); background: rgba(0, 105, 179, 0.06); border-radius: 0 var(--radius-btn) var(--radius-btn) 0; }
.container.prose > h3 + p { margin-top: var(--s2); padding-left: var(--s4); }
.container.prose > ul { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.container.prose > ul > li {
  position: relative; padding: 12px 16px 12px 52px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--border); border-radius: 12px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.container.prose > ul > li::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--primary);
}
.container.prose > ul > li::after {
  content: ""; position: absolute; left: 22px; top: 50%; width: 6px; height: 11px; margin-top: -7px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.container.prose > ul > li + li { margin-top: 0; }
@media (min-width: 768px) { .container.prose > ul { grid-template-columns: repeat(2, 1fr); max-width: 960px; } }
.prose ul ul, .job-list li, .product-grid .container.prose > ul > li { }
.prose a[href^="tel:"], .prose a[href^="mailto:"] {
  display: inline-flex; align-items: center; gap: var(--s2); padding: 10px 20px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(0, 105, 179, 0.28);
}
.prose a[href^="tel:"]:hover, .prose a[href^="mailto:"]:hover { background: var(--primary-hover); color: #fff; }
.prose p a[href^="mailto:"]:not(:only-child), .prose p a[href^="tel:"]:not(:only-child) { display: inline; padding: 0; background: none; box-shadow: none; color: var(--primary); text-decoration: underline; border-radius: 0; }

/* Kontaktkarten */
.info-card { align-items: center; background: rgba(255, 255, 255, 0.85); transition: transform var(--ease), box-shadow var(--ease); }
.info-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12); }
.info-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--primary), #1b86cf); box-shadow: 0 6px 14px rgba(0, 105, 179, 0.3); }
.info-ico .icon { width: 26px; height: 26px; }
.info-card strong { color: var(--text); }
.info-card > div { min-width: 0; overflow-wrap: anywhere; }
.info-card span { color: var(--text-muted); }

/* Formular */
.container.prose > .form-card { max-width: 860px; }
.form-card { position: relative; border-top: 4px solid var(--accent); }
.field-row { display: grid; gap: 0 var(--s3); }
@media (min-width: 768px) { .field-row { grid-template-columns: 1fr 1fr; } }
.input-wrap { position: relative; display: block; }
.input-wrap > .icon { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; color: var(--primary); pointer-events: none; }
.input-wrap input, .input-wrap textarea { padding-left: 46px; }
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color: #6b7785; opacity: 1; }
.field input, .field textarea { background: rgba(255, 255, 255, 0.92); }
.form-card .btn-primary { min-height: 52px; padding-inline: var(--s5); box-shadow: 0 8px 20px rgba(0, 105, 179, 0.3); }
.main-nav .menu > li > a, .main-nav .menu > li > .sub-toggle-row > a, .nav-cta { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-nav { gap: var(--s3); }
  .main-nav .menu > li > a, .main-nav .menu > li > .sub-toggle-row > a { padding: 0 10px; font-size: 0.875rem; }
}
.hero-row { align-items: flex-start; }
.info-card a[href^="tel:"], .info-card a[href^="mailto:"], .job-list a[href^="tel:"], .job-list a[href^="mailto:"] {
  display: inline; padding: 0; background: none; box-shadow: none; color: var(--primary); font-weight: 600; text-decoration: underline; border-radius: 0;
}

.logo { flex: none; }
.info-card .info-ico { color: #fff; }
@media (min-width: 1280px) {
  .main-nav { gap: var(--s3); }
  .main-nav .menu > li > a, .main-nav .menu > li > .sub-toggle-row > a { padding: 0 12px; }
}

/* Schwebende Navigation (Glas-Pille über dem Hero) ------------------------ */
:root { --header-h: 76px; }
.site-header {
  top: 12px; height: var(--header-h); margin: 12px 0 calc(-1 * (var(--header-h) + 12px));
  padding-inline: var(--gutter); background: transparent; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header > .container {
  max-width: 1240px; padding-inline: 20px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
}
.logo img { height: 52px; }
.main-nav { border-radius: 18px; margin-top: 8px; border: 1px solid var(--border); }
@media (min-width: 1024px) { .main-nav { margin-top: 0; border: 0; } }
.hero { margin-top: 0; padding-top: calc(var(--header-h) + var(--s8)); }
.page-hero { padding-top: calc(var(--s6) + var(--header-h) + 12px); }
.page-hero.has-image { padding-top: calc(var(--s7) + var(--header-h)); }
