@font-face {
  font-family: "Havelock Titling";
  src:
    local("Havelock Titling Black"),
    local("Havelock Titling"),
    url("../fonts/HavelockTitling-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --brand: #1f5e43;
  --accent: #b89b5e;

  --accent-rgb: 184, 155, 94;

  --text: #111111;
  --muted: #5b5b5b;

  --bg: #ffffff;
  --bg-alt: #f6f7f7;
  --bg-raise: #ffffff;

  --border: #e6e6e6;

  --container: 1160px;

  --radius-sm: 10px;
  --radius-md: 14px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,.08);
  --shadow-xl: 0 25px 70px rgba(0,0,0,.12);

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 56px;

  --focus: 0 0 0 3px rgba(31,94,67,.18);
  --ring: 0 0 0 4px rgba(184,155,94,.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-synthesis: none;

  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

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

.section {
  padding: var(--space-6) 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h1,h2,h3,h4 {
  margin: 0 0 var(--space-3) 0;
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem,3.2vw,2.9rem); }
h2 { font-size: clamp(1.5rem,2.2vw,1.95rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 var(--space-3) 0;
  max-width: 70ch;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.small {
  font-size: .95rem;
  color: var(--muted);
}

/* Aktiviert Silbentrennung projektweit (Sprache via lang-Attribut, z. B. lang="de") */
html { -webkit-hyphens: auto; -ms-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }
/* Auf gängige Text-Container anwenden; verhindert Überläufe bei sehr langen Wörtern */
body,
p, li, dt, dd,
h1, h2, h3, h4,
blockquote,
figcaption,
address,
/* Lange Texte in Formular-Labels/Checkboxen */
.bb-option .text,
.checkbox-with-label > span {
  -webkit-hyphens: auto; -ms-hyphens: auto; -moz-hyphens: auto; hyphens: auto;
  overflow-wrap: break-word; /* Fallback bei fehlender Silbentrennung */
}

/* Numerische Lesbarkeit: tabellarische Ziffern in Content-/CTA-Bereichen */
.content, .contact-cta { font-variant-numeric: tabular-nums; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60; /* über dem Menü-Overlay halten */

  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);

  padding: var(--space-4); /* horizontal padding for edge spacing */
}

/* Menü-Toggle (Hamburger) */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px; /* größerer Klickbereich */
  border-radius: 12px;
  border: 1px solid rgba(31,94,67,.25);
  background: #fff;
  color: var(--brand);
  cursor: pointer;
}
.menu-toggle:hover { background: rgba(31,94,67,.06); }
.menu-toggle svg { display: block; }

/* Rechtsseitige Navigations-Lightbox (kompaktes Panel, ragt in den Hero) */
.main-nav {
  position: fixed;
  top: 100px;                /* wird beim Öffnen per JS an Header-Bottom angepasst */
  right: 12px;
  width: clamp(260px, 42vw, 360px);
  max-height: 78vh;          /* innerhalb der Viewporthöhe bleiben */
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  overflow: auto;
  z-index: 70;               /* über Header/Content */

  /* Off-canvas initial state (von rechts einschieben) */
  transform: translateX(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform .24s ease, opacity .2s ease, visibility 0s linear .24s;
}
.main-nav.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform .24s ease, opacity .2s ease;
}

/* Backdrop für diese Variante deaktiviert (kein Fullscreen-Overlay) */
.nav-backdrop { display: none !important; }

/* primary navigation as vertical list */
.main-nav .primary-nav {
  display: flex;
  flex-direction: column;   /* vertikal */
  align-items: flex-start;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: var(--space-4); /* gleichmäßiger Innenabstand im Panel */
}

/* Links als saubere Liste mit Hover-Effekten */
.main-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--text);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .08s ease;
}
.main-nav a::after {
  content: "›";
  font-size: 1.1em;
  line-height: 1;
  color: var(--muted);
  opacity: .7;
  transition: transform .15s ease, opacity .15s ease, color .15s ease;
}

/* Desktop: Button bleibt sichtbar; Menü nur per Klick sichtbar */
@media (min-width: 981px) {
  .menu-toggle { font-size: 1rem; }
}

