/* =========================================================================
   Hauser Gebäudeservice — Design System
   Primärfarbe: #1B4733 (exakt aus dem Logo entnommen)
   ========================================================================= */

/* ---------- Schrift (selbstgehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.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;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Markenfarben — abgeleitet aus dem Logo-Grün #1B4733 */
  --brand-950: #071A11;
  --brand-900: #0C2B1D;
  --brand-800: #123A28;
  --brand-700: #1B4733;   /* PRIMÄR — Logo-Grün */
  --brand-600: #245B41;
  --brand-500: #2E7150;
  --brand-400: #3F8F67;
  --brand-300: #6FB48F;
  --brand-200: #A8D6BE;
  --brand-100: #D7ECE0;
  --brand-50:  #F1F8F4;

  --accent:      #4E9E77;   /* Akzent (Icons, Linien, Hover) */
  --accent-soft: #9FE0BE;   /* Akzent auf dunklem Grund */

  /* Elfenbein & neutrale Töne (aus dem Relaunch-Konzept: #F7F4EC) */
  --ivory:      #F7F4EC;
  --ink:        #1D2A24;
  --ink-2:      #43524B;
  --ink-3:      #627169;
  --line:       #E2E3DB;      /* dekorative Trennlinien */
  --line-ui:    #828B79;      /* Rahmen von Bedienelementen, Kontrast 3,3:1 */
  --line-soft:  #EDEEE7;
  --surface:    #FFFFFF;
  --surface-2:  #FAF8F2;
  --surface-3:  #F7F4EC;

  --danger: #B3261E;
  --ok: #2E7150;

  /* Typografie */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-eyebrow: .78rem;
  --lh-tight: 1.15;
  --lh-body: 1.7;

  /* Raster & Rhythmus (8px) */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --gut: 24px;
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 40px; --sp-6: 56px; --sp-7: 72px; --sp-8: 96px; --sp-9: 128px;

  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;

  --shadow-1: 0 1px 2px rgba(12, 43, 29, .06), 0 2px 8px rgba(12, 43, 29, .04);
  --shadow-2: 0 2px 4px rgba(12, 43, 29, .06), 0 12px 32px rgba(12, 43, 29, .09);
  --shadow-3: 0 4px 8px rgba(12, 43, 29, .08), 0 24px 56px rgba(12, 43, 29, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;

  --header-h: 88px;
  --topbar-h: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: var(--lh-body);
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  color: var(--brand-900);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -.018em;
  /* Deutsche Komposita brechen auf schmalen Displays sonst aus dem Layout */
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.45rem); }
h4 { font-size: 1.08rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
figure, blockquote, dl, dd { margin: 0; }
a { color: var(--brand-600); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-800); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { color: var(--brand-900); font-weight: 600; }
/* Auf dunklen Flächen darf strong nicht auf die dunkle Grundfarbe zurückfallen */
.hero strong, .pagehead strong, .footer strong, .cta-band strong, .section--dark strong,
.card strong, .a11y-bar strong, .topbar strong, .mobile-nav strong, .tile--dark strong {
  color: inherit;
}
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
::selection { background: var(--brand-200); color: var(--brand-900); }

:focus-visible {
  outline: 3px solid var(--brand-700);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
/* Auf dunklen Flächen heller Ring */
.hero :focus-visible, .pagehead :focus-visible, .footer :focus-visible,
.topbar :focus-visible, .mobile-nav :focus-visible, .cta-band :focus-visible,
.section--dark :focus-visible, .card :focus-visible {
  outline-color: #fff;
}
/* Fokussiertes Element darf nicht unter dem klebenden Kopfbereich verschwinden */
:target, a[id], [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-700); color: #fff;
  padding: 14px 22px; font-weight: 600; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(56px, 4vw + 32px, 104px); }
.section--tight { padding-block: clamp(40px, 3vw + 24px, 72px); }
.section--tint { background: var(--surface-3); }
.section--line { border-top: 1px solid var(--line); }
.grid { display: grid; gap: var(--sp-4); }
@media (min-width: 700px)  { .g-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Textbausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--accent); flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--accent-soft); }
.eyebrow--light::before { background: var(--accent-soft); }

