/* ==========================================================================
   Otto Schnell GmbH & Co. KG
   Bildgeführt · räumlich · bewegt
   ========================================================================== */

/* --- 1. Marken-Tokens --------------------------------------------------- */
:root {
  --paper:    #EFF1F2;   /* kühles Hellgrau, lässt Fotos vortreten */
  --paper-2:  #E5E9EB;
  --white:    #FFFFFF;
  --ink:      #0F1417;
  --ink-2:    #39434A;
  --ink-3:    #5F6A72;   /* geprüft ≥ 4.5:1 auf --paper */
  --line:     #D8DDE0;
  --line-2:   #E7EAEC;

  --deep:     #0C1116;   /* Vollbild-Dunkelflächen */
  --deep-2:   #151C22;
  --on-deep:  #C2CCD2;
  --on-deep-2:#8E9BA4;   /* geprüft ≥ 4.5:1 auf --deep */

  --accent:      #12539B;
  --accent-hi:   #4A90E0;   /* auf dunklem Grund, geprüft ≥ 4.5:1 */
  --accent-soft: #E4EDF7;

  --f: "Schibsted Grotesk", "Helvetica Neue", -apple-system, Arial, sans-serif;

  /* Maßstab mit großen Sprüngen */
  --t-0:  clamp(1.02rem, 0.99rem + 0.16vw, 1.09rem);
  --t-1:  clamp(1.2rem, 1.13rem + 0.34vw, 1.4rem);
  --t-2:  clamp(1.55rem, 1.34rem + 1.02vw, 2.25rem);
  --t-3:  clamp(2.05rem, 1.63rem + 2.1vw, 3.4rem);
  --t-4:  clamp(2.7rem, 1.95rem + 3.7vw, 5rem);
  --t-5:  clamp(3.1rem, 2.05rem + 5.2vw, 5.9rem);

  --gap:  clamp(1.1rem, 0.8rem + 1.4vw, 2rem);
  --sec:  clamp(5rem, 3.4rem + 6.6vw, 10rem);
  --wrap: 1440px;
  --read: 66ch;
  --r:    3px;

  /* Höhenstaffelung: Versatz + weicher Radius + Kontaktschatten */
  --sh-1: 0 1px 2px rgba(15,20,23,.07), 0 3px 10px -5px rgba(15,20,23,.14);
  --sh-2: 0 2px 4px rgba(15,20,23,.06), 0 14px 32px -14px rgba(15,20,23,.26);
  --sh-3: 0 4px 9px rgba(15,20,23,.06), 0 32px 66px -26px rgba(15,20,23,.34);
  --sh-4: 0 10px 20px rgba(15,20,23,.07), 0 58px 110px -40px rgba(15,20,23,.46);

  --e:   cubic-bezier(.22,.61,.36,1);
  --eo:  cubic-bezier(.16,1,.3,1);
}

/* --- 2. Basis ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--f);
  font-size: var(--t-0);
  line-height: 1.66;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Browser-Oberflächen tragen den Entwurf mit */
