@font-face{font-family:'Oswald';font-style:normal;font-weight:400;font-display:swap;src:url('./assets/fonts/Oswald-400.woff2') format('woff2');}
@font-face{font-family:'Oswald';font-style:normal;font-weight:500;font-display:swap;src:url('./assets/fonts/Oswald-500.woff2') format('woff2');}
@font-face{font-family:'Oswald';font-style:normal;font-weight:600;font-display:swap;src:url('./assets/fonts/Oswald-600.woff2') format('woff2');}
@font-face{font-family:'Oswald';font-style:normal;font-weight:700;font-display:swap;src:url('./assets/fonts/Oswald-700.woff2') format('woff2');}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:url('./assets/fonts/OpenSans-400.woff2') format('woff2');}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:url('./assets/fonts/OpenSans-600.woff2') format('woff2');}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:url('./assets/fonts/OpenSans-700.woff2') format('woff2');}/* ============================================================
   Appiarius Hausverwaltung , Premium Landingpage
   Design-System: cinematisch, Navy und Gold
   ============================================================ */

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --paper: #ffffff;
  --sand: #f5f7fa;
  --line: rgba(15, 23, 42, 0.12);
  --muted: #64748b;
  --brick: #c9a84c;
  --brick-deep: #a8893a;
  --timber: #c9a84c;
  --green: #1e3a34;
  --white: #ffffff;

  --serif: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --shell: min(1200px, calc(100vw - 48px));
  --r: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Spacing/Typo-Tokens (QA-Durchlauf 19.06.) */
  --measure: 68ch;          /* lesbare Zeilenlänge Fließtext */
  --section-y: clamp(80px, 12vh, 150px); /* einheitlicher vertikaler Rhythmus */
  --hero-sub-h: 56svh;      /* einheitliche Hero-Höhe Unterseiten */
  --shadow-card: 0 24px 50px rgba(20,18,16,0.12);
  --shadow-media: 0 30px 60px rgba(20,18,16,0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.72;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: 0.005em; }
p { margin: 0; }

.shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
}
.eyebrow-light { color: var(--timber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--brick); color: #fff; box-shadow: 0 12px 30px rgba(201, 168, 76, 0.28); }
.btn-primary:hover { background: var(--brick-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn-block { width: 100%; margin-top: 8px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brick), var(--timber));
  z-index: 120;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { position: relative; display: inline-block; line-height: 0; }
.nav-logo img { height: 58px; width: auto; display: block; transition: opacity 0.35s var(--ease); }
.nav-logo .logo-l { position: absolute; top: 0; left: 0; opacity: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.92); transition: color 0.3s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 10px 20px; border-radius: 999px; background: var(--brick); color: #fff !important;
  font-weight: 600; transition: background 0.3s, transform 0.3s;
}
.nav-cta:hover { background: var(--brick-deep); transform: translateY(-1px); }
.nav-burger { display: none; }

.nav.is-solid {
  background: #ffffff;
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(20,18,16,0.08);
}
.nav.is-solid .nav-logo .logo-d { opacity: 0; }
.nav.is-solid .nav-logo .logo-l { opacity: 1; }
.nav.is-solid .nav-links a { color: var(--ink); }
.nav.is-solid .nav-cta { color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(80px, 8vh, 104px);
  padding-bottom: 4.5vh;
  overflow: hidden;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img, .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 120%;
  object-fit: cover;
  will-change: transform;
}
.hero-video { opacity: 0; transition: opacity 0.8s var(--ease); z-index: 1; }
.hero-video.is-ready { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(15,12,9,0.5) 0%, rgba(15,12,9,0) 26%),
    linear-gradient(0deg, rgba(15,12,9,0.92) 2%, rgba(15,12,9,0.42) 42%, rgba(15,12,9,0.1) 72%),
    linear-gradient(90deg, rgba(15,12,9,0.62) 0%, rgba(15,12,9,0) 60%);
}
.hero-content { position: relative; z-index: 3; max-width: 880px; }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 1.0;
  margin: 12px 0 6px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 34px rgba(15, 12, 9, 0.55);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line-in { display: block; }