.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 68ch; }
.section-head { margin-bottom: clamp(32px, 3vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.muted { color: var(--ink-3); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 28px;
  font-family: inherit; font-size: .92rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  border: 1.5px solid transparent; border-radius: var(--r);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--brand-800); color: #fff; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn--ghost { border-color: var(--brand-700); color: var(--brand-700); background: transparent; }
.btn--ghost:hover { background: var(--brand-700); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.btn--light:hover { background: #fff; color: var(--brand-800); border-color: #fff; }
.btn--solid-light { background: #fff; color: var(--brand-800); }
.btn--solid-light:hover { background: var(--brand-50); color: var(--brand-900); transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 9px 14px; font-size: .76rem; letter-spacing: .05em; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .88rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-600);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================================
   Kopfbereich
   ========================================================================= */
.topbar {
  background: var(--brand-900); color: rgba(255,255,255,.82);
  font-size: .8rem; letter-spacing: .01em;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); min-height: var(--topbar-h);
}
.topbar__group { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--accent-soft); flex: none; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: #fff; }
@media (max-width: 860px) { .topbar__group--left .topbar__item:nth-child(2) { display: none; } }
@media (max-width: 560px) { .topbar { display: none; } }

.header {
  position: sticky; top: 0; z-index: 90;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-1); }
.header__inner {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; }
.brand img { height: 46px; width: auto; }
@media (max-width: 900px) { .brand img { height: 46px; } }
@media (max-width: 420px) { .brand img { height: 40px; } }

.nav { display: none; }
@media (min-width: 1200px) {
  .nav { display: flex; align-items: center; gap: 4px; }
  .nav a {
    position: relative; display: block; padding: 10px 7px;
    font-size: .745rem; font-weight: 600; letter-spacing: .035em; text-transform: uppercase;
    color: var(--ink-2); border-radius: var(--r-sm);
  }
  .nav a::after {
    content: ''; position: absolute; left: 7px; right: 7px; bottom: 2px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }
  .nav a:hover { color: var(--brand-700); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: var(--brand-700); }
}
.header__cta { display: none; }
@media (min-width: 1200px) { .header__cta { display: inline-flex; margin-left: var(--sp-2); } }

/* Untermenü */
.nav__item { position: relative; }
.nav__toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 7px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: .745rem; font-weight: 600;
  letter-spacing: .035em; text-transform: uppercase; color: var(--ink-2);
  border-radius: var(--r-sm); position: relative;
}
.nav__toggle svg { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.nav__toggle::after {
  content: ''; position: absolute; left: 7px; right: 19px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__item:hover .nav__toggle, .nav__toggle[aria-expanded="true"] { color: var(--brand-700); }
.nav__item:hover .nav__toggle::after,
.nav__toggle[aria-current="section"]::after { transform: scaleX(1); }
.nav__toggle[aria-current="section"] { color: var(--brand-700); }
.nav__item:hover .nav__toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% - 4px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-3); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav__menu li { margin: 0; }
.nav__menu a {
  display: block; padding: 11px 14px; text-transform: none;
  font-size: .92rem; letter-spacing: 0; font-weight: 500; color: var(--ink-2);
}
.nav__menu a::after { display: none; }
.nav__menu a:hover { background: var(--surface-3); color: var(--brand-700); }
.nav__menu a[aria-current="page"] { color: var(--brand-700); background: var(--surface-3); }

/* Untermenü im mobilen Menü */
.mobile-nav__group { border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 6px; }
.mobile-nav__group > .mobile-nav__link { border-bottom: 0; padding-bottom: 6px; }
.mobile-nav__sub { list-style: none; margin: 0 0 10px; padding: 0 0 0 2px; }
.mobile-nav__sub li { margin: 0; }
.mobile-nav__sub a {
  display: block; padding: 9px 0 9px 16px; color: rgba(255,255,255,.72);
  font-size: .98rem; border-left: 2px solid rgba(255,255,255,.16);
}
.mobile-nav__sub a:hover { color: #fff; border-left-color: var(--accent-soft); }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-left: auto;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; color: var(--brand-800);
}
.burger:hover { background: var(--surface-3); }
@media (min-width: 1200px) { .burger { display: none; } }
.burger span { position: relative; display: block; width: 20px; height: 2px; background: currentColor; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
  transition: transform var(--dur) var(--ease), opacity .15s linear;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobiles Menü */
.mobile-nav {
  position: fixed; inset: 0; z-index: 95;
  background: var(--brand-900); color: #fff;
  display: flex; flex-direction: column;
  padding: 24px var(--gut) 40px;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: none; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: var(--sp-4); }
.mobile-nav__top img { height: 40px; filter: brightness(0) invert(1); }
.mobile-nav__close {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: var(--r);
  color: #fff; cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.mobile-nav a.mobile-nav__link {
  display: block; padding: 15px 0; color: #fff;
  font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav a.mobile-nav__link:hover { color: var(--accent-soft); }
.mobile-nav__foot { margin-top: auto; padding-top: var(--sp-5); }
.mobile-nav__foot .btn { width: 100%; }
.mobile-nav__meta { margin-top: var(--sp-3); font-size: .86rem; color: rgba(255,255,255,.7); }
.mobile-nav__meta a { color: #fff; }
body.nav-open { overflow: hidden; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(520px, 76vh, 760px);
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--brand-900);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(7,26,17,.94) 0%, rgba(12,43,29,.86) 42%, rgba(18,58,40,.62) 72%, rgba(27,71,51,.45) 100%);
}
.hero__inner { max-width: 760px; color: #fff; }
.hero h1 { color: #fff; margin-bottom: var(--sp-2); }
.hero__sub {
  font-size: clamp(1.25rem, .95rem + 1.1vw, 1.9rem);
  font-weight: 300; color: rgba(255,255,255,.9);
  line-height: 1.3; letter-spacing: -.015em;
  margin: 0 0 var(--sp-3);
}
.hero__text { color: rgba(255,255,255,.8); max-width: 56ch; margin-bottom: var(--sp-5); }
.hero .btn-row { margin-top: var(--sp-2); }

/* Kompakter Kopf für Unterseiten */
.pagehead {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(300px, 42vh, 420px);
  padding-block: clamp(56px, 6vw, 88px);
  background: var(--brand-900); overflow: hidden;
}
.pagehead__media { position: absolute; inset: 0; z-index: -2; }
.pagehead__media video, .pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(7,26,17,.95) 0%, rgba(12,43,29,.88) 50%, rgba(27,71,51,.62) 100%);
}
.pagehead__inner { max-width: 780px; color: #fff; }
.pagehead h1 { color: #fff; margin-bottom: var(--sp-2); }
.pagehead p { color: rgba(255,255,255,.82); max-width: 60ch; }
.pagehead .btn-row { margin-top: var(--sp-4); }

/* Brotkrumen */
.crumbs { font-size: .8rem; color: var(--ink-3); padding-block: 14px; border-bottom: 1px solid var(--line-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '›'; color: var(--line); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand-600); }
.crumbs [aria-current] { color: var(--brand-700); font-weight: 600; }

/* =========================================================================
   Inhaltsbausteine
   ========================================================================= */

/* Zweispalter: Text + Bild */
.split { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split--wide-text { grid-template-columns: 1.15fr 1fr; } }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.split--rev .split__media { order: -1; }
@media (max-width: 899px) { .split--rev .split__media { order: 0; } }

/* Kennzahl-Plakette über dem Bild */
.badge-stat {
  position: absolute; right: -12px; bottom: -20px;
  background: var(--brand-700); color: #fff;
  padding: 20px 26px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); text-align: center; min-width: 132px;
}
.badge-stat__n { font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.badge-stat__l {
  display: block; margin-top: 6px; font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft);
}
@media (max-width: 560px) { .badge-stat { right: 8px; bottom: -16px; padding: 16px 20px; } }

/* Merkmal-Zeilen mit Icon */
.facts { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
@media (min-width: 620px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact__ico {
  flex: none; width: 44px; height: 44px; border-radius: var(--r);
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--line);
}
.fact__ico svg { width: 21px; height: 21px; }
.fact h3 { margin: 0 0 2px; font-size: 1.05rem; letter-spacing: -.01em; }
.fact p { font-size: .93rem; margin: 0; color: var(--ink-3); }

/* Leistungs-/Branchenkarten mit Bild */
.card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); background: var(--brand-900);
  height: clamp(360px, 34vw, 460px);
  box-shadow: var(--shadow-1);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-3);
  transform: translateY(-4px) scale(1.015);
  z-index: 3;
}
.card__img { position: absolute; inset: 0; }
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.card:hover .card__img img { transform: scale(1.06); }
.card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,26,17,.94) 0%, rgba(7,26,17,.72) 34%, rgba(7,26,17,.16) 68%, rgba(7,26,17,.06) 100%);
  transition: background .35s var(--ease);
}
.card:hover::after, .card:focus-within::after {
  background: linear-gradient(to top, rgba(7,26,17,.96) 0%, rgba(9,32,21,.9) 50%, rgba(12,43,29,.72) 100%);
}
/* Der Textbereich hängt am unteren Rand und wächst beim Hover nach oben in die
   Karte hinein. Dadurch bleibt die Kartenhöhe – und damit die Höhe der ganzen
   Rasterzeile – unverändert; nur die Karte unter dem Zeiger verändert sich. */
