/* UGW Automation: Startseite
   Mobile first. Breakpoints aus tokens.css: 479px, 767px, 1024px
   (hier als min-width 480px, 768px und 1025px geschrieben). */

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/instrument-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/instrument-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Reset und Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
strong, b { font-weight: 600; color: var(--ink); }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }

/* ---------- Textstile ---------- */
.h1-hero { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.06; letter-spacing: -0.035em; color: var(--ink); max-width: var(--measure-h1); text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.04; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.h3-large { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3-large); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 var(--space-14); text-wrap: balance; }
.h3-card { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 var(--space-10); }
.eyebrow { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0 0 var(--space-18); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.6; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }

@media (min-width: 768px) {
  .h1-hero { font-size: var(--fs-h1); line-height: 1.05; }
  .h2 { font-size: var(--fs-h2); }
  .wordmark { font-size: 22px; }
}

/* ---------- Sektion: Rand und Kopf ---------- */
.section { padding: var(--space-64) var(--gutter) var(--space-48); scroll-margin-top: var(--header-height); }
.section__head { margin: 0 0 var(--space-36); }
.section__head--flush { margin-bottom: 0; }
.section__intro { margin-top: var(--space-16); color: var(--text); }

@media (min-width: 768px) {
  .section { padding: var(--space-136) var(--edge) var(--space-104); }
  .section__head { text-align: center; max-width: var(--measure-body); margin: 0 auto var(--space-52); }
  .section__head--flush { margin-bottom: 0; }
  .section__head .h2 { max-width: var(--measure-h2); margin-inline: auto; }
  .section__intro { margin-inline: auto; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-12); font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; text-align: center; text-decoration: none; border: 0; border-radius: var(--radius-none); cursor: pointer; transition: background-color var(--duration-160), border-color var(--duration-160), opacity var(--duration-160); }
.btn--primary { background: var(--accent); color: var(--on-accent); width: 100%; padding: 20px 24px; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: transparent; color: var(--ink); border: 1px solid var(--text-muted); width: 100%; padding: 19px 23px; } /* 1px Rahmen eingerechnet: gleiche Höhe wie Primär */
.btn--secondary:hover { background: var(--hover-tint); border-color: var(--text); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--text-muted); padding: 9px 14px; font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
.btn--outline:hover { background: var(--hover-tint); border-color: var(--text); }
.btn--block { display: flex; width: 100%; padding: 18px 26px; }
.btn:disabled { opacity: 0.6; cursor: default; }

@media (min-width: 768px) {
  .btn--primary { width: auto; padding: 17px 32px; }
  .btn--secondary { width: auto; padding: 16px 31px; }
  .btn--outline { padding: 11px var(--space-18); font-size: 15px; }
  .btn--block { width: 100%; padding: 18px 26px; }
}

/* ---------- Textlinks ---------- */
.textlink { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--accent-hover); text-decoration: none; white-space: nowrap; display: inline-flex; gap: var(--space-12); transition: color var(--duration-160); }
.textlink:hover { color: var(--ink); }
.textlink--accent { color: var(--accent); }
.textlink--accent:hover { color: var(--accent-hover); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-height); display: flex; align-items: center; padding: 0 var(--gutter); background: transparent; transition: transform var(--duration-320) var(--ease-out-expo), background-color 0.25s, box-shadow 0.25s; }
.header .btn--outline { margin-left: auto; }
.header.is-scrolled { background: var(--header-scrolled); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--shadow-header); }
.header.is-hidden { transform: translateY(-100%); }

@media (min-width: 768px) {
  .header { padding: 0 var(--edge); }
}
@media (min-width: 1025px) {
  .header { position: relative; inset: auto; transition: none; }
  .header.is-scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .header.is-hidden { transform: none; }
}

