/* Tarif-Konzept — agency-clean (Schwarz+Matt inspired layout/motion/color)
   Near-black #0A0A0A · White · Off-white #F5F5F5 — Tarif-Konzept content only */

:root {
  --black: #0A0A0A;
  --ink: #0A0A0A;
  --charcoal: #1A1A1A;
  --muted: #6B6B6B;
  --muted-2: #8A8A8A;
  --white: #FFFFFF;
  --off: #F5F5F5;
  --off-2: #EBEBEB;
  --border: #E6E6E6;
  --border-soft: #EEEEEE;
  --accent: #1A4E8A;
  --accent-hover: #123A68;
  --accent-light: #4A87C9;
  --accent-tint: rgba(26, 78, 138, 0.07);
  --accent-ring: rgba(26, 78, 138, 0.45);
  --text: #0A0A0A;
  --text-secondary: #5C5C5C;
  --text-muted: #6B6B6B;
  --text-inverse: #F5F5F5;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 12px 40px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 28px 64px rgba(10, 10, 10, 0.12);
  --radius: 2px;
  --radius-sm: 2px;
  --radius-pill: 999px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1280px;
  --section-y: clamp(4.25rem, 7.5vw, 6.75rem);
  --img-grade: saturate(0.72) contrast(1.02) brightness(0.99);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
.hero :focus-visible,
.page-hero :focus-visible,
.site-footer :focus-visible,
.cta-banner :focus-visible,
.nav-overlay :focus-visible { outline-color: var(--accent-light); }

h1, h2, h3, h4 {
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 0.75em;
  font-weight: 700;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 800; margin-bottom: 1rem; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); margin-bottom: 1rem; font-weight: 700; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 0.7em; font-weight: 600; }
p { margin: 0 0 1.25em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(var(--max), calc(100% - 2.75rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ——— Logo ——— */
.logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 168px;
  height: 58px;
  background: url("/assets/images/logo-tarif-konzept.png") no-repeat left center / contain;
  color: var(--ink);
  z-index: 2;
}
.logo-mark,
.logo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header.is-over-dark .logo {
  background-image: url("/assets/images/logo-tarif-konzept-weiss.png");
}
.site-header.is-over-dark.is-scrolled .logo {
  background-image: url("/assets/images/logo-tarif-konzept.png");
}
.logo--overlay,
.logo--footer,
.logo--light {
  background-image: url("/assets/images/logo-tarif-konzept-weiss.png");
  color: var(--white);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.6rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary, .btn-gold {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
}
.btn-primary:hover, .btn-gold:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(26, 78, 138, 0.22);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--charcoal); }

.btn-lg { padding: 1.1rem 2rem; font-size: 0.95rem; }

/* Arrow that nudges on hover */
.btn-arrow::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost-dark:hover {
  border-color: var(--black);
  background: var(--off);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--black);
  background: var(--off);
}

.btn-invert {
  background: var(--white);
  color: var(--ink);
}
.btn-invert:hover { background: var(--off); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.site-header.is-over-dark {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.42), rgba(10, 10, 10, 0.08));
  border-bottom-color: transparent;
  box-shadow: none;
  color: var(--white);
}
/* Hero slides under the floating header on pages that opt in */
body.has-overlay-header .hero,
body.has-overlay-header .page-hero { margin-top: calc(-1 * var(--header-h)); }
.site-header.is-over-dark .logo,
.site-header.is-over-dark .header-phone,
.site-header.is-over-dark .header-kontakt,
.site-header.is-over-dark .nav-desktop > a,
.site-header.is-over-dark .nav-trigger {
  color: var(--white);
}
.site-header.is-over-dark .nav-toggle span { background: var(--white); }
.site-header.is-over-dark .nav-dropdown a {
  color: var(--text-secondary);
}
.site-header.is-over-dark .nav-dropdown a:hover,
.site-header.is-over-dark .nav-dropdown a.is-active {
  color: var(--ink);
}
.site-header.is-over-dark.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}
.site-header.is-over-dark.is-scrolled .logo,
.site-header.is-over-dark.is-scrolled .header-phone,
.site-header.is-over-dark.is-scrolled .header-kontakt,
.site-header.is-over-dark.is-scrolled .nav-desktop > a,
.site-header.is-over-dark.is-scrolled .nav-trigger {
  color: var(--ink);
}
.site-header.is-over-dark.is-scrolled .nav-toggle span { background: var(--ink); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.25rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
@media (min-width: 1100px) {
  .nav-desktop { display: flex; }
}
.nav-desktop > a,
.nav-item > button.nav-trigger {
  position: relative;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.2s var(--ease);
}
.nav-desktop > a:hover,
.nav-item > button.nav-trigger:hover,
.nav-desktop > a.is-active,
.nav-item > button.nav-trigger.is-active {
  color: var(--ink);
}
.nav-desktop > a.is-active,
.nav-item > button.nav-trigger.is-active { color: var(--accent); }
.nav-desktop > a.is-active::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--accent);
}