.hero-title .line-gold { color: #c9a84c; }
.hero-lead {
  max-width: 620px; margin-top: 16px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; }
.hero-pills li {
  position: relative; padding-left: 20px;
  font-size: 14px; color: rgba(255,255,255,0.82);
}
.hero-pills li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brick); }
.hero-scrollcue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.55); border-radius: 14px;
}
.hero-scrollcue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ---------- Manifest ---------- */
.manifest { background: var(--ink); color: var(--paper); padding: clamp(90px, 16vh, 180px) 0; }
.manifest-text {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.4vw, 3.4rem);
  line-height: 1.18; font-weight: 400; letter-spacing: -0.01em;
  max-width: 16ch + 40ch;
}
.manifest-text .word { display: inline-block; opacity: 0.16; transition: opacity 0.2s; }
.manifest-text .word.lit { opacity: 1; }
.manifest-meta { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 46px; color: rgba(255, 255, 255,0.5); font-size: 14px; letter-spacing: 0.04em; }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; margin-top: 14px; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }

/* ---------- Services ---------- */
.services { padding: var(--section-y) 0; background: var(--paper); }
.svc {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px);
  align-items: center; padding: 48px 0; border-top: 1px solid var(--line);
}
.svc:nth-child(odd) .svc-media { order: 0; }
.svc:nth-child(even) .svc-media { order: 1; }
.svc-media {
  position: relative; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--sand);
  box-shadow: var(--shadow-media);
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.svc-index {
  position: absolute; left: 18px; bottom: 14px; z-index: 2;
  font-family: var(--serif); font-size: 2.4rem; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.svc-body h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.svc-body > p { margin-top: 16px; color: var(--muted); }
.svc-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.svc-points li { position: relative; padding-left: 28px; }
.svc-points li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 2px; background: var(--brick);
}

/* ---------- Trust ---------- */
.trust { padding: var(--section-y) 0; background: var(--sand); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-card {
  background: var(--paper); border-radius: var(--r); padding: 30px 26px 34px;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.trust-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20,18,16,0.12); }
.trust-no { font-family: var(--serif); font-size: 1.4rem; color: var(--brick); }
.trust-card h3 { font-size: 1.3rem; margin-top: 14px; }
.trust-card p { margin-top: 12px; color: var(--muted); font-size: 0.98rem; }

/* ---------- Process ---------- */
.process { padding: var(--section-y) 0; background: var(--ink); color: var(--paper); }
.process .eyebrow { color: var(--timber); }
.process .section-title { color: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 10px 0 64px; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--timber); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: rgba(255, 255, 255,0.62); font-size: 0.96rem; max-width: 30ch; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { border-top: 2px solid rgba(255, 255, 255,0.18); padding-top: 22px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--brick); color: #fff;
  font-family: var(--serif); font-size: 1.2rem;
}
.step h3 { margin-top: 18px; font-size: 1.25rem; color: var(--paper); }
.step p { margin-top: 10px; color: rgba(255, 255, 255,0.6); font-size: 0.96rem; }

/* ---------- Region ---------- */
.region { padding: var(--section-y) 0; background: var(--paper); }
.region-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.region-text p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.region-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.region-chips li {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--sand); font-size: 14px; font-weight: 500;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.region-chips li:hover { background: var(--brick); color: #fff; transform: translateY(-2px); }

/* ---------- Brands ---------- */
.brands { padding: var(--section-y) 0; background: var(--sand); }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand-card {
  background: var(--paper); border-radius: var(--r); padding: 38px 34px;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20,18,16,0.12); }
.brand-card h3 { font-size: 1.7rem; margin-top: 12px; }
.brand-card p { margin-top: 14px; color: var(--muted); }
.brand-go { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--brick); }
.brand-go::after { content: " ->"; }

/* ---------- Referenzen (echte Originalfotos) ---------- */
.refs { padding: var(--section-y) 0; background: var(--paper); }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ref { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); box-shadow: 0 14px 34px rgba(20,18,16,0.1); }
.ref img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ref:hover img { transform: scale(1.05); }
.ref figcaption { position: absolute; inset: auto 0 0 0; padding: 44px 20px 18px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(0deg, rgba(15,12,9,0.85), rgba(15,12,9,0) 100%); color: #fff; }
.ref figcaption span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--timber); }
.ref figcaption strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }

