/* DER HERZOG – Relaunch 2026
   Konzept: „Bodenständig abgehoben" – Bildflächen schweben mit Parallax,
   Headlines stehen in Balken wie im Logo (Rahmen + Balken = Markenzeichen). */

@font-face { font-family: "Abel"; src: url("../fonts/abel.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  /* Farbe – aus dem Logo abgeleitet */
  --ink: #19171c;        /* Logo-Schwarz */
  --graphite: #56575b;   /* Logo „WERNER" */
  --stone: #9d9ea0;      /* Logo „WERBEAGENTUR" */
  --herzog: #a41b22;     /* Logo „HERZOG" */
  --herzog-dark: #861419;
  --mist: #e5eef4;       /* helles Blau für Flächen (aus den Logo-Icons) */
  --paper: #ffffff;
  --line: #d6d7da;

  /* Schrift */
  --display: "Abel", "Helvetica Neue", Arial, sans-serif;   /* wie die alte Website */
  --text: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  /* Maßstab (1,25er Schritte) */
  --fs-small: 0.875rem;
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-h2: clamp(2.125rem, 1.6rem + 2.4vw, 3.75rem);
  --fs-hero: clamp(2.25rem, 1.4rem + 4vw, 5.5rem);
  --fs-giant: clamp(4.5rem, 2rem + 12vw, 13rem);

  --wrap: 1280px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 84px;
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: var(--fs-body); line-height: 1.7; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--herzog); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 16px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: 0; margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0; max-width: 64ch; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- Logo ---------- */
.logo { display: block; width: 190px; line-height: 0; }
.logo img { width: 100%; height: auto; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  height: var(--header-h); display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.site-header.is-solid { background: var(--paper); box-shadow: 0 1px 0 var(--line); --header-h: 68px; }
.site-header.is-solid .logo { width: 160px; }
.logo { transition: width .4s var(--ease); }

.nav { display: flex; gap: clamp(14px, 2vw, 34px); align-items: center; font-family: var(--display); font-size: 1rem; letter-spacing: .02em; }
.nav a { text-decoration: none; color: var(--paper); padding-block: 6px; position: relative; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--herzog); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header.is-solid .nav a { color: var(--ink); text-shadow: none; }
.nav .nav-home { letter-spacing: .08em; }
.nav .nav-cta { border: 2px solid currentColor; padding: 6px 16px; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--herzog); border-color: var(--herzog); color: var(--paper); }

.burger { display: none; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; color: var(--paper); padding: 0; position: relative; z-index: 70; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 30px; }
.site-header.is-solid .burger { color: var(--ink); }
.menu-open .burger { color: var(--paper); }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 8px;
    font-size: clamp(1.75rem, 7vw, 2.5rem); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
    padding: calc(env(safe-area-inset-top, 0px) + 80px) var(--gutter-r) 40px var(--gutter-l); z-index: 65;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav a, .site-header.is-solid .nav a { color: var(--paper); text-shadow: none; padding-block: 10px; }
  .nav .nav-cta { margin-top: 16px; font-size: 1.25rem; }
  .logo { width: 150px; }
  .site-header.is-solid .logo { width: 132px; }
}

/* ---------- Hero / Slider ---------- */
.hero { position: relative; height: 92svh; min-height: 560px; max-height: 1000px; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide-media { position: absolute; inset: -6% 0; will-change: transform; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 8s linear; }
.slide.is-active .slide-media img { transform: scale(1.24); }
.slide-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(25,23,28,.55) 0%, rgba(25,23,28,0) 26%, rgba(25,23,28,0) 55%, rgba(25,23,28,.5) 100%); }

.slide-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(96px, 15vh, 150px); }
.slide-copy .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* Signatur: Headline in Balken wie im Logo */
.bar {
  display: inline-block; background: rgba(255,255,255,.7); color: var(--ink); font-family: var(--display);
  padding: .08em .32em .14em; line-height: 1.05;
  clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease);
}
.bar-title { font-size: var(--fs-hero); font-weight: 400; letter-spacing: .005em; }
.bar-sub { font-size: var(--fs-lead); font-weight: 400; color: var(--graphite); padding: .25em .6em .3em calc(var(--fs-hero) * .32); transition-delay: .18s; }
.slide.is-active .bar { clip-path: inset(0 0 0 0); }
/* Subline: schwarz 70 % */
.slide-copy .bar-sub { background: rgba(25,23,28,.7); color: var(--paper); }
.slide.is-active .bar-sub { transition-delay: .35s; }