.card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--sp-4); color: #fff;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent;
}
.card__body::-webkit-scrollbar { width: 5px; }
.card__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.32); border-radius: 3px; }
/* Passt ein sehr langer Text nicht ganz in die Karte, blendet der untere Rand
   weich aus – so ist erkennbar, dass es weitergeht (Klasse setzt main.js). */
.card.has-more .card__body {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 46px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 46px), transparent 100%);
}
.card.has-more.is-scrolled .card__body {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30px, #000 calc(100% - 46px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 30px, #000 calc(100% - 46px), transparent 100%);
}
.card.has-more.is-end .card__body {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 30px);
}
.card__body h3 { color: #fff; margin-bottom: 8px; }
/* Der Teaser weicht beim Hover dem vollständigen Text – er sagt dasselbe kürzer. */
.card__short {
  color: rgba(255,255,255,.86); font-size: .95rem; margin: 0;
  max-height: 6em; opacity: 1; overflow: hidden;
  transition: max-height .4s var(--ease), opacity .25s var(--ease);
}
.card:hover .card__short, .card:focus-within .card__short { max-height: 0; opacity: 0; }
.card__long {
  color: rgba(255,255,255,.9); font-size: .88rem; line-height: 1.5; margin: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s var(--ease), opacity .3s var(--ease);
}
.card:hover .card__long, .card:focus-within .card__long { max-height: 460px; opacity: 1; }
.card__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-soft);
}
.card__more svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }
.card__link { position: absolute; inset: 0; z-index: 2; }