::selection { background: var(--accent); color: #fff; }
:root { caret-color: var(--accent); accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
* { scrollbar-color: #AEB7BD var(--paper-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: #AEB7BD; border: 3px solid var(--paper-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.034em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
.num, .spec dd, dd, .stat b { font-variant-numeric: tabular-nums; }

/* --- 3. Raster ---------------------------------------------------------- */
.wrap { width: min(100% - 3.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 3.5rem, 1000px); margin-inline: auto; }
@media (max-width: 700px) { .wrap, .narrow { width: calc(100% - 1.8rem); } }

.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: clamp(3rem, 2.2rem + 3.6vw, 6rem); }
.sec--tint { background: var(--paper-2); }
.sec--white { background: var(--white); }
.sec--deep { background: var(--deep); color: var(--on-deep); }
.sec--deep h1, .sec--deep h2, .sec--deep h3, .sec--deep h4 { color: #fff; }
.sec--deep strong { color: #fff; }

.cols { display: grid; gap: clamp(1.8rem, 1rem + 4vw, 5rem); }
.c-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-21 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.c-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
@media (max-width: 940px) { .c-2, .c-21, .c-12 { grid-template-columns: 1fr; } }

/* --- 4. Typografie ------------------------------------------------------ */
.d-1 { font-size: var(--t-5); letter-spacing: -0.04em; line-height: .98; }
.d-2 { font-size: var(--t-4); letter-spacing: -0.038em; line-height: 1; }
.h-1 { font-size: var(--t-3); }
.h-2 { font-size: var(--t-2); }
.h-3 { font-size: var(--t-1); letter-spacing: -0.022em; }

.lead {
  font-size: clamp(1.14rem, 1.03rem + .55vw, 1.5rem);
  line-height: 1.5; color: var(--ink-2); max-width: 46ch; font-weight: 400;
}
.mute { color: var(--ink-3); }
.sec--deep .mute { color: var(--on-deep-2); }

.tag {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.sec--deep .tag { color: var(--accent-hi); }

.prose { max-width: var(--read); }
.prose > * + * { margin-top: 1.2rem; }
.prose h3 { margin-top: 2.6rem; }
.prose h4 { margin-top: 2rem; font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 1.15rem; display: grid; gap: .55rem; }
.prose li::marker { color: var(--accent); }
.prose a:not(.btn) {
  color: var(--accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose a:not(.btn):hover { background: var(--accent-soft); }
.sec--deep .prose a:not(.btn) { color: var(--accent-hi); }

/* Abschnittskopf */
.shead {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 1rem + 3vw, 4rem); align-items: end;
  margin-bottom: clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem);
}
.shead > p { max-width: 44ch; }
@media (max-width: 860px) { .shead { grid-template-columns: 1fr; align-items: start; } }

.rule { height: 1px; background: var(--line); border: 0; }
.sec--deep .rule { background: rgba(255,255,255,.14); }

/* --- 5. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1.05rem 1.7rem;
  font-size: .95rem; font-weight: 600; letter-spacing: -.005em;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  border-radius: var(--r); cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: var(--sh-1);
  transition: box-shadow .4s var(--e), transform .35s var(--eo), border-color .35s var(--e);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .5s var(--eo);
}
.btn:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--accent); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .4s var(--eo); }
.btn:hover svg { transform: translateX(5px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { color: #fff; }
.btn--glass {
  background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.34);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none;
}
.btn--glass:hover { color: #fff; }

.lnk {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .97rem; color: var(--ink);
  padding-bottom: .3rem; position: relative;
}
.lnk::before, .lnk::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
}
.lnk::before { background: var(--line); }
.lnk::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--eo); }
.lnk:hover { color: var(--accent); }
.lnk:hover::after { transform: scaleX(1); }
.lnk svg { transition: transform .4s var(--eo); }
.lnk:hover svg { transform: translateX(4px); }
.sec--deep .lnk, .on-photo .lnk { color: #fff; }
.sec--deep .lnk::before, .on-photo .lnk::before { background: rgba(255,255,255,.28); }
.sec--deep .lnk::after, .on-photo .lnk::after { background: var(--accent-hi); }
.sec--deep .lnk:hover, .on-photo .lnk:hover { color: var(--accent-hi); }

/* --- 6. Kopf ------------------------------------------------------------ */
.bar {
  background: var(--deep); color: var(--on-deep-2);
  font-size: .84rem; letter-spacing: -.005em;
}
.bar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.bar a:hover { color: #fff; }
.bar__r { display: flex; gap: 1.6rem; align-items: center; }
@media (max-width: 760px) { .bar .opt { display: none; } }

.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(239,241,242,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--e), box-shadow .4s var(--e), background .4s var(--e);
}
.nav.stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -26px rgba(15,20,23,.7); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 82px; }

.brand { display: flex; align-items: center; gap: .85rem; flex-shrink: 0; }
.brand svg { width: 40px; height: 40px; flex-shrink: 0; transition: transform .45s var(--eo); transform-origin: left center; }
.nav.stuck .brand svg { transform: scale(.86); }
.brand__t { display: grid; line-height: 1; }
.brand__n { font-size: 1.16rem; font-weight: 700; color: var(--ink); letter-spacing: -.032em; }
.brand__s { font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: .36rem; }

.menu { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; }
.menu > li { position: relative; }
.menu__a {
  display: inline-block; padding: .6rem .85rem;
  font-size: .96rem; font-weight: 500; color: var(--ink-2);
  border-radius: var(--r); position: relative;
  transition: color .3s var(--e), background .3s var(--e);
}
.menu__a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--eo);
}
.menu__a:hover { color: var(--ink); }
.menu__a:hover::after, .menu__a[aria-current="page"]::after { transform: scaleX(1); }
.menu__a[aria-current="page"] { color: var(--ink); }

.sub {
  position: absolute; top: calc(100% + .45rem); left: 0; min-width: 274px;
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--r); box-shadow: var(--sh-3);
  list-style: none; margin: 0; padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.99);
  transition: opacity .3s var(--e), transform .3s var(--eo), visibility .3s;
}
.menu > li:hover > .sub, .menu > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a {
  display: block; padding: .62rem .8rem; font-size: .95rem; color: var(--ink-2);
  border-radius: 2px; transition: background .25s var(--e), color .25s var(--e);
}
.sub a:hover { background: var(--accent-soft); color: var(--accent); }

