/* ============================================================
   Lorenz Werbung – Variante B: inspiriert von ckw.ch
   Stand: 15.03.2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;

  /* Lorenz Blau (entspricht CKW-Dunkelgrün #365F10) */
  --primary:     #00628D;
  --primary-dk:  #004a6b;
  --primary-lt:  #EFF7FC;   /* wie CKW #F1F9E8 – helles Blau statt Hellgrün */

  /* Akzent (wie CKW Limette #D5E45E – hier warmes Amber) */
  --accent:      #F0C330;
  --accent-dk:   #D4A800;

  /* Neutrals */
  --dark:        #1a2e35;   /* ähnlich CKW #232623 */
  --text:        #1a2e35;
  --muted:       #5a6e75;
  --border:      #d4dfe3;
  --border-input:#8eaab5;
  --bg:          #ffffff;
  --bg-alt:      #EFF7FC;   /* helle Sektion, wie CKW pale green */
  --white:       #ffffff;

  --shadow-sm:   0 2px 8px rgba(0,98,141,.08);
  --shadow-md:   0 6px 24px rgba(0,98,141,.14);

  /* CKW verwendet vollständig runde Formen überall */
  --radius-pill: 9999px;
  --radius-card: 1.5rem;    /* 24px – Karten */
  --radius-sm:   .75rem;    /* 12px – kleine Elemente */

  --font:        'DM Sans', system-ui, -apple-system, sans-serif;
  --max-w:       1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1.25rem;
}
h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--primary);
  margin-top: 2.75rem;
  margin-bottom: .875rem;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
  margin-top: 1.75rem;
  margin-bottom: .5rem;
}
h4 {
  font-size: .975rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: .35rem;
}

/* Kein extra top-margin wenn Heading erstes Kind ist */
.container > h1:first-child,
.container > h2:first-child,
.container > h3:first-child,
.container > h4:first-child,
.prose > h2:first-child,
.prose > h3:first-child,
[class*="section"] > .container > h2:first-child,
[class*="section"] > .container > h3:first-child,
.icon-card > h2,
.icon-card > h3,
.usp-card > h2,
.usp-card > h3,
.card-body > h2:first-child,
.card-body > h3:first-child,
.card-body > h4:first-child { margin-top: 0; }

p { margin-bottom: 1.25rem; line-height: 1.8; }
p:last-child { margin-bottom: 0; }

/* Listen global */
ul, ol { margin: 0 0 1.25rem 1.5rem; line-height: 1.8; }
li { margin-bottom: .5rem; }
li:last-child { margin-bottom: 0; }

/* Eyebrow wie CKW: sehr kleiner Obertitel */
.eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: .6rem;
}

/* ── LAYOUT HELPERS ───────────────────────────────────────── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* CKW: Sections abwechselnd Weiß / Hellblau */
.section     { padding: 5rem 0; background: var(--bg); }
.section-alt { padding: 5rem 0; background: var(--bg-alt); }
.section-dark{ padding: 5rem 0; background: var(--dark); color: var(--white); }
.section-blue{ padding: 5rem 0; background: var(--primary); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-2-fixed { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

@media (max-width: 768px) {
  .grid-2-fixed { grid-template-columns: 1fr; gap: 2rem; }
  .section, .section-alt, .section-dark, .section-blue { padding: 3.5rem 0; }
  .hero-content {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,.92);
  }
}

/* ── HEADER / NAV ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  /* kein Shadow – CKW nutzt nur thin border */
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  padding: 0 2rem;
  max-width: var(--max-w); margin: 0 auto;
  gap: 2rem;
}

.site-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* ── MAIN NAV ──────────────────────────────────────────────── */
.main-nav {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
  margin-top: auto;
  margin-bottom: auto;
}

/* Top-level items */
.main-nav > li { position: relative; }

.main-nav > li > a {
  display: flex; align-items: center; gap: .25rem;
  font-size: 1rem; font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  transition: color .15s, background .15s;
}
.main-nav > li > a:hover  { color: var(--primary); background: var(--primary-lt); }
.main-nav > li > a.active { color: var(--primary-dk); font-weight: 600; border-bottom-color: var(--primary); }