.nav-item { position: relative; }
.nav-chevron {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-left: 0.15rem;
  vertical-align: middle;
  transition: transform 0.25s var(--ease);
}
.nav-item.is-open .nav-chevron,
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 50;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* t238: per Escape geschlossenes Desktop-Dropdown bleibt zu, bis Maus/Fokus das Menü verlassen */
.nav-desktop .nav-item.is-esc-closed > .nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
}
.nav-desktop .nav-item.is-esc-closed .nav-chevron { transform: none; }
.nav-dropdown a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown a:hover,
.nav-dropdown a.is-active {
  color: var(--ink);
  background: var(--off);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.header-switch {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.header-switch:hover { color: var(--accent); }
.site-header.is-over-dark .header-switch { color: rgba(255,255,255,0.7); }
.site-header.is-over-dark .header-switch:hover { color: var(--white); }
.header-phone {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
@media (min-width: 720px) {
  .header-phone { display: inline-flex; }
}
.header-phone:hover { color: var(--ink); }
/* t238: WCAG 2.5.8 – unsichtbar vergrößerte Trefferflächen, Layout unverändert */
.header-phone { padding-block: 0.25rem; margin-block: -0.25rem; }
.header-kontakt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  padding: 0.5rem 1rem;
  transition: background 0.25s var(--ease);
}
.header-kontakt:hover { background: var(--accent-hover); }
.site-header.is-over-dark .header-kontakt {
  background: var(--white);
  color: var(--ink);
}
.site-header.is-over-dark .header-kontakt:hover { background: var(--off); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}
/* On desktop the icon sits next to a full nav, so label what it opens */
@media (min-width: 1100px) {
  .nav-toggle {
    position: relative;
    margin-left: 6.4rem;
    padding-right: 0;
    width: 26px;
  }
  .nav-toggle::before {
    content: "Alle Themen";
    position: absolute;
    right: calc(100% + 0.55rem);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.2s var(--ease);
  }
  .nav-toggle:hover::before { color: var(--accent); }
  .site-header.is-over-dark .nav-toggle::before { color: rgba(255, 255, 255, 0.85); }
  .nav-toggle[aria-expanded="true"]::before { content: "Schließen"; }
}

/* ——— Full-screen overlay menu ——— */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--black);
  color: var(--white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.nav-overlay[hidden] { display: block !important; pointer-events: none; }
.nav-overlay.is-open[hidden] { pointer-events: auto; }

.nav-overlay-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 0 3rem;
  transform: translateY(12px);
  transition: transform 0.45s var(--ease-out);
}
.nav-overlay.is-open .nav-overlay-inner { transform: translateY(0); }

.nav-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 max(1.375rem, calc((100% - var(--max)) / 2 + 1.375rem));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-overlay-close {
  width: 44px;
  height: 44px;
  position: relative;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-overlay-close span {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1.5px;
  background: var(--white);
}
.nav-overlay-close span:first-child { transform: rotate(45deg); }
.nav-overlay-close span:last-child { transform: rotate(-45deg); }

.nav-overlay-nav {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: min(var(--max), calc(100% - 2.75rem));
  margin: 3.5rem auto 0;
  padding-bottom: 2rem;
}
@media (max-width: 800px) {
  .nav-overlay-nav { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
}
.nav-overlay-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 1.25rem;
}
.nav-overlay-col > a,
.nav-item--overlay > .nav-trigger {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav-overlay-col > a:hover,
.nav-overlay-col > a.is-active,
.nav-item--overlay > .nav-trigger:hover {
  opacity: 0.7;
}
.nav-item--overlay .nav-dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: none;
  padding: 0.35rem 0 0.75rem 0.75rem;
}
.nav-item--overlay.is-open .nav-dropdown { display: block; }
.nav-item--overlay .nav-dropdown a {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  padding: 0.4rem 0;
  background: transparent;
}
.nav-item--overlay .nav-dropdown a:hover,
.nav-item--overlay .nav-dropdown a.is-active {
  color: var(--white);
  background: transparent;
}
.nav-overlay-foot {
  width: min(var(--max), calc(100% - 2.75rem));
  margin: auto auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}
.nav-overlay-foot a:hover { color: var(--white); }

/* Legacy .nav hidden — overlay is primary mobile menu */
.nav { display: none !important; }

/* ——— Eyebrows & sections ——— */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.65rem;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.hero .eyebrow,
.page-hero .eyebrow { color: var(--white); }
.hero .eyebrow::before,
.page-hero .eyebrow::before { background: var(--accent-light); }
.eyebrow--on-media { color: rgba(255, 255, 255, 0.9); }

.section {
  padding: var(--section-y) 0;
}
.section--cream { background: var(--off); }
.section--navy,
.section--dark {
  background: var(--black);
  color: var(--text-inverse);
}
.section--navy h2, .section--navy h3,
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--navy .section-lead, .section--navy .eyebrow,
.section--dark .section-lead, .section--dark .eyebrow { color: rgba(255,255,255,0.5); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
.section-head h2,
.fair-acc-heading,
.split-band-copy h2,
.ablauf-band h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}
.section-head h2 { margin: 0; }
.section-head--center {
  text-align: center;
  margin-inline: auto;
}
.section-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin: 0.85rem 0 0;
  line-height: 1.75;
}
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
  flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row .link-underline { flex-shrink: 0; margin-bottom: 0.4rem; }

/* ——— Reveal / motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .media-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .product-tile-media img,
  .work-card-media img,
  .offer-card-media img,
  .page-hero-media img,
  .hero-media img,
  .parallax-img,
  .ken-burns img,
  .ken-burns,
  .ref-teaser img {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .btn:hover { transform: none; }
}

/* ——— Hero (home) ——— */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero--compact { min-height: min(78vh, 720px); }
.hero-bg, .hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img,
.hero-bg {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: scale(1.12) translate3d(0, -4%, 0);
  will-change: transform;
  transition: transform 0.05s linear;
}
.hero-bg {
  background:
    linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.72) 100%),
    url("../assets/images/hero.jpg") center/cover no-repeat;
}
.hero-bg--tk {
  background:
    linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.75) 100%),
    url("../assets/images/hero-business.jpg") center/cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,0.85) 100%);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.78) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  max-width: 920px;
}
.hero h1 { color: var(--white); max-width: 18ch; text-shadow: 0 2px 40px rgba(10, 10, 10, 0.35); }
/* Keep the headline a single white block — the accent carries elsewhere */
.hero h1 em { font-style: normal; }
.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(245, 245, 245, 0.92);
  max-width: 36rem;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.hero-note {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.75);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ——— Trust strip ——— */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  padding: 1.75rem 0;
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0;
}
.trust-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.35rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.trust-item strong {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}
.trust-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.25;
}
@media (max-width: 720px) {
  .trust-dot { display: none; }
  .trust-item {
    flex: 1 1 45%;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
  }
}

/* ——— Work / product cards (case-study style) ——— */
.work-grid,
.product-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-tiles--4 { grid-template-columns: repeat(4, 1fr); }

.work-card,
.product-tile {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: none;
}
.work-card:hover,
.product-tile:hover { transform: none; box-shadow: none; border-color: transparent; }

.work-card-media,
.product-tile-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--off-2);
  position: relative;
}
.work-card-media img,
.product-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  /* Shared grade so the three very different photos read as one family */
  filter: var(--img-grade);
  transition: transform 1.15s var(--ease-out), filter 0.6s var(--ease);
  will-change: transform;
}
.work-card:hover .work-card-media img,
.product-tile:hover .product-tile-media img { filter: saturate(0.95) contrast(1.04); }
.work-card:hover .work-card-media img,
.product-tile:hover .product-tile-media img {
  transform: scale(1.075);
}