/* ---------- Sektion 1: Hero ---------- */
.hero { position: relative; padding: calc(var(--header-height) + var(--space-28)) var(--gutter) var(--space-56); scroll-margin-top: var(--header-height); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(60% 50% at 78% 38%, var(--accent-glow), transparent 70%); }
/* Hintergrundfoto: blau eingefärbt, läuft nach oben und unten in --bg aus */
.hero .hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 74%, transparent 100%); } /* Verlauf nach oben und unten gilt für Foto und Körnung */
/* Sichtbarkeit des Bildes über opacity steuern. Die Maske regelt nur den Verlauf: oben und unten 0 %, am hellsten Rand 100 %. */
.hero__bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.23; -webkit-mask-image: radial-gradient(120% 95% at 50% 46%, rgba(0, 0, 0, 0.19) 0%, rgba(0, 0, 0, 0.31) 44%, #000 100%); mask-image: radial-gradient(120% 95% at 50% 46%, rgba(0, 0, 0, 0.19) 0%, rgba(0, 0, 0, 0.31) 44%, #000 100%); }
.hero__bg.grain::after { z-index: 2; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-36); align-items: center; }
.hero .eyebrow { font-size: 14px; line-height: 1.45; margin-bottom: var(--space-14); }
.hero__lead { font-size: 18px; line-height: 1.6; color: var(--text); margin-top: var(--space-24); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-32); }

@media (min-width: 768px) {
  .hero { padding: calc(var(--header-height) + var(--space-64)) var(--edge) var(--space-88); }
  .hero__grid { gap: var(--space-40); }
  .hero .eyebrow { font-size: 15px; line-height: 1.6; margin-bottom: var(--space-18); }
}
@media (min-width: 1025px) {
  .hero { padding-top: var(--space-64); }
  .video-frame::before { content: ""; position: absolute; top: calc(-1 * var(--space-24)); left: calc(-1 * var(--space-24)); width: 100%; height: 100%; z-index: 0; pointer-events: none; background: var(--overlay); -webkit-mask-image: radial-gradient(farthest-corner at 0 0, #000 0%, transparent 70%); mask-image: radial-gradient(farthest-corner at 0 0, #000 0%, transparent 70%); }
  .hero .hero__bg { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%); }
  .hero__bg-img { opacity: 0.23; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.33) 0%, rgba(0, 0, 0, 0.75) 45%, #000 100%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.33) 0%, rgba(0, 0, 0, 0.75) 45%, #000 100%); }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-56); }
}

/* Video mit Play-Knopf */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); margin-inline: calc(-1 * var(--gutter)); }
/* Dunkles L außerhalb des Videos an der Ecke links oben, läuft nach rechts und nach unten aus (nur Desktop) */
.video-frame { position: relative; }
.video-frame > .video { z-index: 1; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-420) var(--ease-out-expo); }
.video__play { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); width: var(--play-size); height: var(--play-size); display: grid; place-items: center; background: var(--accent); border: 0; border-radius: var(--radius-none); box-shadow: var(--shadow-play); cursor: pointer; transition: background-color var(--duration-160) var(--ease-out-expo), transform var(--duration-160) var(--ease-out-expo); }
.video__play svg { width: 24px; height: 24px; margin-left: 5px; fill: var(--on-accent); }
.video__note { position: absolute; left: 0; right: 0; top: calc(50% + var(--play-size) / 2 + var(--space-16)); z-index: 1; font-size: 15px; line-height: 1.5; color: var(--text-muted); text-align: center; }
.video:hover .video__poster { transform: scale(1.02); }
.video:hover .video__play { background: var(--accent-hover); transform: translate(-50%, -50%) scale(1.05); }

@media (min-width: 768px) {
  .video { margin-inline: 0; box-shadow: var(--shadow-video); }
  .video__play svg { width: 30px; height: 30px; }
}

/* Körnung für Flächen ohne Bild */
.grain { position: relative; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--opacity-grain); mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Sektion mit Hintergrundfoto: blau eingefärbt, oben und unten Verlauf in --bg */
.section--photo { position: relative; overflow: hidden; }
.section--photo > :not(.photo-bg) { position: relative; z-index: 1; }
.section--photo .photo-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 72%, transparent 100%); } /* Verlauf nach oben und unten gilt für Foto und Körnung */
.photo-bg__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.23; } /* Sichtbarkeit über opacity steuern */
.photo-bg.grain::after { z-index: 2; }

/* ---------- Sektion 2: Branchen-Kacheln ---------- */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; background-color: var(--surface); background-image: linear-gradient(160deg, var(--accent-tint) 0%, transparent 55%); border-top: 2px solid var(--surface-raised); padding: 26px 22px; text-decoration: none; transition: transform var(--duration-300), border-color var(--duration-300); }
.tile:hover, .tile:focus-visible { transform: translate3d(0, -4px, 0); border-top-color: var(--accent); }
.tile p { color: var(--text); }
.tile__link { margin-top: auto; padding-top: var(--space-24); font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--accent-hover); display: inline-flex; gap: var(--space-12); }
.tile__link span { transition: transform var(--duration-300) var(--ease-out-expo); }
.tile:hover .tile__link span, .tile:focus-visible .tile__link span { transform: translateX(4px); }

