/* ==========================================================================
   HOFER Landesprodukte – Design System v2
   Palette aus der Markenwelt: Strohgold, Flottengrün, warmes Ink, Papier
   ========================================================================== */

:root {
  --ink: #1b1813;
  --ink-soft: #4c463c;
  --paper: #f6f3eb;
  --paper-deep: #ede8da;
  --white: #fffdf8;
  --green-950: #122b1a;
  --green-900: #17381f;
  --green-800: #1d4d28;
  --green-700: #256b33;
  --green-600: #2e7a3c;
  --straw: #e0a32e;
  --straw-deep: #a5720f;
  --straw-ink: #7a540a;
  --line: #d9d2c0;
  --line-dark: rgba(255, 253, 248, 0.18);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --w-max: 1240px;
  --w-text: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sec-pad: clamp(4rem, 9vw, 8rem);

  --radius-s: 4px;
  --radius-m: 6px;
  --shadow-s: 0 4px 14px rgba(27, 24, 19, 0.1);
  --shadow-m: 0 14px 34px rgba(27, 24, 19, 0.14);

  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 550ms;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html {
    overflow-x: clip;
  }
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

ul[class],
ol[class],
.main-nav ul,
.stat-strip ul,
.route-band ul,
.pill-nav ul,
.site-footer ul {
  list-style: none;
  padding-left: 0;
}

/* ---------- Typografie ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display-xl,
.display-l,
.display-m,
.statement-text,
.step-num {
  font-stretch: 118%;
}

.display-xl {
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  line-height: 1.04;
}

.display-l {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
}

.display-m {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

p {
  max-width: var(--w-text);
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.125rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  font-weight: 500;
}

.muted {
  color: var(--ink-soft);
}

/* Eyebrow mit Strohstrich – Signatur-Element (Pinselstrich vom Auflieger) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-800);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 0.55rem;
  background: var(--straw);
  transform: skewX(-18deg);
  border-radius: 1px;
}

.on-dark .eyebrow {
  color: #e9c46a;
}

/* Gelber Markierstrich hinter Schlüsselwörtern */
.mark {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.mark::after {
  content: "";
  position: absolute;
  left: -0.15em;
  right: -0.25em;
  bottom: 0.04em;
  height: 0.34em;
  background: var(--straw);
  transform: skewX(-14deg) rotate(-0.6deg);
  z-index: -1;
  opacity: 0.9;
}

.on-dark {
  background: var(--green-950);
  color: var(--white);
}

.on-dark .muted {
  color: rgba(255, 253, 248, 0.78);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sec-pad);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.8rem);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split.split-heavy-left {
    grid-template-columns: 7fr 5fr;
  }

  .split.split-heavy-right {
    grid-template-columns: 5fr 7fr;
  }

  .split > .order-first-desktop {
    order: -1;
  }
}

/* Utilities */
.mt-1 { margin-top: 0.6rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Fokus ---------- */
:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.site-footer :focus-visible,
.call-bar :focus-visible {
  outline-color: var(--straw);
}

/* ---------- Topbar (Markenclaim über dem Menü) ---------- */
.topbar {
  background: var(--green-950);
  color: #f0c96a;
  text-align: center;
  padding: 0.55rem var(--gutter);
}

.topbar p {
  max-width: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topbar p::before,
.topbar p::after {
  content: "";
  width: 2rem;
  height: 0.5rem;
  background: var(--straw);
  transform: skewX(-18deg);
  border-radius: 1px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .topbar p {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    gap: 0.5rem;
  }

  .topbar p::before,
  .topbar p::after {
    width: 1.1rem;
    height: 0.4rem;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 243, 235, 0.94);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}

/* Blur liegt auf einem Pseudo-Element: backdrop-filter direkt auf dem Header
   würde das fixierte Mobile-Menü an den Header statt an den Viewport binden */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(8px);
}

.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(27, 24, 19, 0.1);
}

.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  transition: min-height var(--dur) var(--ease);
}