/* Body: Scroll sperren, wenn Menü offen */
body.nav-open { overflow: hidden; }


.company-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: inherit;
}

.company-lines {
  display: flex;
  flex-direction: column;
  justify-content: center; /* center text block to match logo height */
  gap: 2px;
  padding-left: var(--space-4);
  border-left: 0; /* vertical divider removed */
  min-height: 112px; /* increased by ~40% to match enlarged logo */
}

.brand-mark {
  height: 112px; /* increased by ~40% */
  width: auto;
  display: block;
  color: var(--brand); /* allow inline SVG to inherit brand color via currentColor */
}

.company-banner strong {
  font-family: "Havelock Titling", serif;
  font-size: 1.42rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: .06em; /* dezenteres Tracking für klarere Wortbilder */
  white-space: nowrap; /* Desktop/Ebene: einzeilig halten */
}

.company-banner span {
  font-size: .9rem;
  color: var(--muted);
}


/* Hover-/Fokus-Stile – Schrift in Gold, kein Hintergrund */
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
  outline: none;
  text-decoration: none;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: translateX(2px);
  opacity: .95;
  color: var(--accent);
}

/* Match header padding with container spacing on small screens */
@media (max-width: 640px) {
  .header-inner { padding-left: var(--space-3); padding-right: var(--space-3); }
}

.hero {
  position: relative;
  padding: 72px 0;
  min-height: 520px; /* ensure enough canvas for the graphic */
  overflow: hidden; /* keep background contained */
  background: linear-gradient(to right, #ffffff 0%, #f6f7f7 40%, #f6f7f7 100%);
}

/* Hero background illustration moved to closing block */
.hero::after { content: none; }

/* Ensure text/content sits above background */
.hero .container {
  position: relative;
  z-index: 1;
}


.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}



/* Hero subline: feine goldene Linie links, halbe Schriftgröße der Headline */
.hero-subline {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem); /* ~ 50% von h1 (2.1–2.9rem, 3.2vw) */
  line-height: 1.6;
  margin-top: var(--space-6);
  margin-bottom: var(--space-6); /* zentriert und noch luftiger */
  /* Volle Breite für rechtsbündiges DEKRA-Siegel, trotz globalem p[max-width] */
  max-width: none;
  width: 100%;
  display: block;                /* Höhe folgt nur dem Text */
}

/* Nur die tatsächliche Textzeile erhält den goldenen Balken links */
.hero-subline__text {
  display: inline-block;
  border-left: 3px solid var(--accent);
  padding-left: var(--space-3);
}


/* Hero-Badge wie h3 formatieren */
.hero .badge {
  font-size: 1.2rem;    /* entspricht h3 */
  font-weight: 600;     /* entspricht h3 */
  line-height: 1.25;    /* entspricht h3 */
  color: var(--text);
  margin: 0 0 var(--space-3) 0; /* h3-ähnlicher Abstand nach unten */
}
.hero .badge strong { font-weight: 600; }

.trustbar {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap; /* eine Zeile auf größeren Screens */
  align-items: flex-end; /* Unterkanten bündig ausrichten */
  margin-top: var(--space-4);
  overflow-x: visible; /* kein horizontales Scrollen */
}

/* Im Hero wird der Abstand zur Subline ausschließlich über die Subline gesteuert */
.hero .trustbar { margin-top: 0; }
.hero .hero-cta { margin-top: 0; }

/* Kopfzeile im Hero ohne zusätzlichen Abstand darunter, für saubere Zentrierung */
.hero h1 { margin-bottom: 0; }
@media (max-width: 640px) {
  .trustbar { flex-wrap: wrap; overflow-x: visible; } /* Umbruch nur auf kleinen Screens */
}

.trustitem {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 7px 12px;

  border-radius: 999px;

  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.08);

  box-shadow:
    0 1px 2px rgba(0,0,0,.05),
    0 6px 18px rgba(0,0,0,.06);

  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;

  color: var(--muted);
}