@media (min-width: 768px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24); }
  .tile { padding: var(--space-40); }
}

/* ---------- Sektion 3: Punkt-Karten ---------- */
.points { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
.point { position: relative; overflow: hidden; background: var(--surface); border-top: 3px solid var(--accent); padding: 26px 22px 76px; }
.point > * { position: relative; z-index: 1; }
.point::after { content: attr(data-n); position: absolute; right: 16px; bottom: -12px; z-index: 0; font-family: var(--font-display); font-weight: 600; font-size: 5.5rem; line-height: 0.8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--accent-ghost); pointer-events: none; }
.point__label { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: var(--space-10); }

@media (min-width: 768px) {
  .point { padding: var(--space-40) var(--space-32) 92px; }
  .point::after { font-size: 8rem; right: 14px; }
}
@media (min-width: 1025px) {
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .point { padding-bottom: var(--space-112); }
}

/* ---------- Sektion 4: Bausteine ---------- */
.bausteine { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); background: var(--surface-raised); }
.baustein { background: var(--surface); border-top: 2px solid var(--surface-raised); padding: var(--space-22); transition: transform var(--duration-300), border-color var(--duration-300); }
.baustein:hover { transform: translate3d(0, -4px, 0); border-top-color: var(--accent); }
.baustein svg { width: 24px; height: 24px; stroke: var(--accent-hover); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--space-18); display: block; }
.baustein p { line-height: 1.55; }
.exoten { margin-top: var(--space-24); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-20); padding: 26px 22px; background-color: var(--surface); background-image: linear-gradient(160deg, var(--accent-tint) 0%, transparent 55%); }
.exoten p { max-width: var(--measure-body); }

@media (min-width: 768px) {
  .bausteine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baustein { padding: var(--space-28); }
  .exoten { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-32); padding: var(--space-40); }
}
@media (min-width: 1025px) {
  .bausteine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Sektion 5: Kennzahlen und Stimmen ---------- */
.stats { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 2rem 1.25rem; margin-top: var(--space-40); }
.stat, .quote { position: relative; padding-top: var(--space-16); }
.stat::before, .quote::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 3px; background: var(--accent); }
.stat__z { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-stat); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.stat__l { font-size: 15px; line-height: 1.4; color: var(--text); margin-top: var(--space-8); }
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-40); margin-top: var(--space-48); }
.quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-quote); line-height: 1.35; color: var(--ink); }
.quote figcaption { margin-top: var(--space-20); font-size: 15px; line-height: 1.45; color: var(--text-muted); }
.quote figcaption b { display: block; font-size: 17px; line-height: 1.6; font-weight: 600; color: var(--ink); }
.quotes__more { margin-top: var(--space-56); }

@media (min-width: 768px) {
  .stats { justify-content: center; gap: 2.5rem 4rem; }
  .quotes { margin-top: var(--space-72); }
  .quotes__more { text-align: center; }
}
@media (min-width: 1025px) {
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-48); }
}

/* ---------- Sektion 6: Timeline ---------- */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: var(--track); }
.timeline__progress { position: absolute; left: 19px; top: 0; width: 2px; height: 0; z-index: 1; background-image: linear-gradient(180deg, rgba(21, 127, 241, 0.35), var(--accent)); transition: height 0.18s linear; }
.step { position: relative; padding: 0 0 var(--space-48) var(--space-56); }
.step:last-of-type { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 40px; top: 19px; width: 8px; height: 2px; z-index: 1; background: var(--accent-line); transition: background-color var(--duration-350), width var(--duration-350); }
.step__num { position: absolute; left: 0; top: 0; z-index: 2; width: var(--step-size); height: var(--step-size); border-radius: var(--radius-round); border: 1.5px solid var(--accent); background: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent); transition: background-color var(--duration-350), color var(--duration-350), box-shadow var(--duration-350); }
.step.is-active::before { background: var(--accent); width: 10px; }
.step.is-active .step__num { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-step-active); }
.step__split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-24); align-items: center; }
.step__label { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 40px; letter-spacing: 0.02em; color: var(--accent); } /* Handy: Zeile so hoch wie der Kreis */
.step .h3-large { margin: var(--space-4) 0 var(--space-12); }
.step__text p:last-child { max-width: var(--measure-step); }
.step__visual { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.step__visual img { width: 100%; height: 100%; }
.step__visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(200deg, var(--accent-glow), transparent 58%); }
.timeline__cta { margin-top: var(--space-40); }