/* ---------- CTA ---------- */
.cta { position: relative; isolation: isolate; padding: clamp(100px, 16vh, 190px) 0; color: #fff; overflow: hidden; }
.cta-media { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 120% at 80% 10%, rgba(178,36,9,0.35), transparent 55%),
              radial-gradient(120% 120% at 10% 90%, rgba(201,138,60,0.25), transparent 55%);
}
.cta-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.cta-title { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-top: 14px; }
.cta-text p { margin-top: 18px; color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 46ch; }
.cta-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r); padding: 30px; backdrop-filter: blur(8px); }
.cta-line { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.cta-line span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.cta-line strong { font-size: 1.15rem; font-weight: 600; }
a.cta-line:hover strong { color: var(--timber); }

/* ---------- Footer ---------- */
.foot { background: #100e0c; color: rgba(255, 255, 255,0.7); padding: 70px 0 34px; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 50px; }
.foot-brand img { height: 48px; width: auto; }
.foot-brand p { margin-top: 18px; font-size: 0.95rem; max-width: 40ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.foot-cols h4 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot-cols a, .foot-cols span { display: block; font-size: 0.95rem; padding: 5px 0; color: rgba(255, 255, 255,0.66); transition: color 0.3s; }
.foot-cols a:hover { color: var(--timber); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255, 255, 255,0.45); }

/* ---------- Reveal base ---------- */
[data-reveal], [data-svc] .svc-body, [data-hero-line] .inner { will-change: transform, opacity; }

/* ============================================================
   Responsive
   ============================================================ */
/* Mobile + Tablet-Nav: Burger bis 1024px (horizontale Nav passt erst ab ~1060px) */
@media (max-width: 1024px) {
  .nav-inner { position: relative; z-index: 60; }
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 0; left: 0; right: 0; z-index: 55;
    padding: 88px 22px 28px;
    background: rgba(255,255,255,0.985); backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px rgba(20,18,16,0.18);
    transform: translateY(-105%); opacity: 0; pointer-events: none;
    transition: transform 0.42s var(--ease), opacity 0.42s var(--ease);
  }
  .nav.nav-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { color: var(--ink); font-size: 1.08rem; padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a.nav-cta { margin-top: 18px; background: var(--brick); color: #fff !important; border-radius: 999px; text-align: center; border: 0; padding: 14px 20px; }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav-burger span { width: 26px; height: 2px; background: #fff; display: block; transition: background 0.3s, transform 0.3s; }
  .nav.is-solid .nav-burger span, .nav.nav-open .nav-burger span { background: var(--ink); }
  .nav.nav-open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.nav-open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .region-inner, .cta-inner, .foot-inner { grid-template-columns: 1fr; }
  .foot-inner { gap: 36px; }
  .legal-bar-actions{gap:12px;}
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 12vh; }
  .svc { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; }
  .svc:nth-child(even) .svc-media { order: 0; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat { display: flex; align-items: baseline; gap: 18px; }
  .stat strong { font-size: 3rem; }
  .stat span { margin-top: 0; }
  .brand-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .legal-bar-inner{gap:16px;}
  .legal-bar-actions{flex-wrap:wrap;justify-content:flex-end;}
}

@media (max-width: 480px) {
  .trust-grid, .steps, .foot-cols { grid-template-columns: 1fr; }
  .hero-pills { gap: 8px 16px; }
}

/* ---------- Accessibility: Skip-Link + Fokus-States (WCAG 2.4.7 / BFSG) ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brick); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-weight: 600; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--timber); outline-offset: 3px; border-radius: 4px;
}
.hero a:focus-visible, .nav a:focus-visible, .process a:focus-visible, .cta a:focus-visible, .foot a:focus-visible {
  outline-color: #fff; box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.45);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero-media img, .hero-video { height: 100%; }
}

/* ---------- Legal-Seiten + Footer-Links ---------- */
.legal-bar{position:sticky;top:0;z-index:50;padding:14px 0;border-bottom:1px solid var(--line);background:rgba(255, 255, 255,0.95);backdrop-filter:blur(10px);}
.legal-bar-inner{display:flex;align-items:center;justify-content:space-between;}
.legal-bar .nav-logo img{height:50px;width:auto;}
.legal-bar .nav-logo .logo-d{opacity:0;}
.legal-bar .nav-logo .logo-l{opacity:1;}
.legal-bar-actions{display:flex;align-items:center;gap:18px;}
.legal-nav-link{font-weight:700;color:var(--ink);}
.legal-back{padding:10px 20px;background:var(--ink);color:#fff;border-color:var(--ink);}
.legal-back:hover{background:var(--ink-2);transform:translateY(-2px);}
.legal{padding:clamp(48px,8vh,90px) 0 100px;background:var(--paper);}
.legal-shell{width:min(820px,calc(100vw - 40px));margin-inline:auto;}
.legal h1{font-size:clamp(2.2rem,5vw,3.2rem);margin:12px 0 26px;}
.legal h2{font-size:1.3rem;margin:34px 0 10px;}
.legal p{color:var(--muted);margin-bottom:12px;line-height:1.7;}
.legal a:not(.btn){color:var(--brick);text-decoration:underline;text-underline-offset:2px;}
.legal-foot-links{margin-top:44px;padding-top:22px;border-top:1px solid var(--line);font-weight:600;}
.legal-foot-links a{color:var(--ink);text-decoration:none;}
.legal-stand{font-size:0.9rem;}
.foot-links{display:inline-flex;gap:18px;}
.foot-links a{color:rgba(255, 255, 255,0.7);transition:color .3s;}
.foot-links a:hover{color:var(--timber);}

/* ---------- Local-SEO Landingpages ---------- */
.lp-lead{font-size:1.15rem;color:var(--muted);margin:8px 0 4px;line-height:1.7;}
.lp-list{margin:8px 0;padding-left:22px;color:var(--muted);}
.lp-list li{margin-bottom:6px;}
.legal .lp-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px;}
.legal .lp-links a{display:inline-block;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:var(--sand);color:var(--ink);text-decoration:none;font-size:14px;transition:background .3s,color .3s;}
.legal .lp-links a:hover{background:var(--brick);color:#fff;}
.lp-cta{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0;}

/* Fix: Buttons innerhalb .legal/LP nicht von .legal a einfärben lassen */
.legal a.btn,
.legal a.btn:visited{ text-decoration:none!important; }
.legal a.btn-primary,
.legal a.btn-primary:visited{ color:#fff!important; text-decoration:none!important; }
.legal a.btn-ghost,
.legal a.btn-ghost:visited,
.legal a.legal-back,
.legal a.legal-back:visited{ color:#fff!important; text-decoration:none!important; }
.legal a.btn:hover,
.legal a.btn-primary:hover,
.legal a.btn-ghost:hover,
.legal a.legal-back:hover{ text-decoration:none!important; }

/* ---------- Premium-Unterseiten ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  font-weight: 700;
  color: var(--brick);
}
.text-link::after { content: " ->"; margin-left: 6px; }

.page-hero {
  position: relative;
  isolation: isolate; /* eigener Stacking-Context, damit hero-media (z-index:-1) ueber dem Body-Paper liegt, nicht dahinter */
  min-height: var(--hero-sub-h);
  display: flex;
  align-items: flex-end;
  padding: 130px 0 clamp(64px, 10vh, 110px);
  overflow: hidden;
  color: #fff;
}
.page-hero .hero-media img { height: 112%; }
.page-hero .hero-content { max-width: 900px; }
.page-kicker { max-width: 760px; margin-top: 22px; color: rgba(255,255,255,0.88); font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.content-section { padding: var(--section-y) 0; background: var(--paper); }
.content-section.alt { background: var(--sand); }
.content-section.dark { background: var(--ink); color: var(--paper); }
.content-section.dark .eyebrow { color: var(--timber); }
.content-section.dark p, .content-section.dark li { color: rgba(255, 255, 255,0.72); }
.content-section.dark .section-sub { color: rgba(255, 255, 255,0.68); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr); gap: clamp(32px, 6vw, 86px); align-items: start; }
.content-main { max-width: 760px; }
.content-main h2, .content-aside h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin: 10px 0 18px; }
.content-main h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 34px 0 12px; }
.content-main p, .content-main li, .content-aside p, .content-aside li { color: var(--muted); }
.content-main p, .content-main li, .article-body p, .article-body li { max-width: var(--measure); }
.content-main p + p { margin-top: 1.4em; }
.content-main ul, .content-main ol, .content-aside ul { margin: 18px 0 0; padding-left: 22px; }
.content-main li + li, .content-aside li + li { margin-top: 10px; }
.lead-block { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.24; color: var(--ink); }
.note-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  background: var(--sand);
}
.content-section.alt .note-card { background: var(--paper); }
.note-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.note-card p, .note-card li { color: var(--muted); font-size: 0.98rem; }
.fact-list { list-style: none; padding: 0 !important; margin-top: 22px !important; display: grid; gap: 12px; }
.fact-list li { padding: 14px 16px; border-left: 3px solid var(--brick); background: #fff; }
.dark .fact-list li { background: rgba(255,255,255,0.06); border-left-color: var(--timber); }

.split-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
}
.info-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.info-card p { color: var(--muted); }
.info-card ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brick); background: var(--sand); }
.compare-table td { color: var(--muted); }
.compare-table tr:last-child td { border-bottom: 0; }