/* DEKRA-Siegel: dezent, ohne Pill-Hintergrund; Seitenverhältnis bleibt erhalten */
.trust-seal { display: inline-flex; align-items: flex-end; margin-left: auto; }
.trust-seal img {
  width: 110px; /* reduziert für dezentere Wirkung */
  height: auto; /* Verhältnis bleibt unangetastet */
  display: block;
}

.trustdot {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--brand);

  box-shadow:
    0 0 0 3px rgba(31,94,67,.14);
}

.trustdot--gold {
  background: var(--accent);

  box-shadow:
    0 0 0 3px rgba(184,155,94,.18);
}

/* Klickbares DEKRA-Siegel: Lightbox-Trigger ohne Pill-Styling */
.trust-seal__image.credential-item {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  display: inline-block;
}
.trust-seal__image:hover { filter: brightness(0.98); }

/* Zweite Zeile: Credentials – sachlich, keine CTA-Optik */
.trustbar-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* Teambereich: Trustpills exakt wie Credential-Buttons gestalten (wie Team-Credentials) */
.team-with-expertise .trustbar .credential-item {
  padding: 4px 12px;  /* relativ breiter (größere Breite), gleiche Höhe */
  line-height: 1.75;  /* identisch zur Referenzhöhe */
  border-radius: 8px; /* eckiger, nicht pillförmig */
  box-shadow: none;   /* ruhiger, wie die Credential-Buttons unten */
}

/* Credentials optisch wie die Trust-Pills */
.credential-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;            /* identisch zu .trustitem */
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow:
    0 1px 2px rgba(0,0,0,.05),
    0 6px 18px rgba(0,0,0,.06);
  font-size: .95rem;            /* identisch zu .trustitem */
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;           /* einzeilig halten – gleiche Höhe wie oben */
  line-height: 1.25;             /* stabilisiert die Pill-Höhe */
  transition: background-color .15s ease, border-color .15s ease;
}
.credential-item:hover,
.credential-item:focus-visible {
  background-color: #fafafa; /* dezenter Hover */
  border-color: rgba(0,0,0,.14);
  outline: none;
}