.work-card-body,
.product-tile-body {
  padding: 1.35rem 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-card-label,
.product-tile-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.work-card h3,
.product-tile h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.025em;
}
.work-card p,
.product-tile p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.work-card .link-arrow,
.product-tile .link-arrow {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.work-card .link-arrow:hover,
.product-tile .link-arrow:hover { color: var(--accent-hover); }

.leistungen-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}
.leistungen-band-media {
  position: absolute;
  inset: 0;
}
.leistungen-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.55);
}
.leistungen-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.62) 0%, rgba(4, 6, 10, 0.82) 100%);
}
.leistungen-band-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.7rem, 3.75vw, 3rem);
}
.leistungen-band .work-card-media {
  aspect-ratio: 4 / 3.75;
}
.leistungen-band .work-card-body {
  padding-top: 1rem;
}
.leistungen-band .eyebrow { color: rgba(255, 255, 255, 0.88); }
.leistungen-band .eyebrow::before { background: var(--accent-light); }
.leistungen-band h2 { color: var(--white); }
.leistungen-band .section-lead { color: rgba(255, 255, 255, 0.82); }
.leistungen-band .link-underline {
  color: var(--white);
  border-bottom-color: var(--white);
}
.leistungen-band .link-underline:hover {
  color: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.75);
}
.leistungen-band .work-card-label { color: rgba(255, 255, 255, 0.62); }
.leistungen-band .work-card h3 { color: var(--white); }
.leistungen-band .work-card p { color: rgba(255, 255, 255, 0.8); }
.leistungen-band .work-card .link-arrow { color: var(--white); }
.leistungen-band .work-card .link-arrow:hover { color: rgba(255, 255, 255, 0.72); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s var(--ease), gap 0.25s var(--ease);
}
.link-arrow:hover { color: var(--accent-hover); gap: 0.6rem; }

/* ——— Portfolio / vorteile / savings ——— */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.portfolio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.85rem 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.portfolio-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.portfolio-card .card-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.portfolio-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}
.portfolio-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  margin-bottom: 1.25rem;
}
.portfolio-card li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.portfolio-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.portfolio-card .card-note {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  font-style: italic;
}

.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.vorteil-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem 1.75rem;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.vorteil-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}
.vorteil-icon {
  width: 48px;
  height: 48px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off);
  border: 1px solid var(--border);
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.vorteil-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.vorteil-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.savings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.savings-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.65rem 1.4rem;
  transition: box-shadow 0.25s var(--ease);
}
.savings-card:hover { box-shadow: var(--shadow-md); }
.savings-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.savings-card h3 { font-size: 1.05rem; margin-bottom: 0.85rem; }
.savings-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}
.savings-pct {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.savings-pct span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
}
.savings-disclaimer {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 720px;
}

.ablauf-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--black);
}
.ablauf-band-media {
  position: absolute;
  inset: 0;
}
.ablauf-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.ablauf-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 16, 22, 0.32) 0%, rgba(10, 12, 16, 0.52) 100%);
}
.ablauf-band-inner { position: relative; z-index: 1; }
.ablauf-band .section-head { margin-bottom: 0; max-width: none; }
.ablauf-band .eyebrow { color: rgba(255, 255, 255, 0.85); }
.ablauf-band .eyebrow::before { background: var(--accent-light); }
.ablauf-band h2 {
  color: var(--white);
  font-family: var(--font);
  text-align: left;
  margin: 0 0 1.35rem;
}
.ablauf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 2.25rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--white);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.ablauf-cta:hover {
  background: var(--white);
  color: var(--ink);
}
.ablauf-chevrons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 0.15rem;
  list-style: none;
  margin: 0;
  padding: 1.5rem 0.75rem 1.75rem;
  background: rgba(10, 10, 10, 0.42);
}
.ablauf-chevrons--3 {
  grid-template-columns: repeat(3, 1fr);
}
.ablauf-chevrons li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ablauf-chevron {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.1rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1.7rem 0.85rem 2rem;
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
}
.ablauf-chevrons li:first-child .ablauf-chevron {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  padding-left: 1.15rem;
}
.ablauf-chevrons li:last-child .ablauf-chevron {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%);
}
.ablauf-chevron--1,
.ablauf-chevron--2,
.ablauf-chevron--3,
.ablauf-chevron--4 { background: #0a0a0a; }
.ablauf-chevrons p {
  margin: 0;
  padding: 0 0.5rem;
  font-family: var(--font);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  text-align: center;
}
@media (max-width: 800px) {
  .ablauf-chevrons { grid-template-columns: 1fr; gap: 1.15rem; padding: 1.25rem 1rem; }
  .ablauf-chevron,
  .ablauf-chevrons li:first-child .ablauf-chevron,
  .ablauf-chevrons li:last-child .ablauf-chevron {
    clip-path: none;
    padding: 0.75rem 1rem;
  }
  .ablauf-band h2 { text-align: left; }
}

.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-row::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem;
}
.process-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--accent);
  border: 1px solid var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.process-step:hover .process-num {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 78, 138, 0.25);
}
/* Connector line grows from the left as the row enters the viewport */
.process-row::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out);
  z-index: 0;
}
.process-row.is-in::after { transform: scaleX(1); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
  max-width: 220px;
  margin-inline: auto;
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-copy .lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off);
  border: 1px solid var(--border);
  color: var(--ink);
  flex-shrink: 0;
}
.contact-detail a {
  font-weight: 600;
  color: var(--ink);
  transition: opacity 0.2s;
}
.contact-detail a:hover { opacity: 0.55; }
.contact-detail a,
.booking-meta a { padding-block: 0.25rem; } /* t238: Trefferfläche ≥ 24 px (inline, ohne Layoutänderung) */
.contact-detail span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h2,
.contact-card h3 { margin-bottom: 1.25rem; font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 600; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row--full { grid-column: 1 / -1; }
.form-row label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--off);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.form-row input.is-invalid,
.form-row select.is-invalid { border-color: #c45a5a; }
.form-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 1rem 0;
  line-height: 1.5;
}
.form-success { text-align: center; padding: 1.5rem 0.5rem; }
.form-success .result-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 0;
  background: var(--off);
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--ink);
}
.is-hidden { display: none !important; }

