/* Schrift lokal eingebunden – keine Verbindung zu Google */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-500.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-600.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-700.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/inter-800.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:900;font-display:swap;src:url('../fonts/inter-900.woff2') format('woff2');}

/* ============================================================================
   INGENIUM Bauen GmbH – Stylesheet
   Farben und Typografie 1:1 nach der bestehenden Website übernommen.
   ========================================================================== */

:root {
  /* Markenfarben (aus dem Original ausgelesen) */
  --primary:    #7A2626;   /* Bordeaux – Hauptfarbe */
  --primary-dk: #5E1D1D;   /* dunkles Bordeaux */
  --accent:     #A63A3A;   /* helleres Rot */
  --signal:     #D42027;   /* Signalrot (Logo-Schriftzug) */
  --secondary:  #2B2B2B;   /* fast Schwarz – dunkle Flächen */

  /* Text */
  --ink:        #1F2933;   /* Fließtext */
  --heading:    #111827;   /* Überschriften */
  --text:       #333333;
  --grey:       #6F6F6F;

  /* Flächen */
  --bg:         #EFEFEF;   /* Seitenhintergrund */
  --light:      #F5F5F5;   /* helle Schrift auf Dunkel */
  --white:      #FFFFFF;
  --border:     #DEDFE1;

  --wrap:       1400px;
  --radius:     20px;
  --radius-sm:  15px;
  --shadow:     0 4px 24px rgba(17, 24, 39, .08);
  --shadow-lg:  0 18px 48px rgba(17, 24, 39, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* Lange Wörter und Adressen brechen um, statt das Layout zu sprengen */
p, li, h1, h2, h3, h4, h5, td, a, .lead, .fliess, .rechtstext { overflow-wrap: break-word; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- Typografie */

h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--heading); }

.h-kicker {                      /* „LEISTUNGEN“, „UNSERE ARBEITSWEISE“ */
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
  margin-bottom: 10px;
}

.h-title {                       /* große Abschnittsüberschrift */
  font-size: 25px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.25;
  max-width: 22ch;
}
.h-title.wide { max-width: none; }

.lead { font-size: 15px; color: var(--grey); line-height: 1.7; max-width: 68ch; }

.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }

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

.btn-ghost    { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

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

.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--light); }

/* ---------------------------------------------------------------- Kopfbereich */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 26px 0 18px;
}
.site-header.solid {
  position: fixed;
  padding: 10px 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(17,24,39,.10);
  padding: 10px 0;
}
.hdr-inner { display: flex; align-items: center; gap: 32px; }

.logo { flex-shrink: 0; display: block; }
.logo img {
  height: 92px; width: auto; transition: height .2s ease;
  /* weicher Schein + Schlagschatten, damit das Logo auf jedem Motiv steht */
  filter: drop-shadow(0 0 1px rgba(255,255,255,.75))
          drop-shadow(0 0 5px rgba(255,255,255,.35))
          drop-shadow(0 3px 6px rgba(0,0,0,.75));
}
.site-header.solid .logo img { height: 62px; filter: none; }

.nav { display: flex; gap: 28px; margin-left: 92px; margin-right: auto; align-items: center; }
.nav a {
  font-size: 18px;
  font-weight: 700;
  color: var(--light);
  padding: 6px 0;
  position: relative;
  /* harter Schatten für die Kante, weicher Schein für den Abstand zum Bild */
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.55);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--signal); transition: right .25s ease;
}
.nav a:hover::after { right: 0; }
.site-header.solid .nav a { color: var(--primary); text-shadow: none; font-size: 16px; }

.hdr-icons { display: flex; gap: 10px; margin-left: 20px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.71);
  color: var(--white);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.85));
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.site-header.solid .icon-btn { border-color: var(--primary); color: var(--primary); filter: none; }
.site-header.solid .icon-btn:hover { background: var(--primary); color: var(--white); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--white); margin: 6px auto; width: 26px; transition: .25s; }
.site-header.solid .burger span { background: var(--primary); }

/* ---------------------------------------------------------------- Hero */