.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__cta .btn { padding: .78rem 1.25rem; font-size: .9rem; }
@media (max-width: 1220px) { .menu, .nav__cta .btn { display: none; } }

.burger {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--r); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  box-shadow: var(--sh-1);
}
.burger i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--eo), opacity .3s; }
.burger.open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1220px) { .burger { display: flex; } }

.drawer {
  position: fixed; inset: 0; z-index: 89; background: var(--paper);
  padding: 120px 0 3rem; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 46px) 68px);
  transition: clip-path .75s var(--eo);
  visibility: hidden;
}
.drawer.open { clip-path: circle(150% at calc(100% - 46px) 68px); visibility: visible; }
.drawer ul { list-style: none; padding: 0; }
.drawer > .wrap > ul > li { border-bottom: 1px solid var(--line); }
.drawer > .wrap > ul > li > a {
  display: block; padding: 1.05rem 0;
  font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.036em;
}
.drawer > .wrap > ul > li > a:hover { color: var(--accent); }
.drawer .s a { display: block; padding: .5rem 0 .5rem 1.1rem; font-size: 1rem; color: var(--ink-3); font-weight: 500; }
.drawer .s { padding-bottom: .7rem; }

/* --- 7. Hero: das Bild ist die Bühne ----------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(94vh, 940px);
  display: flex; align-items: flex-end;
  padding-bottom: clamp(7rem, 5rem + 8vw, 12rem);
  background: var(--deep);
}
.hero__media { position: absolute; inset: -8% 0 -8% 0; z-index: 0; will-change: transform; }
.hero__media > img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14);
  filter: saturate(.82) contrast(1.06);
}

/* Diaschau: vier Motive blenden ineinander, jedes mit eigener Kamerafahrt */
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--e); }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) contrast(1.06);
  transform: scale(1.12);
}
.hero__slide.on { opacity: 1; }
.hero__slide.on img { animation: kb 9s cubic-bezier(.3,.1,.3,1) forwards; }
.hero__slide:nth-child(2).on img { animation-name: kb2; }
.hero__slide:nth-child(3).on img { animation-name: kb3; }
.hero__slide:nth-child(4).on img { animation-name: kb4; }
@keyframes kb  { from { transform: scale(1.12) translate(0,0); }      to { transform: scale(1.2) translate(-1.4%, -1%); } }
@keyframes kb2 { from { transform: scale(1.2) translate(-1.2%,0); }   to { transform: scale(1.12) translate(1%, 1%); } }
@keyframes kb3 { from { transform: scale(1.13) translate(1%,-1%); }   to { transform: scale(1.21) translate(-1%, 1%); } }
@keyframes kb4 { from { transform: scale(1.21) translate(0,1%); }     to { transform: scale(1.12) translate(1.2%,-1%); } }
@media (prefers-reduced-motion: reduce) {
  .hero__slide.on img { animation: none; }
}

/* Zeiger-Parallaxe: die Ebene folgt der Maus minimal nach */
.hero__pan { position: absolute; inset: -3%; will-change: transform; }

/* Lichtstreif, der einmal je Runde über das Bild zieht */
.hero__sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.hero__sheen::before {
  content: ""; position: absolute; top: -60%; bottom: -60%; width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.11) 46%, rgba(255,255,255,.02) 70%, transparent);
  transform: translateX(-160%) rotate(9deg);
  animation: sheen 9s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes sheen { 0% { transform: translateX(-160%) rotate(9deg); } 55%,100% { transform: translateX(420%) rotate(9deg); } }