.faq-list { display: grid; gap: 12px; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  padding: 18px 20px;
}
.faq-list summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq-list p { margin-top: 12px; color: var(--muted); }

.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.teaser-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.teaser-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(20,18,16,0.12); }
.teaser-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.teaser-card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.teaser-card h3 { font-size: 1.55rem; margin: 8px 0 12px; }
.teaser-card p { color: var(--muted); }
.teaser-card .text-link { margin-top: auto; padding-top: 22px; }

.reference-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reference-page-grid .ref { aspect-ratio: 4 / 3; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 78px); align-items: start; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(201,138,60,0.28); border-color: var(--timber); }
.form-note { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 980px) {
  .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-cards, .teaser-grid, .reference-page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .page-hero { min-height: 54svh; padding-top: 112px; }
  .split-cards, .teaser-grid, .reference-page-grid { grid-template-columns: 1fr; }
  .content-main, .content-aside { max-width: none; }
  .note-card, .info-card { padding: 24px; }
}

/* ---------- Ratgeber ---------- */
.ratgeber-hero { min-height: var(--hero-sub-h); }
.ratgeber-card-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.ratgeber-card-grid .info-card { display: flex; flex-direction: column; }
.ratgeber-card-grid .text-link { margin-top: auto; padding-top: 18px; }
.article-layout { grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.7fr); }
.article-body { max-width: 800px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.article-meta a { color: var(--brick); }
.article-meta span::before { content: "/"; margin-right: 14px; color: rgba(20,18,16,0.26); }
.article-section { margin-top: 42px; padding-top: 34px; border-top: 1px solid var(--line); }
.article-section:first-of-type { margin-top: 34px; }
.article-section h2 { margin-top: 0; }
.article-aside { position: sticky; top: 96px; }
.article-aside h3 { margin-top: 26px; }
.article-aside h3:first-child { margin-top: 0; }
.note-card a { color: var(--brick); font-weight: 700; }

@media (max-width: 980px) {
  .ratgeber-card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

@media (max-width: 760px) {
  .ratgeber-card-grid { grid-template-columns: 1fr; }
}

/* ---------- Premium Local-SEO Seiten ---------- */
.lp-page {
  background: var(--paper);
}

.lp-hero {
  min-height: var(--hero-sub-h);
  padding: 118px 0 clamp(52px, 8vh, 86px);
}

.lp-hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
}

.lp-hero-media picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
}