@media (max-width: 980px) {
  .trustbar-secondary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .credential-item { white-space: normal; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 12px;
  padding: 12px 16px;

  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1; /* robuste, kompakte Zeilenhöhe für Buttons */

  border: 1px solid transparent;

  cursor: pointer;

  transition:
    transform .08s ease,
    box-shadow .2s ease,
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.btn:focus {
  outline: none;
  box-shadow: var(--focus);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;

  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: #184b35;
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--brand);

  border-color: rgba(31,94,67,.35);
}

.btn--secondary:hover {
  background: rgba(31,94,67,.06);
}

/* Goldener Button (Akzent) */
.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover {
  background: #a8894f; /* leicht abgedunkeltes Gold */
  color: #fff;
}

.btn--link {
  padding: 0;
  border: 0;
  background: transparent;

  color: var(--brand);
  text-decoration: underline;

  font-weight: 600;
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;        /* Buttons oben bündig zur Subline */
  gap: 12px;
  flex-wrap: wrap;                /* Buttons können umbrechen */
  margin-top: 18px;
}
/* DEKRA-Siegel innerhalb der CTA-Zeile tiefer setzen */
.hero-cta .trust-seal { align-self: flex-start; transform: translateY(10px); }
.hero-cta__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.team-with-expertise {
  position: relative;
  padding: var(--space-6) 0;
  background: linear-gradient(to right, #ffffff 0%, var(--bg-alt) 55%);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

/* Hintergrundillustration aus dem Team-Bereich entfernt – nun im Mitteltext */
.team-with-expertise::after {
  content: none;
}

/* Ensure content sits above decorative bg */
.team-with-expertise .container {
  position: relative;
  z-index: 1;
}

/* Mobile adjustments for decorative bg */

.team-with-expertise .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
  align-items: start;
}
/* Trustpills-Zeile im Teambereich über volle Breite platzieren */
.team-with-expertise .trustbar { grid-column: 1 / -1; align-items: center; justify-content: flex-start; gap: var(--space-3); margin-top: var(--space-3); }

.team-photos {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  order: 2;
}

.photo {
  text-align: center;
}

/* Foto optisch an Tiles angleichen (Kontur, Radius, dezenter Schatten) */
.team-with-expertise .photo {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  overflow: hidden; /* Rundung für das Bild durchreichen */
  aspect-ratio: 3 / 2; /* Platzhalter stabilisieren: 3:2-Seitenverhältnis */
}

.photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

/* Teamfoto: Ratio-Container vollflächig füllen (alle Breakpoints) */
.team-with-expertise .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;      /* Rundung kommt vom Container */
  margin-bottom: 0;      /* keine zusätzliche Lücke im Container */
  display: block;
}

.photo p {
  margin: var(--space-2) 0;
}

.tile-expertise {
  grid-column: span 6;
  grid-row: 1;
  height: fit-content;
  order: 1;
}

/* Zweite Kachel im Team-Bereich (Kosten) – Basislayout wie Wertexpertise */
.tile-pricing {
  grid-column: span 6;
  height: fit-content;
  order: 1;
}

/* Abschlussbereich (Startseite) – ruhig, hochwertig, klar */
.closing-block {
  background: linear-gradient(to right, #ffffff 0%, #f6f7f7 40%, #f6f7f7 100%);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.closing-block .container {
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}
/* Moved decorative SVG from hero to closing block */
.closing-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../svg/hero-facade.svg") no-repeat right center;
  background-size: 72% auto;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}
/* Zweispaltiges Raster auf Desktop, mobil einspaltig */
.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 900px) {
  .closing-grid {
    grid-template-columns: 1fr;
  }
}
/* Spaltenbreite im Abschlussbereich voll nutzen */
.closing__section {
  max-width: none;
}
/* Keine horizontale Trennung im Zweispalter */
.closing__section + .closing__section {
  border-top: none;
  padding-top: 0;
}
/* Überschriften im Abschlussbereich: Standard-H2-Größe beibehalten */
.closing-block h2 {
  margin-bottom: var(--space-2);
}
/* CTA am Ende klar platziert, ohne plakative Wirkung */
.closing-cta {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: 1fr;  /* beide Buttons volle Breite = gleiche Länge */
  row-gap: var(--space-3);     /* vergrößerter vertikaler Abstand zwischen Buttons */
}
.closing-cta .btn { width: 100%; }
/* Im Abschlussbereich ohne starken Schatten, sachlich ruhig */
.closing-block .btn--primary {
  box-shadow: none;
}

/* Fließtext im Abschlussbereich: Blocksatz + Silbentrennung */
.closing-block p {
  text-align: justify;
  text-justify: inter-word;      /* Edge/IE: harmlose Ergänzung */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;     /* verhindert Überläufe bei langen Wörtern/URLs */
  text-align-last: left;         /* letzte Zeile nicht gestreckt */
  max-width: none;               /* volle Spaltenbreite im Zweispalter */
}

/* Positionierung & Schwierige Immobilien: direkte p-Kinder des Containers
   + Regionale Expertise: p innerhalb verschachtelter Wrapper im Container */
.content > .container > p,
.content.content-light .container p {
  text-align: justify;
  text-justify: inter-word;      /* Edge/IE: harmlose Ergänzung */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;     /* verhindert Überläufe bei langen Wörtern/URLs */
  max-width: none;               /* volle Containerbreite für saubere Rechtskante */
  text-align-last: left;         /* letzte Zeile nicht gestreckt */
}

/* Auf sehr großen Screens konsistent volle Breite beibehalten */
@media (min-width: 1280px) {
  .content > .container > p,
  .content.content-light .container p {
    max-width: none;
  }
}