/* Feines Korn, damit die Fläche nicht digital-glatt wirkt */
.hero__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.16'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Anzeige der laufenden Runde */
.hero__dots { display: flex; gap: .55rem; margin-top: 2.6rem; }
.hero__dot {
  width: 46px; height: 3px; border-radius: 2px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.28); position: relative; overflow: hidden;
}
.hero__dot::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: scaleX(0); transform-origin: left;
}
.hero__dot.on::after { animation: dotfill 6s linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__dot:hover { background: rgba(255,255,255,.5); }
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,17,22,.78) 0%, rgba(12,17,22,.18) 34%, rgba(12,17,22,.62) 72%, rgba(12,17,22,.92) 100%),
    linear-gradient(90deg, rgba(12,17,22,.66) 0%, rgba(12,17,22,0) 62%);
}
.hero__in { position: relative; z-index: 3; color: #fff; }
.hero h1 { color: #fff; font-size: var(--t-5); letter-spacing: -.042em; max-width: 15ch; }
.hero h1 em { font-style: normal; color: #fff; opacity: .55; }
.hero__sub { color: rgba(255,255,255,.86); font-size: clamp(1.1rem, 1rem + .5vw, 1.42rem); max-width: 48ch; margin-top: 1.6rem; line-height: 1.5; }
.hero__act { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2.4rem; }
.hero__tag { color: rgba(255,255,255,.72); }

.scrollcue {
  position: absolute; left: 0; right: 0; bottom: clamp(1.6rem, 3vh, 2.6rem); z-index: 4;
  pointer-events: none;
}
.scrollcue span {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.scrollcue span::after {
  content: ""; width: 46px; height: 1px; background: rgba(255,255,255,.45);
  transform-origin: left; animation: cue 2.6s var(--e) infinite;
}
@keyframes cue { 0%,100% { transform: scaleX(.2); opacity: .3; } 50% { transform: scaleX(1); opacity: 1; } }
@media (max-width: 760px) { .scrollcue { display: none; } }

/* Schwebendes Panel, das den Heroe überlappt */
.floatpanel {
  position: relative; z-index: 5;
  margin-top: clamp(-7rem, -5rem - 5vw, -4rem);
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh-4);
  overflow: hidden;
}
.floatpanel__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .floatpanel__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .floatpanel__grid { grid-template-columns: 1fr; } }
.stat {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem);
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transition: background .4s var(--e);
}
.stat:hover { background: var(--accent-soft); }
.stat b {
  display: block; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem);
  font-weight: 700; color: var(--ink); letter-spacing: -.045em; line-height: 1;
}
.stat b i { font-style: normal; font-size: .5em; color: var(--accent); letter-spacing: -.02em; }
.stat span { display: block; margin-top: .8rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.stat small { display: block; margin-top: .35rem; font-size: .88rem; color: var(--ink-3); line-height: 1.5; }

/* Unterseiten-Hero */
.phero {
  position: relative; overflow: hidden; background: var(--deep);
  min-height: clamp(400px, 58vh, 660px);
  display: flex; align-items: flex-end;
  padding-block: clamp(5rem, 4rem + 6vw, 9rem) clamp(3.2rem, 2.4rem + 4vw, 6rem);
}
.phero__media { position: absolute; inset: -8% 0 -8% 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: saturate(.82) contrast(1.06); }
.phero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,17,22,.72) 0%, rgba(12,17,22,.3) 44%, rgba(12,17,22,.88) 100%),
    linear-gradient(90deg, rgba(12,17,22,.62) 0%, rgba(12,17,22,0) 66%);
}
.phero__in { position: relative; z-index: 3; color: #fff; }
.phero h1 { color: #fff; font-size: var(--t-4); max-width: 17ch; }
.phero p { color: rgba(255,255,255,.84); max-width: 54ch; margin-top: 1.3rem; font-size: clamp(1.05rem, .98rem + .42vw, 1.28rem); }
.phero .tag { color: rgba(255,255,255,.72); }

.crumbs { font-size: .88rem; color: rgba(255,255,255,.6); display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-style: normal; opacity: .5; }

/* --- 8. Bildblöcke ------------------------------------------------------ */
.fig { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: var(--sh-2); }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig--w { aspect-ratio: 16 / 10; }
.fig--t { aspect-ratio: 3 / 4; }
.fig--s { aspect-ratio: 1; }
.fig--x { aspect-ratio: 21 / 9; }
.fig--float { box-shadow: var(--sh-4); }
.fig figcaption, .cap { font-size: .92rem; color: var(--ink-3); margin-top: .9rem; line-height: 1.55; }
.sec--deep .cap, .sec--deep figcaption { color: var(--on-deep-2); }

/* Überlappung: das Bild bricht aus seiner Spalte aus */
.over-l { margin-left: clamp(-4rem, -2rem - 4vw, 0rem); }
.over-r { margin-right: clamp(-4rem, -2rem - 4vw, 0rem); }
.over-up { margin-top: clamp(-6rem, -3rem - 5vw, -2rem); }
@media (max-width: 940px) { .over-l, .over-r { margin-inline: 0; } .over-up { margin-top: 0; } }

/* Bildpaar mit versetzter Tiefe */
.duo { position: relative; }
.duo__back { width: 82%; }
.duo__front {
  position: absolute; right: 0; bottom: clamp(-3rem, -1.5rem - 3vw, -1rem);
  width: 46%; box-shadow: var(--sh-4); border-radius: var(--r); overflow: hidden;
  background: var(--paper-2);
}
.duo__front img { aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 640px) {
  .duo__back { width: 100%; }
  .duo__front { position: static; width: 62%; margin: -3rem 0 0 auto; }
}

/* Bildwischer beim Eintreten */
.wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.15s var(--eo); }
.wipe--r { clip-path: inset(0 0 0 100%); }
.wipe--up { clip-path: inset(100% 0 0 0); }
.in .wipe, .wipe.in { clip-path: inset(0 0 0 0); }
.wipe img { transform: scale(1.16); transition: transform 1.5s var(--eo); }
.in .wipe img, .wipe.in img { transform: scale(1); }

/* --- 9. Leistungskacheln (Bild trägt) ---------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }

.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r); background: var(--deep);
  aspect-ratio: 4 / 4.6;
  box-shadow: var(--sh-2);
  transition: box-shadow .55s var(--e), transform .55s var(--eo);
  will-change: transform;
}
.tile:hover { box-shadow: var(--sh-4); transform: translateY(-8px); }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.75) brightness(.78);
  transition: filter .7s var(--e), transform 1.3s var(--eo);
}
.tile:hover img { filter: saturate(.95) brightness(.66); transform: scale(1.07); }
.tile__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,17,22,0) 34%, rgba(12,17,22,.72) 74%, rgba(12,17,22,.95) 100%);
}
.tile__body { position: absolute; inset: auto 0 0 0; padding: clamp(1.3rem, 1rem + 1.2vw, 2.1rem); color: #fff; z-index: 2; }
.tile__body h3 { color: #fff; font-size: var(--t-2); }
.tile__meta { font-size: .9rem; color: rgba(255,255,255,.72); margin-top: .55rem; font-weight: 500; }
.tile__txt {
  color: rgba(255,255,255,.8); font-size: .96rem; margin-top: .8rem;
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .6s var(--eo), opacity .5s var(--e);
}
.tile__txt > span { overflow: hidden; }
.tile:hover .tile__txt { grid-template-rows: 1fr; opacity: 1; }
.tile__go {
  position: absolute; top: clamp(1.2rem, 1vw + .8rem, 1.9rem); right: clamp(1.2rem, 1vw + .8rem, 1.9rem);
  width: 46px; height: 46px; border-radius: 50%; z-index: 2;
  border: 1px solid rgba(255,255,255,.34); display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.08); backdrop-filter: blur(6px);
  transition: background .45s var(--e), transform .55s var(--eo), border-color .45s;
}
.tile:hover .tile__go { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
@media (hover: none) { .tile__txt { grid-template-rows: 1fr; opacity: 1; } }

/* --- 10. Gestapelte Branchen-Panels ------------------------------------ */
.stack { position: relative; }
.stack__i {
  position: sticky; top: clamp(80px, 12vh, 130px);
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--deep);
  margin-bottom: clamp(1rem, 2vw, 2rem);
  will-change: transform;
}
.stack__i:last-child { margin-bottom: 0; }
.stack__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: clamp(320px, 46vh, 480px); }
@media (max-width: 860px) { .stack__grid { grid-template-columns: 1fr; } }
.stack__txt { padding: clamp(1.7rem, 1.2rem + 2.4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; color: var(--on-deep); }
.stack__txt h3 { color: #fff; font-size: var(--t-3); }
.stack__txt p { margin-top: 1rem; max-width: 42ch; }
.stack__no { font-size: .86rem; font-weight: 600; letter-spacing: .12em; color: var(--accent-hi); margin-bottom: 1rem; }
.stack__img { position: relative; overflow: hidden; min-height: 260px; }
.stack__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.stack__i .lnk { margin-top: 1.8rem; align-self: flex-start; }

/* --- 11. Datenlisten ---------------------------------------------------- */
.spec { border-top: 1px solid var(--line); margin: 0; }
.spec > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.spec dt { font-size: .95rem; color: var(--ink-3); }
.spec dd { margin: 0; font-weight: 600; color: var(--ink); }
.sec--deep .spec, .sec--deep .spec > div { border-color: rgba(255,255,255,.14); }
.sec--deep .spec dt { color: var(--on-deep-2); }
.sec--deep .spec dd { color: #fff; }

/* Prozessschritte */
.steps { counter-reset: s; }
.steps > div {
  counter-increment: s;
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 2.6vw, 3rem);
  padding-block: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  border-top: 1px solid var(--line); align-items: start;
  transition: background .45s var(--e);
}
.steps > div:last-child { border-bottom: 1px solid var(--line); }
.steps > div::before {
  content: "0" counter(s);
  font-size: 1.05rem; font-weight: 700; color: var(--accent); letter-spacing: -.03em;
}
.steps h3 { font-size: var(--t-1); }
.steps p { font-size: .99rem; max-width: 60ch; }
.steps > div:hover { background: var(--white); }
.sec--deep .steps > div { border-color: rgba(255,255,255,.14); }
.sec--deep .steps > div:hover { background: rgba(255,255,255,.04); }
@media (max-width: 800px) {
  .steps > div { grid-template-columns: 3rem minmax(0, 1fr); }
  .steps p { grid-column: 2; }
}

/* --- 12. Karten (sparsam, nur wo Inhalt gleichrangig ist) -------------- */
.panel {
  background: var(--white); border-radius: var(--r);
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem);
  box-shadow: var(--sh-2);
  transition: box-shadow .5s var(--e), transform .5s var(--eo);
}
.panel--lift:hover { box-shadow: var(--sh-3); transform: translateY(-4px); }
.panel h3 { font-size: var(--t-1); }
.panel p { margin-top: .7rem; font-size: .98rem; }
.panel ul { list-style: none; padding: 0; display: grid; gap: .5rem; margin-top: 1.1rem; }
.panel ul li { position: relative; padding-left: 1.2rem; font-size: .95rem; }
.panel ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1.5px; background: var(--accent); }
.sec--deep .panel { background: var(--deep-2); box-shadow: none; border: 1px solid rgba(255,255,255,.12); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-size: .88rem; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--white);
  padding: .42rem .85rem; border-radius: 999px;
}
.sec--deep .chip { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--on-deep); }

