/* ==========================================================================
   PSS 360 – Production Services Sibiu
   Vanilla CSS · keine Frameworks · keine externen Ressourcen
   ========================================================================== */

/* ---------- Farben, Schrift, Maße -------------------------------------- */
:root {
  --blue: #2a90db;          /* Markenblau (Logo) – Flächen und Akzente */
  --blue-dark: #1a73b5;     /* Buttons und Links (Kontrast 5:1 auf Weiß) */
  --blue-darker: #135b91;
  --blue-light: #e9f3fb;
  --text: #2b2f33;
  --muted: #5f6670;
  --white: #fff;
  --grey: #f3f5f7;
  --border: #dde2e7;
  --footer: #2b3036;
  --footer-bar: #22262b;
  --danger: #b42318;
  --success: #1d7a46;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 84px;
  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 104px);
  --radius: 4px;
  --shadow: 0 2px 14px rgba(20, 40, 60, .07);
  --shadow-hover: 0 10px 30px rgba(20, 40, 60, .12);
}

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

html {
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  interpolate-size: allow-keywords;
}
body { margin: 0; font-size: 1.0625rem; padding-top: var(--header-h); background: var(--white); }
body.menu-open { overflow: hidden; }

img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0 0 .6em; font-weight: 700; line-height: 1.22; color: #1d2125; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); line-height: 1.15; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure, dl, dd { margin: 0; }
address { font-style: normal; }
strong { font-weight: 700; }

a { color: var(--blue-dark); text-underline-offset: .15em; transition: color .2s; }
a:hover { color: var(--blue-darker); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.i { width: 1em; height: 1em; flex: 0 0 auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--blue-dark); color: var(--white); padding: 12px 18px; }
.skip-link:focus { top: 12px; color: var(--white); }
main:focus { outline: none; }

/* ---------- Layout ------------------------------------------------------ */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }
.container--narrow { max-width: calc(880px + 2 * var(--pad-x)); }
.section { padding-block: var(--section-y); }
.section--grey { background: var(--grey); }

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-head h2::after, .split__text > h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 18px; background: var(--blue);
}
.section-head h2::after { margin-inline: auto; }

.eyebrow { margin-bottom: .6rem; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-dark); }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border: 2px solid var(--blue-dark); border-radius: var(--radius);
  background: var(--blue-dark); color: var(--white);
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover, .btn:focus-visible { background: var(--blue-darker); border-color: var(--blue-darker); color: var(--white); box-shadow: 0 4px 14px rgba(19, 91, 145, .3); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn--sm { padding: .65em 1.15em; font-size: .9375rem; }
.btn--ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--white); border-color: var(--white); color: var(--blue-darker); box-shadow: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; }
.link-arrow .i { width: .85em; height: .85em; transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: var(--white); transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(20, 40, 60, .1); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo img { width: auto; height: 46px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 26px; }
.site-nav__list a {
  display: block; padding: 8px 0; color: var(--text); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav__list a:hover { color: var(--blue-dark); }
.site-nav__list a[aria-current] { color: var(--blue-dark); border-bottom-color: var(--blue); }

/* Sprachauswahl (Dropdown) */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px;
  font: 700 .875rem/1 var(--font); color: var(--text);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang__btn .i-globe { width: 17px; height: 17px; color: var(--blue-dark); }
.lang__btn .i-chevron { width: 12px; height: 12px; transition: transform .2s; }
.lang__btn:hover { border-color: var(--blue); color: var(--blue-dark); }
.lang.is-open .lang__btn .i-chevron { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang__menu a { display: block; padding: 9px 16px; color: var(--text); text-decoration: none; font-size: .9375rem; }
.lang__menu a:hover { background: var(--grey); color: var(--blue-dark); }
.lang__menu a[aria-current] { font-weight: 700; color: var(--blue-dark); }
.lang__menu a[aria-current]::after { content: " ✓"; }

.menu-toggle { display: none; }

@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  .site-header__logo img { height: 38px; }
  .menu-toggle {
    display: block; position: relative; width: 44px; height: 44px; margin-right: -8px; padding: 0;
    background: none; border: 0; cursor: pointer; color: var(--text);
  }
  .menu-toggle span, .menu-toggle::before, .menu-toggle::after {
    content: ""; position: absolute; left: 10px; right: 10px; top: 21px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .3s, opacity .2s;
  }
  .menu-toggle::before { transform: translateY(-7px); }
  .menu-toggle::after { transform: translateY(7px); }
  .menu-open .menu-toggle span { opacity: 0; }
  .menu-open .menu-toggle::before { transform: rotate(45deg); }
  .menu-open .menu-toggle::after { transform: rotate(-45deg); }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; max-height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 8px var(--pad-x) 28px; background: var(--white); overflow-y: auto;
    border-top: 1px solid var(--border); box-shadow: 0 16px 24px rgba(20, 40, 60, .12);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--border); }
  .site-nav__list a { padding: 14px 0; font-size: 1.125rem; border-bottom: 0; }
  .site-nav__list a[aria-current] { border-bottom: 0; }

  /* Mobil: Sprachen als feste Liste statt Dropdown */
  .lang__btn { display: none; }
  .lang__menu {
    position: static; display: flex; gap: 8px; min-width: 0; padding: 0;
    border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .lang__menu li { flex: 1; }
  .lang__menu a { text-align: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 8px; }
  .lang__menu a[aria-current] { border-color: var(--blue); background: var(--blue-light); }
  .lang__menu a[aria-current]::after { content: none; }
  .site-nav .btn { padding: .9em 1.2em; font-size: 1rem; }
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: clamp(480px, calc(100svh - var(--header-h) - 96px), 720px);
  color: var(--white); background: #0f2738;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10, 28, 44, .86) 0%, rgba(10, 28, 44, .62) 48%, rgba(10, 28, 44, .12) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: 64px; }
.hero__content { max-width: 660px; }
.hero h1 { color: var(--white); margin-bottom: .45em; }
.hero__sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: #e8eef3; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 699px) {
  .hero::before { background: rgba(10, 28, 44, .66); }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Faktenband -------------------------------------------------- */
.facts { background: var(--blue-dark); color: var(--white); }
.facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts__item { padding: 26px 16px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .22); }
.facts__item:nth-child(odd) { border-left: 0; }
.facts__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .22); }
.facts dt { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 700; line-height: 1.2; }
.facts dd { margin-top: .3rem; font-size: .9375rem; line-height: 1.4; }
@media (min-width: 900px) {
  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts__item { padding: 34px 20px; }
  .facts__item:nth-child(odd) { border-left: 1px solid rgba(255, 255, 255, .22); }
  .facts__item:first-child { border-left: 0; }
  .facts__item:nth-child(n+3) { border-top: 0; }
}