.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    /* dezent von oben – hält Logo und Navigation lesbar */
    linear-gradient(to bottom, rgba(18,13,13,.52) 0%, rgba(18,13,13,.18) 16%, rgba(18,13,13,0) 30%),
    /* Hauptverlauf von links – Textfläche */
    linear-gradient(95deg, rgba(18,13,13,.74) 0%, rgba(18,13,13,.46) 38%, rgba(18,13,13,.10) 66%, rgba(18,13,13,0) 88%);
}
.hero > .hero-inner { position: relative; z-index: 2; padding-block: 150px 90px; }
.hero h1 {
  overflow-wrap: break-word;
  hyphens: manual;              /* keine automatische Silbentrennung */
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 900;
  line-height: 1.6;
  color: var(--light);
  text-transform: uppercase;
  max-width: 740px;             /* erzeugt denselben Zeilenumbruch wie im Original */
  letter-spacing: -.01em;
}
.hero-text { margin-top: 26px; max-width: 62ch; color: rgba(255,255,255,.94); font-size: 15px; line-height: 1.7; }
.hero-text strong { font-weight: 800; color: var(--white); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

/* ---------------------------------------------------------------- Vorteile (weiße Karte) */

.usp-wrap { margin-top: 0; padding-top: 30px; position: relative; z-index: 5; }
.usp-card {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 46px 50px 50px;
}
.usp-card > h2 {
  font-size: 25px; font-weight: 600; color: var(--heading);
  text-align: center; margin-bottom: 26px; padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
/* Passt sich der Anzahl an: 3 Vorteile auf der Startseite, 4 auf den Leistungsseiten.
   auto-fit + minmax bricht von selbst um – ohne Inline-Styles, die Mobilregeln aushebeln. */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 30px; }
.usp {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 8px 6px; border-radius: var(--radius-sm);
  transition: transform .2s ease;
  min-width: 0;   /* verhindert, dass langer Text die Rasterzelle aufbläht */
}
.usp:hover { transform: translateY(-2px); }
.usp-ico { width: 52px; height: 52px; color: var(--secondary); flex-shrink: 0; }
.usp-ico svg { width: 100%; height: 100%; fill: currentColor; }
.usp h3 { grid-column: 2; font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; align-self: center; }
.usp p  { grid-column: 2; font-size: 15px; color: var(--grey); line-height: 1.6; }
.usp-ico { grid-row: span 2; }

/* ---------------------------------------------------------------- Leistungen */

.leistungen { background: var(--bg); position: relative; overflow: hidden; }
.leistungen::before, .leistungen::after {
  content: ""; position: absolute; top: 0; width: 46%; height: 100%;
  background: url('../img/builderon-img50.png') no-repeat;
  opacity: .30; pointer-events: none; z-index: 0;
}
.leistungen::before { left: 0;  background-position: left top;  transform: scaleX(-1); }
.leistungen::after  { right: 0; background-position: right top; }
.leistungen > .wrap { position: relative; z-index: 1; }

.leist-head { text-align: center; margin-bottom: 34px; }
.leist-head .h-kicker { text-align: center; }
.leist-head .h-title  { max-width: none; margin: 0 auto; }
.zack { display: block; margin: 12px auto 14px; width: 190px; height: 12px; color: var(--primary); }
.leist-sub { max-width: 92ch; margin: 0 auto; font-size: 15px; color: var(--grey); line-height: 1.7; }

.leist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.leist-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-sm);
  min-height: 250px;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.leist-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; transition: transform .5s ease;
}
.leist-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20,14,14,.88) 8%, rgba(20,14,14,.42) 52%, rgba(20,14,14,.12) 100%);
  transition: background .3s ease;
}
.leist-card:hover img { transform: scale(1.07); }
.leist-card:hover::after { background: linear-gradient(to top, rgba(122,38,38,.92) 8%, rgba(122,38,38,.5) 55%, rgba(20,14,14,.2) 100%); }
.leist-body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; min-height: 250px; }
.leist-body h4 { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.leist-body p  { font-size: 13.5px; color: rgba(255,255,255,.86); line-height: 1.55; }
.leist-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--white); }
.leist-more svg { width: 14px; height: 14px; fill: currentColor; transition: transform .25s ease; }
.leist-card:hover .leist-more svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- Arbeitsweise */