/* Touch-Geräte: kein Hover – der volle Text steht dauerhaft, die Karte wächst
   dafür mit ihrem Inhalt. */
@media (hover: none) {
  .card { height: auto; min-height: 340px; }
  .card__body { position: relative; max-height: none; overflow: visible; }
  .card__short { display: none; }
  .card__long { max-height: none; opacity: 1; margin-top: 4px; }
  .card:hover, .card:focus-within { transform: none; }
  /* Der Text steht hier dauerhaft über dem ganzen Bild – dafür braucht es
     durchgehend genug Abdunklung, nicht nur am unteren Rand. */
  .card::after, .card:hover::after, .card:focus-within::after {
    background: linear-gradient(to top, rgba(7,26,17,.94) 0%, rgba(9,32,21,.9) 55%, rgba(12,43,29,.82) 100%);
  }
}

/* Schlichte Kachel (Vorteile, Werte) */
.tile {
  padding: var(--sp-4); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tile:hover { border-color: var(--brand-200); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.tile__ico {
  width: 52px; height: 52px; border-radius: var(--r);
  display: grid; place-items: center; margin-bottom: var(--sp-3);
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--line);
}
.tile__ico svg { width: 24px; height: 24px; }
.tile h3 { margin-bottom: 6px; }
.tile p { font-size: .95rem; margin: 0; color: var(--ink-3); }
.tile--dark { background: var(--brand-800); border-color: transparent; }
.tile--dark h3 { color: #fff; }
.tile--dark p { color: rgba(255,255,255,.78); }
.tile--dark .tile__ico { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: var(--accent-soft); }

/* Kompaktes Wertversprechen-Raster */
.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 620px)  { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values { grid-template-columns: repeat(5, 1fr); } }
.value { background: #fff; padding: var(--sp-4) var(--sp-3); text-align: center; transition: background var(--dur) var(--ease); }
.value:hover { background: var(--surface-3); }
.value__ico { width: 44px; height: 44px; margin: 0 auto var(--sp-2); display: grid; place-items: center; color: var(--brand-600); }
.value__ico svg { width: 26px; height: 26px; }
.value h3 { margin-bottom: 4px; font-size: 1rem; letter-spacing: -.01em; }
.value p { font-size: .87rem; color: var(--ink-3); margin: 0; }

/* Nummerierte Leistungsliste */
.rows { border-top: 1px solid var(--line); }
.row-item {
  display: grid; gap: 6px 24px; align-items: baseline;
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
@media (min-width: 860px) {
  .row-item { grid-template-columns: 56px minmax(180px, 1fr) 2fr auto; gap: 24px; padding-inline: 12px; }
}
.row-item:hover { background: var(--surface-3); }
.row-item__n { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.row-item__t { font-size: 1.08rem; font-weight: 600; color: var(--brand-900); }
.row-item__d { font-size: .95rem; color: var(--ink-3); margin: 0; }
.row-item__m {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600); white-space: nowrap;
}

/* Kennzahlen-Band */
.stats { display: grid; gap: var(--sp-4); text-align: center; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat__n { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; color: var(--brand-700); line-height: 1; }
.stat__l { margin-top: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stats--onDark .stat__n { color: #fff; }
.stats--onDark .stat__l { color: var(--accent-soft); }

/* Zitat */
.quote { text-align: center; max-width: 900px; margin-inline: auto; }
.quote blockquote {
  margin: 0 0 var(--sp-3); font-size: clamp(1.2rem, 1rem + .9vw, 1.7rem);
  font-weight: 300; line-height: 1.45; color: var(--brand-900); letter-spacing: -.015em;
}
.quote cite { font-style: normal; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); }

/* Referenzen (Slider) */
.tslider { position: relative; }
.tslider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.tslider__track::-webkit-scrollbar { display: none; }
@media (min-width: 780px)  { .tslider__track { grid-auto-columns: calc(50% - 12px); } }
@media (min-width: 1200px) { .tslider__track { grid-auto-columns: calc(33.333% - 16px); } }
.tcard {
  scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4); display: flex; flex-direction: column;
}
.tcard__mark { color: var(--brand-200); margin-bottom: var(--sp-2); }
.tcard__mark svg { width: 34px; height: 26px; }
.tcard p { font-size: .96rem; color: var(--ink-2); }
.tcard__who { margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.tcard__name { font-weight: 600; color: var(--brand-900); }
.tcard__org { font-size: .84rem; color: var(--ink-3); }
.tslider__nav { display: flex; gap: 8px; justify-content: center; margin-top: var(--sp-4); }
.tslider__btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--brand-700); cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tslider__btn:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.tslider__btn svg { width: 18px; height: 18px; }

/* Partnerlogos */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); align-items: center; }
@media (min-width: 620px)  { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(6, 1fr); } }
.logos img {
  width: 100%; height: 92px; object-fit: contain;
  padding: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
  filter: grayscale(1) opacity(.62);
  transition: filter .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.logos img:hover { filter: grayscale(0) opacity(1); border-color: var(--brand-200); box-shadow: var(--shadow-1); }

/* Galerie */
.gallery { display: grid; gap: var(--sp-2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* Aufklapper (FAQ) */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 22px 4px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1.04rem; font-weight: 600; color: var(--brand-900); text-align: left;
  transition: color var(--dur) var(--ease);
}
.acc__btn:hover { color: var(--brand-600); }
.acc__ico { flex: none; width: 24px; height: 24px; position: relative; color: var(--accent); }
.acc__ico::before, .acc__ico::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: currentColor;
  transform: translate(-50%, -50%); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.acc__ico::before { width: 14px; height: 2px; }
.acc__ico::after  { width: 2px; height: 14px; }
.acc__btn[aria-expanded="true"] .acc__ico::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 4px 22px; margin: 0; font-size: .97rem; color: var(--ink-3); max-width: 72ch; }

/* Filter-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-4); }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); cursor: pointer;
  font-family: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); }
.chip[aria-pressed="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* Stellenanzeigen */
.job {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-4); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--sp-2);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.job:hover { border-color: var(--brand-200); box-shadow: var(--shadow-1); }
.job__main { flex: 1 1 260px; }
.job__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-50);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.job__tag svg { width: 12px; height: 12px; }
.job h3 { margin: 0; font-size: 1.12rem; }