/* Auf schmalen Screens ebenfalls volle Breite des Containers */
@media (max-width: 640px) {
  .content > .container > p,
  .content.content-light .container p {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .team-tiles { grid-column: span 12; }
  .team-photos { grid-column: span 12; }
}

/* Dezente Zwischenüberschriften in Inhaltsabschnitten */
.content h3 {
  font-size: 1.12rem; /* an Fließtext angeglichen */
  font-weight: 600;
  color: var(--text);
  margin-top: calc(var(--space-4) + 4px);
  margin-bottom: var(--space-3); /* globaler Default für h3 (16px) */
  line-height: 1.3;
}

/* Mitteltext: dekorative Hintergrundillustration rechts (facade-variant.svg) */
.content {
  position: relative;
  overflow: hidden; /* Illustration innerhalb des Abschnitts halten */
}
.content .container { position: relative; z-index: 1; }
.content::after {
  content: none; /* decorative SVG removed from middle content area */
}

/* Content section: consistent spacing for h2 and address */
.content .container > h2 { margin-top: var(--space-4); }
.content .container > h2:first-child { margin-top: 0; }
.content address { font-style: normal; margin: 0 0 var(--space-3) 0; }

.tiles {
  position: relative;
  background: #ffffff; /* clean surface distinct from hero */
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0;
  overflow: visible; /* allow facade bg to extend beyond section vertically */
}

/* Deko-Hintergrund im Tile-Bereich entfernt */
.tiles::before { content: none; }


.tiles .container {
  position: relative;
  z-index: 1;
}

.tiles .container {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: var(--space-4);
}

.tile {
  grid-column: span 6;

  display: grid;
  grid-template-columns: auto 1fr; /* Media-left standard */
  grid-auto-rows: min-content;
  column-gap: var(--space-3);
  row-gap: var(--space-2);
  align-items: start;

  background: #fbfbfa;
  background-clip: padding-box;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  /* sehr dezente Absetzung gemäß Option B */
  box-shadow: 0 4px 14px rgba(0,0,0,.05);

  padding: var(--space-4);
  color: inherit;
  text-decoration: none; /* gesamte Kachel klickbar, ohne Unterstreichung */
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.07); /* dezent stärkerer Hover */
}

.tile img {
  grid-column: 1;
  grid-row: 1 / span 2; /* Icon links, Text rechts */
  width: 72px;  /* größer als zuvor */
  height: 72px; /* größer als zuvor */
  object-fit: contain;
  margin: 0; /* Abstand wird über Grid-Gaps gesteuert */
  align-self: center; /* vertikal mittig in der Kachel */
}

/* Falls Inline-SVG statt <img> verwendet wird: gleiche Größe/Platzierung */
.tile svg {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 72px;
  height: 72px;
  margin: 0;
  color: var(--text); /* ermöglicht currentColor in SVG */
  align-self: center; /* vertikal mittig in der Kachel */
}