.hero-ui { position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(28px, 5vh, 52px); }
.hero-ui .wrap { display: flex; align-items: center; gap: 20px; }
.dots { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.dots button {
  width: 52px; height: 32px; background: none; border: 0; cursor: pointer; padding: 0; position: relative;
  font-family: var(--display); font-size: .8125rem; color: rgba(255,255,255,.75); text-align: left; font-variant-numeric: tabular-nums;
}
.dots button::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: rgba(255,255,255,.35); }
.dots button::after { content: ""; position: absolute; left: 0; bottom: 4px; height: 2px; width: 0; background: var(--herzog); }
.dots button[aria-current="true"] { color: var(--paper); }
.dots button[aria-current="true"]::after { animation: progress var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .dots button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.hero-arrows { margin-left: auto; display: flex; gap: 8px; }
.hero-arrows button, .pause-btn { width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.7); background: rgba(25,23,28,.25); color: var(--paper); cursor: pointer; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.hero-arrows button:hover, .pause-btn:hover { background: var(--herzog); border-color: var(--herzog); }
.hero-arrows svg, .pause-btn svg { width: 18px; height: 18px; }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 0; width: 2px; height: 64px; background: linear-gradient(var(--paper), transparent); transform: translateX(-50%); opacity: .6; }
/* Handy: Bildschwerpunkt je Folie mittig, Hero etwas niedriger, damit mehr vom Bild sichtbar bleibt */
@media (max-width: 820px) and (orientation: portrait) {
  .hero { height: 74svh; min-height: 520px; }
  .slide-media img { object-position: var(--fx, 50%) 50%; transform-origin: var(--fx, 50%) 50%; }
}
@media (max-width: 640px) { .hero-arrows { display: none; } .dots button { width: 40px; } .scroll-cue { display: none; } }

/* Einzelbild-Hero (Social Media) */
.hero--single .slide { opacity: 1; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(80px, 11vw, 168px); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink p { color: #cfd0d3; }

/* Intro: großer Satz links, Text rechts */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro h2 { font-size: var(--fs-h2); }
.intro .copy { display: grid; gap: 1.1em; padding-top: .6em; }
.intro .copy p:first-child { font-size: var(--fs-lead); line-height: 1.5; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

/* Parallax-Band: Vollbild-Bild mit Text im Balken */
.band { position: relative; min-height: clamp(460px, 78vh, 820px); overflow: hidden; display: flex; align-items: flex-end; color: var(--paper); background: var(--ink); }
.band .px { position: absolute; inset: -18% 0; will-change: transform; }
.band .px img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,23,28,0) 35%, rgba(25,23,28,.72) 100%); }
.band-copy { position: relative; z-index: 2; width: 100%; padding-block: clamp(48px, 8vw, 112px); }
.band-copy .wrap { display: grid; gap: 18px; justify-items: start; }
.band .bar { clip-path: none; }
.band .bar-title { font-size: var(--fs-h2); }
.band p { color: #e9e9eb; font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; text-shadow: 0 1px 18px rgba(0,0,0,.4); }

/* Sticky-Liste: Titel bleibt stehen, Inhalte ziehen vorbei */
.sticky-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); }
.sticky-split > .sticky { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; display: grid; gap: 20px; }
.sticky-split .sticky p { color: var(--graphite); }
.section--ink .sticky-split .sticky p { color: #b9babd; }
@media (max-width: 860px) { .sticky-split { grid-template-columns: 1fr; } .sticky-split > .sticky { position: static; } }

.discipline { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; padding-block: 44px; border-top: 2px solid var(--ink); }
.discipline:last-child { border-bottom: 2px solid var(--ink); }
.discipline img { width: 96px; height: 96px; }
.discipline h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); font-weight: 400; margin-bottom: 14px; }
.discipline p { margin-bottom: 18px; }
@media (max-width: 520px) { .discipline { grid-template-columns: 1fr; gap: 16px; } .discipline img { width: 72px; height: 72px; } }

