/* ==========================================================================
   SCHULDT Lüftungsanlagenreinigung – statischer One-Pager (Variante "White")
   Weißer Hintergrund, Bild-Hero, Header wird beim Scrollen leicht transparent.
   Schriften & Bibliotheken selbst gehostet (DSGVO)
   ========================================================================== */

/* ---------- Selbst gehostete Schriften ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NotoSans';
  src: url('../fonts/NotoSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NotoSans';
  src: url('../fonts/NotoSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design-Tokens (Markenfarben SCHULDT) ---------- */
:root {
  --c-primary:      #10507a;
  --c-primary-dark: #06314f;
  --c-dark:         #000000;
  --c-link:         #10507a;
  --c-link-hover:   #0082be;
  --c-link-active:  #10507a;

  --c-bg:      #ffffff;            /* Variante: reines Weiß */
  --c-surface: #ffffff;
  --c-tint:    #e8f5fc;
  --c-line:    #b8dff5;
  --c-text:    #000000;
  --c-muted:   #10507a;
  --c-footer:  #ffffff;

  --font-sans:    'NotoSans', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-nav:     'Manrope', 'Segoe UI', system-ui, sans-serif;

  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(1, 159, 230, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(1, 159, 230, 0.25);
  --shadow-lg: 0 30px 60px -25px rgba(1, 159, 230, 0.35);
  --container: 1160px;
  --header-h: 78px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--c-dark);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--c-primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--c-link-hover); }
a:active { color: var(--c-link-active); }

.mono { font-family: var(--font-nav); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--c-link-active); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 28px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-nav); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; }

/* ---------- Eyebrow & Chips ---------- */
.eyebrow {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-primary); margin: 0 0 24px;
}
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--c-line); background: var(--c-tint);
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; color: var(--c-primary);
  white-space: nowrap;
}
.chip-iso { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ==========================================================================
   HEADER – startet deckend weiß, wird beim Scrollen leicht transparent
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease,
              backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);          /* leicht transparent */
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--c-line);
  box-shadow: 0 6px 24px -16px rgba(15, 101, 132, 0.35);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.brand { display: inline-flex; align-items: center; font-family: var(--font-nav); }
.brand-logo { height: 72px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; font-family: var(--font-nav); }
.main-nav a:not(.btn) {
  color: var(--c-dark); font-weight: 500; font-size: 0.96rem; position: relative; padding: 4px 0;
}
.main-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--c-link-active); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.main-nav a:not(.btn):hover { color: var(--c-primary); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { padding: 9px 22px; font-size: 0.92rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-dark); margin: 5px 0; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-surface); border-bottom: 1px solid var(--c-line);
    padding: 8px 24px 20px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .main-nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--c-tint); }
  .nav-cta { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   HERO – zweispaltig auf Weiß: Text links, großes Bild rechts
   ========================================================================== */
.hero {
  position: relative;
  z-index: 10;
  padding: calc(var(--header-h) + 72px) 0 96px;
  background: #ffffff;
  overflow: hidden;
}
/* zarte Linien-Textur rechts oben, sehr dezent */
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; width: 46%; height: 100%;
  background:
    repeating-linear-gradient(115deg, rgba(15, 101, 132, 0.045) 0 1.5px, transparent 1.5px 56px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}

.hero-text h1 em { font-style: normal; color: var(--c-primary); }
.hero-sub { font-size: 1.16rem; color: var(--c-muted); max-width: 560px; }
/* .hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hero-chips .chip {
  border-radius: 4px;
  padding: 3px 9px;
  background: transparent;
  border: 1.5px solid rgba(16, 80, 122, 0.28);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.hero-chips .chip-iso {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
} */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 64px 0 32px 0; }
.hero-contactline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 0.95rem; color: var(--c-muted); margin: 0; }
.hero-contactline .contact-link { font-weight: 400; }