.site-header.scrolled .wrap {
  min-height: 3.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 2.4rem;
  transition: height var(--dur) var(--ease);
}

.site-header.scrolled .brand img {
  height: 2.1rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.15rem;
  transition: color var(--dur) var(--ease);
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--straw);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.main-nav a:hover {
  color: var(--green-800);
}

.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--green-800);
}

.nav-cta {
  display: inline-flex;
}

/* Header-CTA: ruhiger Outline-Stil im hellen Menü */
.main-nav .nav-cta .btn {
  min-height: 2.6rem;
  padding: 0.45rem 1.15rem;
  font-size: 0.92rem;
  background: transparent;
  border-color: var(--green-800);
  color: var(--green-800);
  box-shadow: none;
}

.main-nav .nav-cta .btn::before {
  content: "";
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.main-nav .nav-cta .btn:hover {
  background: var(--green-800);
  color: var(--white);
  transform: none;
}

.nav-toggle {
  position: relative;
  z-index: 30;
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  width: 2.9rem;
  height: 2.9rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle .bar {
  width: 1.3rem;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* Popup-Menü unter dem Burger-Button – endet nach dem Inhalt */
  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 25;
    width: min(19.5rem, calc(100vw - 1.5rem));
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: 0 22px 55px rgba(27, 24, 19, 0.3);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 0s linear 240ms;
  }

  .main-nav.open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 240ms var(--ease), transform 240ms var(--ease);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.2rem 1.2rem;
  }

  .main-nav li {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  }

  .main-nav.open li {
    opacity: 1;
    transform: none;
    transition-delay: calc(60ms + var(--i, 0) * 55ms);
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:not(.btn)::after {
    display: none;
  }

  .main-nav a[aria-current="page"] {
    border-bottom: 3px solid var(--straw);
  }

  .main-nav .nav-cta {
    margin-top: 1rem;
  }

  .main-nav .nav-cta .btn {
    width: 100%;
  }

  body.nav-open .nav-toggle .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-s);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: var(--green-800);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-950);
}

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

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

.on-dark .btn-primary,
.hero .btn-primary {
  background: var(--straw);
  color: var(--ink);
}

.on-dark .btn-primary:hover,
.hero .btn-primary:hover {
  background: #f0b845;
}

.on-dark .btn-outline,
.hero .btn-outline {
  border-color: rgba(255, 253, 248, 0.8);
  color: var(--white);
}

.on-dark .btn-outline:hover,
.hero .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 56rem);
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Bildfokus nach rechts: Lkw rechts, Textzone links frei */
.hero-media img {
  object-position: 68% center;
}

.hero-media img[data-parallax] {
  will-change: transform;
}

/* Scrim: links dunkle Textzone, rechts freies Bild – plus Abdunklung unten */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(97deg, rgba(18, 24, 14, 0.85) 0%, rgba(18, 24, 14, 0.6) 34%, rgba(18, 24, 14, 0.15) 58%, rgba(18, 24, 14, 0) 74%),
    linear-gradient(0deg, rgba(18, 24, 14, 0.45) 0%, rgba(18, 24, 14, 0) 38%);
}