/* ——— Footer ——— */
.site-footer {
  background: var(--black);
  color: rgba(245, 245, 245, 0.74);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  margin-top: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 280px;
}
.footer-links h2,
.footer-links h4 {
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}
.footer-links a,
.footer-links span {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-address {
  font-style: normal;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.footer-bottom a:hover { color: var(--accent-light); }
.footer-bottom a { padding-block: 0.3rem; } /* t238: Trefferfläche ≥ 24 px (inline, ohne Layoutänderung) */

/* ——— Energie subnav ——— */
.energie-subnav {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
}
.energie-subnav-inner {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.65rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.energie-subnav-inner::-webkit-scrollbar { display: none; }
.energie-subnav a {
  flex-shrink: 0;
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0;
  transition: color 0.2s, background 0.2s;
}
.energie-subnav a:hover { color: var(--ink); }
.energie-subnav a.is-active {
  color: var(--ink);
  background: var(--off);
}

/* ——— Page hero ——— */
.page-hero {
  position: relative;
  min-height: min(58vh, 560px);
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
body.has-overlay-header .page-hero {
  padding-top: calc(var(--header-h) + clamp(3.25rem, 7vw, 5.5rem));
}
.page-hero--compact { min-height: min(46vh, 420px); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  transform: scale(1.1) translate3d(0, -3%, 0);
  will-change: transform;
  transition: transform 0.05s linear;
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.78) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.6) 52%, rgba(10,10,10,0.1) 84%, transparent 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.page-hero h1 {
  color: var(--white);
  max-width: 18ch;
  letter-spacing: -0.04em;
  line-height: 1.06;
}
.page-hero .lead {
  color: rgba(245, 245, 245, 0.75);
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}
.brand-badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.85);
}
.brand-badge em {
  color: var(--white);
  font-style: normal;
  font-weight: 600;
}

/* ——— Content helpers ——— */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.offer-card, .content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.offer-card:hover, .content-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}
.offer-card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.offer-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.offer-card:hover .offer-card-media img { transform: scale(1.07); }
.offer-card-body { padding: 1.5rem 1.4rem 1.65rem; }
.offer-card-body h3 { margin-bottom: 0.5rem; }
.offer-card-body p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
}
.stat-card span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.stat-note {
  display: block;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.5rem;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 2px solid var(--ink);
  border-radius: 0;
  padding: 1.75rem 1.5rem;
}
.price-card .price-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0.5rem 0;
}
.price-card .price-value small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.price-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}
.disclaimer-box {
  margin-top: 1.75rem;
  padding: 1.15rem 1.35rem;
  background: var(--off);
  border-radius: 0;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.compare-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}
.compare-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.85rem 1.65rem;
}
.compare-box h3 { margin-bottom: 0.75rem; }
.compare-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.compare-box ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.compare-box li {
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.compare-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.check-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 9px;
  height: 5px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  border-radius: 24px;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.cta-banner p {
  margin: 0;
  color: rgba(245, 245, 245, 0.82);
  max-width: 36rem;
}

/* Photo-backed CTA for the strongest conversion points */
.cta-banner--media { padding: clamp(3rem, 6vw, 4.5rem); }
.cta-banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-grade);
}
.cta-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.78) 45%,
    rgba(18, 58, 104, 0.55) 100%
  );
}
.cta-note {
  margin: 0.9rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 0 0 auto;
}
.cta-banner-copy { flex: 1 1 26rem; }
.cta-banner--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.cta-booking-box {
  background: transparent;
  color: var(--white);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}
.cta-booking-box h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--white);
}
.cta-booking-box p {
  margin: 0 0 0.4rem;
  color: rgba(245, 245, 245, 0.85);
  max-width: none;
  font-size: 0.9rem;
}
.cta-booking-box .btn { width: 100%; justify-content: center; }
.cta-banner .cta-booking-box .btn-primary {
  background: var(--white);
  color: var(--ink);
}
.cta-banner .cta-booking-box .btn-primary:hover {
  background: var(--off);
}
.cta-banner .cta-booking-box .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.cta-banner .cta-booking-box .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}
.cta-banner .btn-primary,
.cta-banner .btn-gold {
  background: var(--white);
  color: var(--ink);
}
.cta-banner .btn-primary:hover,
.cta-banner .btn-gold:hover { background: var(--off); }
.cta-banner .btn-ghost,
.cta-banner .btn-ghost-dark {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.cta-banner .btn-ghost:hover,
.cta-banner .btn-ghost-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.65);
}

.text-center { text-align: center; }
.spaced { margin-top: 2rem; }
.narrow-prose { max-width: 720px; margin-inline: auto; }
.prose-block h2 { margin-top: 2rem; }
.prose-block p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; }

.legal-content {
  max-width: 720px;
  margin-inline: auto;
}
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}
.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb { color: rgba(245,245,245,0.55); }

/* Agenda */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.agenda-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.15rem;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.agenda-card:hover {
  border-color: var(--ink);
  background: var(--off);
}
.agenda-card span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.agenda-card strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Stats big */
.stats-big-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stats-big-grid--lg .stats-big-card { padding: 2.5rem 1.5rem; }
.stats-big-card {
  position: relative;
  background: var(--off);
  border: 0;
  padding: 2.25rem 1.5rem;
  text-align: center;
  overflow: hidden;
  transition: background 0.25s var(--ease);
}
.stats-big-card:hover { background: var(--accent-tint); }
.stats-big-num {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.65rem;
  font-variant-numeric: tabular-nums;
}
.stats-big-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.stats-big-bar {
  height: 2px;
  background: var(--ink);
  margin: 1rem auto 0;
  width: 40%;
  opacity: 0.15;
}
/* Bar that fills to the stat value once the card scrolls into view */
.stats-big-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(26, 78, 138, 0.14);
}
.stats-big-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.4s var(--ease-out);
}

/* Instagram-style savings mosaic — 4-up row, 20% bleed */
.section--ig { overflow-x: clip; }
.ig-feed-bleed {
  width: min(var(--max), calc(100% - 2.75rem));
  max-width: none;
  margin-inline: auto;
}
.ig-feed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ig-feed-tile {
  position: relative;
  aspect-ratio: 9 / 16.445;
  overflow: hidden;
  border-radius: 24px;
  background: #111;
}
.ig-feed-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s var(--ease);
}
.ig-feed-tile:hover img {
  transform: scale(1.08);
}
.ig-feed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 1.15rem 1.2rem 1.25rem;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0) 42%, rgba(10, 14, 20, 0.62) 100%);
  color: #fff;
}
.ig-feed-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.ig-feed-num {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.ig-feed-label {
  margin: 0.4rem 0 0;
  font-size: clamp(0.8rem, 1.15vw, 1rem);
  font-weight: 500;
  color: #fff;
}
a.ig-feed-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ig-feed--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: calc((100% - 36px) * 0.75 + 48px);
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
  gap: 24px;
}
.ig-feed--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ig-feed-title {
  font-variant-numeric: normal;
  letter-spacing: -0.04em;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* Mehrwert / refs */
.mehrwert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.mehrwert-card {
  background: var(--off);
  padding: 2.25rem 1.65rem;
  border: 0;
  transition: background 0.25s;
}
.mehrwert-card:hover { background: var(--off-2); }
.mehrwert-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}
.mehrwert-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.ref-card {
  border: 1px solid var(--border);
  padding: 0;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ref-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.ref-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--off-2);
}
.ref-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-grade);
}
.ref-card-body { padding: 1.75rem 1.75rem 2rem; }
.ref-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.ref-card h2 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}