.quote {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 2rem); line-height: 1.28;
  color: var(--ink); font-weight: 600; letter-spacing: -.03em; max-width: 24ch;
}
.quote cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: .92rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.sec--deep .quote { color: #fff; }
.sec--deep .quote cite { color: var(--on-deep-2); }

/* --- 13. Aufklappen ----------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__i { border-bottom: 1px solid var(--line); }
.acc__b {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.1rem, .9rem + .7vw, 1.7rem) 0;
  font-family: inherit; font-size: clamp(1.06rem, 1rem + .42vw, 1.34rem);
  font-weight: 600; letter-spacing: -.026em; color: var(--ink);
  transition: color .3s var(--e);
}
.acc__b:hover { color: var(--accent); }
.acc__x { position: relative; width: 22px; height: 22px; flex-shrink: 0; margin-top: .28em; }
.acc__x::before, .acc__x::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .45s var(--eo); }
.acc__x::before { left: 0; top: 10px; width: 22px; height: 2px; }
.acc__x::after { left: 10px; top: 0; width: 2px; height: 22px; }
.acc__i.open .acc__x::after { transform: scaleY(0); }
.acc__p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--eo); }
.acc__i.open .acc__p { grid-template-rows: 1fr; }
.acc__p > div { overflow: hidden; }
.acc__p-in { padding-bottom: 1.6rem; max-width: 70ch; }
.acc__p-in > * + * { margin-top: .9rem; }

/* --- 14. Galerie + Leuchtkasten ---------------------------------------- */
.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gap); }
.gal figure { margin: 0; }
.gal__a { display: block; position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-2); cursor: zoom-in; box-shadow: var(--sh-2); transition: box-shadow .5s var(--e), transform .5s var(--eo); }
.gal__a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12,17,22,.35));
  opacity: 0; transition: opacity .5s var(--e);
}
.gal__a:hover { box-shadow: var(--sh-3); transform: translateY(-4px); }
.gal__a:hover::after { opacity: 1; }
.gal__a img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }

.lb {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(8,11,14,.94); padding: 4vmin;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--e), visibility .35s;
  backdrop-filter: blur(6px);
}
.lb.open { opacity: 1; visibility: visible; }
.lb img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: var(--r); transform: scale(.96); transition: transform .45s var(--eo); box-shadow: var(--sh-4); }
.lb.open img { transform: none; }
.lb__c { color: rgba(255,255,255,.68); font-size: .92rem; margin-top: 1.1rem; text-align: center; }
.lb__x {
  position: absolute; top: 1.8rem; right: 1.8rem; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.07); color: #fff;
  cursor: pointer; font-size: 1.3rem; transition: background .3s, transform .4s var(--eo);
}
.lb__x:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

/* --- 15. Abschluss-Sektion mit Foto ------------------------------------ */
.close { position: relative; overflow: hidden; background: var(--deep); color: var(--on-deep); padding-block: clamp(4.5rem, 3.4rem + 5vw, 8rem); }
.close__media { position: absolute; inset: -8% 0 -8% 0; }
.close__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: saturate(.7) brightness(.5); }
.close__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,17,22,.94) 0%, rgba(12,17,22,.72) 52%, rgba(12,17,22,.5) 100%); }
.close__in { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
@media (max-width: 940px) { .close__in { grid-template-columns: 1fr; } }
.close h2 { color: #fff; font-size: var(--t-3); max-width: 16ch; }
.close p { margin-top: 1.2rem; max-width: 50ch; color: rgba(255,255,255,.82); }
.close__box {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r); padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
  box-shadow: var(--sh-3);
}
.close__box .spec, .close__box .spec > div { border-color: rgba(255,255,255,.16); }
.close__box .spec dt { color: rgba(255,255,255,.6); }
.close__box .spec dd { color: #fff; }
.close__box a:hover { color: var(--accent-hi); }

/* --- 16. Formular ------------------------------------------------------- */
.form { display: grid; gap: 1.2rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.fld { display: grid; gap: .45rem; }
.fld > label { font-size: .89rem; font-weight: 600; color: var(--ink); }
.fld input, .fld textarea, .fld select {
  width: 100%; padding: .95rem 1.05rem; font-size: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .28s var(--e), box-shadow .28s var(--e);
}
.fld textarea { resize: vertical; min-height: 158px; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-3); }
.fld input:focus, .fld textarea:focus, .fld select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(18,83,155,.12);
}
.chk { display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: var(--ink-3); }
.chk input { width: 18px; height: 18px; margin-top: .22rem; flex-shrink: 0; }
.note { font-size: .88rem; color: var(--ink-3); background: var(--paper-2); border-radius: var(--r); padding: .9rem 1.1rem; }
.done { display: none; padding: 1.1rem 1.3rem; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: var(--r); color: var(--ink); }
.done.on { display: block; animation: fade .5s var(--e); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

.ctile { background: var(--white); border-radius: var(--r); padding: clamp(1.4rem, 1rem + 1.3vw, 2.1rem); box-shadow: var(--sh-2); transition: box-shadow .5s var(--e), transform .5s var(--eo); }
.ctile:hover { box-shadow: var(--sh-3); transform: translateY(-4px); }
.ctile > b { display: block; font-size: .88rem; font-weight: 600; color: var(--accent); margin-bottom: .8rem; }
.ctile p, .ctile a { font-size: 1.08rem; color: var(--ink); font-weight: 600; }
.ctile a:hover { color: var(--accent); }
.ctile small { display: block; margin-top: .5rem; font-size: .9rem; color: var(--ink-3); font-weight: 400; }

.map { border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 16/9; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* --- 17. Zeitleiste ----------------------------------------------------- */
.tl { position: relative; }
.tl__i {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(1.4rem, 3vw, 3.4rem); align-items: center;
  padding-block: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem);
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) { .tl__i { grid-template-columns: 1fr; } }
.tl__y { font-size: clamp(2.6rem, 1.9rem + 3vw, 4.6rem); font-weight: 700; letter-spacing: -.048em; color: var(--ink); line-height: 1; }
.tl__i:nth-child(odd) .tl__y { color: var(--accent); }
.tl__i h3 { font-size: var(--t-2); margin: .6rem 0 .8rem; }
.tl__i p { max-width: 52ch; }

/* --- 18. Randnavigation ------------------------------------------------- */
.doc { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(2rem, 4vw, 5rem); align-items: start; }
@media (max-width: 940px) { .doc { grid-template-columns: 1fr; } }
.side { position: sticky; top: 120px; display: grid; gap: .15rem; }
.side a {
  font-size: .95rem; font-weight: 500; color: var(--ink-3);
  padding: .55rem .9rem; border-left: 2px solid var(--line); border-radius: 0 2px 2px 0;
  transition: color .3s var(--e), border-color .3s var(--e), background .3s var(--e);
}
.side a:hover, .side a.on { color: var(--ink); border-color: var(--accent); background: var(--white); }
@media (max-width: 940px) {
  .side { position: static; display: flex; flex-wrap: wrap; gap: .5rem; }
  .side a { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; background: var(--white); }
}

/* --- 19. Fuß ------------------------------------------------------------ */
.foot { background: var(--deep); color: var(--on-deep-2); padding-top: clamp(3.4rem, 2.6rem + 3.4vw, 6rem); }
.foot h3 { color: #fff; font-size: .92rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.3rem; }
.foot__g { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.8rem, 3vw, 3.6rem); }
@media (max-width: 980px) { .foot__g { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__g { grid-template-columns: 1fr; } }
.foot ul { list-style: none; padding: 0; display: grid; gap: .65rem; }
.foot a { font-size: .97rem; transition: color .3s var(--e); }
.foot a:hover { color: #fff; }
.foot .brand__n { color: #fff; }
.foot .brand__s { color: var(--on-deep-2); }
.foot__d { margin-top: 1.5rem; max-width: 34ch; font-size: .97rem; line-height: 1.7; }
.foot__end {
  margin-top: clamp(2.6rem, 2rem + 2.6vw, 4.4rem); padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .89rem;
}
.demo { border: 1px solid rgba(47,121,207,.5); color: var(--accent-hi); padding: .28rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }

/* --- 20. Eintritt: Inhalt ist ohne JS sichtbar ------------------------- */
.js [data-in] { opacity: 0; transform: translateY(28px); }
.js [data-in="l"]  { transform: translateX(-30px); }
.js [data-in="r"]  { transform: translateX(30px); }
.js [data-in="s"]  { transform: scale(.97); }
.js [data-in].in, .revealed [data-in] { opacity: 1; transform: none; }
[data-in] { transition: opacity .95s var(--e), transform 1.05s var(--eo); }
.stagger > * { transition-delay: calc(var(--i, 0) * 95ms); }

.js .mask > span { display: block; transform: translateY(105%); transition: transform 1.05s var(--eo); }
.js .mask.in > span, .revealed .mask > span { transform: none; }

/* Wortweiser Aufbau in der Startseiten-Überschrift */
.js .words w { display: inline-block; transform: translateY(102%); }
.words { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.words w { display: inline-block; }
.js .words.in w { animation: wordup 1s var(--eo) forwards; }
.revealed .words w { transform: none; }
@keyframes wordup { to { transform: translateY(0); } }

/* Akzentstrich zieht sich unter der Überschrift auf */
.hero__bar { display: block; height: 3px; width: 0; background: var(--accent-hi); margin-top: 1.6rem; border-radius: 2px; }
.js .hero.in .hero__bar { animation: barin 1.1s var(--eo) .75s forwards; }
.revealed .hero__bar { width: 128px; }
@keyframes barin { to { width: 128px; } }
.mask { display: block; overflow: hidden; }
.mask:nth-of-type(2) > span { transition-delay: .1s; }
.mask:nth-of-type(3) > span { transition-delay: .2s; }
.revealed .wipe { clip-path: inset(0 0 0 0); }
.revealed .wipe img { transform: none; }

.prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); z-index: 120; transform: scaleX(0); transform-origin: left; }

.skip { position: absolute; left: -9999px; z-index: 300; background: var(--ink); color: #fff; padding: .85rem 1.3rem; border-radius: var(--r); }
.skip:focus { left: 1rem; top: 1rem; }