.hero .wrap {
  width: 100%;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero h1 {
  max-width: 15em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero .lead {
  margin-top: 1.4rem;
  max-width: 38rem;
  color: rgba(255, 253, 248, 0.92);
}

.hero .eyebrow {
  color: #f0c96a;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

@media (max-width: 700px) {
  /* Inhalt oben im Himmel statt mittig – mit Luft unter dem Header */
  .hero {
    min-height: 78vh;
    align-items: flex-start;
  }

  .hero .wrap {
    padding-top: 2.4rem;
  }
}

/* Sub-Hero für Unterseiten */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(19rem, 46vh, 27rem);
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

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

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(10deg, rgba(18, 24, 14, 0.85) 5%, rgba(18, 24, 14, 0.25) 70%);
}

.page-hero .wrap {
  width: 100%;
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
}

.page-hero p {
  margin-top: 0.9rem;
  max-width: 40rem;
  color: rgba(255, 253, 248, 0.92);
  font-size: 1.1rem;
}

/* ---------- Zahlenleiste ---------- */
.stat-strip {
  background: var(--green-950);
  color: var(--white);
}

.stat-strip ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

@media (min-width: 760px) {
  .stat-strip ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-strip li {
  padding: 1.6rem 1.2rem;
  border-top: 1px solid var(--line-dark);
}

@media (min-width: 760px) {
  .stat-strip li {
    border-top: 0;
    border-left: 1px solid var(--line-dark);
  }

  .stat-strip li:first-child {
    border-left: 0;
  }
}

.stat-strip strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  font-stretch: 118%;
  font-variant-numeric: tabular-nums;
  color: var(--straw);
  line-height: 1.1;
}

.stat-strip span {
  font-size: 0.92rem;
  color: rgba(255, 253, 248, 0.82);
}

/* ---------- Produkt-Index (Startseite) ---------- */
.cat-index {
  border-top: 1px solid var(--line);
}

.cat-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem 2rem;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

.cat-row:hover {
  background: var(--paper-deep);
}

.cat-row .cat-name {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cat-row .cat-items {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 42rem;
}

.cat-row .cat-arrow {
  font-weight: 800;
  color: var(--green-800);
  transition: transform var(--dur) var(--ease);
}

.cat-row:hover .cat-arrow {
  transform: translateX(6px);
}

@media (max-width: 700px) {
  .cat-row {
    grid-template-columns: 1fr auto;
  }

  .cat-row .cat-items {
    grid-column: 1 / -1;
  }
}

/* ---------- Prozess-Schritte ---------- */
.steps {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }
}

.steps li {
  border-top: 3px solid var(--line);
  padding-top: 1.3rem;
}

.step-num {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--straw);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.7rem;
}

.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.steps p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ---------- Foto-Band ---------- */
.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.photo-band img {
  width: 100%;
  height: clamp(11rem, 26vw, 20rem);
  object-fit: cover;
}

@media (max-width: 700px) {
  .photo-band {
    grid-template-columns: 1fr;
  }

  .photo-band img {
    height: 14rem;
  }
}

/* ---------- Statement (Parallax) ---------- */
.statement {
  position: relative;
  min-height: clamp(20rem, 55vh, 32rem);
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.statement > img {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  z-index: -2;
  will-change: transform;
}

.statement::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(6deg, rgba(18, 24, 14, 0.72) 0%, rgba(18, 24, 14, 0.25) 70%);
}

.statement .wrap {
  width: 100%;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.statement-text {
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  font-weight: 800;
  line-height: 1.02;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.statement .route-band {
  border-block-color: rgba(255, 253, 248, 0.28);
  margin-top: clamp(1.8rem, 4vw, 3rem);
}

.statement .route-band li {
  color: rgba(255, 253, 248, 0.9);
}

.statement .route-band li::before {
  color: var(--straw);
}

/* ---------- Länder-/Routenband (Marquee) ---------- */
.route-band {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
}

.route-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: route-scroll 32s linear infinite;
}

.route-band:hover .route-track,
.route-band:focus-within .route-track {
  animation-play-state: paused;
}

.route-band ul {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.route-band li::before {
  content: "→ ";
  color: var(--straw-deep);
}

@keyframes route-scroll {
  to {
    transform: translateX(calc(-50% - 1.25rem));
  }
}

/* Statisches Band ohne Marquee-Markup */
.route-band.static ul {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.4rem;
}

.route-band.static li:first-child::before {
  content: "";
}

/* ---------- Zertifikate ---------- */
.cert-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.cert-card {
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: 1.6rem;
}

.cert-card img {
  height: 3.4rem;
  width: auto;
  background: var(--white);
  border-radius: var(--radius-s);
  padding: 0.35rem;
  margin-bottom: 1.1rem;
}

.cert-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.cert-card p {
  font-size: 0.92rem;
  color: rgba(255, 253, 248, 0.78);
}

/* Mini-Zertifikatszeile (hell) */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cert-row img {
  height: 2.6rem;
  width: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.3rem;
}

.cert-row span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Zitat ---------- */
.quote {
  border-left: 6px solid var(--straw);
  padding-left: clamp(1.2rem, 3vw, 2rem);
  max-width: 46rem;
}

.quote blockquote {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.quote figcaption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.on-dark .quote figcaption {
  color: rgba(255, 253, 248, 0.75);
}

/* ---------- Standorte ---------- */
.loc-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

@media (min-width: 860px) {
  .loc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.loc {
  background: var(--paper);
  padding: 2rem 1.7rem;
}

.loc .loc-country {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--straw-ink);
}

.loc h3 {
  margin: 0.5rem 0 0.7rem;
  font-size: 1.2rem;
}

.loc p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 5fr 7fr;
  }

  .faq-head {
    position: sticky;
    top: 7rem;
  }
}

.faq {
  border-top: 1px solid var(--line);
}

.faq:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 0.2rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--green-800);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--straw-deep);
  transition: transform var(--dur) var(--ease);
}

