/* ==========================================================================
   Energie Beratung – Ingenieurbüro Leonhard Truschke · Designsystem "Klassik"
   Petrol + Logo-Grün · DIN-nahe Schrift · präzise Linien, Rasterpapier
   ========================================================================== */

:root {
  /* Farben – Standard: Petrol */
  --primary: #0e5c6e;        /* Hauptfarbe: Buttons, Links, Akzente */
  --primary-dark: #0a4352;
  --primary-soft: #e8f1f3;
  --ink: #0b2f38;            /* Dunkelflächen: Footer, Kennzahlen */
  --ink-2: #103a45;
  --ink-rgb: 11, 47, 56;
  --accent: #69bf64;         /* Logo-Grün – sparsam für Linien und Markierungen */
  --accent-text: #3e8f3a;    /* Grün als Textfarbe auf Weiß */
  --accent-soft: #edf7ec;
  --text: #1b2a30;
  --heading: #0b2f38;
  --muted: #5b6b71;
  --muted-d: #a7bcc1;        /* gedämpfter Text auf Dunkel */
  --line: #dde5e7;
  --line-strong: #c3d0d3;
  --line-d: rgba(255, 255, 255, .12);
  --paper: #f5f8f8;
  --grid: rgba(14, 92, 110, .07);
  --white: #fff;
  --warn-soft: #fff5df;

  /* Schrift – Bahnschrift ist der DIN 1451 nachempfunden */
  --font-display: "Bahnschrift", "DIN Alternate", "DIN Next", "Roboto", "Segoe UI", Arial, sans-serif;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 1px 2px rgba(11, 47, 56, .06), 0 6px 20px rgba(11, 47, 56, .06);
  --shadow-lg: 0 2px 6px rgba(11, 47, 56, .08), 0 20px 50px rgba(11, 47, 56, .12);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 36px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
legend { padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }
::selection { background: var(--primary); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .55em; color: var(--heading); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.28rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }
.hl { color: var(--primary); }
.line { display: inline; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

/* Abschnitte ----------------------------------------------------------- */
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section--alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--petrol, .section--dark { background: var(--ink); color: #dce7ea; }
.section--petrol h2, .section--petrol h3, .section--dark h2, .section--dark h3 { color: #fff; }
.section--petrol .hl, .section--dark .hl { color: var(--accent); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.slant-top, .slant-both { /* klassisches Layout: gerade Kanten */ }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section--petrol .eyebrow, .section--dark .eyebrow { color: var(--accent); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }
.section-head--split h2 br { display: none; }
.lead { font-size: clamp(1.06rem, 1.3vw, 1.2rem); color: var(--muted); line-height: 1.65; }
.section--petrol .lead, .section--dark .lead { color: var(--muted-d); }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border: 2px solid var(--primary); border-radius: var(--radius); background: var(--primary); color: #fff;
  font: inherit; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--accent, .btn--primary, .btn--volt { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--primary-dark); }
.btn--light:hover { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-dark); }
.section--petrol .btn--accent, .section--dark .btn--accent, .cta-band .btn--accent, .contact-card .btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.section--petrol .btn--accent:hover, .section--dark .btn--accent:hover, .cta-band .btn--accent:hover, .contact-card .btn--accent:hover { background: #7ccd77; border-color: #7ccd77; color: var(--ink); }
.section--petrol .btn--ghost, .section--dark .btn--ghost, .cta-band .btn--ghost, .contact-card .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.section--petrol .btn--ghost:hover, .section--dark .btn--ghost:hover, .cta-band .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--whatsapp { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn--whatsapp:hover { background: #178a45; border-color: #178a45; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

/* Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(11, 47, 56, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); position: relative; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand-logo { width: 52px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--font); font-weight: 700; font-size: 1.32rem; letter-spacing: -.005em; color: var(--primary); white-space: nowrap; }
.brand-sub { font-family: var(--font); font-weight: 400; font-size: .8rem; letter-spacing: .02em; color: var(--primary); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .nav-dropdown > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none; font: inherit; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; position: relative; }
.nav > a::after, .nav-dropdown > button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .2s; }
.nav > a:hover::after, .nav > a[aria-current="page"]::after, .nav-dropdown > button:hover::after, .nav-dropdown.is-open > button::after { transform: scaleX(1); }
.nav a:hover, .nav-dropdown > button:hover, .nav a[aria-current="page"] { color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown--mega { position: static; }
.nav-dropdown > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-dropdown.is-open > button svg { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; }
.nav-dropdown-menu--mega { top: calc(100% - 1px); left: 50%; transform: translateX(-50%); width: min(920px, calc(100vw - 32px)); padding: 24px; border-top: 3px solid var(--primary); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.nav-dropdown.is-open .nav-dropdown-menu--mega, .nav-dropdown:focus-within .nav-dropdown-menu--mega { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; }
@media (hover: hover) and (min-width: 1241px) { .nav-dropdown:hover .nav-dropdown-menu--mega { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; } }
.nav-dropdown-menu a { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 12px; font-family: var(--font); font-weight: 600; font-size: .96rem; color: var(--heading); border-radius: var(--radius); }
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: var(--paper); color: var(--primary); }
.nav-dropdown-menu a small { font-size: .82rem; font-weight: 400; color: var(--muted); }
.mega-col + .mega-col { border-left: 1px solid var(--line); padding-left: 16px; }
.mega-col h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 4px 12px 8px; }
.mega-col a.mega-hub { color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--heading); text-decoration: none; font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--primary); }
.header-phone:hover { color: var(--primary); }
.header-cta .btn { padding: 10px 20px; }

.menu-toggle { display: none; border: 1px solid var(--line-strong); background: #fff; color: var(--primary); width: 46px; height: 46px; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 24px; height: 24px; }
.nav-mobile-cta { display: none !important; }

@media (max-width: 1280px) { .header-phone span { display: none; } }
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .header-cta .btn, .header-phone { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 120px; gap: 0; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a, .nav-dropdown > button { font-size: 1.15rem; padding: 14px 4px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .nav > a::after { display: none; }
  .nav-dropdown > button { display: none; }
  .nav-dropdown-menu, .nav-dropdown-menu--mega { position: static; display: block !important; transform: none; width: auto; border: 0; box-shadow: none; padding: 0; }
  .mega-col + .mega-col { border-left: 0; padding-left: 0; }
  .mega-col h4 { margin: 18px 4px 4px; }
  .nav-dropdown-menu a { font-size: 1rem; padding: 9px 4px; }
  .nav-mobile-cta { display: grid !important; gap: 12px; margin-top: 22px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand-name { font-size: 1.12rem; } .brand-sub { font-size: .7rem; } .brand-logo { width: 42px; } }

/* Rasterpapier (Hero, Seitenkopf) ------------------------------------- */
.hero, .page-hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(14,92,110,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(14,92,110,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25), #000 60%); mask-image: linear-gradient(90deg, rgba(0,0,0,.25), #000 60%);
}

/* Hero (Startseite) */
.hero { padding: clamp(48px, 7vw, 96px) 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .line { display: inline; }
.hero h1 .line + .line::before { content: " "; }
.hero .lead { max-width: 580px; margin-bottom: 28px; }
.hero-checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.hero-checks li { display: flex; gap: 12px; align-items: center; margin: 0; font-weight: 550; color: var(--heading); }
.check-ico { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--accent); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; }
.check-ico svg { width: 12px; height: 12px; }
.hero-content { padding: 0; }

.hero-visual { position: relative; }
.hero-photo { position: relative; margin: 0 0 0 auto; max-width: 440px; padding: 0 0 18px 18px; }
.hero-photo::before { content: ""; position: absolute; left: 0; bottom: 0; right: 18px; top: 18px; border: 1px solid var(--primary); border-radius: var(--radius-lg); }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 12%; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-photo figcaption { position: absolute; left: 0; bottom: 42px; z-index: 2; background: #fff; padding: 12px 18px; border-left: 3px solid var(--accent); box-shadow: var(--shadow); line-height: 1.3; }
.hero-photo figcaption strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--heading); }
.hero-photo figcaption span { font-size: .84rem; color: var(--muted); }
.hero-mark { display: none; }
.hero-badge { position: absolute; right: -8px; top: 22px; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 12px 16px; display: flex; gap: 12px; align-items: center; max-width: 260px; }
.hero-badge img { width: 50px; height: auto; }
.hero-badge p { margin: 0; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.hero-badge strong { color: var(--heading); display: block; font-size: .92rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { margin: 0 auto; max-width: 380px; } .hero-badge { right: 0; } }

.marquee { display: none; }

/* Leiste mit Qualifikationen ----------------------------------------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 24px 18px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { flex: none; width: 30px; height: 30px; color: var(--primary); }
.trust-item strong { display: block; color: var(--heading); line-height: 1.25; font-family: var(--font-display); font-weight: 600; }
.trust-item span { font-size: .86rem; color: var(--muted); line-height: 1.35; display: block; }
@media (max-width: 900px) { .trustbar-inner { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: 0; } .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .trustbar-inner { grid-template-columns: 1fr; } .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); } }

/* Raster & Karten ----------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }

.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-top: 3px solid var(--primary); transition: box-shadow .2s, transform .2s; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.service-card .icon { width: 50px; height: 50px; border: 1px solid var(--line-strong); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: var(--radius); background: var(--paper); }
.service-card .icon svg { width: 26px; height: 26px; }
.service-card p { color: var(--muted); flex: 1; }
.tag { display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--accent); padding: 2px 10px; border-radius: 2px; margin-bottom: 12px; align-self: flex-start; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--font-display); font-weight: 600; color: var(--primary); }
.more svg { width: 18px; height: 18px; transition: transform .2s; }
.service-card:hover .more svg { transform: translateX(4px); }
.service-card--feature { background: var(--ink); border-color: var(--ink); border-top-color: var(--accent); color: #dce7ea; }
.service-card--feature h3 { color: #fff; }
.service-card--feature p { color: var(--muted-d); }
.service-card--feature .icon { background: transparent; border-color: var(--line-d); color: var(--accent); }
.service-card--feature .more { color: var(--accent); }
.service-card--feature:hover { color: #dce7ea; }
.service-card--feature .tag { color: var(--accent) !important; background: transparent !important; border-color: var(--accent); }

/* Leistungsbereiche */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--radius-lg); transition: box-shadow .2s; }
.pillar:hover { box-shadow: var(--shadow-lg); }
.pillar-head { position: relative; padding: 26px 28px 14px; }
.pillar-head .num { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .12em; color: var(--accent-text); border-bottom: 2px solid var(--accent); padding-bottom: 4px; margin-bottom: 18px; }
.pillar-head h3 { font-size: 1.5rem; margin: 0 0 6px; }
.pillar-head p { margin: 0; color: var(--muted); }
.pillar-head svg { position: absolute; right: 26px; top: 24px; width: 34px; height: 34px; color: var(--primary); opacity: .85; }
.pillar-body { padding: 6px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.pillar-body ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; border-top: 1px solid var(--line); }
.pillar-body li { margin: 0; border-bottom: 1px solid var(--line); }
.pillar-body li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; text-decoration: none; color: var(--text); font-weight: 550; }
.pillar-body li a::after { content: "→"; color: var(--primary); transition: transform .2s; }
.pillar-body li a:hover { color: var(--primary); }
.pillar-body li a:hover::after { transform: translateX(4px); }

/* Zielgruppen */
.segment { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; transition: border-color .2s; }
.segment:hover { border-color: var(--primary); }
.segment svg { width: 32px; height: 32px; color: var(--primary); margin-bottom: 14px; }
.segment h3 { font-size: 1.18rem; margin-bottom: .4em; }
.segment p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Split & Checklisten */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 12px; margin: 0; }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--accent);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e8f3a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--dark .checklist li::before { background-color: transparent; }

/* Kennzahlen */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); border-left: 1px solid var(--line-d); }
.stat { padding: 26px 24px; border-right: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 3.8vw, 3rem); line-height: 1.05; color: #fff; }
.stat b::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 12px; background: var(--accent); }
.stat span { display: block; margin-top: 12px; font-size: .95rem; color: var(--muted-d); line-height: 1.5; }
.section:not(.section--petrol):not(.section--dark) .stat-grid, .content .stat-grid { border-color: var(--line); }
.section:not(.section--petrol):not(.section--dark) .stat, .content .stat { border-color: var(--line); background: #fff; }
.section:not(.section--petrol):not(.section--dark) .stat b, .content .stat b { color: var(--primary); }
.section:not(.section--petrol):not(.section--dark) .stat span, .content .stat span { color: var(--muted); }
.stat-grid--3 { grid-template-columns: repeat(3, 1fr); margin: 30px 0; }
@media (max-width: 960px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

/* Ablauf (horizontal) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps li { position: relative; margin: 0; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--primary); border-radius: 50%; background: #fff; color: var(--primary); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 16px; }
.steps li::after { content: ""; position: absolute; top: 24px; left: 48px; right: -22px; height: 1px; background: var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.12rem; margin-bottom: .35em; }
.steps p { font-size: .95rem; margin: 0; color: var(--muted); }
.section--petrol .steps li::before, .section--dark .steps li::before { background: transparent; border-color: var(--accent); color: var(--accent); }
.section--petrol .steps li::after, .section--dark .steps li::after { background: var(--line-d); }
.section--petrol .steps p, .section--dark .steps p { color: var(--muted-d); }
@media (max-width: 960px) {
  .steps, .steps--4 { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding-left: 68px; padding-bottom: 26px; }
  .steps li::before { position: absolute; left: 0; top: -4px; }
  .steps li::after { top: 46px; bottom: 0; left: 24px; right: auto; width: 1px; height: auto; display: block; }
  .steps li:last-child::after { display: none; }
}

/* Vertikaler Ablauf */
.timeline { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: tl; }
.timeline > li { position: relative; padding: 0 0 28px 64px; margin: 0; counter-increment: tl; }
.timeline > li::before { content: counter(tl, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border: 1.5px solid var(--primary); border-radius: 50%; background: #fff; color: var(--primary); font-family: var(--font-display); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.timeline > li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 4px; width: 1px; background: var(--line-strong); }
.timeline > li:last-child::after { display: none; }
.timeline h3 { font-size: 1.15rem; margin-bottom: .3em; padding-top: 7px; }
.timeline p, .timeline ul { color: var(--muted); margin-bottom: .5em; }
.timeline .docs { font-size: .93rem; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--radius); padding: 12px 16px; margin-top: 8px; }
.timeline .docs strong { color: var(--heading); display: block; margin-bottom: 4px; }
.timeline .docs ul { margin: 0; color: var(--text); }

/* Team ---------------------------------------------------------------- */
.about-photo { position: relative; max-width: 440px; padding: 0 0 16px 16px; }
.about-photo::before { content: ""; position: absolute; left: 0; bottom: 0; right: 16px; top: 16px; border: 1px solid var(--primary); border-radius: var(--radius-lg); }
.about-photo img { position: relative; width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 50% 10%; background: #fff; border-radius: var(--radius-lg); }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 220px 1fr; }
@media (max-width: 1000px) { .team-card { grid-template-columns: 1fr; } }
.team-photo { position: relative; min-height: 260px; background: var(--paper); border-right: 1px solid var(--line); }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.team-photo .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--muted); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.team-photo .placeholder svg { width: 60px; height: 60px; color: var(--line-strong); }
.team-initial { display: none; }
.team-body { padding: 24px 26px; }
.team-body h3 { font-size: 1.4rem; margin-bottom: .1em; }
.team-role { display: block; font-size: .82rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.team-body p { color: var(--muted); font-size: .97rem; }
.team-body .checklist { font-size: .95rem; margin-bottom: 0; }
.cert-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.cert { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px 16px; }
.cert img { height: 50px; width: auto; }
.cert span { font-size: .86rem; line-height: 1.35; color: var(--muted); }
.cert strong { display: block; color: var(--heading); font-size: .92rem; }

/* FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0 4px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--heading); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 1.5px solid var(--primary); border-radius: 50%; color: var(--primary); text-align: center; line-height: 25px; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--primary); }
.faq details > div { padding-bottom: 20px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA-Band ------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: #dce7ea; padding: clamp(34px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band .hl { color: var(--accent); }
.cta-band p { margin: 0; color: var(--muted-d); }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band-mark { display: none; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* Seitenkopf (Unterseiten) */
.page-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 60px); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 22ch; }
.page-hero .lead { max-width: 760px; }
.page-hero .btn-row { margin-top: 26px; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-hidden] { margin: 0 8px; color: var(--line-strong); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.content h2 { margin-top: 1.5em; font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 1.4em; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
@media (max-width: 960px) { .content-grid { grid-template-columns: minmax(0, 1fr); } .sidebar { position: static; } }

.contact-card { background: var(--ink); color: #dce7ea; border-radius: var(--radius-lg); padding: 26px; border-top: 3px solid var(--accent); }
.contact-card h3 { color: #fff; font-size: 1.3rem; }
.contact-card p { color: var(--muted-d); font-size: .95rem; }
.contact-card .person { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-d); }
.contact-card .person img { width: 58px; height: 58px; object-fit: cover; object-position: 50% 12%; background: #fff; border-radius: 50%; }
.contact-card .person strong { color: #fff; display: block; font-family: var(--font-display); font-weight: 600; }
.contact-card .person span { font-size: .86rem; color: var(--muted-d); }
.contact-card .btn { width: 100%; margin-top: 10px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 22px; }
.toc h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-family: var(--font); font-weight: 650; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; border-bottom: 1px solid var(--line); }
.toc li:last-child { border-bottom: 0; }
.toc a { display: flex; justify-content: space-between; padding: 9px 0; text-decoration: none; font-weight: 600; color: var(--heading); }
.toc a::after { content: "→"; color: var(--primary); }
.toc a:hover { color: var(--primary); }

.service-block { scroll-margin-top: calc(var(--header-h) + 24px); }
.service-block + .service-block { margin-top: 2.5em; padding-top: 2.5em; border-top: 1px solid var(--line); }
.service-block .icon-title { display: flex; gap: 16px; align-items: center; margin-bottom: .8em; }
.service-block .icon-title span { flex: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.service-block .icon-title span svg { width: 24px; height: 24px; }
.service-block .icon-title h2 { margin: 0; font-size: clamp(1.45rem, 2.4vw, 1.85rem); }

.info-box { border-radius: var(--radius); padding: 16px 20px; background: var(--primary-soft); border: 1px solid #cfe0e4; border-left: 4px solid var(--primary); margin: 1.4em 0; }
.info-box p:last-child { margin-bottom: 0; }
.info-box--green { background: var(--accent-soft); border-color: #d3ead1; border-left-color: var(--accent); }
.info-box--warn { background: var(--warn-soft); border-color: #f2e2b8; border-left-color: #e0a800; }
.info-box strong:first-child { color: var(--heading); }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper); color: var(--heading); font-family: var(--font-display); font-weight: 600; border-bottom: 2px solid var(--primary); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.num { font-weight: 650; color: var(--primary); }
.small { font-size: .88rem; color: var(--muted); }

/* Formulare ----------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--heading); }
.field .hint { font-size: .85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 92, 110, .15); }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); font-size: .93rem; background: #fff; cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.checkbox input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-status { border-radius: var(--radius); padding: 14px 16px; display: none; }
.form-status.is-success { display: block; background: var(--accent-soft); color: #22561f; border-left: 4px solid var(--accent); }
.form-status.is-error { display: block; background: #fdecec; color: #8a1c1c; }

.contact-options { display: grid; gap: 12px; }
.contact-option { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: inherit; background: #fff; transition: border-color .2s; }
.contact-option:hover { border-color: var(--primary); color: inherit; }
.contact-option .icon { flex: none; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: var(--paper); color: var(--primary); border-radius: 50%; }
.contact-option .icon svg { width: 22px; height: 22px; }
.contact-option strong { display: block; color: var(--heading); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.contact-option span { font-size: .9rem; color: var(--muted); }
.contact-option--wa .icon { color: #178a45; }

/* Fördercheck --------------------------------------------------------- */
.fc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.fc-progress { height: 4px; background: var(--paper); }
.fc-progress span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .3s ease; }
.fc-body { padding: clamp(22px, 4vw, 40px); }
.fc-step { display: none; }
.fc-step.is-active { display: block; animation: fcIn .25s ease; }
@keyframes fcIn { from { opacity: 0; } to { opacity: 1; } }
.fc-step-count { font-size: .8rem; font-weight: 650; color: var(--accent-text); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.fc-step h2, .fc-step legend h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: .3em; }
.fc-step > p { color: var(--muted); }
.fc-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 22px 0 8px; }
.fc-option { position: relative; }
.fc-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.fc-option .box { display: flex; gap: 14px; align-items: flex-start; height: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 16px; background: #fff; transition: all .15s; }
.fc-option .box svg { flex: none; width: 28px; height: 28px; color: var(--primary); }
.fc-option .box strong { display: block; color: var(--heading); line-height: 1.3; }
.fc-option .box small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; margin-top: 3px; }
.fc-option input:hover + .box { border-color: var(--primary); }
.fc-option input:checked + .box { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.fc-option input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 2px; }
.fc-fields { display: grid; gap: 22px; margin-top: 22px; }
.fc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.fc-error { color: #8a1c1c; font-size: .92rem; margin-top: 10px; display: none; }
.fc-error.is-visible { display: block; }
.fc-result-total { background: var(--ink); color: #dce7ea; border-radius: var(--radius-lg); padding: 24px; margin: 20px 0; border-left: 4px solid var(--accent); }
.fc-result-total b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3rem); color: #fff; line-height: 1.1; }
.fc-result-total span { color: var(--muted-d); }
.fc-programs { display: grid; gap: 14px; margin: 20px 0; }
.fc-program { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.fc-program-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.fc-program h3 { margin: 0 0 4px; font-size: 1.15rem; }
.fc-program .who { font-size: .85rem; color: var(--muted); }
.fc-rate { text-align: right; }
.fc-rate b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; color: var(--primary); line-height: 1.1; }
.fc-rate span { font-size: .85rem; color: var(--muted); }
.fc-program ul { margin: 12px 0 0; font-size: .94rem; }
.fc-program .note { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.fc-disclaimer { font-size: .85rem; color: var(--muted); }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--muted-d); padding: 64px 0 28px; font-size: .95rem; border-top: 3px solid var(--accent); }
.footer-giant { display: none; }
.site-footer a { color: #e3ecee; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand .brand-logo { width: 48px; }
.footer-brand strong { color: #fff; display: block; font-weight: 700; font-size: 1.15rem; }
.footer-brand span { font-size: .78rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font); font-weight: 650; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
.footer-bottom ul { display: flex; gap: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile Schnellkontakt */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 47, 56, .08); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; font-size: .78rem; font-weight: 600; text-decoration: none; color: var(--primary); border-radius: var(--radius); }
  .mobile-bar a svg { width: 22px; height: 22px; }
  .mobile-bar a.wa { color: #178a45; }
  .mobile-bar a.primary { background: var(--primary); color: #fff; }
  body { padding-bottom: 72px; }
}

/* Dezente Einblendung beim Scrollen */
[data-reveal] { transition: opacity .6s ease, transform .6s ease; }
[data-reveal].pre { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { [data-reveal].pre { opacity: 1; transform: none; } }

/* Hilfsklassen */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.todo { background: var(--warn-soft); color: #7a4f00; padding: 1px 6px; border-radius: 3px; font-size: .92em; }

/* Zwei Spalten: Menü und Leistungsbereiche */
.nav-dropdown-menu--2 { width: min(640px, calc(100vw - 32px)); }
.nav-dropdown.is-open .nav-dropdown-menu--2, .nav-dropdown:focus-within .nav-dropdown-menu--2 { grid-template-columns: repeat(2, 1fr); }
@media (hover: hover) and (min-width: 1241px) { .nav-dropdown:hover .nav-dropdown-menu--2 { grid-template-columns: repeat(2, 1fr); } }
.pillars--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .pillars--2 { grid-template-columns: 1fr; } }

/* Qualitätssiegel im Hero (unter den Buttons) */
.hero-seal { display: inline-flex; gap: 14px; align-items: center; margin-top: 30px; padding: 12px 18px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-seal img { width: 56px; height: auto; flex: none; }
.hero-seal p { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.hero-seal strong { display: block; color: var(--heading); font-size: .95rem; }

/* Referenzen ---------------------------------------------------------- */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 860px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .ref-grid--3 { grid-template-columns: 1fr; } }
.ref-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s; }
.ref-card:hover { box-shadow: var(--shadow-lg); }
.ref-media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); border-bottom: 3px solid var(--primary); }
.ref-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ref-card:hover .ref-media img { transform: scale(1.03); }
.ref-media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #fff; }
.ref-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.ref-meta { font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 8px; }
.ref-body h2, .ref-body h3 { font-size: 1.3rem; margin: 0 0 .5em; }
.ref-body p { color: var(--muted); font-size: .97rem; }
.ref-tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ref-tags li { margin: 0; font-size: .8rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); border: 1px solid #cfe0e4; border-radius: 3px; padding: 3px 9px; }

/* Logo-Leiste (Mitgliedschaften & Listungen) --------------------------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-top: 20px; }
.logo-item { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 14px; min-height: 52px; text-decoration: none; transition: border-color .2s; }
a.logo-item:hover { border-color: var(--primary); }
.logo-item img { height: 30px; width: auto; }
.logo-item--seal img { height: 36px; }