@media (min-width: 768px) {
  .timeline::before, .timeline__progress { left: 35px; }
  .step { padding: 0 0 var(--space-64) var(--space-104); }
  .step:last-of-type { padding-bottom: 0; }
  .step::before { left: 74px; top: 35px; width: 22px; }
  .step.is-active::before { width: 28px; }
  .step__num { border-width: 2px; font-size: 20px; }
  .step__split { gap: var(--space-40); }
  .step__label { line-height: 1.6; margin-bottom: var(--space-10); }
  .step .h3-large { margin: var(--space-6) 0 var(--space-14); }
  .timeline__cta { display: flex; width: fit-content; margin-inline: auto; }
}
@media (min-width: 1025px) {
  .step__split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-64); }
  .step--flip .step__split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .step--flip .step__visual { order: -1; }
}

/* ---------- Sektion 7: Über uns ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-32); align-items: center; }
.about__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.about__photo img, .about__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(200deg, rgba(21, 127, 241, 0.10), transparent 58%); }
.about .h2 { max-width: var(--measure-h2); }
.about__text { margin-top: var(--space-16); max-width: var(--measure-body); color: var(--text); }
.about__name { margin-top: var(--space-24); font-size: 15px; color: var(--text-muted); }
.about__name strong { font-size: 17px; }

@media (min-width: 768px) {
  .about { gap: var(--space-40); }
}
@media (min-width: 1025px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-64); }
}

/* ---------- Sektion 8: FAQ ---------- */
.faq { max-width: 900px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--surface-raised); interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--duration-300) var(--ease-out-expo), content-visibility var(--duration-300) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) 1.4rem; gap: var(--space-12); align-items: center; padding: var(--space-20) 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: attr(data-n); font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1; color: var(--text-subtle); }
.faq summary::after { content: "+"; justify-self: end; font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1; color: var(--accent); transition: color var(--duration-160); }
.faq details[open] > summary::before { color: var(--accent); }
.faq details[open] > summary::after { content: "\2212"; }
.faq details:hover > summary::after { color: var(--accent-hover); }
.faq__q { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.faq__a { padding: 0 0 26px 2.6rem; color: var(--text); }

@media (min-width: 768px) {
  .faq summary { grid-template-columns: 4rem minmax(0, 1fr) 2rem; gap: var(--space-20); padding: var(--space-24) 0; }
  .faq__a { padding: 0 2rem 26px 5rem; }
}

/* ---------- Sektion 9: Abschluss ---------- */
.closing { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 32rem; padding: var(--space-72) var(--gutter) var(--space-64); scroll-margin-top: var(--header-height); }
.closing::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(70% 90% at 0% 100%, var(--accent-glow), transparent 70%); }
.closing__content { position: relative; z-index: 2; width: 100%; max-width: 56rem; }
.closing .h2 { font-size: 34px; line-height: 1.04; }
.closing__text { margin-top: var(--space-16); font-size: 18px; line-height: 1.6; color: var(--text); max-width: 52ch; }
.closing__cta { margin-top: var(--space-40); }
/* Foto: Sichtbarkeit über opacity steuern, die Maske legt den Schatten oben und unten (Desktop zusätzlich links) */
.closing__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; } /* Handy und Tablet: Bild hinter dem Text */
.closing__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: 0.55; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 70%, transparent 100%); }