/* Strategy / service / misc */
.strategy-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.strategy-col {
  padding: 2rem 1.5rem;
  background: var(--off);
}
.strategy-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.strategy-bar {
  height: 2px;
  background: var(--ink);
  width: 40px;
  margin-bottom: 1.25rem;
  opacity: 0.2;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-block {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--white);
}
.service-block h3 { margin-bottom: 0.75rem; }
.service-block p { color: var(--text-secondary); margin: 0; }

.feature-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.feature-pill {
  display: inline-flex;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--white);
}

.provider-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.energie-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.energie-hl {
  padding: 1.75rem;
  background: var(--off);
}
.energie-hl strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

/* Home strips */
.mehrwert-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.mehrwert-strip-item {
  position: relative;
  padding: 2.75rem 2.25rem;
  background: var(--off);
  border: 0;
  transition: background 0.3s var(--ease);
}
.mehrwert-strip-item:first-child { padding-left: 2.75rem; }
.mehrwert-strip-item:last-child { padding-right: 2.75rem; }
.mehrwert-strip-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.mehrwert-strip-item:hover { background: var(--off-2); }
.mehrwert-strip-item:hover::before { transform: scaleX(1); }
.mehrwert-strip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.35rem;
  color: var(--accent);
  background: var(--white);
  border-radius: 2px;
}
.mehrwert-strip-icon svg { width: 30px; height: 30px; }
.mehrwert-strip-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.mehrwert-strip-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Horizontal accordion — same structure/size as CG Ohio process accordion */
.section--fair-acc {
  padding-bottom: 0;
  overflow-x: clip;
}
.fair-acc-heading {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0 0 2.25rem;
  max-width: 18ch;
}
.fair-acc {
  display: flex;
  overflow-x: hidden;
  min-height: 560px;
  height: 560px;
  background: var(--white);
}
@media (min-width: 901px) {
  .section--fair-acc .fair-acc {
    width: 115%;
    margin-left: -7.5%;
    margin-right: -7.5%;
  }
}
/* mehrwert.html (nur .section--fair-acc), 901-1439px: Ueberstand auf den Seitenrand begrenzen,
   damit Spaltentexte nicht am Viewport abgeschnitten werden; aktive Ueberschrift darf umbrechen. */
@media (min-width: 901px) and (max-width: 1439px) {
  .section--fair-acc .fair-acc {
    width: calc(100% + 2 * min(7.5%, max(0px, (100vw - 100%) / 2 - 1rem)));
    margin-left: calc(-1 * min(7.5%, max(0px, (100vw - 100%) / 2 - 1rem)));
    margin-right: calc(-1 * min(7.5%, max(0px, (100vw - 100%) / 2 - 1rem)));
  }
  .section--fair-acc .fair-acc-item.is-active h3 {
    white-space: normal;
  }
}
.fair-acc-item {
  position: relative;
  z-index: 1;
  flex: 1 1 16.66%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--white);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: flex 0.35s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.fair-acc-item:not(:last-child) {
  box-shadow: 0 8px 36px rgba(10, 10, 10, 0.1);
}
.fair-acc-item.is-active {
  z-index: 2;
  flex: 1 1 50%;
  min-width: 50%;
  cursor: default;
}
.fair-acc-item:not(.is-active):hover {
  background: var(--off);
}
.fair-acc-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.15rem 2.4rem 1.75rem;
  box-sizing: border-box;
}
.fair-acc-line {
  display: block;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.15rem;
}
.fair-acc-step {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.fair-acc-item h3 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  white-space: nowrap;
}
.fair-acc-desc {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 0 0 auto;
}
.fair-acc-desc strong { color: var(--ink); font-weight: 600; }
.fair-acc-media {
  margin-top: auto;
  height: 250px;
  overflow: hidden;
  flex: 0 0 250px;
}
.fair-acc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-grade);
}
.fair-acc-item:not(.is-active) .fair-acc-desc,
.fair-acc-item:not(.is-active) .fair-acc-media {
  opacity: 0;
  height: 0;
  flex: 0 0 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}
.fair-acc-item:not(.is-active) .fair-acc-inner {
  padding: 2.15rem 1.15rem 1.75rem;
}
.fair-acc-item:not(.is-active) h3 {
  font-size: 1.15rem;
  white-space: normal;
}
@media (max-width: 900px) {
  .ig-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ig-feed--3 {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 24px;
  }
  .fair-acc {
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .fair-acc-item,
  .fair-acc-item.is-active {
    flex: none;
    min-width: 0;
    min-height: 0;
  }
  .fair-acc-item:not(.is-active) {
    min-height: 5.5rem;
  }
  .fair-acc-item.is-active {
    min-height: 520px;
  }
  .fair-acc-item:not(.is-active) .fair-acc-inner {
    padding: 1.35rem 1.5rem;
  }
  .fair-acc-item h3 { white-space: normal; font-size: 1.65rem; }
}

.ref-teaser-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}
.ref-teaser-grid--4 {
  grid-template-columns: 1fr 1fr;
}
.ref-teaser {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  border-radius: 24px;
}
.ref-teaser img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: var(--img-grade);
  transition: transform 1.1s var(--ease-out);
}
/* Scrim instead of a flat fade — keeps the photo rich and the text readable */
.ref-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.1) 0%,
    rgba(10, 10, 10, 0.35) 45%,
    rgba(10, 10, 10, 0.88) 100%
  );
  transition: opacity 0.4s var(--ease);
}
.ref-teaser:hover img { transform: scale(1.06); }
.ref-teaser-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(1.35rem, 4vw, 2rem);
}
.ref-teaser-body h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.ref-teaser-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}
.ref-teaser .link-arrow {
  color: var(--white);
  font-size: 0.8125rem;
  margin-top: 0.9rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.ref-teaser:hover .link-arrow { opacity: 1; transform: translateY(0); }
/* Touch devices never hover, so keep the affordance visible there */
@media (hover: none), (max-width: 800px) {
  .ref-teaser .link-arrow { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .portfolio-grid,
  .product-tiles--4,
  .savings-grid,
  .agenda-grid,
  .mehrwert-grid,
  .stats-big-grid,
  .work-grid,
  .product-tiles { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .process-row::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mehrwert-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .contact-grid,
  .compare-boxes,
  .price-cards,
  .cards-3,
  .strategy-columns,
  .service-grid,
  .vorteile-grid,
  .stats-grid,
  .energie-highlights,
  .ref-teaser-grid,
  .ref-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .cta-banner--split { grid-template-columns: 1fr; }
  .work-card-media,
  .product-tile-media { aspect-ratio: 16 / 11; }
  .leistungen-band .work-card-media { aspect-ratio: 16 / 8.25; }
}

@media (max-width: 600px) {
  .portfolio-grid,
  .product-tiles--4,
  .savings-grid,
  .agenda-grid,
  .mehrwert-grid,
  .stats-big-grid,
  .work-grid,
  .product-tiles,
  .process-row,
  .footer-grid,
  .mehrwert-strip { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
}


/* Agency underline CTAs */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-underline::after { content: "→"; }
.link-underline:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  gap: 0.7rem;
}

.statement-band {
  padding: var(--section-y) 0;
  background: var(--white);
  overflow-x: clip;
}
/* Two columns so the right half carries an image instead of empty space */
.statement-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.statement-band .container {
  overflow: visible;
}
.statement-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 2.17;
  background: var(--off-2);
}
@media (min-width: 901px) {
  .statement-media {
    width: calc(100% + max(0px, max(1.375rem, calc((100vw - var(--max)) / 2)) - 15rem));
    max-width: none;
  }
}
.statement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-grade);
}
.statement-media-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--accent);
  color: var(--white);
  padding: 1.1rem 1.5rem;
  max-width: 15rem;
}
.statement-media-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.statement-media-badge span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}
.statement-band h2 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  max-width: 20ch;
  margin: 0 0 1.5rem;
}
@media (max-width: 900px) {
  .statement-layout { grid-template-columns: 1fr; }
  .statement-media { aspect-ratio: 16 / 7.225; }
}
.statement-band .lead {
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.statement-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 28rem;
}
.statement-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    padding-left 0.3s var(--ease);
}
.statement-links a::after {
  content: "→";
  color: var(--accent);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.statement-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  padding-left: 0.35rem;
}
.statement-links a:hover::after { transform: translateX(0); opacity: 1; }