.faq-icon::before {
  width: 100%;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 100%;
}

.faq[open] .faq-icon::after {
  transform: scaleY(0);
}

.faq-body {
  padding: 0 0.2rem 1.3rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.faq[open] .faq-body {
  animation: faq-in 300ms var(--ease);
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- Job-Links (Teaser) ---------- */
.job-links {
  display: grid;
  gap: 0.8rem;
}

.job-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.job-link:hover {
  border-color: var(--straw-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-s);
}

.job-link strong {
  display: block;
  font-size: 1.05rem;
}

.job-link small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.job-link .cat-arrow {
  font-weight: 800;
  color: var(--green-800);
  transition: transform var(--dur) var(--ease);
}

.job-link:hover .cat-arrow {
  transform: translateX(5px);
}

/* ---------- Timeline (animiert, Markenfarben) ---------- */
.timeline {
  --tl-track: rgba(76, 70, 60, 0.25);
  --tl-dot-idle: var(--paper);
  --hofer-rot: #e2001a;
  position: relative;
  display: block;
}

/* Schiene */
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  bottom: 9px;
  width: 4px;
  border-radius: 2px;
  background: var(--tl-track);
}

/* Füll-Linie: wächst beim Scrollen (Gold → Hofer-Rot) */
.timeline::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  width: 4px;
  border-radius: 2px;
  height: var(--tl-progress, 0px);
  max-height: calc(100% - 18px);
  background: linear-gradient(180deg, var(--straw) 0%, var(--hofer-rot) 130%);
}

.timeline li {
  position: relative;
  padding: 0 0 clamp(1.9rem, 4vw, 2.7rem) clamp(2.9rem, 5vw, 3.6rem);
}

.timeline li:last-child {
  padding-bottom: 0;
}

/* Punkt: exakt mittig auf der Schiene (Schienenmitte = 12px) */
.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tl-dot-idle);
  border: 3px solid var(--tl-track);
  transform: scale(0.72);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

/* erreicht: Punkt leuchtet in Markenfarben auf */
.timeline li.done::before {
  background: var(--straw);
  border-color: var(--hofer-rot);
  transform: scale(1);
  box-shadow: 0 0 0 5px rgba(224, 163, 46, 0.18);
}

.timeline .tl-year {
  display: block;
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.45rem;
  transition: color 300ms var(--ease);
}

.timeline p {
  max-width: 30rem;
}

.on-dark .timeline {
  --tl-track: rgba(255, 253, 248, 0.2);
  --tl-dot-idle: var(--green-900);
}

.on-dark .timeline .tl-year {
  color: rgba(255, 253, 248, 0.55);
}

.on-dark .timeline li.done .tl-year {
  color: var(--straw);
}

.on-dark .timeline p {
  color: rgba(255, 253, 248, 0.82);
}