/* Dropdown arrow */
.main-nav > li > a .nav-arrow {
  font-size: .65rem; opacity: .55;
  transition: transform .2s;
  margin-left: .1rem;
}
.main-nav > li.open > a .nav-arrow { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px rgba(0,98,141,.13);
  padding: .75rem 0 .5rem;
  z-index: 300;
  list-style: none;
}
.main-nav > li.open .nav-dropdown { display: block; }

.nav-dropdown a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .875rem; font-weight: 400;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-dropdown a:hover { background: var(--primary-lt); color: var(--primary); }

/* CTA Button */
.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: .875rem !important;
  padding: .5rem 1.25rem !important;
  border-radius: var(--radius-pill) !important;
  border-bottom: none !important;
  margin-left: .5rem;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--primary-dk) !important; color: var(--white) !important; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: .5rem; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--primary); margin: 5px 0;
  transition: .25s; border-radius: 2px;
}

/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hamburger { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .main-nav > li { width: 100%; }
  .main-nav > li > a {
    width: 100%; padding: .65rem .25rem;
    border-radius: 0; border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-dropdown {
    position: static; box-shadow: none; border: none;
    padding: .25rem 0 .25rem 1rem;
    background: var(--bg-alt); border-radius: 0;
  }
  .nav-dropdown a { padding: .45rem .5rem; font-size: .9rem; }
  .nav-cta { margin-left: 0; margin-top: .75rem; }
}

/* ── HERO ─────────────────────────────────────────────────── */
/* CKW: Split-Hero – linke Seite helles Grün, rechts Weiß
   Wir machen: linke Seite helles Blau (#EFF7FC), rechts Bild */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-alt);
  min-height: 620px;
  display: flex; align-items: flex-start;
}

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: .45;
}

/* Hero-Bild Positionierung per Seite steuerbar */
.hero-img--top    { object-position: top; }
.hero-img--bottom { object-position: bottom; }
.hero-img--left   { object-position: left; }
.hero-img--right  { object-position: right; }

/* Heller Verlauf links – Text bleibt auf heller Fläche lesbar */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 60%, rgba(255,255,255,0) 90%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  display: none;
}

.hero-content {
  position: relative; z-index: 1;
  padding: 1.75rem 3rem;
  max-width: 70%;
  margin: 3rem 0 0 max(1.5rem, calc((100% - var(--max-w)) / 2));
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 1.5rem;
}

.hero h1 {
  color: var(--primary);
  max-width: none;
  margin-bottom: 1rem;
}
.hero .subline {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

/* CKW-Stil: Badges / Tags auf Hero */
.hero-tag {
  display: inline-flex; align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: .4rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-small {
  min-height: 300px;
  background: var(--bg-alt);
}
.hero-small::before,
.hero-small::after { display: none; }
.hero-small .hero-content { padding: 3.5rem 1.5rem; }
.hero-small h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  max-width: 100%;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
/* CKW: vollständige Pill-Form, weight 500-600 */
.btn {
  display: inline-flex; align-items: center;
  padding: .65rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dk); }

.btn-white {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--white) !important;
}
.btn-white:hover { background: var(--primary-lt); border-color: var(--primary-lt) !important; }

/* CKW-Outline: weißer Hintergrund mit Primär-Border */
.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary) !important;
}
.btn-outline:hover { background: var(--primary-lt); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.65) !important;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* Akzent-Button (für besondere CTAs – wie CKW Lime-Buttons) */
.btn-accent {
  background: var(--accent);
  color: var(--text);
}
.btn-accent:hover { background: var(--accent-dk); }

.btn-lg { padding: .8rem 2rem; font-size: .975rem; }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }

/* ── CARDS ────────────────────────────────────────────────── */
/* CKW: Karten minimal, kein starker Shadow */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body > h2:first-child,
.card-body > h3:first-child,
.card-body > h4:first-child { margin-top: 0; }
.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.card-text {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--muted);
}
.card-more {
  display: block;
  margin-top: 1.1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
}