/* Handlungsaufforderung */
.cta-band {
  background: var(--brand-800); color: #fff; border-radius: var(--r-lg);
  padding: clamp(36px, 4vw, 64px); text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 140% at 50% -20%, rgba(79,158,119,.32) 0%, rgba(18,58,40,0) 62%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 62ch; margin-inline: auto; }
.cta-band .btn-row { margin-top: var(--sp-4); }
.cta-note { margin-top: var(--sp-3); font-size: .84rem; color: var(--accent-soft); }

/* Dunkler Abschnitt */
.section--dark { background: var(--brand-900); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lede { color: rgba(255,255,255,.8); }

/* Info-Karten (Kontakt) */
.infocard { display: flex; gap: 14px; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.infocard:last-child { border-bottom: 0; }
.infocard__ico {
  flex: none; width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--line);
}
.infocard__ico svg { width: 20px; height: 20px; }
.infocard h3 { margin: 0 0 3px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.infocard p { margin: 0; color: var(--brand-900); font-weight: 500; }
.infocard p a { color: var(--brand-900); }
.infocard p a:hover { color: var(--brand-600); }
.infocard small { display: block; font-weight: 400; color: var(--ink-3); font-size: .84rem; }

/* =========================================================================
   Formular
   ========================================================================= */
.formcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 44px); box-shadow: var(--shadow-2);
}
.form-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: var(--brand-900); letter-spacing: .01em; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; min-height: 48px;
  font-family: inherit; font-size: .96rem; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-200); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(46,113,80,.14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--danger); background: #FDF6F5;
}
.field__err { font-size: .8rem; color: var(--danger); min-height: 0; }
.field__hint { font-size: .8rem; color: var(--ink-3); }
.check { display: flex; gap: 11px; align-items: flex-start; }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--brand-700); padding: 0; }
.check label { font-size: .86rem; font-weight: 400; color: var(--ink-2); line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--sp-3); padding: 14px 18px; border-radius: var(--r); font-size: .92rem; display: none; }
.form-status.is-ok  { display: block; background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand-800); }
.form-status.is-err { display: block; background: #FDF3F2; border: 1px solid #F1D4D1; color: var(--danger); }
.file-drop {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px dashed var(--line); border-radius: var(--r);
  background: var(--surface-2); cursor: pointer; transition: border-color var(--dur) var(--ease);
}
.file-drop:hover { border-color: var(--brand-300); }
.file-drop svg { width: 20px; height: 20px; color: var(--brand-600); flex: none; }
.file-drop span { font-size: .9rem; color: var(--ink-3); }
.file-drop input { position: absolute; left: -9999px; }

/* Karte mit Zwei-Klick-Lösung */
.mapbox {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-3); min-height: 380px; display: grid; place-items: center;
}
.mapbox__ask { text-align: center; padding: var(--sp-5) var(--sp-3); max-width: 480px; }
.mapbox__ico {
  width: 52px; height: 52px; margin: 0 auto var(--sp-3); border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--brand-700);
  border: 1px solid var(--line);
}
.mapbox__ico svg { width: 24px; height: 24px; }
.mapbox__ask p { margin-bottom: 10px; font-size: .94rem; }
.mapbox__ask .btn { margin-top: 8px; }
.mapbox iframe { width: 100%; height: 420px; border: 0; display: block; }

/* =========================================================================
   Rechtstexte
   ========================================================================= */
.legal { max-width: 800px; }
.legal h2 { margin-top: var(--sp-6); font-size: 1.5rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: var(--sp-4); font-size: 1.14rem; }
.legal h4 { margin-top: var(--sp-3); font-size: 1rem; color: var(--brand-700); }
.legal p, .legal li { font-size: .97rem; }
.legal address { font-style: normal; margin-bottom: 1.1em; }
.legal .stand { font-size: .86rem; color: var(--ink-3); margin-bottom: var(--sp-5); }