.more { font-family: var(--display); font-weight: 400; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; color: var(--herzog); }
.more::after { content: ""; width: 28px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
.more:hover::after { width: 44px; }
.section--ink .more { color: var(--paper); }

/* Bild + Text, Bild mit Parallax im Rahmen */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 150px); }
.feature--flip .figure { order: 2; }
.figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; max-width: 100%; background: var(--mist); }
.figure--wide { aspect-ratio: 16 / 11; }
.figure--full { aspect-ratio: 16 / 9; }
.figure--full .px { inset: 0; }
.figure .px { position: absolute; inset: -12% 0; will-change: transform; }
.figure .px img { width: 100%; height: 100%; object-fit: cover; }
.figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--ink); pointer-events: none; }
.feature .copy { display: grid; gap: 1.1em; align-content: start; }
.feature .copy h2 { margin-bottom: .2em; }
.feature .copy h3 { margin-top: .6em; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature--flip .figure { order: 0; } .figure { aspect-ratio: 4 / 3; } }

/* Große Zahl (echte Fakten: seit 1972, 5,5 Mio.) */
.figure-number { font-family: var(--display); font-size: var(--fs-giant); font-weight: 400; line-height: .82; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.section--ink .figure-number { color: var(--paper); }
.figure-number small { display: block; font-size: var(--fs-lead); font-weight: 400; letter-spacing: 0; line-height: 1.3; color: var(--graphite); margin-top: 18px; }
.section--ink .figure-number small { color: #b9babd; }

/* Zeitachse: echter Ablauf (Internet-Agentur) */
.steps { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 64px 22px 0 0; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 1.25rem; box-shadow: 0 0 0 3px var(--ink); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 3px; background: var(--stone); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { font-size: 1rem; color: var(--graphite); }
.section--ink .steps p { color: #b9babd; }
.section--ink .steps li::before { box-shadow: 0 0 0 3px var(--paper); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 32px 72px; }
  .steps li::after { top: 44px; left: 21px; right: auto; bottom: 0; width: 3px; height: auto; }
}

/* Plattformen / Werte als Typo-Liste */
.typelist { list-style: none; margin: 0; padding: 0; }
.typelist li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); padding-block: 30px; border-top: 1px solid var(--line); align-items: baseline; }
.typelist li:last-child { border-bottom: 1px solid var(--line); }
.typelist h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); font-weight: 400; }
.section--ink .typelist li { border-color: #3a383e; }
@media (max-width: 700px) { .typelist li { grid-template-columns: 1fr; gap: 8px; } }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
.values div { padding-block: 26px; border-top: 1px solid #3a383e; display: grid; gap: 8px; }
.values h3 { font-size: 1.5rem; }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }

.footnote { font-size: var(--fs-small); color: var(--graphite); margin-top: 20px; }
.section--ink .footnote { color: #9d9ea0; }

/* ---------- Kontakt: helles Bildband + heller Formularbereich ---------- */
.contact { background: var(--mist); color: var(--ink); }
.contact-band { position: relative; overflow: hidden; min-height: clamp(380px, 62vh, 640px); display: flex; align-items: flex-end; background: var(--ink); }
.contact-band .px { position: absolute; inset: -15% 0; will-change: transform; }
.contact-band .px img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.contact-band .wrap { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-block: clamp(40px, 6vw, 80px); }
.contact-band .bar { clip-path: none; }
.contact-band .bar-title { font-size: var(--fs-h2); }
.contact-band .bar-sub { background: rgba(25,23,28,.7); color: var(--paper); font-size: var(--fs-lead); padding: .25em .6em .3em calc(var(--fs-h2) * .32); }
.contact-body .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(64px, 9vw, 128px); }
.contact address { font-style: normal; font-size: var(--fs-lead); line-height: 1.55; margin-top: 28px; display: grid; gap: 2px; }
.contact address a { text-decoration: none; border-bottom: 1px solid var(--stone); }
.contact address a:hover { color: var(--herzog); border-color: var(--herzog); }
.contact .lede { color: var(--graphite); font-size: var(--fs-lead); line-height: 1.5; }
@media (max-width: 860px) { .contact-body .wrap { grid-template-columns: 1fr; } }

.form { display: grid; gap: 16px; align-content: start; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--display); font-size: 1rem; color: var(--graphite); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-bottom: 2px solid var(--stone);
  padding: 12px 14px; border-radius: 0; transition: border-color .25s; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--herzog); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--graphite); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--herzog); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  justify-self: start; font-family: var(--display); font-size: 1.125rem; font-weight: 400; letter-spacing: .02em;
  background: var(--herzog); color: var(--paper); border: 0; padding: 16px 30px; cursor: pointer; transition: background .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--herzog-dark); transform: translateY(-2px); }
