/* =====================================================================
   Roith SHK – Design System
   CI-Farben sind PLATZHALTER bis zur Freigabe des Corporate-Design-PDF.
   ===================================================================== */

:root {
  /* --- Marke (TODO: exakte Hex aus CD-PDF) --- */
  --blue:        #0a5aa5;
  --blue-dark:   #073f73;
  --blue-900:    #062f57;
  --orange:      #ef7d00;
  --orange-dark: #d46e00;
  --green:       #3e9c5f;   /* nur dezent für Nachhaltigkeit */

  /* --- Neutrals --- */
  --ink:      #14212e;
  --ink-soft: #33475b;
  --muted:    #5a6b7b;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-soft:  #f4f7fb;
  --bg-blue:  #f0f6fc;
  --white:    #ffffff;

  /* --- Typografie --- */
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Sora', var(--font-body);

  /* Fluid Type Scale */
  --fs-hero: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --fs-h2:   clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);
  --fs-h3:   clamp(1.2rem, 1.02rem + 0.7vw, 1.5rem);
  --fs-lead: clamp(1.06rem, 0.98rem + 0.4vw, 1.25rem);

  /* --- Layout --- */
  --container: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20,33,46,.06), 0 2px 8px rgba(20,33,46,.05);
  --shadow-md: 0 6px 18px rgba(20,33,46,.10);
  --shadow-lg: 0 24px 60px -18px rgba(7,63,115,.35);
  --transition: 220ms cubic-bezier(.16,1,.3,1);
}

/* --------------------------- Reset --------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* --------------------------- Layout helpers --------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--bg-blue); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .75rem;
}
.section__title { font-size: var(--fs-h2); }
.section__lead { font-size: var(--fs-lead); color: var(--ink-soft); margin-top: 1rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Icons */
.icon { width: 1.15em; height: 1.15em; flex: none; stroke-width: 2; vertical-align: -0.18em; }
.icon--lg { width: 1.7em; height: 1.7em; }