/* =========================================================================
   Fußbereich
   ========================================================================= */
.footer { background: var(--brand-950); color: rgba(255,255,255,.66); padding-block: clamp(48px, 5vw, 80px) 0; font-size: .92rem; }
.footer__top { display: grid; gap: var(--sp-5); }
@media (min-width: 760px)  { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-6); } }
.footer__brand img { height: 62px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer__brand p { margin-top: var(--sp-3); max-width: 38ch; color: rgba(255,255,255,.6); font-size: .92rem; }
.footer h3 {
  color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: var(--sp-3);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.66); }
.footer a:hover { color: var(--accent-soft); }
.footer address { font-style: normal; color: rgba(255,255,255,.66); line-height: 1.85; }
.footer__bottom {
  margin-top: clamp(40px, 4vw, 64px); padding-block: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3);
  align-items: center; justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.5);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* =========================================================================
   Ladeanimation (Logo)
   ========================================================================= */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--surface-3);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__stage { width: min(74vw, 460px); }
.loader__stage svg { width: 100%; height: auto; }
.hauser-logo path { fill: var(--brand-700); }
.loader__bar {
  width: min(56vw, 220px); height: 2px; margin: 34px auto 0;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.loader__bar i {
  display: block; height: 100%; width: 0;
  background: var(--brand-700); border-radius: 2px;
  transition: width .3s linear;
}
body.is-loading { overflow: hidden; }

/* Startzustand der Logogruppen (nur solange animiert wird) */
.loader__stage svg.anim #lg-sky,
.loader__stage svg.anim [id^="lg-w-"],
.loader__stage svg.anim #lg-rule-l,
.loader__stage svg.anim #lg-rule-r,
.loader__stage svg.anim #lg-shield,
.loader__stage svg.anim #lg-geb,
.loader__stage svg.anim #lg-tag { opacity: 0; }

.loader__stage svg.anim #lg-sky {
  animation: markIn 1.15s var(--ease) .15s forwards;
  transform-box: fill-box; transform-origin: 50% 100%;
}
.loader__stage svg.anim [id^="lg-w-"] {
  animation: letterIn .62s var(--ease) forwards;
  transform-box: fill-box; transform-origin: 50% 100%;
}
.loader__stage svg.anim #lg-w-h { animation-delay: .95s; }
.loader__stage svg.anim #lg-w-a { animation-delay: 1.03s; }
.loader__stage svg.anim #lg-w-u { animation-delay: 1.11s; }
.loader__stage svg.anim #lg-w-s { animation-delay: 1.19s; }
.loader__stage svg.anim #lg-w-e { animation-delay: 1.27s; }
.loader__stage svg.anim #lg-w-r { animation-delay: 1.35s; }

.loader__stage svg.anim #lg-rule-l {
  animation: ruleL .7s var(--ease) 1.55s forwards;
  transform-box: fill-box; transform-origin: 100% 50%;
}
.loader__stage svg.anim #lg-rule-r {
  animation: ruleR .7s var(--ease) 1.55s forwards;
  transform-box: fill-box; transform-origin: 0% 50%;
}
.loader__stage svg.anim #lg-shield {
  animation: shieldIn .6s var(--ease) 1.7s forwards;
  transform-box: fill-box; transform-origin: 50% 50%;
}
.loader__stage svg.anim #lg-geb { animation: fadeUp .6s var(--ease) 1.85s forwards; transform-box: fill-box; }
.loader__stage svg.anim #lg-tag { animation: fadeUp .6s var(--ease) 2.0s forwards; transform-box: fill-box; }

@keyframes markIn {
  0%   { opacity: 0; transform: translateY(14px) scale(.955); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes letterIn {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: none; }
}
@keyframes ruleL { 0% { opacity: 0; transform: scaleX(0); } 100% { opacity: 1; transform: none; } }
@keyframes ruleR { 0% { opacity: 0; transform: scaleX(0); } 100% { opacity: 1; transform: none; } }
@keyframes shieldIn {
  0%   { opacity: 0; transform: scale(.55); }
  100% { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(9px); }
  100% { opacity: 1; transform: none; }
}

/* =========================================================================
   Einblenden beim Scrollen
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .loader__stage svg.anim [id^="lg-"] { opacity: 1 !important; }
}

/* Nach oben */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--brand-700); color: #fff; border: 0;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease),
              transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--brand-800); }
.totop svg { width: 20px; height: 20px; }