.hero-media { position: relative; }
.hero-photo {
  margin: 0; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; max-height: 560px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Hinter dem Foto: versetzte Markenfläche */
.hero-deco {
  position: absolute; z-index: -1; top: 36px; right: -28px; bottom: -28px; left: 36px;
  border-radius: 22px;
  background: linear-gradient(140deg, var(--c-tint), rgba(90, 219, 237, 0.25));
}
.hero-card-num { font-weight: 500; font-size: 1.05rem; color: var(--c-primary); white-space: nowrap; }

@media (max-width: 880px) {
  .hero { padding-top: calc(var(--header-h) + 44px); padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { aspect-ratio: 16 / 10; max-height: none; }
  .hero-card { left: 14px; bottom: 14px; }
  .hero-deco { right: -12px; bottom: -12px; }
  .hero::before { width: 100%; opacity: .6; }
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { position: relative; z-index: 10; background: var(--c-tint); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat-num { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; color: var(--c-primary); line-height: 1.1; }
.stat-label { color: var(--c-muted); font-size: 0.95rem; }
.stat-sub { font-size: 0.78rem; color: var(--c-link-active); }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ==========================================================================
   SEKTIONEN
   ========================================================================== */
.section { position: relative; z-index: 10; padding: 104px 0; background: #ffffff; }
.section-tint { background: var(--c-tint); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-lead { font-size: 1.12rem; color: var(--c-muted); }

/* ---------- Leistungen: Karten mit echten Bildern ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px;
}
.service-card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  position: relative; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--c-link-active); }
.service-img { margin: 0; aspect-ratio: 550 / 290; overflow: hidden; background: var(--c-tint); }
.service-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 22px 24px 26px; position: relative; flex: 1; display: flex; flex-direction: column; }
.service-body .chip { position: absolute; top: -14px; left: 22px; background: var(--c-surface); box-shadow: var(--shadow-sm); }
.service-body h3 { margin: 14px 0 8px; }
.service-body p { margin: 0 0 16px; color: var(--c-muted); font-size: 0.95rem; flex: 1; }
.service-more {
  font-size: .8rem; color: var(--c-link-active); text-decoration: none;
  font-family: var(--font-nav); letter-spacing: .03em;
  align-self: flex-start; position: static;
}
/* Stretched Link: gesamte Karte ist klickbar */
.service-more::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
}
.service-card:hover .service-more { text-decoration: underline; }

/* ---------- Split-Layouts (Warum / Über uns) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.split-reverse .split-text { order: 2; }
.split-reverse .split-media { order: 1; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin: 0; aspect-ratio: 17 / 11; background: var(--c-tint); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-text { order: 1; }
  .split-reverse .split-media { order: 2; }
}

/* Karriere-Teaser in "Über uns" */
.karriere-teaser { margin-top: 1.8em !important; }
.karriere-teaser-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-nav); font-weight: 600;
  font-size: .85rem; letter-spacing: .05em;
  color: var(--c-primary); text-decoration: none;
  border: 1.5px solid var(--c-primary);
  padding: 9px 18px; border-radius: 8px; margin-top: 14px;
  transition: background .18s, color .18s, transform .18s, gap .18s;
}
.karriere-teaser-link:hover {
  background: var(--c-primary); color: #fff;
  transform: translateY(-2px); gap: 10px;
}

.check-list { list-style: none; padding: 0; margin: 0 0 30px; }
.check-list li { position: relative; padding: 7px 0 7px 36px; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--c-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 15px no-repeat, linear-gradient(#000, #000);
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 15px no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Kunden / Marquee ---------- */
.section-dark { background: var(--c-dark); padding-bottom: 84px; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--c-link); }
.section-dark .section-head { margin-bottom: 40px; }

.section-blue { background: var(--c-primary); padding-bottom: 84px; }
.section-blue h2 { color: #fff; }
.section-blue .eyebrow { color: rgba(255,255,255,0.75); }
.section-blue .section-head { margin-bottom: 40px; }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 38px; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.1rem); color: #fff;
  padding: 8px 0;
}
.marquee-track span[aria-hidden] { color: rgba(255,255,255,0.5); font-weight: 400; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Kunden-Section: weißer Hintergrund, zentriert ---------- */
#kunden { background: #fff; }
#kunden .section-head { margin-left: auto; margin-right: auto; text-align: center; }
#kunden .marquee-track { color: var(--c-muted); }
#kunden .marquee-track span[aria-hidden] { color: var(--c-line); }

/* ---------- QM ---------- */
.qm-inner { max-width: 760px; text-align: center; margin: 0 auto; }
.qm-logo { margin: 22px auto 0; }

/* ---------- Before/After Slider ---------- */
.before-after-slider {
  position: relative; overflow: hidden; cursor: ew-resize; user-select: none;
  --split: 50%;
}
.before-after-slider .ba-before,
.before-after-slider .ba-after {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: none;
}
.ba-after { clip-path: inset(0 0 0 var(--split)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split);
  transform: translateX(-50%); width: 3px; background: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}
.ba-handle::before, .ba-handle::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25); top: calc(50% - 18px);
}
.ba-handle::before {
  background: var(--c-primary);
  top: calc(50% - 18px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l-6-6 6-6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 18px; background-repeat: no-repeat; background-position: center;
}
.ba-handle::after { display: none; }
.ba-label {
  position: absolute; top: 10px; padding: 3px 10px; border-radius: 4px;
  font-family: var(--font-nav); font-size: 0.75rem; font-weight: 600;
  color: #fff; background: rgba(0,0,0,0.45); letter-spacing: 0.05em; text-transform: uppercase;
  pointer-events: none;
}
.ba-label-before { left: 10px; }
.ba-label-after { right: 10px; }

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  font-style: normal; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 32px 28px; margin-bottom: 22px;
}
/* Ebene 1 – Markenname */
.contact-org { margin: 0 0 16px; padding-bottom: 16px; }
.contact-brand {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--c-primary);
  margin-bottom: 5px;
}
/* Ebene 2 – Rechtsform */
.contact-legal {
  display: block;
  font-size: 0.8rem; font-weight: 400;
  color: rgba(0,0,0,0.42);
  letter-spacing: 0.01em;
}
/* Ebene 3 – Adresse */
.contact-addr {
  font-size: 0.9rem; line-height: 1.85;
  color: rgba(0,0,0,0.6);
  margin: 0;
}
/* Ebene 4 – Kontaktzeilen (Telefon / E-Mail) */
.contact-lines { list-style: none; padding: 0; margin: 20px 0 0; display: grid; padding-top: 18px; font-size: 0.9rem;  }
.contact-lines li { display: flex; align-items: center; gap: 12px; }
.contact-lines svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: var(--c-primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-link { font-weight: 400; color: var(--c-primary); }
.contact-link:hover { color: var(--c-link-hover); }
.contact-mail { word-break: break-word; }

/* Click-to-load Map */
.map-consent { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-surface); }
.map-placeholder {
  min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 34px 26px;
  background:
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(15,101,132,0.10) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(15,101,132,0.10) 38px 39px),
    var(--c-tint);
  color: var(--c-muted);
}
.map-placeholder svg { color: var(--c-primary); }
.map-placeholder p { margin: 0; max-width: 380px; font-size: 0.93rem; }
.map-placeholder strong { color: var(--c-dark); }
.map-note { font-size: 0.8rem !important; }
.map-consent iframe { width: 100%; height: 360px; border: 0; display: block; }