.form-msg { font-size: 1rem; padding: 14px 16px; border-left: 3px solid var(--graphite); background: var(--paper); }
.form-msg.is-error { border-color: var(--herzog); }

/* Nach-oben-Knopf: quadratisch, weiß 70 % */
.to-top {
  position: fixed; z-index: 40; right: max(20px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255,255,255,.7); color: var(--ink);
  box-shadow: 0 6px 20px rgba(25,23,28,.18); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .25s, color .25s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--herzog); color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding-block: 48px; border-top: 1px solid var(--line); font-family: var(--display); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { text-decoration: none; color: var(--graphite); }
.site-footer a:hover { color: var(--herzog); }
.site-footer .logo { width: 150px; }
.site-footer small { color: var(--graphite); font-size: .875rem; }

/* ---------- Rechtliches ---------- */
.legal-head { background: var(--ink); color: var(--paper); padding-block: calc(var(--header-h) + 80px) 72px; }
.legal { display: grid; gap: 1em; max-width: 760px; }
.legal h2 { font-size: var(--fs-h3); margin-top: 1.4em; }
.legal table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.legal td, .legal th { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-family: var(--display); font-weight: 400; }
.table-scroll { overflow-x: auto; }
.placeholder { background: #fbecc2; padding: 0 4px; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .bar, .slide-media img, .site-header, .logo, .to-top { transition: none !important; }
  .slide.is-active .slide-media img { transform: scale(1.02); }
  .dots button[aria-current="true"]::after { animation: none; width: 100%; }
  .px, .slide-media { transform: none !important; }
}

/* =================== Ergänzungen Paket 25.10. =================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* KI-Kennzeichnung direkt im Bild */
.ki-label {
  position: absolute; z-index: 5; right: 10px; bottom: 10px; pointer-events: auto;
  font-family: var(--text); font-size: .6875rem; line-height: 1; letter-spacing: .02em;
  color: var(--paper); background: rgba(25,23,28,.6); padding: 5px 7px; border-radius: 2px; cursor: help;
}
.slide .ki-label { top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 12px); bottom: auto; right: max(20px, env(safe-area-inset-right, 0px)); }
.band .ki-label { z-index: 3; }

/* Urgestein: auch am Handy Hochformat */
.figure--portrait { aspect-ratio: 4 / 5; }
@media (max-width: 820px) { .figure--portrait { aspect-ratio: 4 / 5; max-width: 520px; } }
.figure img { object-position: var(--fx, 50%) 50%; }