.tl-fig {
  display: none;
}

@media (min-width: 900px) {
  .tl-fig {
    display: block;
  }

  .tl-fig img {
    border-radius: var(--radius-s);
    position: sticky;
    top: 6rem;
  }
}

/* ---------- Kategorie-Sprungnavigation (Pills) ---------- */
.pill-nav {
  position: sticky;
  top: 3.85rem;
  z-index: 15;
  background: rgba(246, 243, 235, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.pill-nav ul {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.7rem var(--gutter);
  max-width: var(--w-max);
  margin-inline: auto;
}

.pill-nav ul::-webkit-scrollbar {
  display: none;
}

.pill-nav a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.pill-nav a:hover {
  background: var(--paper-deep);
  border-color: var(--straw-deep);
  color: var(--green-800);
}

/* ---------- Produktkatalog ---------- */
.prod-cat {
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.prod-cat-head {
  margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
}

.prod-cat-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin: 0.2rem 0 0.2rem;
}

.prod-cat-head .count {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

/* sanfter Hintergrundwechsel zwischen Kategorien */
.prod-cat-sec.tint {
  background: var(--paper-deep);
}

/* Produktkarten mit Foto */
.prod-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.prod {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.prod img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.prod .prod-body {
  padding: 0.95rem 1.15rem 1.15rem;
}

.prod h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.prod p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-800);
  border: 1px solid var(--green-700);
  border-radius: 99px;
  padding: 0.1rem 0.6rem;
  margin-left: 0.5rem;
  vertical-align: 0.15em;
}

/* ---------- Leistungs-Liste ---------- */
.service-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.service-list li {
  background: var(--paper);
  display: grid;
  gap: 0.4rem 2.5rem;
  padding: 1.8rem 0.5rem;
}

@media (min-width: 860px) {
  .service-list li {
    grid-template-columns: 16rem 1fr;
  }
}

.service-list h3 {
  font-size: 1.15rem;
}

.service-list p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Galerie + Lightbox ---------- */
.gallery {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gallery a {
  display: block;
  border-radius: 3px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.05);
}

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

  .gallery img {
    height: 9rem;
  }
}

.lightbox {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  max-width: none;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(18, 16, 12, 0.9);
}

.lightbox img {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-s);
}

.lightbox .lb-caption {
  color: rgba(255, 253, 248, 0.85);
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.7rem;
  max-width: none;
}

.lb-btn {
  position: fixed;
  z-index: 5;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 248, 0.4);
  background: rgba(27, 24, 19, 0.55);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.lb-btn:hover {
  background: rgba(27, 24, 19, 0.85);
  border-color: var(--straw);
}

.lb-close {
  top: 1rem;
  right: 1rem;
}

.lb-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Jobs ---------- */
.jobs-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 1000px) {
  .jobs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.jobs-grid .job + .job {
  margin-top: 0;
}

/* gleiche Kachelhöhe, Buttons bündig am unteren Rand */
.jobs-grid .job {
  display: flex;
  flex-direction: column;
}

.jobs-grid .job ul:last-of-type {
  margin-bottom: 1.8rem;
}

.jobs-grid .job .btn {
  margin-top: auto;
  align-self: flex-start;
}

.job {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.job + .job {
  margin-top: 2rem;
}

.job h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.job .job-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0.4rem 0 1.4rem;
}

.job h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-800);
  margin: 1.4rem 0 0.6rem;
}

.job ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.job .btn {
  margin-top: 1.8rem;
}

/* ---------- Formular ---------- */
.form-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .full {
    grid-column: 1 / -1;
  }
}

.field label,
.field legend {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b8b09c;
  border-radius: var(--radius-s);
  padding: 0.75rem 0.9rem;
  min-height: 3rem;
  transition: border-color var(--dur) var(--ease);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 1px;
}

.field .hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.field .error {
  display: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #9c2b12;
  margin-top: 0.35rem;
}