.arbeitsweise { background: var(--secondary); }
.arbeitsweise .h-kicker { color: var(--signal); }
.arbeitsweise .h-title  { color: var(--white); }
.arbeitsweise .lead     { color: rgba(255,255,255,.72); }
.arbeitsweise .schritt h4 { color: var(--white); text-align: center; font-size: 18px; }
.arbeitsweise .schritt p  { color: rgba(255,255,255,.72); text-align: center; }
.schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 44px; }
.schritt-bild { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.schritt-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.schritt:hover .schritt-bild img { transform: scale(1.05); }
.schritt-nr {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--light);
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.schritt h4 { font-size: 17px; font-weight: 700; color: var(--secondary); margin: 18px 0 8px; }
.schritt p  { font-size: 15px; color: var(--grey); line-height: 1.65; }

/* ---------------------------------------------------------------- Über uns */

.ueber { background: var(--bg); position: relative; overflow: hidden; }
.ueber::after {
  content: ""; position: absolute; right: 0; top: 0; width: 52%; height: 100%;
  background: url('../img/builderon-img50.png') no-repeat right top;
  opacity: .30; pointer-events: none; z-index: 0;
}
.ueber > .wrap { position: relative; z-index: 1; }
.ueber-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; align-items: center; }
.ueber-text p + p { margin-top: 16px; }
.ueber-punkte { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.punkt { background: var(--white); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow); }
.punkt h5 { font-size: 17px; font-weight: 700; text-transform: uppercase; color: var(--secondary); letter-spacing: .01em; }
.punkt p  { font-size: 14px; color: var(--grey); margin-top: 6px; line-height: 1.55; }
.ueber-bild { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.ueber-bild img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- Zitat des Geschäftsführers */

/* Schwarzer Hintergrund wie im Original; die helle Schrift braucht ihn zwingend. */
.zitat { background: #000; color: var(--light); }
.zitat-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 50px; align-items: center; }
.zitat-bild { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.zitat-bild img { width: 100%; height: 100%; object-fit: cover; }
.zitat-zeichen { width: 34px; height: 34px; fill: var(--signal); display: block; margin-bottom: 20px; }
.zitat-satz { font-size: clamp(25px, 3.2vw, 42px); font-weight: 700; text-transform: uppercase; line-height: 1.3; color: var(--light); overflow-wrap: break-word; }
.zitat-name { margin-top: 20px; font-size: 19px; font-weight: 700; color: var(--signal); }
.zitat-rolle { color: rgba(255,255,255,.6); font-weight: 400; }
.zitat-text { margin-top: 24px; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.8; max-width: 70ch; overflow-wrap: break-word; }

/* ---------------------------------------------------------------- Zertifizierung / Zahlen */

.zert { background: var(--bg); color: var(--ink); }
.zert .h-kicker { color: var(--primary); }
.zert .h-title  { color: var(--heading); }
.zert-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 46px; margin: 36px 0 50px; }
.zert-logos img { height: 68px; width: auto; object-fit: contain; }

.zahlen {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-bottom: 46px; background: var(--light); border-radius: 24px; padding: 36px 20px;
  background-image: radial-gradient(circle, #D9DDE3 1.1px, transparent 1.1px);
  background-size: 13px 13px;
}
.zahl { text-align: center; padding: 10px 22px; position: relative; }
.zahl + .zahl::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: #DDE1E7; }
.zahlen-4 { grid-template-columns: repeat(4, 1fr); }
.zahl-hell .zahl-v { color: var(--primary); }
.zahl-hell .zahl-l { color: var(--grey); }
.zahl-ico { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--primary); }
.zahl-ico svg { width: 100%; height: 100%; fill: currentColor; }
.zahl-v { font-size: 30px; font-weight: 700; color: var(--secondary); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.zahl-l { font-size: 14px; color: var(--grey); margin-top: 4px; }

.zert-sub { text-align: center; font-size: 17px; font-weight: 700; color: var(--secondary); margin: 6px 0 18px; }
.quali-intro { max-width: 82ch; margin: 0 auto 12px; text-align: center; color: var(--grey); font-size: 15px; line-height: 1.75; }
.quali-intro + .quali-intro { margin-bottom: 40px; }
.quali-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.quali {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.quali:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.quali h5 { font-size: 17px; font-weight: 700; color: var(--secondary); text-transform: uppercase; margin-bottom: 10px; letter-spacing: .01em; }
.quali p  { font-size: 15px; color: var(--ink); line-height: 1.6; }
.quali p + p { margin-top: 8px; }
.quali-dl { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--primary); }
.quali-dl svg { width: 15px; height: 15px; fill: currentColor; }
.quali-dl:hover { color: var(--signal); }

/* ---------------------------------------------------------------- Kontakt */

.kontakt { background: var(--white); position: relative; overflow: hidden; }
.kontakt::before {
  content: ""; position: absolute; left: 0; top: 0; width: 48%; height: 100%;
  background: url('../img/builderon-img50.png') no-repeat left top;
  opacity: .40; pointer-events: none; z-index: 0;
}
.kontakt > .wrap { position: relative; z-index: 1; }
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
.kontakt-info p + p { margin-top: 14px; }
.k-daten { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.k-zeile { display: flex; gap: 14px; align-items: flex-start; }
.k-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--bg); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.k-ico svg { width: 18px; height: 18px; fill: currentColor; }
.k-zeile h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); font-weight: 700; }
.k-zeile a, .k-zeile span { font-size: 15px; color: var(--ink); font-weight: 600; }
.k-zeile a:hover { color: var(--primary); }