.lp-hero-title {
  max-width: 950px;
  font-size: clamp(2.55rem, 6.6vw, 5.7rem);
  font-weight: 700;
  line-height: 0.98;
  margin-bottom: 0;
}

.lp-hero-lead {
  max-width: 780px;
}

.lp-detail-section .lead-block {
  margin-bottom: 30px;
}

.lp-checklist {
  margin-top: 20px;
}

.lp-checklist li {
  color: var(--ink);
  font-weight: 500;
}

.lp-side-card {
  position: sticky;
  top: 104px;
}

.lp-context-grid .info-card,
.lp-link-grid .info-card {
  min-height: 100%;
}

.lp-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lp-link-grid h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  margin: 10px 0 18px;
}

.lp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.lp-links a:hover {
  background: var(--brick);
  border-color: var(--brick);
  color: #fff;
  transform: translateY(-2px);
}

.lp-service-grid {
  align-items: stretch;
}

.lp-service-card picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.lp-service-card picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.lp-service-card:hover picture img {
  transform: scale(1.05);
}

.lp-service-card .teaser-card-body {
  color: var(--ink);
}

.lp-service-card .text-link {
  margin-top: auto;
  padding-top: 22px;
}

.lp-town-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lp-town-grid a {
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
}

.lp-cta-premium {
  margin-top: 0;
}

.lp-cta-premium .cta-card {
  align-self: stretch;
}