/* Tile-Textbereiche rechts anordnen */
.tile h3 {
  grid-column: 2;
  margin: 0;
  font-weight: 700;
  font-size: 1.12rem; /* an Fließtext angeglichen */
  color: var(--text);
  /* Titel auf max. 2 Zeilen begrenzen, um Höhe zu stabilisieren */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* WebKit/Chromium */
  line-clamp: 2;          /* Standard-Eigenschaft für Kompatibilität */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile p  { grid-column: 2; margin: 0; color: #222; line-height: 1.65; }

/* Hover/Fokus: Text & Piktogramm in Gold */
.tile:hover h3,
.tile:hover p,
.tile:hover svg,
.tile:focus-visible h3,
.tile:focus-visible p,
.tile:focus-visible svg { color: var(--accent); }

/* Fokus-State für Tastaturnutzer */
.tile:focus-visible {
  outline: 2px solid #0B0B0B; /* klare Kontrastkante für AA */
  outline-offset: 2px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06); /* neutraler grauer Schatten */
}

/* Wertexpertise-Kachel: sicheres Stacking ohne Watermark */
.tile-expertise .tile { position: relative; z-index: 1; }

/* Einheitliche Höhe: Team-Tiles wie die Service-Tiles (z. B. „Scheidung“) */
.team-with-expertise .tile-expertise .tile,
.team-with-expertise .tile-pricing .tile {
  min-height: 168px; /* leicht reduziert, damit nicht unter das Foto rutscht */
}

/* Team-Bereich: linke Spalte (Wrapper) mit 2 gleich hohen Tiles, rechtes Foto – Desktop */
@media (min-width: 981px) {
  .team-with-expertise .container {
    grid-template-rows: auto auto; /* obere Zeile Trustpills, darunter 2-Spalter */
    align-items: stretch;
  }

  /* Linke Spalte: Wrapper mit zwei Tiles untereinander (keine erzwungene Höhe) */
  .team-with-expertise .team-tiles {
    grid-column: 1 / 7;
    order: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  /* Rechte Spalte: Foto streckt sich über die gesamte Spaltenhöhe (falls nötig) */
  .team-with-expertise .team-photos {
    grid-column: 7 / -1;
    order: 2;
    align-self: stretch; /* Foto-Spalte auf gleiche Höhe wie Tiles strecken */
  }
  .team-with-expertise .photo { width: 100%; height: 100%; }
  .team-with-expertise .photo img {
    width: 100%;
    height: 100%;          /* volle Spaltenhöhe füllen */
    object-fit: cover;     /* sauberes Zuschneiden bei Abweichungen */
    margin-bottom: 0;      /* bündig mit den Kacheln abschließen */
    border-radius: 0;      /* Rundung kommt vom Wrapper */
    display: block;        /* keine Lücken unter Bildern */
  }
}

/* Team-Credentials (ruhige Textlinks – ältere Variante, derzeit ungenutzt) */
.team-with-expertise .team-credentials {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.team-with-expertise .team-credentials .credential-item {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  white-space: normal;
  color: var(--muted);
}
.team-with-expertise .team-credentials .credential-item:hover,
.team-with-expertise .team-credentials .credential-item:focus-visible {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  outline: none;
}
.team-with-expertise .team-credentials .trustdot { box-shadow: none; }

/* Neue Wrapper-Klasse: Hero-ähnliche Credentials unter Team-Bereich */
.team-with-expertise .team-hero-credentials {
  grid-column: 1 / -1;              /* volle Breite unter beiden Spalten */
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  order: 3;                         /* in der Grid-Reihenfolge NACH Tiles & Foto */
}
.team-hero-credentials .trustbar-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;                         /* wie im Hero */
  width: 100%;
}
.team-hero-credentials .credential-item {
  padding: 4px 8px;                 /* wie im Hero */
  border-radius: 8px;               /* wie im Hero */
  box-shadow: none;                 /* wie im Hero */
  line-height: 1.75;                /* gleiche optische Höhe wie erste Trustbar */
}
/* Trustpills im Teambereich geometrisch an die secondary trustbar anpassen */
.team-hero-credentials .trustitem {
  padding: 4px 8px;                 /* wie .credential-item */
  border-radius: 8px;               /* statt 999px (nicht rundlich) */
  box-shadow: none;                 /* wie .credential-item */
}

@media (max-width: 980px) {
  .team-hero-credentials .trustbar-secondary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-hero-credentials .trustbar-secondary { grid-template-columns: repeat(2, 1fr); }
}

form { max-width: none; width: 100%; }

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 12px;

  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  font-family: inherit; /* Fließtext-Font auch in Form-Controls (inkl. Select) */
}

/* Einheitlicher Feldhintergrund: Pflichtfelder grau, freiwillige Felder weiß */
/* Basis: alle Felder hellgrau */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  background-color: #ececec;
}
/* Freiwillig (ohne required) überschreiben wir auf Weiß */
input:not([type="checkbox"]):not([type="radio"]):not([required]),
select:not([required]),
textarea:not([required]) {
  background-color: #ffffff;
}

textarea { min-height: 140px; }

/* Placeholder-Styling: Source Sans 3 Italic in dezentem Grau */
input::placeholder,
textarea::placeholder {
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-style: italic;
  font-weight: 400;
  color: #6f6f6f; /* dezent, aber gut lesbar */
  opacity: 1;     /* Safari/Firefox: volle Deckkraft für definierte Farbe */
}
/* WebKit/Safari Fallback */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-style: italic;
  font-weight: 400;
  color: #6f6f6f;
  opacity: 1;
}
/* Firefox älter */
input::-moz-placeholder,
textarea::-moz-placeholder {
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-style: italic;
  font-weight: 400;
  color: #6f6f6f;
  opacity: 1;
}
/* IE/Edge Legacy */
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-style: italic;
  font-weight: 400;
  color: #6f6f6f;
}