/* Formular */
.contact-form-wrap { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-sm); }
.contact-form { display: grid; gap: 18px; position: relative; }
/* Honeypot – für Menschen unsichtbar, bleibt für Bots im DOM sichtbar (kein display:none) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; color: var(--c-dark); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--c-line); border-radius: 10px;
  font: inherit; color: var(--c-text); background: #fcfeff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(90, 219, 237, 0.28); }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field-error { margin: 6px 0 0; font-size: 0.84rem; color: #c0392b; min-height: 0; }
.field textarea { resize: vertical; min-height: 130px; }

.field-consent .consent-label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; cursor: pointer; }
.field-consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--c-primary); flex: 0 0 auto; }

.btn-submit { justify-self: start; min-width: 220px; position: relative; }
.btn-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff;
  display: none; animation: spin 0.8s linear infinite;
}
.contact-form.is-sending .btn-spinner { display: inline-block; }
.contact-form.is-sending .btn-submit { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin: 0; font-size: 0.9rem; color: #c0392b; }
.form-success { text-align: center; padding: 26px 8px 8px; color: var(--c-dark); }
.form-success svg { color: var(--c-primary); margin: 0 auto 12px; display: block; }
.contact-form.is-done .field, .contact-form.is-done .btn-submit, .contact-form.is-done .form-status { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 5; overflow: hidden;
  background: var(--c-footer); color: var(--c-dark);
  padding: 52px 0 0; font-size: 0.95rem;
  box-shadow: 0 -2px 32px rgba(16, 80, 122, 0.1);
}
.site-footer a { color: var(--c-link); }
.site-footer a:hover { color: var(--c-link-hover); }
.site-footer a:active { color: var(--c-link-active); }
.footer-bg-wrap {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
  opacity: 0.18;
}
.footer-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.footer-grid, .footer-bottom { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 52px; }
.footer-org { margin: 0 0 14px; padding-bottom: 0; border-bottom: none; }
.footer-head { font-family: var(--font-nav); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 14px; }
.footer-grid nav a { display: block; padding: 5px 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(0,0,0,0.2); padding-block: 22px;
}
.footer-bottom p { margin: 0; color: var(--c-muted); }
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--c-line);
  background: #fff;
  color: var(--c-primary);
  box-shadow: 0 4px 14px rgba(16, 80, 122, 0.14);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease,
              background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.to-top.is-visible:hover { transform: translateY(-2px); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { position: relative; bottom: auto; }
}

/* ==========================================================================
   KARRIERE / STELLEN
   ========================================================================== */