.form-card { background: var(--bg); border-radius: 24px; padding: 34px 36px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 20px; font-weight: 700; color: var(--heading); margin-bottom: 20px; }
.feld { margin-bottom: 16px; }
.feld label { display: block; font-size: 13.5px; font-weight: 600; color: var(--secondary); margin-bottom: 6px; }
.feld input, .feld textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.feld input:focus, .feld textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(122,38,38,.12);
}
.feld textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-hinweis { font-size: 12.5px; color: var(--grey); line-height: 1.55; margin: 4px 0 16px; }
.form-hinweis a { color: var(--primary); text-decoration: underline; }
.form-msg { margin-top: 14px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; display: none; }
.form-msg.ok   { display: block; background: #E6F4EC; color: #12653F; }
.form-msg.err  { display: block; background: #FBE9E7; color: #A32B22; }

/* ---------------------------------------------------------------- Fußbereich */

.site-footer { background: var(--secondary); color: rgba(255,255,255,.76); padding: 66px 0 0; position: relative; overflow: hidden; }
.site-footer::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 46%; height: 78%;
  background: url('../img/builderon-img50.png') no-repeat right bottom;
  opacity: .16; pointer-events: none; z-index: 0;
}
.site-footer > .wrap { position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.25fr 1.1fr .9fr 1.1fr; gap: 40px; padding-bottom: 46px; }

.foot-kontakt { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.foot-kontakt li { display: flex; gap: 12px; align-items: flex-start; }
.foot-kontakt svg { width: 17px; height: 17px; fill: rgba(255,255,255,.55); flex-shrink: 0; margin-top: 4px; }

.foot-links { list-style: none; }
.foot-links li { border-bottom: 1px solid rgba(255,255,255,.11); }
.foot-links li:last-child { border-bottom: 0; }
.foot-links a { display: block; padding: 11px 0; }

.foot-galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.foot-galerie a { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255,255,255,.06); }
.foot-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s ease; opacity: .88; }
.foot-galerie a:hover img { transform: scale(1.09); opacity: 1; }
.site-footer h5 { font-size: 14px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 18px; }
.foot-logo img { height: 58px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.site-footer p, .site-footer li, .site-footer a { font-size: 14px; line-height: 1.75; }
.site-footer ul { list-style: none; }
.site-footer a:hover { color: var(--white); }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  display: grid; place-items: center; color: rgba(255,255,255,.8);
}
.foot-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.foot-social svg { width: 16px; height: 16px; fill: currentColor; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.13);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  font-size: 13.5px;
}
.foot-bottom nav { display: flex; gap: 22px; }

/* ---------------------------------------------------------------- Unterseiten */