/* Untermenü unter KONTAKT */
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { background: none; border: 0; color: inherit; width: 28px; height: 36px; padding: 0; cursor: pointer; display: grid; place-items: center; }
.site-header:not(.is-solid) .sub-toggle { color: var(--paper); filter: drop-shadow(0 1px 6px rgba(0,0,0,.4)); }
.site-header.is-solid .sub-toggle { color: var(--ink); }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.subnav {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px; display: grid;
  background: var(--paper); box-shadow: 0 12px 32px rgba(25,23,28,.18); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav .subnav a { color: var(--ink); text-shadow: none; padding: 10px 20px; }
.nav .subnav a::after { left: 20px; right: 20px; bottom: 6px; }
.has-sub:hover .subnav, .has-sub:focus-within .subnav, .has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
@media (max-width: 900px) {
  .nav-item { flex-direction: column; gap: 4px; }
  .sub-toggle { display: none; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 6px 0 0; min-width: 0; text-align: center; }
  .nav .subnav a, .site-header.is-solid .nav .subnav a { color: #b9babd; font-size: 1.125rem; padding: 6px 0; }
}

/* Kontakt-Teaser und Kontaktseite */
.contact-band--page { min-height: clamp(420px, 70vh, 720px); }
.legal-band { min-height: clamp(320px, 48vh, 480px); }
.contact-body--teaser .wrap { align-items: end; }
.teaser-cta { display: grid; gap: 20px; justify-items: start; align-content: end; }
.teaser-cta p { color: var(--graphite); font-size: var(--fs-lead); line-height: 1.5; }
a.btn { text-decoration: none; display: inline-block; }
.contact-note { margin-top: 28px; color: var(--graphite); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: .4em; max-width: 64ch; }

/* No-Cookies-Abschnitt */
.cookies { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cookies-badge { width: min(100%, 360px); height: auto; justify-self: center; will-change: transform; filter: drop-shadow(0 14px 28px rgba(25,23,28,.22)); }
.cookies .copy { display: grid; gap: 1.1em; }
@media (max-width: 820px) { .cookies { grid-template-columns: 1fr; } .cookies-badge { width: min(70%, 280px); } }
.footer-badge { display: block; width: 64px; line-height: 0; }
.footer-badge img { width: 100%; height: auto; }

/* Barrierefreiheits-Menü */
.a11y { position: fixed; z-index: 45; left: max(20px, calc(env(safe-area-inset-left, 0px) + 12px)); bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px)); }
.a11y-toggle {
  width: 52px; height: 52px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255,255,255,.7); color: var(--ink); box-shadow: 0 6px 20px rgba(25,23,28,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s, color .25s;
}
.a11y-toggle svg { width: 28px; height: 28px; }
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { background: var(--herzog); color: var(--paper); }
.a11y-panel {
  position: absolute; left: 0; bottom: 64px; width: min(300px, calc(100vw - 40px)); background: var(--paper); color: var(--ink);
  box-shadow: 0 16px 40px rgba(25,23,28,.25); padding: 18px; display: grid; gap: 8px; font-family: var(--text); font-size: 1rem;
}
.a11y-title { font-family: var(--display); font-size: 1.375rem; margin-bottom: 4px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 6px; }
.a11y-steps { display: flex; gap: 6px; }
.a11y-steps button, .a11y-opt, .a11y-reset {
  font: inherit; font-size: .9375rem; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 10px 12px; text-align: left;
}
.a11y-steps button { width: 48px; text-align: center; font-weight: 600; }
.a11y-opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.a11y-opt[aria-pressed="true"]::after { content: " ✓"; }
.a11y-reset { background: var(--mist); }
.a11y-more { font-size: .875rem; color: var(--herzog); margin-top: 4px; }
.a11y-steps button:hover, .a11y-opt:hover, .a11y-reset:hover { border-color: var(--ink); }

/* Einstellungen des Menüs */
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 137.5%; }
html.a11y-links a:not(.btn):not(.logo):not(.footer-badge) { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.a11y-links .nav a { background: rgba(255,255,255,.9); color: var(--ink) !important; text-shadow: none !important; padding-inline: 6px; }
html.a11y-readable { --display: "Open Sans", Arial, sans-serif; }
html.a11y-readable body { letter-spacing: .02em; word-spacing: .08em; }
html.a11y-spacing body { line-height: 2; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: .4em; }
html.a11y-contrast { --graphite: #19171c; --stone: #19171c; --line: #19171c; }
html.a11y-contrast .bar { background: #fff !important; }
html.a11y-contrast .bar-sub, html.a11y-contrast .contact-band .bar-sub { background: #000 !important; color: #fff !important; }
html.a11y-contrast .section--ink p, html.a11y-contrast .band p, html.a11y-contrast .steps p { color: #fff !important; }
html.a11y-contrast .band::after { background: rgba(0,0,0,.78); }
html.a11y-contrast .more { color: #8f0f15; }
html.a11y-motion .slide-media img, html.a11y-motion .slide.is-active .slide-media img { transform: none !important; transition: none !important; }
html.a11y-motion .px, html.a11y-motion .slide-media, html.a11y-motion .cookies-badge { transform: none !important; }
html.a11y-motion .bar { transition: none !important; }
html.a11y-motion .dots button::after { animation: none !important; }
html.a11y-motion { scroll-behavior: auto; }
@media print { .a11y, .to-top, .ki-label { display: none; } }

/* No-Cookies-Badge im Startseiten-Slider */
.hero-badge {
  --bw: clamp(96px, 9vw, 150px);
  position: absolute; z-index: 6; right: max(28px, calc(env(safe-area-inset-right, 0px) + 20px));
  /* Mitte auf Höhe der Headline-Balken: Abstand unten + Subline + Lücke + halbe Headline − halber Badge */
  bottom: calc(clamp(96px, 15vh, 150px) + var(--fs-lead) * 1.6 + 6px + var(--fs-hero) * .635 - var(--bw) / 2);
  width: var(--bw); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
  animation: badge-in 1s cubic-bezier(.3,1.6,.5,1) 1.4s both, badge-wobble 5s ease-in-out 3s infinite;
}
.hero-badge img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); position: relative; z-index: 1; }
.hero-badge-ring { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--herzog); opacity: 0; animation: badge-ring 2.6s ease-out 2.6s infinite; }
.hero-badge:hover { animation-play-state: paused; }
.hero-badge:hover img { transform: scale(1.08) rotate(-8deg); transition: transform .35s var(--ease); }
.hero-badge:focus-visible { outline-offset: 6px; }
@keyframes badge-in { from { opacity: 0; transform: translateY(-160px) scale(.3) rotate(-200deg); } to { opacity: 1; transform: none; } }
@keyframes badge-wobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-14deg) scale(1.06); } 82% { transform: rotate(10deg); } 88% { transform: rotate(-6deg); } 94% { transform: rotate(3deg); } }
@keyframes badge-ring { 0% { opacity: .9; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.45); } }
@media (max-width: 640px) { .hero-badge { top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 48px); bottom: auto; right: 16px; width: 84px; } }
@media (prefers-reduced-motion: reduce) { .hero-badge, .hero-badge-ring { animation: none; } }
html.a11y-motion .hero-badge, html.a11y-motion .hero-badge-ring { animation: none !important; }