.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card-link:hover .card { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── BADGE / TAG ──────────────────────────────────────────── */
/* CKW: Pill-Tags mit Primärfarbe */
.badge {
  display: inline-flex; align-items: center;
  background: var(--primary-lt);
  color: var(--primary);
  padding: .25rem .85rem;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

/* ── SERVICE-ICON-CARD (analog CKW Schnellzugriff) ────────── */
.icon-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: box-shadow .2s, border-color .2s;
}
.icon-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.icon-card .icon-wrap {
  width: 52px; height: 52px;
  background: var(--primary-lt);
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.icon-card h3 { margin-top: 0; }
.icon-card p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ── USP GRID ─────────────────────────────────────────────── */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.usp-card {
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow .2s, border-color .2s;
}
.usp-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.usp-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: .6rem;
}
.usp-card p {
  font-size: .875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* USP auf bg-alt: weißer Hintergrund */
.section-alt .usp-card { background: var(--white); }

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-top: 0; margin-bottom: .625rem; }
.section-header p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}
.section-header.text-center p { margin: 0 auto; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: .625rem;
  cursor: pointer;
  line-height: 1.4;
}
.faq-a {
  font-size: .925rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

/* ── CONTACT BOX ──────────────────────────────────────────── */
.contact-box {
  background: var(--bg-alt);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  border: 1px solid var(--border);
}
.contact-box h3 { margin-top: 0; margin-bottom: 1.25rem; }

/* ── FORM ─────────────────────────────────────────────────── */
/* CKW: Inputs vollständig rund (pill), breiter Border */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1.25rem;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-pill);  /* CKW: vollständig rund */
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-group textarea {
  border-radius: 1.25rem;   /* Textarea leicht gerundet, nicht Pill */
  min-height: 150px;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,98,141,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: .65; }
.form-group--hidden { display: none; }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb { padding: .75rem 0; font-size: .82rem; color: var(--muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span + span::before { content: ' › '; margin: 0 .3rem; }

/* ── STAT STRIP (für Über-uns-Seite etc.) ─────────────────── */
.stat-strip {
  display: flex; flex-wrap: wrap;
  gap: 2rem 3rem; padding: 2.5rem 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem; font-weight: 700;
  color: var(--primary); line-height: 1;
  letter-spacing: -.03em;
}
.stat-label {
  font-size: .78rem; color: var(--muted);
  margin-top: .3rem;
  text-transform: uppercase; letter-spacing: .08em;
}

/* ── FOOTER ───────────────────────────────────────────────── */
/* CKW: Heller Footer, NICHT dunkel */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 3.5rem 0 1.5rem;
  font-size: .875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col p { color: var(--muted); line-height: 1.7; }
.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: .4rem;
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--primary); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ── REFERENCE CARD ───────────────────────────────────────── */
.reference-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.reference-card .reference-image {
  overflow: hidden;
}
.reference-card .reference-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.reference-card .reference-content {
  padding: 2rem 2rem 2rem 0;
}
.reference-card .reference-content h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: .75rem;
}
@media (max-width: 768px) {
  .reference-card {
    grid-template-columns: 1fr;
  }
  .reference-card .reference-image img {
    height: 220px;
  }
  .reference-card .reference-content {
    padding: 1.5rem;
  }
}

/* ── SECTION MIT NUR .container (kein section-wrapper) ───── */
/* Wenn <section class="container"> direkt verwendet wird     */
section.container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (max-width: 768px) {
  section.container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* ── FEHLENDE VARIABLEN (Aliases) ─────────────────────────── */
:root {
  --text-secondary: #5a6e75;   /* Alias für --muted */
}

/* ── HERO – Bild als echter Hintergrund, nicht transparent ── */
.hero-img {
  opacity: .45;
}
/* Hero mit echtem Foto-Hintergrund */
.hero-photo {
  min-height: 480px;
}
.hero-photo .hero-img {
  opacity: 1;
}
.hero-photo::before {
  background: var(--dark);
  opacity: .55;
  z-index: 0;
}
.hero-photo .hero-content {
  z-index: 1;
}
.hero-photo h1,
.hero-photo .subline {
  color: var(--white);
}

/* ── BTN ohne Variante bekommt Primary-Stil ───────────────── */
.btn:not([class*="btn-"]) {
  background: var(--primary);
  color: var(--white);
}
.btn:not([class*="btn-"]):hover {
  background: var(--primary-dk);
}

/* ── PROSE (Fließtext-Bereiche) ───────────────────────────── */
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.35rem; line-height: 1.8; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 2.75rem 0 .875rem; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .6rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol {
  margin: .25rem 0 1.35rem 1.5rem;
  line-height: 1.8;
}
.prose li { margin-bottom: .5rem; }
.prose li:last-child { margin-bottom: 0; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary-dk); }