.page-hero { position: relative; min-height: 46vh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .hero-media::after {
  background:
    linear-gradient(to bottom, rgba(18,13,13,.5) 0%, rgba(18,13,13,0) 26%),
    linear-gradient(to top, rgba(20,14,14,.9) 0%, rgba(20,14,14,.55) 55%, rgba(20,14,14,.3) 100%);
}
.page-hero > .page-hero-inner { position: relative; z-index: 2; padding-block: 150px 52px; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 900; color: var(--light); text-transform: uppercase; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.krumen { display: flex; flex-wrap: wrap; gap: 4px 9px; font-size: 13.5px; color: rgba(255,255,255,.72); margin-bottom: 14px; }
.krumen a:hover { color: #fff; }

.inhalt { background: var(--white); }
.inhalt-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.fliess h2 { font-size: 25px; font-weight: 600; color: var(--heading); margin: 34px 0 14px; }
.fliess h2:first-child { margin-top: 0; }
.fliess p  { font-size: 15px; color: var(--grey); line-height: 1.75; }
.fliess p + p { margin-top: 14px; }
.fliess ul { margin: 16px 0 0 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fliess li { display: flex; gap: 12px; font-size: 15px; color: var(--grey); line-height: 1.6; }
.fliess li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 8px; }

.side-card { background: var(--bg); border-radius: 22px; padding: 28px 30px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.side-card h4 { font-size: 18px; font-weight: 700; color: var(--heading); margin-bottom: 10px; }
.side-card p  { font-size: 14.5px; color: var(--grey); line-height: 1.65; margin-bottom: 18px; }
.side-bild { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 20px; }
.side-bild img { width: 100%; height: 100%; object-fit: cover; }

.rechtstext { background: var(--white); }
.rechtstext .wrap { max-width: 900px; }
.rechtstext h1 { font-size: 32px; font-weight: 800; color: var(--heading); margin-bottom: 26px; }
.rechtstext h2 { font-size: 20px; font-weight: 700; color: var(--heading); margin: 30px 0 10px; }
.rechtstext h3 { font-size: 16px; font-weight: 700; color: var(--secondary); margin: 20px 0 8px; }
.rechtstext p, .rechtstext li { font-size: 15px; color: var(--grey); line-height: 1.8; }
.rechtstext p + p { margin-top: 12px; }
.rechtstext ul { margin: 12px 0 12px 22px; }
.rechtstext a { color: var(--primary); text-decoration: underline; }

/* ---------------------------------------------------------------- Animation */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Mobil */

/* Zwischengröße: Tablet quer – Kopfzeile war zu breit für Logo + Menü + Symbole */
@media (max-width: 1150px) and (min-width: 861px) {
  .logo img { height: 68px; }
  .site-header.solid .logo img { height: 54px; }
  .nav { margin-left: 28px; gap: 20px; }
  .nav a { font-size: 16px; }
  .hdr-icons { gap: 8px; margin-left: 14px; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 15px; height: 15px; }
}

@media (max-width: 1100px) {
  .zahlen-4     { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .zahlen-4 .zahl:nth-child(3)::before { display: none; }
  .leist-grid   { grid-template-columns: repeat(2, 1fr); }
  .ueber-grid   { grid-template-columns: 1fr; gap: 40px; }
  .ueber-bild   { aspect-ratio: 16 / 10; }
  .zitat-grid   { grid-template-columns: 1fr; gap: 32px; }
  .zitat-bild   { max-width: 320px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .inhalt-grid  { grid-template-columns: 1fr; gap: 36px; }
  .side-card    { position: static; }
  .foot-grid    { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--white); flex-direction: column; gap: 4px;
    padding: 96px 26px 26px; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: -10px 0 40px rgba(0,0,0,.2); z-index: 70;
  }
  .nav.open { transform: none; }
  .nav a { color: var(--primary); text-shadow: none; font-size: 17px; padding: 13px 0; border-bottom: 1px solid var(--border); }
  .burger { display: block; margin-left: auto; z-index: 80; }
  .hdr-icons { display: none; }
  .section { padding: 62px 0; }
  .usp-grid, .schritte, .zahlen, .zahlen-4 { grid-template-columns: 1fr; gap: 22px; }
  .zahl + .zahl::before { display: none; }
  .zahl + .zahl { border-top: 1px solid #DDE1E7; padding-top: 22px; }
  .usp-wrap { margin-top: 0; padding-top: 24px; }
  .usp-card { padding: 30px 24px 34px; border-radius: 22px; }
  .ueber-punkte { grid-template-columns: 1fr; }

  /* Kopfbereich: Logo kleiner, damit es neben dem Menüknopf Platz hat */
  .logo img { height: 54px; }
  .site-header.solid .logo img { height: 46px; }

  /* Hero: Inhalt oben ausrichten, sonst schiebt er sich unter das Logo */
  .hero { min-height: auto; align-items: flex-start; }
  .hero > .hero-inner { padding-block: 118px 64px; }
  .hero h1 { max-width: none; line-height: 1.28; font-size: clamp(23px, 6.4vw, 32px); letter-spacing: -.02em; }
  .hero-text { margin-top: 20px; }
  .hero-cta { margin-top: 28px; }
  .page-hero { min-height: auto; }
  .page-hero > .page-hero-inner { padding-block: 112px 42px; }
  .form-card { padding: 26px 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer a { display: inline-block; padding: 5px 0; }

  /* Größere Tippflächen für die wichtigen Links */
  .k-zeile a { display: inline-block; padding: 7px 0; }
  .rechtstext a, .side-card a[href^="tel"] { display: inline-block; padding: 5px 0; }
  .quali-dl  { padding: 8px 0; }
  .form-hinweis a { position: relative; }
  .form-hinweis a::after { content: ""; position: absolute; inset: -10px -6px; }
  .krumen a  { padding: 4px 0; }
  .foot-kontakt li { padding: 2px 0; }
  .foot-bottom { gap: 10px; }
  .foot-bottom nav { gap: 18px; }
  .foot-bottom a { padding: 6px 0; }
  .zert-logos { gap: 24px; }
  .zert-logos img { height: 54px; }
}

@media (max-width: 560px) {
  .leist-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .wrap { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