/* Hover-Effekte für Eingabefelder (außer Checkboxen/Radios) */
input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
  border-color: rgba(31,94,67,.35); /* dezent grünlicher Rand */
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12); /* feiner goldener Schimmer */
}

/* Leichter Hover für Checkboxen – sanfter Outline, stört Fokus nicht */
input[type="checkbox"]:hover:not(:disabled):not(:focus-visible) {
  outline: 2px solid rgba(var(--accent-rgb), .35);
  outline-offset: 2px;
}

/* Custom Select: systemneutrale Darstellung mit eigenem Pfeil */
form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* eigener Pfeil, dezent in Muted-Grau */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b5b5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;

  /* Platz rechts für den Pfeil schaffen */
  padding-right: 40px;
}
/* IE/Edge Legacy: native Expand-Pfeil ausblenden */
form select::-ms-expand { display: none; }

.site-footer {
  margin-top: var(--space-6);

  background: #313934; /* mitteldunkles, entsättigtes Grün-Grau */
  color: rgba(245,242,236,.88);  /* warmes, helles Grau für Text */
  border-top: 1px solid rgba(255,255,255,.06); /* sehr feine obere Trennlinie */
}

.site-footer .container {
  padding: var(--space-4);
  font-size: .9rem;
}

.site-footer a {
  color: rgba(250,247,242,.92); /* links: hell & ruhig, kein hartes Weiß */
}

.site-footer a:hover {
  color: var(--accent);
}

/* Footer main: responsive grid (1 / 2 / 3 columns) */
.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: single column */
  gap: var(--space-4);          /* equal spacing between items */
  align-items: start;
}
@media (min-width: 641px) {
  .site-footer .footer-main {
    grid-template-columns: repeat(2, 1fr); /* tablet: two columns */
    gap: var(--space-4);
  }
}
@media (min-width: 981px) {
  .site-footer .footer-main {
    grid-template-columns: repeat(3, 1fr); /* desktop: three columns */
    gap: var(--space-5);
  }
}

/* Footer sections behave as clean columns */
.site-footer .footer-section { min-width: 0; }

/* Lists in footer: no bullets, clean spacing */
.site-footer .footer-nav ul,
.site-footer .footer-legal ul,
.site-footer .footer-services ul,
.site-footer .footer-company ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .footer-nav li + li,
.site-footer .footer-legal li + li,
.site-footer .footer-services li + li,
.site-footer .footer-company li + li {
  margin-top: var(--space-1);
}

/* Address: normal font style, tidy spacing */
.site-footer address {
  font-style: normal;
  margin: 0;
}
.site-footer address p {
  margin: 0 0 var(--space-1) 0;
}
.site-footer address p:last-child { margin-bottom: 0; }

/* Footer headings */
.site-footer .footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--space-2) 0;
  color: rgba(255,255,255,.94); /* Überschriften etwas heller als Fließtext */
}

/* Footer bottom: clearly separated bar */
.site-footer .footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,.12); /* dezent, nicht hart */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.site-footer .footer-bottom p { margin: 0; }
@media (max-width: 640px) {
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* Lightbox (PDF Overlay) */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; }
.lightbox.is-open { display: block; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.lightbox__dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(960px, 92vw); height: min(80vh, 820px);
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  overflow: hidden; /* keine Ränder, ruhiger Look */
}
.lightbox__close {
  position: absolute; top: 8px; right: 10px;
  background: #fff; color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 32px; height: 32px; line-height: 30px; text-align: center;
  cursor: pointer; font-weight: 700;
}
.lightbox__content { position: absolute; inset: 42px 0 34px 0; }
.lightbox__content iframe { width: 100%; height: 100%; border: 0; }
.lightbox__fallback { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; }