/* ── IMAGE GALLERY ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

/* ── LEISTUNGS-OVERVIEW CARDS ─────────────────────────────── */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h3 {
  margin-top: 0;
  margin-bottom: .5rem;
}
.service-card-body p {
  font-size: .875rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
}
.service-card-body .link-arrow {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
}
.service-card-body .link-arrow::after {
  content: ' →';
}

/* ── STEP LIST (Prozessschritte) ──────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 680px;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.step-body h4 { margin-top: 0; margin-bottom: .375rem; }
.step-body p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ── ALERT / HINWEIS BOX ──────────────────────────────────── */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  line-height: 1.6;
  border-left: 4px solid var(--primary);
  background: var(--primary-lt);
  color: var(--text);
}
.alert-warning {
  border-color: var(--accent-dk);
  background: #FFF8E1;
}

/* ── TABLE ────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th {
  background: var(--primary-lt);
  color: var(--primary);
  font-weight: 600;
  text-align: left;
  padding: .75rem 1rem;
}
td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }

/* ── UTILITIES ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-top { margin-top: 2.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius-card); }
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── PAGE HERO (Unterseiten – dunkles Blau mit Breadcrumb) ── */
.page-hero {
  background: var(--primary);
  padding: 3rem 0;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: .5rem;
}
.page-hero .subline {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin: 0;
}
.page-hero .breadcrumb {
  color: rgba(255,255,255,.6);
  margin-bottom: .75rem;
  padding: 0;
}
.page-hero .breadcrumb a {
  color: rgba(255,255,255,.6);
}
.page-hero .breadcrumb a:hover {
  color: var(--white);
}

/* Generell: section-blue Texte weiß */
.section-blue h1,
.section-blue h2,
.section-blue h3 { color: var(--white); }
.section-blue p   { color: rgba(255,255,255,.85); }
.section-blue .breadcrumb,
.section-blue .breadcrumb a { color: rgba(255,255,255,.6); }

/* ── CARD PLACEHOLDER (wenn Projektfoto noch fehlt) ──────── */
.card-placeholder {
  width: 100%;
  height: 210px;
  background: var(--primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: .05em;
}

/* ── SCHEMA INVISIBLE ─────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0,0,0,0); overflow: hidden;
}

/* ── LEGACY / MIGRATED CLASSES ────────────────────────────── */
/* Ältere Seitenstrukturen – werden auf die neue Design-Sprache gemappt */

.content-section {
  padding: 4.5rem 0;
}
.content-section + .content-section {
  padding-top: 0;
}
.content-section .container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.content-section .container > *:first-child { margin-top: 0; }

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 2.25rem 0 0;
}

.feature {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: .5rem;
}
.feature p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: box-shadow .2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
}
.product-card h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: .5rem;
}

.cta-box {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-box h2, .cta-box h3 {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 1rem;
}
.cta-box p {
  color: rgba(255,255,255,.85);
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s;
  border: none;
  cursor: pointer;
}
.cta-button:hover {
  background: var(--accent-dk);
  text-decoration: none;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.related-links a,
.related-links li a {
  display: inline-flex;
  align-items: center;
  padding: .4rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: background .12s, border-color .12s;
}
.related-links a:hover,
.related-links li a:hover {
  background: var(--primary-lt);
  border-color: var(--primary);
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.service-list-item:last-child {
  border-bottom: none;
}
.service-list-item h3 {
  color: var(--primary);
  margin-bottom: .25rem;
  font-size: 1rem;
}
.service-list-item p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

.arrow {
  display: inline-block;
  margin-left: .35rem;
  font-style: normal;
}

/* flex helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