.nav-desktop {
  gap: 0.35rem;
}
.nav-desktop > a,
.nav-item > button.nav-trigger {
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
}


/* ——— Enhanced media motion ——— */
.media-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
}
.media-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.ken-burns {
  overflow: hidden;
}
.ken-burns img,
img.ken-burns {
  transform-origin: center center;
  will-change: transform;
}
.ken-burns.is-kb-active img,
img.ken-burns.is-kb-active {
  animation: kenBurns 22s var(--ease-out) forwards;
}
.ken-burns.is-kb-active--alt img,
img.ken-burns.is-kb-active--alt {
  animation: kenBurnsAlt 24s var(--ease-out) forwards;
}

@keyframes kenBurns {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes kenBurnsAlt {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.13) translate3d(1.2%, -0.8%, 0); }
}

.parallax-layer {
  will-change: transform;
}

/* ——— Booking ——— */
.booking-section {
  padding: var(--section-y) 0;
  background: var(--off);
  border-top: 1px solid var(--border-soft);
}
.booking-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.booking-intro .lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.booking-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.lp-header nav a,
.lp-footer nav a { padding-block: 0.125rem; margin-block: -0.125rem; } /* t238: angebot.html, Trefferfläche ≥ 24 px */
.booking-meta strong {
  color: var(--ink);
  font-weight: 600;
}
.booking-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.booking-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.booking-card > .booking-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.booking-step {
  margin-bottom: 1.5rem;
}
.booking-step-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.booking-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
}
.booking-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.7rem 0.4rem;
  border: 1px solid var(--border);
  background: var(--off);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-align: center;
}
.booking-day:hover,
.booking-day:focus-visible {
  border-color: var(--ink);
  outline: none;
}
.booking-day.is-selected {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.booking-day:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.booking-day .dow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}
.booking-day .dom {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.booking-day .moy {
  font-size: 0.68rem;
  opacity: 0.7;
}
.booking-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.45rem;
}
.booking-time {
  padding: 0.65rem 0.4rem;
  border: 1px solid var(--border);
  background: var(--off);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.booking-time:hover,
.booking-time:focus-visible {
  border-color: var(--ink);
  outline: none;
}
.booking-time.is-selected {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.booking-time:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}
.booking-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
  margin: 0;
}
.booking-selected-slot {
  display: none;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--off);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.booking-selected-slot.is-visible { display: block; }
.booking-selected-slot strong { color: var(--ink); }
.booking-error {
  display: none;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #c45a5a;
  background: #fdf6f6;
  color: #8b3030;
  font-size: 0.875rem;
}
.booking-error.is-visible { display: block; }
.booking-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.booking-success .result-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border: 1px solid var(--ink);
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--ink);
}
.booking-success p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.booking-cta-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.85rem 2rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--white);
  margin-top: 1.5rem;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.booking-cta-home:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  border-left-color: var(--accent);
}
.booking-cta-home h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.booking-cta-home p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 800px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-days { max-height: 180px; }
}