@media (min-width: 981px) {
  /* Fließtext in Hauptabschnitten nach dem Hero sowie im Abschlussbereich */
  .hero ~ .content p,
  .closing-block p { font-size: 1.12rem; }

  /* Buttons auf der Startseite (Hero + Abschlussbereich) */
  .hero .btn,
  .closing-block .btn { font-size: 1.30rem; }

  /* Trustpills und Credentials im Hero sowie Team-Duplikat */
  .hero .trustitem,
  .hero .credential-item,
  .team-hero-credentials .credential-item,
  .team-hero-credentials .trustitem,
  .team-with-expertise .trustbar .credential-item { font-size: 1.15rem; }
}

@media (max-width: 980px) {
  /* Erhöhte Größen auf Mobil/Tablet, moderater als Desktop */
  .hero ~ .content p,
  .closing-block p { font-size: 1.12rem; }

  .hero .btn,
  .closing-block .btn { font-size: 1.16rem; }

  .hero .trustitem,
  .hero .credential-item,
  .team-hero-credentials .credential-item,
  .team-hero-credentials .trustitem,
  .team-with-expertise .trustbar .credential-item { font-size: 1.06rem; }
}

.hero .trustbar-secondary { gap: 8px; }
.hero .credential-item {
  padding: 4px 8px;            /* weniger vertikal/horizontal */
  border-radius: 8px;           /* weniger pill-/buttonhaft */
  box-shadow: none;             /* Schatten entfernen */
}
/* Erste Trustbar: gleiche Geometrie wie Credential-Buttons */
.hero .trustitem {
  padding: 4px 8px;            /* wie .hero .credential-item */
  border-radius: 8px;          /* wie .hero .credential-item */
  box-shadow: none;            /* wie .hero .credential-item */
}

/* Startseite: Tiles – Fließtext an Grundgröße angleichen */
.hero ~ .tiles .tile p,
.hero ~ .team-with-expertise .tile p { font-size: 1.12rem; }

/* Desktop ab breitem Container: noch etwas größere Grundschrift */
@media (min-width: 1160px) {
  html { font-size: 19px; }
}

/* Very small devices: etwas kleiner, um Umbrüche zu vermeiden */
@media (max-width: 360px) {
  html { font-size: 17px; }
}

/* Slightly reduce contrast and adjust size on smaller screens */
@media (max-width: 768px) {
  .closing-block::after {
    background-size: 85% auto;
    opacity: 0.36;
  }
}


@media (max-width:980px){

.team-photos,
.tile-expertise {
  grid-column: span 12;
}

}

@media (max-width:640px){

.container {
  padding: 0 var(--space-3);
}

/* Stacked-Layout auf Mobil: Icon oben, dann Text */
.tile {
  grid-column: span 12;
  grid-template-columns: 1fr; /* Stack */
}
.tile img,
.tile svg {
  grid-column: auto;
  grid-row: auto;
  width: 56px;  /* mobil größer */
  height: 56px; /* mobil größer */
  margin: 0 0 var(--space-3) 0; /* Abstand unter dem Icon */
}
.tile h3, .tile p { grid-column: auto; }

.logo img {
  height:52px;
}

.brand-mark {
  height:78px; /* increased by ~40% on small screens */
}

.company-lines {
  min-height: 78px; /* keep bar height aligned with enlarged logo on small screens */
}

.hero-cta {
  flex-direction: column;
  align-items: stretch;
}
/* Siegel auf Mobil ans Ende, rechtsbündig innerhalb der Spalte */
/* Größenanpassungen auf Mobil */
.trust-seal img { width: 88px; }
/* Teamfoto auf Mobil verkleinern und zentrieren */
.team-with-expertise .photo { max-width: 86%; margin: 0 auto; }
/* Trustpills: auf kleinen Screens linksbündig, dürfen umbrechen */
.team-with-expertise .trustbar { justify-content: flex-start; gap: var(--space-3); }


/* Mobile: erlaubtes Umbrechen des Markennamens */
.company-banner strong { white-space: normal; letter-spacing: .05em; }

}

/* Aktiver Menüpunkt: dezente Hervorhebung für aria-current */
.main-nav a[aria-current="page"] {
  color: var(--brand);
  background: rgba(31,94,67,.06);
  border-color: rgba(31,94,67,.25);
}