/* ---------- Mission ----------------------------------------------------- */
.split__media img { width: 100%; border-radius: var(--radius); }
.mission .split__media img { aspect-ratio: 1; object-fit: cover; max-width: 584px; }
.mission__claim { font-size: 1.35rem; line-height: 1.4; font-weight: 700; color: var(--blue-dark); }
.mission__lead { font-size: 1.125rem; }
.features { margin-top: 28px; display: grid; gap: 22px; }
.features li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.features__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-light); color: var(--blue-dark); }
.features__icon .i { width: 18px; height: 18px; }
.features h3 { font-size: 1.125rem; margin: .35em 0 .25em; }
.features p { color: var(--muted); }

/* ---------- Leistungen (Karten) ---------------------------------------- */
.cards { display: grid; gap: 28px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__img { overflow: hidden; border-bottom: 3px solid var(--blue); }
.card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 26px 26px 30px; }
.card h3 { font-size: 1.4rem; margin-bottom: .2em; }
.card__sub { color: var(--muted); font-size: .9375rem; margin-bottom: 1.1rem; }
.checks li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); line-height: 1.5; }
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks .i { width: 15px; height: 15px; margin-top: .3em; color: var(--blue-dark); }

/* ---------- Referenzen -------------------------------------------------- */
.cases { display: grid; gap: clamp(48px, 7vw, 88px); }
.case { display: grid; gap: 28px; align-items: center; }
.case__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.case__media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.case h3 { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.85rem); }
.case__meta { margin-bottom: 1.1rem; padding: 14px 18px; background: var(--grey); border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; font-size: .9375rem; }
.case__meta div + div { margin-top: .25rem; }
.case__meta dt { display: inline; font-weight: 700; }
.case__meta dd { display: inline; }
@media (min-width: 900px) {
  .case { grid-template-columns: 7fr 5fr; gap: 56px; }
  .case--flip { grid-template-columns: 5fr 7fr; }
  .case--flip .case__media { order: 2; }
}

/* ---------- Galerie ----------------------------------------------------- */
.gallery__grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.gallery__grid li { overflow: hidden; border-radius: var(--radius); }
.gallery__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }
.gallery__grid li:hover img { transform: scale(1.06); }

/* ---------- Unternehmen ------------------------------------------------- */
.company__portrait { width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: cover; }
.company__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; max-width: 440px; }
.company__thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.person { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.person__name { margin: 0; line-height: 1.5; color: var(--muted); }
.person__name strong { color: var(--text); font-size: 1.125rem; }
.person__link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--blue-dark); color: var(--white); transition: background-color .2s; }
.person__link:hover { background: var(--blue-darker); color: var(--white); }
.person__link .i { width: 18px; height: 18px; }

/* ---------- FAQ --------------------------------------------------------- */
.faq__item { margin-bottom: 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: #c4d9eb; box-shadow: var(--shadow); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.0625rem; line-height: 1.4; transition: color .2s; }
.faq__item summary:hover h3, .faq__item[open] summary h3 { color: var(--blue-dark); }
.faq__item .i-chevron { width: 16px; height: 16px; color: var(--blue-dark); transition: transform .3s; }
.faq__item[open] .i-chevron { transform: rotate(180deg); }
.faq__a { padding: 0 22px 20px; color: var(--muted); }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }

/* ---------- Kontakt ----------------------------------------------------- */
.contact__grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.contact__info h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 18px; background: var(--blue); }
.contact__info > p { color: var(--muted); font-size: 1.125rem; }
.contact__list { margin-top: 28px; display: grid; gap: 20px; }
.contact__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; line-height: 1.55; }
.contact__list li > .i { width: 44px; height: 44px; padding: 13px; border-radius: 50%; background: var(--blue-light); color: var(--blue-dark); }
.contact__label { display: block; font-size: .875rem; font-weight: 700; color: var(--muted); }
.contact__list a { text-decoration: none; font-weight: 700; }
.contact__imgs { display: none; }
@media (min-width: 960px) {
  .contact__imgs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 36px; }
  .contact__imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
}

/* ---------- Formular ---------------------------------------------------- */
.form-box { background: var(--grey); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); border-top: 4px solid var(--blue); }
.form-box__title { font-size: 1.5rem; margin-bottom: 22px; }
/* TEISENDA-Formular – nur über die dokumentierten tf-Selektoren gestylt (.tf-hp bleibt unangetastet) */
.form-box .tf-form { margin: 0; }
.form-box .tf-step { display: grid; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.form-box .tf-field { display: grid; gap: 6px; min-width: 0; }
.form-box .tf-label { font-size: .9375rem; font-weight: 700; color: var(--text); }
.form-box .tf-input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--text);
  background: var(--white); border: 1px solid #c3cbd3; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.form-box textarea.tf-input { min-height: 8.5rem; resize: vertical; }
.form-box .tf-input:hover { border-color: #9aa6b2; }
.form-box .tf-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 144, 219, .2); }
.form-box .tf-field--consent .tf-input { width: 18px; height: 18px; padding: 0; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue-dark); }
.form-box .tf-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.form-box .tf-help { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.form-box .tf-help a { color: var(--blue-dark); }
.form-box .tf-error { font-size: .875rem; color: var(--danger); }
.form-box .tf-actions { margin-top: 20px; }
.form-box .tf-button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 220px;
  padding: .9em 1.6em; border: 2px solid var(--blue-dark); border-radius: var(--radius);
  background: var(--blue-dark); color: var(--white); font: 700 1rem/1.2 var(--font); cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.form-box .tf-button:hover, .form-box .tf-button:focus-visible { background: var(--blue-darker); border-color: var(--blue-darker); box-shadow: 0 4px 14px rgba(19, 91, 145, .3); }
.form-box .tf-thanks { padding: 16px 18px; border-radius: var(--radius); background: #e7f4ec; color: #14532d; border: 1px solid #b6dcc4; }
.form-box .tf-closed { padding: 16px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); color: var(--muted); }
@media (max-width: 639px) { .form-box .tf-button { width: 100%; } }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: var(--footer); color: #c5ccd3; font-size: .9375rem; }
.site-footer a { color: #e6eaee; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 36px; padding-block: clamp(48px, 6vw, 72px); }
.site-footer__brand img { width: 200px; height: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 34ch; }
.site-footer h2 { font-size: 1rem; color: var(--white); margin-bottom: 14px; }
.site-footer li + li { margin-top: 6px; }
.site-footer address { margin-bottom: 12px; }
.docs a { display: inline-flex; align-items: center; gap: 8px; }
.docs .i { width: 14px; height: 14px; color: #8fc4ec; }
.site-footer__bar { background: var(--footer-bar); font-size: .875rem; }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 18px; }
.site-footer__bar p { margin: 0; }
.site-footer__bar ul { display: flex; gap: 20px; }
.site-footer__bar li + li { margin-top: 0; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 4fr 2fr 3fr 3fr; gap: 40px; } }

/* ---------- Rechtstexte / 404 ------------------------------------------ */
.legal { padding-top: clamp(40px, 6vw, 72px); }
.legal__grid { max-width: calc(860px + 2 * var(--pad-x)); }
.legal__head h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); hyphens: auto; }
.legal__head h1::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 16px; background: var(--blue); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 1.2rem; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .4em; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.legal__back { margin-top: 2.5rem; }

.error-page__grid { display: grid; gap: 40px; }
.error-page__item h1, .error-page__item h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.error-page__item p { color: var(--muted); }
@media (min-width: 960px) { .error-page__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==========================================================================
   Animation – dezent, nur ohne „Bewegung reduzieren“
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: hero-zoom 2.4s ease-out both; }
  .hero__content { animation: hero-in .9s ease-out .15s both; }

  @supports (animation-timeline: view()) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .cards > :nth-child(2) { animation-range: entry 6% entry 51%; }
    .cards > :nth-child(3) { animation-range: entry 12% entry 57%; }
  }
}
@keyframes hero-zoom { from { transform: scale(1.06); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes reveal { from { opacity: 0; translate: 0 24px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

@media print {
  .site-header, .menu-toggle, .form-box { display: none !important; }
  body { padding-top: 0; }
  .hero { color: #000; min-height: 0; }
  .hero::before, .hero__bg { display: none; }
  .hero h1 { color: #000; }
}