.field.invalid input,
.field.invalid textarea {
  border-color: #9c2b12;
  border-width: 2px;
}

.field.invalid .error {
  display: block;
}

/* Anliegen-Pills */
.field fieldset {
  border: 0;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pills label {
  margin: 0;
}

.pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pills span {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid #b8b09c;
  border-radius: 99px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.pills input:checked + span {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}

.pills input:focus-visible + span {
  outline: 3px solid var(--green-700);
  outline-offset: 2px;
}

/* ---------- Kontakt-Karten ---------- */
.contact-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
  padding: 1.6rem;
}

.contact-card h2,
.contact-card h3 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--straw-ink);
  margin-bottom: 0.7rem;
}

.contact-card a {
  font-weight: 700;
  color: var(--green-800);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.contact-card p {
  font-size: 1rem;
}

/* ---------- Text-Seiten (Recht) ---------- */
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.7rem;
}

.legal p,
.legal ul {
  max-width: var(--w-text);
  margin-bottom: 0.9rem;
}

.legal ul {
  padding-left: 1.3rem;
}

/* ---------- CTA-Schluss ---------- */
.cta-final .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cta-final .wrap {
    grid-template-columns: 1.4fr 1fr;
  }
}

.cta-final .phone-big {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: var(--straw);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.cta-final .phone-big:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.cta-box {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 253, 248, 0.85);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--straw);
  margin-bottom: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand img {
  height: 2.6rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-legal {
  border-top: 1px solid rgba(255, 253, 248, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 253, 248, 0.6);
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

/* ---------- Mobile Anruf-Leiste ---------- */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink);
  transform: translateY(0);
  transition: transform 280ms var(--ease);
}

/* Mit JS: erst ab ~20 % Scroll einblenden (sonst zu viele Buttons auf einmal) */
html.js .call-bar {
  transform: translateY(105%);
}

html.js .call-bar.cb-on {
  transform: translateY(0);
}

html.js body.nav-open .call-bar {
  transform: translateY(105%);
}

.call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.4rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.call-bar .cb-tel {
  background: var(--green-800);
  color: var(--white);
}

.call-bar .cb-mail {
  background: var(--straw);
  color: var(--ink);
}

@media (max-width: 820px) {
  .call-bar {
    display: grid;
  }

  body {
    padding-bottom: 3.4rem;
  }
}

/* ---------- Scroll-Reveal & Stagger ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

html.js .stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

html.js .stagger.in > * {
  opacity: 1;
  transform: none;
}

/* Bild-Reveal (sanfter Zoom im Rahmen) */
.media-reveal {
  overflow: hidden;
  border-radius: var(--radius-s);
}

.media-reveal img {
  border-radius: 0 !important;
}

html.js .media-reveal img {
  transform: scale(1.06);
  transition: transform 1100ms var(--ease);
}

html.js .media-reveal.in img,
html.js .reveal.in .media-reveal img,
html.js .reveal.in.media-reveal img {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal,
  html.js .stagger > *,
  html.js .media-reveal img {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .route-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .route-track ul[aria-hidden="true"] {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Cookie-Consent-Banner ---------- */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  margin-inline: auto;
  z-index: 50;
  width: min(46rem, calc(100vw - 2.2rem));
  animation: cc-in 450ms var(--ease);
}

@media (max-width: 700px) {
  .cookie-consent {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    width: auto;
  }
}

@keyframes cc-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.cc-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(27, 24, 19, 0.32);
  padding: 1.5rem 1.5rem 1.4rem;
}

/* Desktop: flaches Querformat – Text links, Buttons rechts */
@media (min-width: 900px) {
  .cc-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.2rem 2rem;
    align-items: center;
    padding: 1.3rem 1.6rem;
  }

  .cc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-title {
    margin: 0 0 0.3rem;
  }

  .cc-text {
    max-width: none;
  }

  .cc-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    flex-wrap: nowrap;
  }

  .cc-actions .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .cc-settings {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2rem;
    max-height: none;
    margin-top: 0.9rem;
    border-top: 1px solid var(--line);
  }

  .cc-settings[hidden] {
    display: none !important;
  }

  .cc-opt {
    border-top: 0;
    padding: 0.8rem 0 0.2rem;
  }
}