@media (min-width: 768px) {
  .closing { padding: var(--space-112) var(--edge); }
  .closing .h2 { font-size: clamp(2rem, 4vw + 1rem, 5.5rem); line-height: 1; letter-spacing: -0.04em; max-width: 16ch; }
}
@media (min-width: 1025px) {
  .closing__media { left: auto; width: 60%; } /* Desktop: Bild rechts */
  .closing__photo { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 40%, #000 75%); -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 40%, #000 75%); mask-composite: intersect; }
}

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */
.legal { padding: calc(var(--header-height) + var(--space-28)) var(--gutter) var(--space-48); }
.legal__title { margin-top: var(--space-4); }
.legal__meta { margin-top: var(--space-16); font-size: 15px; color: var(--text-muted); }
.legal__intro { margin-top: var(--space-8); font-size: 15px; color: var(--text-muted); }
.legal__toc { margin-top: var(--space-40); padding: var(--space-24) 22px; background: var(--surface); border-top: 2px solid var(--surface-raised); }
.legal__toc-title { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; color: var(--text-subtle); margin-bottom: var(--space-12); }
.legal__toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-8); }
.legal__toc a { display: inline-flex; gap: var(--space-12); padding-block: 4px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; transition: color var(--duration-160); }
.legal__toc a:hover { color: var(--accent-hover); }
.legal__num { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent-hover); min-width: 1.6rem; }
.legal__section { margin-top: var(--space-48); padding-top: var(--space-32); border-top: 1px solid var(--surface-raised); scroll-margin-top: var(--header-height); }
.legal__h { display: flex; align-items: baseline; gap: var(--space-12); font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin-bottom: var(--space-16); }
.legal__section p { max-width: var(--measure-body); color: var(--text); }
.legal__section p + p { margin-top: var(--space-16); }
.legal__section a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-underline); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__list { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.legal__list dt { font-size: 14px; color: var(--text-muted); padding-top: var(--space-12); }
.legal__list dd { margin: var(--space-4) 0 0; padding-bottom: var(--space-12); border-bottom: 1px solid var(--hairline); color: var(--ink); }

@media (min-width: 768px) {
  .legal { box-sizing: content-box; max-width: 860px; margin-inline: auto; padding: calc(var(--header-height) + var(--space-64)) var(--edge) var(--space-104); }
  .legal__toc { padding: var(--space-28) var(--space-32); }
  .legal__list { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
  .legal__list dt { padding: var(--space-14) var(--space-24) var(--space-14) 0; border-bottom: 1px solid var(--hairline); }
  .legal__list dd { margin: 0; padding: var(--space-14) 0; }
}
@media (min-width: 1025px) {
  .legal { padding-top: var(--space-64); }
}

/* ---------- Footer ---------- */
.footer { position: relative; padding: var(--space-88) var(--gutter) var(--space-40); }
.footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 0% 0%, var(--accent-glow), transparent 70%); } /* setzt das Licht aus dem Abschluss ohne Kante fort */
.footer > * { position: relative; }
.footer__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-36) var(--space-20); margin-bottom: var(--space-56); }
.footer__brand, .footer__col:last-child { grid-column: 1 / -1; }
.footer__brand .wordmark { display: inline-block; font-size: 22px; margin-bottom: var(--space-14); }
.footer__text { font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: var(--measure-footer); }
.footer-title { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.6; letter-spacing: 0.06em; color: var(--text-subtle); margin-bottom: var(--space-16); }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer__links a { display: inline-block; padding-block: 5px; font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--text); text-decoration: none; transition: color var(--duration-160); }
.footer__links a:hover { color: var(--accent); }
.footer__links .footer__mail { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--accent-underline); text-underline-offset: 2px; }
.footer__social { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border-icon); color: var(--text); transition: border-color var(--duration-160), color var(--duration-160); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__social:hover { border-color: var(--accent-border); color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--hairline); padding-top: var(--space-24); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-16); font-size: 14px; color: var(--text-muted); }
.footer__bottom strong { color: var(--text); }
.footer__legal { display: flex; gap: var(--space-16); }
.footer__legal a { color: var(--text-muted); text-decoration: none; transition: color var(--duration-160); }
.footer__legal a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .footer { padding-inline: var(--edge); }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-40) var(--space-32); }
  .footer__col:last-child { grid-column: auto; }
  .footer__links a { padding-block: 0; }
}
@media (min-width: 1025px) {
  .footer__top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--space-48); }
  .footer__brand { grid-column: auto; }
}

/* ---------- Hinweisfenster (Unterseite folgt) ---------- */
.notice { position: fixed; width: min(100vw - 2rem, 26rem); padding: var(--space-32) var(--space-56) var(--space-32) var(--space-32); border: 0; border-top: 3px solid var(--accent); border-radius: var(--radius-none); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-modal); }
.notice[open] { animation: rise var(--duration-340) var(--ease-out-expo) both; }
.notice::backdrop { background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.notice__text { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.notice__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 0; color: var(--text-muted); cursor: pointer; transition: color var(--duration-160); }
.notice__close:hover { color: var(--ink); }
.notice__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