@media (max-width: 980px) {
  .lp-side-card {
    position: static;
  }

  .lp-link-grid {
    grid-template-columns: 1fr;
  }

  .lp-town-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .lp-hero {
    min-height: 48svh;
    padding: 106px 0 54px;
  }

  .lp-hero-title {
    font-size: clamp(2.25rem, 13vw, 3.7rem);
  }

  .lp-hero-lead {
    font-size: 1.02rem;
  }

  .lp-town-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .lp-links,
  .lp-town-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lp-links a {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Startseite: Conversion-Feinschliff ---------- */
.cta-expectation {
  margin-top: 12px;
  color: rgba(255,255,255,0.74);
  font-size: 0.93rem;
}

.proof-layer {
  padding: var(--section-y) 0;
  background: var(--paper);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.proof-card {
  min-height: 100%;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px 34px;
}

.proof-card h3 {
  font-size: 1.35rem;
  margin-top: 14px;
}

.proof-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.proof-card .text-link {
  margin-top: 18px;
}

.mid-cta {
  padding: clamp(58px, 9vh, 96px) 0;
  background: var(--sand);
}

.mid-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding-block: clamp(8px, 1.5vh, 18px);
}

.mid-cta .section-title {
  margin-top: 12px;
}

.mid-cta p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.mid-cta-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.mid-cta-note {
  max-width: 32ch;
  font-size: 0.92rem !important;
}

.cta-inner-contact {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.contact-options {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.home-contact-card,
.home-contact-form {
  height: 100%;
}

.home-contact-card h3,
.home-contact-form h3 {
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.contact-help {
  padding-top: 20px;
}

.contact-help h4 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.home-contact-check {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
}

.home-contact-check li {
  position: relative;
  padding-left: 20px;
  color: rgba(255,255,255,0.78);
  font-size: 0.96rem;
}

.home-contact-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 2px;
  background: var(--timber);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-wide {
  grid-column: 1 / -1;
}

.cta .field label {
  color: rgba(255,255,255,0.88);
}

.cta .field input,
.cta .field select,
.cta .field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.cta .field textarea {
  min-height: 150px;
  resize: vertical;
}

.cta .field select {
  appearance: none;
}

.cta .field option {
  color: var(--ink);
}

.cta .field input:focus,
.cta .field select:focus,
.cta .field textarea:focus {
  outline: 3px solid rgba(201,138,60,0.38);
  border-color: var(--timber);
}

.cta .form-note {
  color: rgba(255,255,255,0.66);
}

@media (max-width: 980px) {
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mid-cta-inner,
  .contact-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .form-grid,
  .home-contact-check {
    grid-template-columns: 1fr;
  }

  .mid-cta-actions {
    justify-items: stretch;
  }

  .mid-cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ratgeber-Diagramme (Bauphysik-Infografiken) ---------- */
.diagram { margin: 40px 0; }
.diagram > img, .diagram > svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: 0 14px 40px rgba(20,18,16,0.06); }
.diagram figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.diagram figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .diagram { margin: 28px 0; } }

/* ---------- Ratgeber-Hub: Prosa + FAQ-Akkordeon ---------- */
.prose-cols { max-width: 860px; }
.prose-cols p { max-width: var(--measure); margin-bottom: 1.4em; }
.prose-cols p:last-child { margin-bottom: 0; }
.faq-list { max-width: 860px; margin-top: 6px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 20px 0; font-weight: 600; font-size: 1.08rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brick); font-size: 1.5rem; line-height: 1; transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 0 22px; color: var(--muted); max-width: 72ch; }

/* ---------- Kontakt-Formular: Felder-Grid + Select + Karten-Logo ---------- */
.note-logo { height: 52px; width: auto; margin-bottom: 16px; display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .field select {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink); line-height: 1.3;
  background-color: #fff; border: 1px solid var(--line); border-radius: 12px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236c665d' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.contact-form .field select:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(178,36,9,0.12); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Gruppe: Firmen-Bloecke (Logo + Referenzen + Bild) ---------- */
.firm-grid { display: flex; flex-direction: column; gap: 60px; margin-top: 10px; }
.firm { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.firm:nth-child(even) .firm-media { order: 2; }
.firm-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); box-shadow: 0 18px 44px rgba(20,18,16,0.08); }
.firm-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.firm-logo { max-height: 70px; max-width: 230px; width: auto; height: auto; object-fit: contain; display: block; }
.firm-logo-link { display: inline-flex; align-items: center; justify-content: center; background: #fff; padding: 18px 28px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(20,18,16,0.07); margin-bottom: 22px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.firm-logo-link:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(20,18,16,0.12); }
.firm-intro { color: var(--muted); margin-bottom: 22px; max-width: 52ch; }
.firm-caps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 26px; }
.firm-caps strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; }
.firm-caps span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 3px; line-height: 1.5; }
.firm-legal-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; max-width: 90ch; }
@media (max-width: 820px) {
  .firm { grid-template-columns: 1fr; gap: 22px; }
  .firm:nth-child(even) .firm-media { order: 0; }
  .firm-caps { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Startseite: grosses Hero-Logo im Vordergrund ---------- */
.hero-logo { box-sizing: content-box; height: clamp(104px, 12vw, 168px); width: auto; max-width: calc(100vw - 56px); object-fit: contain; display: inline-block; background: transparent; padding: 0; margin-bottom: 24px; }
@media (max-width: 760px) { .hero-logo { height: clamp(72px, 20vw, 104px); padding: 0; } }
/* ---------- Ueber uns: Team-Grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.team-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: center; padding-bottom: 18px; }
.team-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; display: block; background: var(--sand); }
.team-card::after { content: ""; position: absolute; top: 12px; left: 12px; width: 90px; height: 40px; background: rgba(255,255,255,0.95) url("./assets/logo-original.png") no-repeat center; background-size: 70px auto; border-radius: 9px; box-shadow: 0 4px 14px rgba(20,18,16,0.28); pointer-events: none; }
.team-card h3 { font-size: 1.06rem; margin-top: 14px; padding: 0 10px; }
.team-card p { color: var(--muted); font-size: 0.9rem; margin-top: 3px; padding: 0 10px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.team-note { margin-top: 26px; color: var(--muted); font-size: 0.95rem; max-width: 80ch; }

/* ---------- Karriere: Bewerbungsprozess-Schritte ---------- */
.proc-steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 6px; }
.proc-steps li { counter-increment: step; position: relative; padding: 0 0 16px 46px; }
.proc-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brick); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 0.98rem; display: flex; align-items: center; justify-content: center; }
.proc-steps strong { display: block; font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; }
.proc-steps span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 2px; line-height: 1.5; }