/* --------------------------- Buttons --------------------------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-family: var(--font-body);
  padding: .85rem 1.5rem; border: 2px solid var(--btn-bg); border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .icon { transition: transform var(--transition); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--orange); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--outline { background: transparent; --btn-fg: var(--blue); border-color: var(--blue); box-shadow: none; }
.btn--outline:hover { background: var(--blue); --btn-fg: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.12); --btn-fg: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); box-shadow: none; }
.btn--ghost-light:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.btn--sm { padding: .6rem 1.1rem; font-size: .95rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* --------------------------- Header --------------------------- */
.topbar { background: var(--blue-900); color: #cfe0f0; font-size: .85rem; }
.topbar__inner { display: flex; gap: 1.5rem; align-items: center; min-height: 40px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; color: #cfe0f0; }
.topbar__item:hover { color: #fff; }
.topbar__item .icon { color: var(--orange); }

.site-header { position: sticky; top: 0; z-index: 100; }
.navbar { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand__logo { height: 44px; width: auto; }

.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .85rem; border-radius: var(--radius-sm); font-weight: 500; color: var(--ink-soft);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.is-active { color: var(--blue); background: var(--bg-blue); }
.nav-link__chevron { width: .8em; height: .8em; transition: transform var(--transition); }

.nav-item--has-children { position: relative; }
.subnav {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav-item--has-children:hover .subnav,
.nav-item--has-children:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item--has-children:hover .nav-link__chevron { transform: rotate(180deg); }
.subnav__link { display: block; padding: .6rem .8rem; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .95rem; }
.subnav__link:hover, .subnav__link.is-active { background: var(--bg-blue); color: var(--blue); }
.nav-item--cta { margin-left: .5rem; }

.nav-toggle { display: none; background: transparent; border: 0; padding: .4rem; color: var(--ink); border-radius: var(--radius-sm); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* --------------------------- Hero --------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue-900));
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,47,87,.80) 0%, rgba(6,47,87,.55) 45%, rgba(7,63,115,.90) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { padding-block: clamp(4rem, 3rem + 9vw, 9rem); max-width: 46rem; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase; color: #ffd9ad;
  background: rgba(239,125,0,.16); border: 1px solid rgba(239,125,0,.4);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.hero h1 { font-size: var(--fs-hero); font-weight: 800; color: #fff; }
.hero h1 em { font-style: normal; color: #ffb765; }
.hero__lead { font-size: var(--fs-lead); color: #dbe7f3; margin-top: 1.25rem; max-width: 38rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero__trust-item { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: #eaf2fa; }
.hero__trust-item .icon { color: var(--orange); }

/* --------------------------- Leistungen Grid --------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cdddec; }
.card--featured { border-color: rgba(239,125,0,.5); }
.card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--blue-dark), var(--blue-900)); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; top: .8rem; left: .8rem; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--bg-blue); color: var(--blue); margin-bottom: 1rem; margin-top: -3rem; position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.card--featured .card__icon { background: #fff4e8; color: var(--orange); }
.card__kicker { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: var(--fs-h3); margin: .3rem 0 .6rem; }
.card__text { color: var(--ink-soft); font-size: .97rem; margin-bottom: 1.2rem; }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--blue); font-weight: 600; }
.card:hover .card__link .icon { transform: translateX(4px); }
.card__link .icon { transition: transform var(--transition); }

/* --------------------------- USP / Why --------------------------- */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.usp {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.usp__icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--bg-blue); color: var(--blue); margin-bottom: 1rem; }
.usp__title { font-size: 1.15rem; margin-bottom: .5rem; }
.usp__text { color: var(--ink-soft); font-size: .96rem; }

/* --------------------------- CTA band --------------------------- */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue-900)); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 1rem + 4vw, 3.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); }
.cta-band p { color: #dbe7f3; font-size: var(--fs-lead); margin: 1rem auto 1.75rem; max-width: 40rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* --------------------------- Footer --------------------------- */
.site-footer { background: var(--blue-900); color: #b9cbdd; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(3rem, 2rem + 4vw, 4.5rem); }
.footer__logo { height: 40px; width: auto; margin-bottom: 1.1rem; background: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.footer__claim { font-size: .95rem; color: #9fb4c9; margin-bottom: 1.1rem; max-width: 26rem; }
.footer__nap { font-size: .95rem; color: #cdddec; }
.footer__title { font-family: var(--font-head); color: #fff; font-size: 1rem; letter-spacing: .02em; margin-bottom: 1.1rem; }
.footer__subtitle { display: flex; align-items: center; gap: .45rem; color: #fff; font-size: .95rem; font-family: var(--font-head); margin: 1.5rem 0 .75rem; }
.footer__subtitle .icon { color: var(--orange); }
.footer__list li { margin-bottom: .6rem; }
.footer__list a { color: #b9cbdd; font-size: .95rem; transition: color var(--transition); }
.footer__list a:hover { color: #fff; }
.footer__list--contact a { display: inline-flex; align-items: center; gap: .5rem; }
.footer__list--contact .icon { color: var(--orange); }
.footer__hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .25rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__hours span:first-child { color: #9fb4c9; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem; font-size: .88rem; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: #fff; }

/* --------------------------- Reveal animation --------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__col--brand { grid-column: 1 / -1; }
}

/* Footer auf Mobil: eine Spalte, klar getrennte Blöcke */
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: 0; padding-block: 2.5rem 1.5rem; }
  .footer__col { padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
  .footer__col--brand { padding-top: 0; border-top: 0; }
  .footer__claim { max-width: none; }
  .footer__title { margin-bottom: .85rem; }
  .footer__list { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; }
  .footer__list a { font-size: .9rem; hyphens: auto; overflow-wrap: anywhere; }
  .footer__list--contact { grid-template-columns: 1fr; }
  .footer__list--contact a { font-size: .95rem; overflow-wrap: normal; }
  .footer__list li { margin-bottom: .45rem; }
  .footer__hours li { font-size: .88rem; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .footer__legal { gap: 1.25rem; }
}

@media (max-width: 860px) {
  /* Topbar (Adresse/Telefon) auf Mobil ausblenden – Platz für die Navigation. */
  .topbar { display: none; }

  .nav-toggle { display: inline-flex; }
  .navbar__inner { min-height: 64px; }
  .brand__logo { height: 38px; }

  /* WICHTIG: backdrop-filter erzeugt einen eigenen Bezugsrahmen für
     position:fixed – das Menü würde sich sonst an der Navbar statt am
     Viewport ausrichten (und nur wenige Pixel hoch sein). */
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

  /* Vollflächiges Menü unterhalb der Navbar. Höhe kommt aus --header-h
     (per JS gemessen), damit es unabhängig von Topbar/Logo immer passt. */
  .primary-nav {
    position: fixed;
    top: var(--header-h, 64px);
    left: 0; right: 0; bottom: 0;
    background: #fff; z-index: 120;
    padding: 1rem var(--gutter) 2.5rem;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform var(--transition), visibility var(--transition);
    visibility: hidden;
  }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item--cta { border-bottom: 0; }
  .nav-link {
    padding: .95rem .25rem; font-size: 1.05rem; justify-content: space-between;
    border-radius: 0; background: none;
  }
  .nav-link:hover, .nav-link.is-active { background: none; color: var(--blue); }

  /* Unterpunkte als eingerücktes Akkordeon (immer sichtbar, klar abgesetzt). */
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--orange);
    border-radius: 0; margin: 0 0 .75rem .5rem; padding: 0 0 0 .75rem;
    min-width: 0; background: none;
  }
  .subnav__link { padding: .6rem .25rem; font-size: .98rem; }
  .nav-link__chevron { display: none; }

  .nav-item--cta { margin: 1.5rem 0 0; }
  .nav-item--cta .btn { width: 100%; justify-content: center; }
}

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

/* =====================================================================
   Interior pages (Unterseiten)
   ===================================================================== */

/* Kompakter Seitenkopf */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(7,63,115,.90), rgba(6,47,87,.94)),
    linear-gradient(120deg, var(--blue-dark), var(--blue-900));
  background-size: cover; background-position: center;
}
.page-hero__inner { padding-block: clamp(2.5rem, 1.8rem + 4vw, 4.5rem); max-width: 52rem; }
.page-hero .kicker { color: #ffd9ad; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.page-hero__lead { color: #dbe7f3; font-size: var(--fs-lead); margin-top: .9rem; max-width: 42rem; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb a { color: #bcd3ea; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li[aria-current] { color: #ffd9ad; }
.breadcrumb .sep { color: rgba(255,255,255,.4); }

/* Fließtext */
.prose { max-width: 44rem; color: var(--ink-soft); font-size: 1.05rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--fs-h3); color: var(--ink); margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin-top: 1.6rem; }
.prose ul { display: grid; gap: .6rem; margin-top: 1rem; }
.prose ul li { position: relative; padding-left: 1.9rem; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.25rem; height: 1.25rem;
  background: var(--bg-blue); border-radius: 6px;
}
.prose ul li .check { position: absolute; left: .2rem; top: .28em; width: .9rem; height: .9rem; color: var(--blue); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Split: Text + Medium */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: linear-gradient(135deg, var(--blue-dark), var(--blue-900)); position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media-note { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: .85rem; padding: 1rem; text-align: center; }

/* Feature-Liste (Icon + Text) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.feature { display: flex; gap: .9rem; }
.feature__icon { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--bg-blue); color: var(--blue); display: grid; place-items: center; }
.feature__title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: .2rem; }
.feature__text { color: var(--ink-soft); font-size: .95rem; }

/* Prozess-Schritte */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step__num { flex: none; counter-increment: step; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.step__num::before { content: counter(step); }
.step__title { font-family: var(--font-head); font-weight: 700; margin-bottom: .2rem; }
.step__text { color: var(--ink-soft); font-size: .96rem; }

/* Info-Box / Hinweis */
.note { border-left: 4px solid var(--orange); background: #fff7ee; padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft); font-size: .95rem; }

/* =====================================================================
   Formulare
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field > label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.field .req { color: var(--orange); }
.input, .textarea, .select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,90,165,.15); }
.textarea { min-height: 140px; resize: vertical; }
.field__hint { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.checkbox input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--blue); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { background: #fdecec; border: 1px solid #f5c2c2; color: #a01919; padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: .92rem; }
.form__error ul { margin-top: .4rem; padding-left: 1.1rem; list-style: disc; }
.field--invalid .input, .field--invalid .textarea, .field--invalid .select { border-color: #d64545; }
.field__err { color: #b32020; font-size: .82rem; margin-top: .35rem; }

/* Kontakt-Infokarte */
.info-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.info-card h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.info-list { display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list .icon { color: var(--blue); margin-top: .15rem; }
.info-list a { color: var(--ink); font-weight: 500; }
.info-list a:hover { color: var(--blue); }
.info-hours { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.info-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .92rem; }
.info-hours span:first-child { color: var(--muted); }
.map-embed { margin-top: 1.25rem; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-blue); display: grid; place-items: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 1rem; border: 1px dashed #bcd3ea; }

/* Erfolgsseite */
.success { max-width: 40rem; margin-inline: auto; text-align: center; }
.success__icon { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #e7f6ec; color: var(--green); display: grid; place-items: center; margin: 0 auto 1.5rem; }
.success__icon .icon { width: 2.2rem; height: 2.2rem; }

/* Stellen / Karriere */
.jobs { display: grid; gap: 1.25rem; }
.job { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); }
.job:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job__title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .4rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--blue); background: var(--bg-blue); padding: .3rem .7rem; border-radius: 999px; }
.tag .icon { width: .95em; height: .95em; }

/* Referenzen / Projekte */
.project-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card__media { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--blue-dark), var(--blue-900)); position: relative; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 1.35rem 1.5rem; }
.project-card__area { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.project-card__title { font-size: 1.2rem; margin: .3rem 0; }
.project-card__loc { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--muted); }

/* Empty-State */
.empty-state { text-align: center; max-width: 34rem; margin-inline: auto; padding: clamp(2rem, 1rem + 4vw, 3.5rem) 1rem; }
.empty-state__icon { width: 3.5rem; height: 3.5rem; border-radius: 14px; background: var(--bg-blue); color: var(--blue); display: grid; place-items: center; margin: 0 auto 1.25rem; }
.empty-state__icon .icon { width: 1.8rem; height: 1.8rem; }
.empty-state h2 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.empty-state p { color: var(--ink-soft); margin-bottom: 1.5rem; }

/* News */
.news-list { display: grid; gap: 1.5rem; }
.news-item { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.news-item__media { background: linear-gradient(135deg, var(--blue-dark), var(--blue-900)); min-height: 150px; }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; }
.news-item__body { padding: 1.5rem 1.75rem 1.5rem 0; }
.news-item__date { font-size: .82rem; color: var(--muted); }
.news-item__title { font-size: 1.25rem; margin: .3rem 0 .5rem; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item__media { min-height: 180px; }
  .news-item__body { padding: 1.25rem 1.5rem; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; gap: 0; }
}

/* =====================================================================
   Hero-Einblendung (Peter freigestellt) + Scroll-Verhalten
   ===================================================================== */
.hero__figure {
  position: absolute;
  bottom: 0;
  right: max(-2.5rem, calc((100% - var(--container)) / 2 - 3.5rem));
  z-index: 2;
  height: 132%;
  max-height: 880px;
  pointer-events: none;
  will-change: transform, opacity;
  animation: hero-figure-in 1.1s .35s cubic-bezier(.16,1,.3,1) backwards;
}
.hero__figure img {
  height: 100%; width: auto; object-fit: contain; object-position: bottom right;
  filter: drop-shadow(0 24px 44px rgba(0,0,0,.45));
}
.hero .container { position: relative; z-index: 3; }
@keyframes hero-figure-in {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (max-width: 1040px) { .hero__figure { max-height: 520px; opacity: .9; } }
@media (max-width: 880px)  { .hero__figure { display: none; } }

/* =====================================================================
   Karriere-Band (abgedunkeltes Bild)
   ===================================================================== */
.karriere-band {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background-size: cover; background-position: center;
  padding-block: clamp(4rem, 2.5rem + 7vw, 7rem);
}
.karriere-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,47,87,.94) 0%, rgba(6,47,87,.80) 50%, rgba(7,63,115,.55) 100%);
}
.karriere-band__inner { max-width: 40rem; }
.karriere-band__kicker { color: #ffd9ad; }
.karriere-band h2 { color: #fff; font-size: var(--fs-h2); }
.karriere-band p { color: #dbe7f3; font-size: var(--fs-lead); margin: 1rem 0 1.9rem; }

/* =====================================================================
   Unterseiten-Hero mit Hintergrundbild
   ===================================================================== */
.page-hero { isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6,47,87,.92) 0%, rgba(6,47,87,.74) 55%, rgba(7,63,115,.62) 100%);
}
.page-hero .container { position: relative; z-index: 2; }

/* =====================================================================
   Slideshow / Galerie
   ===================================================================== */
.slideshow { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/9; background: var(--blue-900); }
.slideshow__track { position: absolute; inset: 0; }
.slideshow__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 5s ease; }
.slideshow__slide.is-active { opacity: 1; transform: scale(1); }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 3rem 1.6rem 1.25rem; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  background: linear-gradient(transparent, rgba(6,47,87,.9));
}
.slideshow__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: background var(--transition), transform var(--transition);
}
.slideshow__nav:hover { background: rgba(255,255,255,.32); }
.slideshow__nav--prev { left: 1rem; } .slideshow__nav--prev .icon { transform: rotate(180deg); }
.slideshow__nav--next { right: 1rem; }
.slideshow__dots { position: absolute; bottom: 1.1rem; right: 1.25rem; z-index: 3; display: flex; gap: .5rem; }
.slideshow__dot { width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.45); transition: background var(--transition), transform var(--transition); }
.slideshow__dot.is-active { background: #fff; transform: scale(1.3); }

/* =====================================================================
   Mehr Animation: Stagger-Reveals + Hover-Politur
   ===================================================================== */
.reveal.reveal--zoom { transform: translateY(24px) scale(.97); }
.reveal.reveal--zoom.is-visible { transform: none; }

.usp { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.usp:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cdddec; }
.usp__icon { transition: transform var(--transition), background var(--transition), color var(--transition); }
.usp:hover .usp__icon { transform: scale(1.08) rotate(-4deg); background: var(--blue); color: #fff; }

.feature__icon { transition: transform var(--transition), background var(--transition), color var(--transition); }
.feature:hover .feature__icon { transform: translateY(-3px); background: var(--blue); color: #fff; }

.step__num { transition: transform var(--transition), box-shadow var(--transition); }
.step:hover .step__num { transform: scale(1.1); box-shadow: 0 8px 20px rgba(10,90,165,.35); }

/* animierter Nav-Unterstrich */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px;
  background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav-link::after { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__figure { animation: none; }
  .slideshow__slide { transition: opacity .3s ease; transform: none; }
  .slideshow__slide.is-active { transform: none; }
}

/* =====================================================================
   Timeline / Geschichte (Scroll-Aufladebalken in Roith-Orange)
   ===================================================================== */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 3.25rem; }
.timeline__track {
  position: absolute; left: 12px; top: 10px; bottom: 10px; width: 4px;
  background: var(--line); border-radius: 4px; overflow: hidden;
}
.timeline__progress {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: var(--orange); border-radius: 4px;
  box-shadow: 0 0 14px rgba(239, 125, 0, .55);
}
.timeline__item { position: relative; padding-bottom: 2.6rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: calc(-3.25rem + 5px); top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--line); z-index: 1;
  transition: border-color .35s ease, background .35s ease, transform .35s ease, box-shadow .35s ease;
}
.timeline__item.is-reached .timeline__dot {
  border-color: var(--orange); background: var(--orange);
  transform: scale(1.18); box-shadow: 0 0 0 5px rgba(239, 125, 0, .16);
}
.timeline__year {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  font-size: 1.35rem; letter-spacing: -0.01em; color: var(--blue);
  transition: color .35s ease;
}
.timeline__item.is-reached .timeline__year { color: var(--orange); }
.timeline__text { color: var(--ink-soft); margin-top: .3rem; }

/* =====================================================================
   Pull-Quote (großes Zitat)
   ===================================================================== */
.pullquote {
  position: relative; max-width: 900px; margin-inline: auto; text-align: center;
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: clamp(1.4rem, 1rem + 2.1vw, 2.35rem); line-height: 1.32; letter-spacing: -0.02em;
  padding-top: 1rem;
}
.pullquote::before {
  content: "\201C"; display: block; font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem; line-height: .8; color: var(--orange); margin-bottom: .25rem;
}
.pullquote cite {
  display: block; margin-top: 1.5rem; font-family: var(--font-body); font-style: normal;
  font-weight: 600; font-size: 1rem; letter-spacing: .02em; color: var(--muted);
}

/* =====================================================================
   Video-Hero (Leistungen) + Parallax
   ===================================================================== */
.page-hero--video { min-height: min(76vh, 620px); display: grid; align-items: center; }
.page-hero__media { will-change: transform; }
.page-hero__video { width: 100%; height: 100%; object-fit: cover; }
.page-hero--video::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4,10,20,.88) 0%, rgba(4,10,20,.62) 46%, rgba(4,10,20,.34) 100%);
}
.page-hero__inner[data-hero-content] { will-change: transform, opacity; }

/* =====================================================================
   Partner-Slideshow (Logos)
   ===================================================================== */
.slideshow--logos {
  aspect-ratio: auto; height: 220px; max-width: 760px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.slideshow--logos .slideshow__slide { transform: none; display: grid; place-items: center; padding: 2.5rem clamp(2.5rem, 10vw, 6rem); }
.slideshow--logos .slideshow__slide.is-active { transform: none; }
.slideshow--logos .slideshow__slide img { width: auto; height: auto; max-width: 320px; max-height: 96px; object-fit: contain; }
.slideshow--logos .slideshow__nav { background: rgba(10,90,165,.08); color: var(--blue); box-shadow: none; backdrop-filter: none; }
.slideshow--logos .slideshow__nav:hover { background: rgba(10,90,165,.16); }
.slideshow--logos .slideshow__dots { bottom: .9rem; }
.slideshow--logos .slideshow__dot { background: rgba(10,90,165,.28); }
.slideshow--logos .slideshow__dot.is-active { background: var(--blue); }

/* =====================================================================
   Geschichtsbild (Über uns, unter der Timeline)
   ===================================================================== */
.geschichte-figure { margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) auto 0; max-width: 920px; }
.geschichte-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.geschichte-figure figcaption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: .9rem; }

/* =====================================================================
   Stellen-Detailseite
   ===================================================================== */
.stelle { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: start; }
.stelle__main .prose { max-width: 46rem; }
.stelle__aside { position: sticky; top: calc(var(--header-h, 112px) + 1.5rem); }
.stelle__aside .info-card { background: #fff; border-color: #cdddec; box-shadow: var(--shadow-md); }

.job__title a { transition: color var(--transition); }
.job__title a:hover { color: var(--blue); }
.job__claim { color: var(--orange); font-weight: 600; font-size: .95rem; margin-top: .3rem; }
.job__actions { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; }
.job__actions .btn { justify-content: center; }

@media (max-width: 900px) {
  .stelle { grid-template-columns: 1fr; }
  .stelle__aside { position: static; }
}
@media (max-width: 640px) {
  .job { flex-direction: column; align-items: stretch; }
  .job__actions { width: 100%; }
}