.cookie-dialog { border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.cookie-dialog::backdrop { background: rgba(25,23,28,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cookie-dialog[open] { animation: dlg-in .45s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.cookie-dialog-inner { position: relative; padding: clamp(28px, 5vw, 44px); display: grid; gap: 14px; }
.cookie-dialog-inner > img { width: 96px; height: auto; margin-top: -4px; }
.cookie-dialog h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.cookie-dialog ul { margin: 0; padding-left: 1.2em; display: grid; gap: .3em; }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin-top: 8px; }
.cookie-dialog-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.cookie-dialog-x svg { width: 22px; height: 22px; }
.cookie-dialog-x:hover { color: var(--herzog); }
@media (prefers-reduced-motion: reduce) { .cookie-dialog[open] { animation: none; } }

/* Referenzen: ein großes Projekt links, vier kleinere rechts */
.ref-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); }
.ref-head p { color: var(--graphite); font-size: var(--fs-lead); }
.refs { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.ref--big { grid-row: span 2; }
.ref { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ref-shot { display: block; position: relative; overflow: hidden; line-height: 0; box-shadow: 0 0 0 1px var(--ink); background: var(--paper); }
.ref-shot img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.ref:hover .ref-shot img { transform: scale(1.04); }
.ref h3 { margin-top: 8px; font-size: 1.5rem; }
.ref--big h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.ref p { font-size: 1rem; color: var(--graphite); }
.ref--big p { font-size: var(--fs-body); }
@media (max-width: 1000px) { .refs { grid-template-columns: 1fr 1fr; } .ref--big { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 560px) { .refs { grid-template-columns: 1fr; } }
html.a11y-motion .ref:hover .ref-shot img { transform: none; }

/* Handy: Barrierefreiheits-Knopf zwischen Slider und erster Überschrift, KI-Label unter dem Keks-Abzeichen */
@media (max-width: 640px) {
  .a11y { bottom: max(20px, calc(26svh - 64px)); }
  .a11y-toggle { width: 46px; height: 46px; }
  .a11y-toggle svg { width: 24px; height: 24px; }
  .slide .ki-label { top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 144px); right: 16px; }
}