/* Empty-State-Box */
.karriere-leer {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  max-width: 520px;
}
.karriere-leer-icon {
  width: 52px; height: 52px;
  background: var(--c-tint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--c-primary);
}
.karriere-leer h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-dark);
  margin: 0 0 10px;
}
.karriere-leer p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--c-muted);
  margin: 0 0 28px;
}

/* Stellenliste */
.stellen-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.stellen-karte {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.stellen-karte:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary);
}
.stellen-karte-titel {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-dark);
  margin: 0 0 10px;
}
.stellen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stellen-tag {
  font-family: var(--font-nav);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 3px 11px;
  border-radius: 20px;
  background: var(--c-tint);
  color: var(--c-primary);
  border: 1px solid var(--c-line);
}
.stellen-karte-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-primary);
  transition: background .18s, border-color .18s, transform .18s, color .18s;
}
.stellen-karte:hover .stellen-karte-arrow {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateX(4px);
}
.karriere-initiativ {
  margin-top: 20px;
  font-size: .9rem;
  color: var(--c-muted);
}

@media (max-width: 600px) {
  .karriere-leer { padding: 40px 24px; }
  .stellen-karte { padding: 18px 18px; }
  .stellen-karte-arrow { display: none; }
}

/* ==========================================================================
   ANIMATION: Startzustände nur, wenn JS + Motion erlaubt
   (Klasse .js-anim wird von main.js gesetzt – ohne JS bleibt alles sichtbar)
   ========================================================================== */
.js-anim [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-anim .hero-text > *, .js-anim .hero-media { opacity: 0; transform: translateY(24px); }

/* Scroll-Fortschritt im Header (1 = Seitenende) */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2.5px; width: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-link-active), var(--c-link));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* Headline-Maskenreveal: Wörter werden per JS in Spans gewickelt */
.hero-text h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-text h1 .w > span { display: inline-block; }

/* Schwebende Infokarte: sanftes Treiben übernimmt GSAP (will-change schont Repaints) */
.hero-card { will-change: transform; }

/* Kleiner Akzentstrich unter den Counter-Zahlen */
.stat-num { position: relative; padding-bottom: 12px; }
.stat-num::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 38px; height: 3px;
  margin-left: -19px; border-radius: 2px; background: var(--c-link-active);
  transform: scaleX(var(--tick, 1)); transform-origin: center;
}
.js-anim .stat-num::after { --tick: 0; }

/* ---------- Reduced Motion: alles statisch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