/* ---------- Inhalts-Bilder (Leistungen/Karriere/Home) ---------- */
.media-figure { margin: 40px 0; }
.media-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-media); display: block; }
.media-figure figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.media-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 10px 0; }
.media-strip figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-card); }
.media-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.media-strip figure:hover img { transform: scale(1.05); }
.media-strip figcaption { position: absolute; inset: auto 0 0 0; padding: 34px 16px 14px; background: linear-gradient(0deg, rgba(15,12,9,0.82), rgba(15,12,9,0) 100%); color: #fff; }
.media-strip figcaption span { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--timber); margin-bottom: 2px; }
.media-strip figcaption strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
@media (max-width: 760px) { .media-strip { grid-template-columns: 1fr; } }
.region-media { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-media); }
.region-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.region-text .region-chips { margin-top: 24px; }

/* ---------- Startseite-Hero: Logo + Inhalt mittig ---------- */
.hero .hero-content { text-align: center; margin-inline: auto; }
.hero .hero-logo { display: none; }
.hero .hero-actions { justify-content: center; }
.hero .hero-lead { margin-left: auto; margin-right: auto; }

/* Team-Logo jetzt im Hintergrund (Wasserzeichen) statt Ecken-Chip */
.team-card::after{content:none!important;}


/* ---------- Team-Gruppen (Über uns) ---------- */
.team-group { margin-top: 54px; }
.team-group:first-of-type { margin-top: 0; }
.team-group-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }


/* ---------- Anbau-Komplettanleitung Phasen ---------- */
.anbau-phases { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.anbau-phases li { display: flex; gap: 18px; align-items: flex-start; background: var(--sand); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.anbau-phases .phase-icon { width: 38px; height: 38px; color: var(--brick); flex-shrink: 0; margin-top: 2px; }
.anbau-phases h3 { margin: 0 0 6px; font-size: 1.08rem; }
.anbau-phases .phase-content p { margin: 0; color: var(--muted); }
.anbau-phases .phase-content strong { color: var(--ink); }

.anbau-timeline {
  --tl-node-size: 60px;
  position: relative;
  margin: 38px 0 34px;
  padding: 4px 0 4px 88px;
}
.anbau-timeline::before,
.anbau-timeline .tl-progress {
  content: "";
  position: absolute;
  top: calc(var(--tl-node-size) / 2);
  bottom: calc(var(--tl-node-size) / 2);
  left: calc(var(--tl-node-size) / 2);
  z-index: 0;
  width: 3px;
  border-radius: 999px;
}
.anbau-timeline::before { background: rgba(20, 18, 16, 0.12); }
.anbau-timeline .tl-progress {
  background: linear-gradient(180deg, var(--brick), var(--timber));
  transform-origin: top center;
}
.tl-step {
  position: relative;
  z-index: 1;
}
.tl-step + .tl-step { margin-top: 28px; }
.tl-node {
  position: absolute;
  top: 0;
  left: -88px;
  display: inline-flex;
  width: var(--tl-node-size);
  height: var(--tl-node-size);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--brick);
  color: #fff;
  box-shadow: 0 14px 30px rgba(201, 168, 76, 0.24), 0 0 0 1px rgba(201, 168, 76, 0.1);
}
.tl-node-no {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}
.tl-node svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}
.tl-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 20px 44px rgba(20, 18, 16, 0.1);
}
.tl-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brick), var(--timber));
}
.tl-card h3 {
  margin: 0;
  font-size: clamp(1.32rem, 2.4vw, 1.8rem);
}
.content-main .tl-card p {
  max-width: none;
  margin-top: 12px;
  color: var(--muted);
}
.tl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid rgba(20, 18, 16, 0.08);
  border-radius: 12px;
  background: var(--sand);
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}
.tl-badge strong { color: var(--brick); }
.tl-badge a {
  color: var(--brick);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tl-clock {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--brick);
}
.tl-clock::before,
.tl-clock::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom center;
}
.tl-clock::before { height: 5px; }
.tl-clock::after { height: 4px; transform: rotate(90deg); }

@media (min-width: 860px) {
  .anbau-timeline {
    margin-top: 46px;
    padding: 12px 0;
  }
  .anbau-timeline::before,
  .anbau-timeline .tl-progress {
    left: calc(50% - 1.5px);
  }
  .tl-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
    align-items: center;
    min-height: 148px;
  }
  .tl-step + .tl-step { margin-top: 12px; }
  .tl-node {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .tl-step-left .tl-card {
    grid-column: 1;
    grid-row: 1;
    margin-right: 18px;
  }
  .tl-step-right .tl-card {
    grid-column: 3;
    grid-row: 1;
    margin-left: 18px;
  }
}

@media (max-width: 480px) {
  .anbau-timeline {
    --tl-node-size: 56px;
    padding-left: 76px;
  }
  .tl-node { left: -76px; }
  .tl-card { padding: 22px 18px; }
  .tl-badge {
    width: 100%;
    align-items: flex-start;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anbau-timeline .tl-progress,
  .tl-node,
  .tl-card {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ---------- Fix: Notizkarten in dunklen Sektionen (sonst weiss-auf-hell unlesbar) ---------- */
.content-section.dark .note-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); }
.content-section.dark .note-card h3 { color: #fff; }
.content-section.dark .note-card p, .content-section.dark .note-card li { color: rgba(255,255,255,0.78); }
.content-section.dark .note-card .text-link { color: var(--timber); }


/* ---------- Anbau: Partner/Gruppe-Logos ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 26px; }
.partner-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 20px; min-height: 150px; box-shadow: 0 8px 22px rgba(20,18,16,0.05); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.partner-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20,18,16,0.10); }
.partner-logo { height: 60px; display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 58px; max-width: 150px; width: auto; height: auto; object-fit: contain; display: block; }
.partner-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.partner-role { font-size: 0.9rem; color: var(--muted); }

/* ---------- Notizkarten-Bilder sauber statt abgeschnitten ---------- */
.note-card img { width: 100%; max-height: 230px; object-fit: cover; border-radius: 12px; margin-top: 6px; display: block; }

/* Portal-Status (Login noch nicht live, Early Access) */
.portal-soon { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.portal-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--timber); flex: none; }

/* Pilot-Stats (helle Sektion, 4 Kennzahlen, eigenes Grid + lesbare Labels) */
.refs .stats { grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 18px 0 40px; }
.refs .stats .stat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.refs .stats .stat strong { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.refs .stats .stat span { color: var(--muted); margin-top: 0; max-width: 26ch; font-size: 0.92rem; line-height: 1.5; }
@media (max-width: 900px) { .refs .stats { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (max-width: 520px) { .refs .stats { grid-template-columns: 1fr; } }