/* Strohstrich-Akzent – das Pinselstrich-Motiv der Marke */
.cc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--straw) 0%, var(--straw) 60%, #e2001a 100%);
}

.cc-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.15rem;
  margin: 0.2rem 0 0.5rem;
}

.cc-title svg {
  flex-shrink: 0;
  color: var(--straw-deep);
}

.cc-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cc-text a {
  color: var(--green-800);
  font-weight: 600;
  text-underline-offset: 3px;
}

.cc-settings {
  margin-top: 0.9rem;
  max-height: 38vh;
  overflow-y: auto;
}

.cc-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.cc-opt input {
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green-800);
  flex-shrink: 0;
}

.cc-opt strong {
  display: block;
  font-size: 0.95rem;
}

.cc-opt small {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.1rem;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.cc-actions .btn {
  min-height: 2.7rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  flex: 1 1 auto;
}

/* ---------- Barrierefreiheits-Widget ---------- */
.a11y {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 45;
  transition: bottom 280ms var(--ease);
}

.a11y-toggle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--green-800);
  color: var(--white);
  box-shadow: var(--shadow-m);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur) var(--ease);
}

.a11y-toggle:hover {
  background: var(--green-950);
}

.a11y-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.6rem);
  width: 15.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 1rem;
}

.a11y-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.a11y-row {
  display: flex;
  gap: 0.4rem;
}

.a11y-row button {
  flex: 1;
  min-height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.a11y-row button:hover {
  background: var(--paper-deep);
}

.a11y-opt {
  display: block;
  width: 100%;
  min-height: 2.6rem;
  margin-top: 0.45rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.a11y-opt:hover {
  background: var(--paper-deep);
}

.a11y-opt[aria-pressed="true"] {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}

/* Mobil: kleiner, ganz an die Unterkante, weicht der Anruf-Leiste aus */
@media (max-width: 820px) {
  .a11y {
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .call-bar.cb-on ~ .a11y {
    bottom: calc(3.4rem + 0.75rem);
  }

  .a11y-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .a11y-toggle svg {
    width: 19px;
    height: 19px;
  }
}

/* Hoher Kontrast */
html.a11y-contrast {
  --ink-soft: #14110c;
  --line: #7a7461;
}

html.a11y-contrast .muted,
html.a11y-contrast .prod p,
html.a11y-contrast .loc p,
html.a11y-contrast .faq-body,
html.a11y-contrast .steps p {
  color: var(--ink);
}

html.a11y-contrast .on-dark .muted,
html.a11y-contrast .on-dark p,
html.a11y-contrast .cert-card p,
html.a11y-contrast .stat-strip span {
  color: #ffffff;
}

html.a11y-contrast main a:not(.btn):not(.cat-row):not(.job-link):not(.prod) {
  text-decoration: underline;
}

/* Animationen aus (per Widget) */
html.a11y-stopmotion {
  scroll-behavior: auto;
}

html.a11y-stopmotion *,
html.a11y-stopmotion *::before,
html.a11y-stopmotion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

html.a11y-stopmotion .reveal,
html.a11y-stopmotion .stagger > *,
html.a11y-stopmotion .media-reveal img {
  opacity: 1 !important;
  transform: none !important;
}

html.a11y-stopmotion .route-track {
  animation: none;
  flex-wrap: wrap;
  width: auto;
}

html.a11y-stopmotion .route-track ul[aria-hidden="true"] {
  display: none;
}

/* ---------- Hinweis-Platzhalter ---------- */
.asset-note {
  border: 2px dashed var(--straw-deep);
  border-radius: var(--radius-m);
  background: rgba(224, 163, 46, 0.08);
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: 1.1rem 1.3rem;
}

.asset-note strong {
  color: var(--ink);
}