/* ——— Partner logo marquee (RTL scroll = moves left) ——— */
.logo-marquee-section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--rule, #e5e5e5);
  border-bottom: 1px solid var(--rule, #e5e5e5);
  background: #fff;
  overflow: hidden;
}
.logo-marquee-section .container {
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
.logo-marquee-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: logo-marquee-rtl 55s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 96px;
  filter: grayscale(1);
  opacity: 0.9;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.logo-marquee__item:hover {
  opacity: 1;
  filter: grayscale(0);
}
.logo-marquee__item img {
  display: block;
  width: auto;
  height: auto;
  max-height: 51px;
  max-width: 210px;
  object-fit: contain;
}
.logo-marquee__item img[src$=".svg"] {
  max-height: 57px;
}
/* +40% — APPTEC, O2, Deutsche Telefon Standard, E.VITA */
.logo-marquee__item img[src*="logo-13"],
.logo-marquee__item img[src*="logo-16"],
.logo-marquee__item img[src*="logo-19"],
.logo-marquee__item img[src*="logo-20"] {
  max-height: 72px;
  max-width: 294px;
}
/* +15% — meistroENERGIE */
.logo-marquee__item img[src*="logo-18"] {
  max-height: 59px;
  max-width: 242px;
}
/* +20% — enviaM, Vodafone, 1&1, M4Energy, Audax */
.logo-marquee__item img[src*="logo-01"],
.logo-marquee__item img[src*="logo-vodafone"],
.logo-marquee__item img[src*="logo-1und1"],
.logo-marquee__item img[src*="logo-04"] {
  max-height: 62px;
  max-width: 252px;
}
.logo-marquee__item img[src*="logo-m4energy"] {
  filter: invert(1) grayscale(1);
  max-height: 72px;
  max-width: 165px;
}
.logo-marquee__item img[src*="logo-vodafone"] {
  filter: invert(1) grayscale(1);
}
.logo-marquee__item img[src*="logo-telekom"] {
  max-height: 60px;
  max-width: 60px;
}

/* The source PNGs vary wildly in ink weight (measured avg luminance 27–246),
   so pull the outliers back toward a common mid-grey. Only files with a real
   alpha channel get a brightness tweak — the rest have a baked-in white box
   that would turn grey. */
.logo-marquee__item img[src*="logo-16"],
.logo-marquee__item img[src*="logo-24"],
.logo-marquee__item img[src*="logo-29"] { opacity: 0.6; }
.logo-marquee__item img[src*="logo-08"],
.logo-marquee__item img[src*="logo-12"] { opacity: 0.8; }

.logo-marquee__item img[src*="logo-04"] { filter: brightness(0.45); }
.logo-marquee__item img[src*="logo-23"],
.logo-marquee__item img[src*="logo-25"] { filter: brightness(0.8); }

/* logo-02 ships with a dark baked-in background — invert it so it reads on white */
.logo-marquee__item img[src*="logo-02"] { filter: invert(1) brightness(0.92); }

.logo-marquee__item:hover img { filter: none; opacity: 1; }
.logo-marquee__item:hover img[src*="logo-vodafone"] { filter: invert(1); }
.logo-marquee__item:hover img[src*="logo-m4energy"] { filter: invert(1); }
.logo-marquee__item:hover img[src*="logo-02"] { filter: invert(1); }
@keyframes logo-marquee-rtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   Cinematic hero: cross-fading photo sequence
   ═══════════════════════════════════════════════════════════ */
.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--black);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  filter: var(--img-grade);
  transform: scale(1.06);
}
.hero-slide.is-active img {
  animation: hero-drift 11s var(--ease-out) forwards;
}
@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.15) translate3d(-1.2%, -1.4%, 0); }
}
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.3) 35%, rgba(10, 10, 10, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.68) 52%, rgba(10, 10, 10, 0.12) 82%, transparent 100%);
}
/* Narrow viewports: text runs the full width, so the side scrim has to be flat */
@media (max-width: 800px) {
  .hero-slides::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.42) 30%, rgba(10, 10, 10, 0.85) 100%),
      linear-gradient(90deg, rgba(10, 10, 10, 0.48) 0%, rgba(10, 10, 10, 0.4) 100%);
  }
  .page-hero-media::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.42) 0%, rgba(10, 10, 10, 0.82) 100%),
      linear-gradient(90deg, rgba(10, 10, 10, 0.48) 0%, rgba(10, 10, 10, 0.4) 100%);
  }
}

/* Slide controls + scroll cue share one bar at the bottom of the hero */
.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.1rem, 2.5vw, 1.85rem);
  z-index: 2;
}
.hero-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.hero-progress {
  display: flex;
  gap: 0.5rem;
}
.hero-progress button {
  flex: 0 0 auto;
  width: 34px;
  /* t238: 24 px hohe, unsichtbare Trefferfläche; sichtbarer Balken bleibt 3 px, Layouthöhe bleibt 3 px */
  height: 24px;
  margin-block: -10.5px;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)) center / 100% 3px no-repeat;
  overflow: hidden;
}
.hero-progress button i {
  display: block;
  height: 3px;
  width: 0;
  background: var(--white);
}
.hero-progress button[aria-current="true"] i {
  animation: hero-progress-fill 6.5s linear forwards;
}
@keyframes hero-progress-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* Scroll cue */
.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hero-scroll-cue::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
  animation: cue-slide 2.4s var(--ease) infinite;
}
@keyframes cue-slide {
  0% { transform: scaleX(0.2); transform-origin: left; opacity: 0; }
  40% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); transform-origin: right; opacity: 0; }
}
@media (max-width: 720px) {
  .hero-scroll-cue { display: none; }
}

/* Trust chips under the hero CTAs */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.hero-badge::before {
  content: "✓";
  color: var(--accent-light);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   Alternating image + copy band
   ═══════════════════════════════════════════════════════════ */
.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
}
.split-band--flip .split-band-media { order: 2; }
.split-band-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 42vw, 520px);
}
.split-band-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-grade);
  transition: transform 1.4s var(--ease-out);
}
.split-band:hover .split-band-media img { transform: scale(1.04); }
.split-band-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.25rem, 5vw, 4rem);
  background: var(--off);
}
.split-band-copy h2 {
  margin-bottom: 1rem;
}
.split-band-copy p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 38rem;
}
.split-band--dark .split-band-copy {
  background: var(--black);
  color: rgba(245, 245, 245, 0.86);
}
.split-band--dark .split-band-copy h2 { color: var(--white); }
.split-band--dark .split-band-copy p { color: rgba(245, 245, 245, 0.8); }
.split-band--dark .split-band-copy .eyebrow { color: var(--accent-light); }
.split-band--dark .check-list li { color: rgba(245, 245, 245, 0.82); }
@media (max-width: 900px) {
  .split-band { grid-template-columns: 1fr; }
  .split-band--flip .split-band-media { order: 0; }
}