/* Druck */
@media print {
  .topbar, .header, .mobile-nav, .loader, .totop, .hero__media, .pagehead__media { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .hero, .pagehead { background: #fff; color: #000; min-height: 0; padding-block: 24px; }
  .hero h1, .pagehead h1 { color: #000; }
}

/* =========================================================================
   Rubrik „Wissenswertes“ — Übersicht, Beiträge, Tabellen
   ========================================================================= */

/* Beitragsübersicht */
.posts { display: grid; gap: var(--sp-4); }
@media (min-width: 700px)  { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .posts { grid-template-columns: repeat(3, 1fr); } }

.post {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.post:hover { border-color: var(--brand-200); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.post__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.post__cat {
  display: inline-block; align-self: flex-start; margin-bottom: 12px;
  font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-50);
  padding: 5px 12px; border-radius: 999px;
}
.post h3 { font-size: 1.14rem; margin-bottom: 10px; }
.post h3 a { color: inherit; }
.post h3 a:hover { color: var(--brand-600); }
.post__body p { font-size: .93rem; color: var(--ink-3); margin: 0 0 var(--sp-3); }
.post__meta {
  margin-top: auto; padding-top: var(--sp-2); border-top: 1px solid var(--line-soft);
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}

/* Beitragskopf */
.post-head { padding-block: clamp(40px, 4vw, 64px) var(--sp-4); }
.post-head h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); margin-bottom: var(--sp-2); }
.post-head__lede { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.post-head__meta {
  display: flex; flex-wrap: wrap; gap: 8px var(--sp-3);
  margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-3);
}
.post-head__meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-head__meta svg { width: 15px; height: 15px; color: var(--accent); }

.post-hero { margin: 0 0 var(--sp-5); border-radius: var(--r-lg); overflow: hidden; }
.post-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* „Kurz gesagt“ – der zitierfähige Kern des Beitrags */
.summary {
  position: relative;
  background: var(--brand-50); border: 1px solid var(--brand-200);
  border-left: 4px solid var(--brand-700);
  border-radius: var(--r); padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.summary__label {
  display: block; margin-bottom: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-700);
}
.summary p { margin: 0; font-size: 1.04rem; color: var(--brand-900); line-height: 1.65; }

/* Inhaltsverzeichnis */
.toc {
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
}
.toc__t {
  display: block; margin-bottom: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 6px; font-size: .95rem; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--brand-700); }

/* Fließtext des Beitrags */
.prose { padding-bottom: var(--sp-5); }
.prose h2 {
  font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem);
  margin-top: var(--sp-7); margin-bottom: var(--sp-2);
  padding-top: var(--sp-2); scroll-margin-top: 120px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-4); font-size: 1.15rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul, .prose ol { margin-bottom: 1.3em; padding-left: 1.35em; }