/* Fact list inside a split band */
.fact-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.75rem 0 0;
}
.fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.fact-list li strong {
  flex: 0 0 auto;
  min-width: 3.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.split-band--dark .fact-list li strong { color: var(--accent-light); }

/* ═══════════════════════════════════════════════════════════
   Counters
   ═══════════════════════════════════════════════════════════ */
.count-up { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active img,
  .hero-progress button[aria-current="true"] i,
  .hero-scroll-cue::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .hero-progress button[aria-current="true"] i { width: 100%; }
  .process-row::after { transform: scaleX(1); }
  .stats-big-meter span { transition: none; }
}

/* t230: Formular-Fehlermeldungen, Honeypot, Fallback (Kontakt/Termin) */
.hero-cta-line { margin: 0; }
.form-row textarea.is-invalid { border-color: #c45a5a; }
.field-error { display: block; min-height: 0; margin-top: 0.3rem; font-size: 0.78rem; line-height: 1.4; color: #8b3030; }
.field-error:empty { display: none; }
.form-error { display: none; margin: 0 0 1rem; padding: 0.75rem 1rem; border: 1px solid #c45a5a; background: #fdf6f6; color: #8b3030; font-size: 0.875rem; line-height: 1.5; }
.form-error.is-visible { display: block; }
.form-error a, .booking-error a { color: inherit; text-decoration: underline; }
.form-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-grid { position: relative; }
.booking-fallback { margin: 0 0 1.25rem; padding: 0.85rem 1rem; border: 1px solid var(--border); background: var(--off); font-size: 0.9rem; line-height: 1.5; }
.booking-fallback p { margin: 0; }
.booking-fallback a { color: var(--ink); text-decoration: underline; }
.booking-fallback.is-hidden { display: none; }
button[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.booking-times .booking-empty, .booking-days .booking-empty { grid-column: 1 / -1; }

/* ═══════════════════════════════════════════════════════════
   t237: Responsive-, Navigations- und Barrierefreiheits-Korrekturen
   (minimalinvasiv – keine neuen Farben, Schriften oder Animationen)
   ═══════════════════════════════════════════════════════════ */

/* B1: Header bei sehr schmalen Viewports (< 380 px, inkl. klassischer Scrollleiste) – Menübutton vollständig sichtbar */
@media (max-width: 379px) {
  .logo { width: 132px; }
  .header-inner { gap: 0.75rem; }
  .header-actions { gap: 0.5rem; }
  .header-kontakt { padding: 0.5rem 0.7rem; }
}

/* B2: lange Titel in Kacheln (Referenzen, Leistungen) vollständig lesbar */
.ig-feed-overlay > * { max-width: 100%; }
.ig-feed-title,
.ig-feed-label {
  overflow-wrap: break-word;
  hyphens: manual;
}
@media (max-width: 900px) {
  .ig-feed:not(.ig-feed--3) .ig-feed-title { font-size: clamp(0.95rem, 4.2vw, 1.35rem); }
  .ig-feed:not(.ig-feed--3) .ig-feed-overlay { padding: 0.9rem 0.85rem 1rem; }
}
.ref-teaser-body h3 { overflow-wrap: break-word; }

/* B6: Überschriften brechen notfalls um statt abgeschnitten zu werden */
h1, h2, h3 { overflow-wrap: break-word; }

/* B6: Bild-Text-Bänder – Spalte darf schmaler als ihr Inhalt werden (320/360 px) */
@media (max-width: 900px) {
  .split-band { grid-template-columns: minmax(0, 1fr); }
}

/* H: Faktenliste – einheitliche Kennzahlen-Spalte */
.fact-list { grid-template-columns: minmax(0, 1fr); }
.fact-list li span { min-width: 0; overflow-wrap: break-word; }

/* B3: Unterseiten-Navigation (Energie/Telekommunikation) – Scroll-Hinweis, Snap, Fokus */
.energie-subnav-inner {
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.5rem;
}
.energie-subnav a { scroll-snap-align: start; }
.energie-subnav a:last-child { scroll-snap-align: end; }
.energie-subnav-inner.has-more-end {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
}
.energie-subnav-inner.has-more-start {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3rem);
  mask-image: linear-gradient(to right, transparent, #000 3rem);
}
.energie-subnav-inner.has-more-start.has-more-end {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}
.energie-subnav a:focus-visible { outline-offset: -2px; }

/* B4: Kontakt/Termin – keine Überbreite zwischen 801 und 960 px */
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.booking-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 960px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
.contact-copy .lead,
.contact-detail { overflow-wrap: anywhere; }
.form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form-row input,
.form-row select,
.form-row textarea { min-width: 0; max-width: 100%; }
@media (min-width: 801px) and (max-width: 1100px) {
  .contact-card .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* H: Mehrwert-Akkordeon – Überstand auch ab 1440 px auf den Seitenrand begrenzen */
@media (min-width: 1440px) {
  .section--fair-acc .fair-acc {
    width: calc(100% + 2 * min(7.5%, max(0px, (100vw - 100%) / 2 - 1rem)));
    margin-left: calc(-1 * min(7.5%, max(0px, (100vw - 100%) / 2 - 1rem)));
    margin-right: calc(-1 * min(7.5%, max(0px, (100vw - 100%) / 2 - 1rem)));
  }
}

/* G: reduzierte Bewegung – Hover-Zoom auf Bildern aus */
@media (prefers-reduced-motion: reduce) {
  .split-band:hover .split-band-media img { transform: none; transition: none; }
  .ig-feed-tile:hover img { transform: scale(1.02); transition: none; }
}

/* T253: Rechtstexte – Unterüberschriften, Listen, Stand-Zeile, Platzhalter-Hinweise (nur .legal-content) */
.legal-content h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal-content ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1.25em; }
.legal-content li { margin-bottom: 0.35em; }
.legal-content .legal-stand { color: var(--text-muted); font-size: 0.9rem; }
.legal-content .legal-hinweis { background: var(--off); border-left: 3px solid var(--charcoal); padding: 0.75rem 1rem; color: var(--charcoal); font-size: 0.9rem; }

/* t258: Mobil-/Overlay-Menü – Punkte mit Untermenü wie normale Overlay-Links
   (vorher griffen die Desktop-Regeln .nav-item > button.nav-trigger: klein, grau, Hover dunkel auf schwarz) */
.nav-overlay .nav-item--overlay > button.nav-trigger {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: 1;
  transition: opacity 0.2s;
}
.nav-overlay .nav-item--overlay > button.nav-trigger:hover,
.nav-overlay .nav-item--overlay > button.nav-trigger.is-active {
  color: var(--white);
  opacity: 0.7;
}
.nav-overlay .nav-item--overlay > button.nav-trigger .nav-chevron {
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.3em;
}
.nav-overlay .nav-item--overlay:hover:not(.is-open) .nav-chevron { transform: none; }
/* t258: Spaltenüberschriften im Overlay auf WCAG-AA-Kontrast (vorher 0.4 = 3.77:1) */
.nav-overlay .nav-overlay-label { color: rgba(255,255,255,0.55); }

/* T374: lokale Korrekturen – Überschriftenumbrüche und Energie-Unternavigation */
body.tk254-ueber-uns .page-hero h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  max-width: none;
}
.page-hero h1.title-keep-words,
.legal-content h1.title-keep-words {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.legal-content h1.title-keep-words {
  max-width: none;
}
@media (max-width: 480px) {
  body.tk254-ueber-uns .page-hero h1 {
    font-size: clamp(1.4rem, 6.4vw, 2.25rem);
  }
  .page-hero h1.title-keep-words {
    font-size: clamp(1.5rem, 7vw, 2.35rem);
  }
  .legal-content h1.title-keep-words {
    font-size: clamp(1.4rem, 6.6vw, 2.15rem);
  }
  .energie-subnav-inner > a:last-child {
    padding-right: 3.25rem;
  }
}