.prose li { margin-bottom: .6em; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Datentabellen */
.table-scroll { overflow-x: auto; margin: var(--sp-4) 0 var(--sp-5); -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; }
.datatable th[scope="row"] {
  font-weight: 600; color: var(--brand-900); text-align: left;
  background: transparent;
}
.datatable {
  width: 100%; min-width: 480px; border-collapse: collapse;
  font-size: .95rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.datatable caption {
  caption-side: bottom; text-align: left; padding-top: 10px;
  font-size: .82rem; color: var(--ink-3);
}
.datatable th, .datatable td { padding: 13px 16px; text-align: left; vertical-align: top; }
.datatable thead th {
  background: var(--brand-700); color: #fff; font-weight: 600;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.datatable tbody tr { border-top: 1px solid var(--line); }
.datatable tbody tr:nth-child(even) { background: var(--surface-3); }
.datatable td:first-child { font-weight: 600; color: var(--brand-900); }

/* Kennzahlenliste */
.keyfacts { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; }
.keyfacts li {
  display: grid; gap: 4px; padding: 14px 0; margin: 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .keyfacts li { grid-template-columns: 210px 1fr; gap: var(--sp-3); align-items: baseline; } }
.keyfacts li span {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-600);
}
.keyfacts li strong { font-weight: 400; color: var(--ink-2); }

/* Weiterführende Links im Beitrag */
.post-links {
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-5);
}
.post-links h2 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.post-links ul { list-style: none; margin: 0; padding: 0; }
.post-links li { margin-bottom: 8px; }
.post-links a {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .95rem; color: var(--brand-700);
}
.post-links svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.post-links a:hover svg { transform: translateX(4px); }

/* Überschrift im Aufklapper */
.acc__h { margin: 0; font-size: inherit; font-weight: inherit; }

/* =========================================================================
   Barrierefreiheit — ergänzende Regeln
   ========================================================================= */

/* Nur für Screenreader sichtbar */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.visually-hidden.focusable:focus, .visually-hidden.focusable:focus-within {
  position: static !important;
  width: auto; height: auto; margin: 0;
  clip: auto; clip-path: none; white-space: normal;
}

/* Video anhalten (WCAG 2.2.2) */
.media-toggle {
  display: none;   /* nur in der barrierefreien Fassung sichtbar */
  position: absolute; right: 20px; bottom: 20px; z-index: 4;
  align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  font-family: inherit; font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(7, 26, 17, .72);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--r);
  cursor: pointer; backdrop-filter: blur(4px);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.media-toggle:hover { background: #fff; color: var(--brand-800); border-color: #fff; }
.media-toggle svg { width: 15px; height: 15px; }
.media-toggle .ico-pause { display: inline-flex; }
.media-toggle .ico-play  { display: none; }
.media-toggle[aria-pressed="true"] .ico-pause { display: none; }
.media-toggle[aria-pressed="true"] .ico-play  { display: inline-flex; }
@media (max-width: 640px) { .media-toggle { right: 12px; bottom: 12px; padding: 9px 12px; } }

/* Verstecktes mobiles Menü komplett aus der Bedienung nehmen */
.mobile-nav[inert], .mobile-nav:not(.is-open) { visibility: hidden; }
.mobile-nav.is-open { visibility: visible; }

/* Tastaturbedienbare Scrollbereiche sichtbar machen */
.tslider__track:focus-visible, .card__body:focus-visible {
  outline: 3px solid var(--brand-700); outline-offset: -3px;
}
.scroll-hint {
  display: block; margin-top: 10px;
  font-size: .8rem; color: var(--ink-3);
}

/* Fehlermeldungen: Symbol zusätzlich zur Farbe (WCAG 1.4.1) */
.field__err:not(:empty) {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 2px; font-weight: 500;
}
.field__err:not(:empty)::before {
  content: ''; flex: none; width: 15px; height: 15px; margin-top: 2px;
  background-color: currentColor;
  -webkit-mask: var(--ico-warn) center / contain no-repeat;
          mask: var(--ico-warn) center / contain no-repeat;
}
:root {
  --ico-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2Zm0 6v6m0 3v.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.form-status.is-ok::before, .form-status.is-err::before {
  content: ''; display: inline-block; width: 16px; height: 16px;
  margin-right: 8px; vertical-align: -3px;
  background-color: currentColor;
  -webkit-mask: var(--ico-warn) center / contain no-repeat;
          mask: var(--ico-warn) center / contain no-repeat;
}
.form-status.is-ok::before {
  --ico-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Trefferanzeige des Stellenfilters */
.filter-status {
  margin: 0 0 var(--sp-3); font-size: .88rem; color: var(--ink-3);
}

/* Zu 1.4.12: Bei vergrößerten Textabständen geht in den Karten nichts verloren –
   der Textbereich wird scrollbar (siehe .card__body), die Kartenhöhe bleibt fest.
   Das ist Absicht: Eine mitwachsende Karte würde die ganze Rasterzeile verschieben. */

/* Erklärung zur Barrierefreiheit */
.a11y-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; margin-bottom: var(--sp-4);
  background: var(--brand-50); border: 1px solid var(--brand-200);
  border-radius: var(--r); font-size: .88rem; font-weight: 600; color: var(--brand-800);
  align-items: flex-start; line-height: 1.5; max-width: 46ch;
}
.a11y-status::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-500); flex: none; margin-top: .45em;
}

/* Umschalter zur barrierefreien Fassung */
.topbar__a11y {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; margin-left: 4px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .9); white-space: nowrap;
}
.topbar__a11y:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.topbar__a11y svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 1080px) { .topbar__a11y span { display: none; } }

.mobile-nav .topbar__a11y {
  border-color: rgba(255, 255, 255, .35);
  padding: 12px 16px; font-size: .95rem; font-weight: 600;
}
.mobile-nav .topbar__a11y span { display: inline; }

/* Symbol in der Kopfzeile – nur dort, wo die obere Infozeile ausgeblendet ist */
.header__a11y {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--brand-700);
}
.header__a11y:hover { background: var(--surface-3); color: var(--brand-800); }
.header__a11y svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .header__a11y { display: inline-flex; } }
@media (max-width: 420px) { .header__a11y { width: 44px; height: 44px; } }

/* Untermenü bleibt gut lesbar, auch wenn die Hauptpunkte kompakt sind */
@media (min-width: 1200px) {
  .nav__menu a { font-size: .95rem; letter-spacing: 0; padding: 11px 14px; }
}

/* Die Kopfzeile darf breiter laufen als der Inhalt – sechs Punkte brauchen Platz */
@media (min-width: 1240px) {
  .header > .wrap, .topbar > .wrap { max-width: 1340px; }
}

/* Navigation in zwei Stufen: eng zwischen 1200 und 1400 px, danach luftiger.
   Sechs Hauptpunkte mit „Arbeitnehmerüberlassung“ brauchen sonst mehr Platz,
   als auf einem 1280er-Bildschirm zur Verfügung steht. */
@media (min-width: 1200px) and (max-width: 1399px) {
  .nav a, .nav__toggle { padding-inline: 5px; font-size: .715rem; letter-spacing: .025em; }
  .nav a::after { left: 5px; right: 5px; }
  .nav__toggle::after { left: 5px; right: 17px; }
  .brand img { height: 44px; }
  .header__cta { padding-inline: 12px; }
}
@media (min-width: 1400px) {
  .nav a, .nav__toggle { padding-inline: 10px; font-size: .765rem; letter-spacing: .045em; }
  .nav a::after { left: 10px; right: 10px; }
  .nav__toggle::after { left: 10px; right: 22px; }
  .brand img { height: 50px; }
}
