/* ==========================================================================
   ALMA-MED — Basis-Stylesheet (gemeinsam für alle Seiten)
   Hier werden die Marken-Farben und die Grundtypografie EINMAL definiert.
   Farbe ändern? Nur hier, in :root. Alle Seiten übernehmen es automatisch.
   ========================================================================== */

:root{
  --navy:#152A3F;
  --teal:#3FD3C0;
  --teal-dark:#2BA89A;
  --text:#5A6B7B;
  --bg-light:#F4F8FA;
  --white:#FFFFFF;
  --radius:14px;
  --shadow:0 8px 30px rgba(21,42,63,.08);
  --focus:#0B7285;

  /* ===== MOTION TOKENS ===== */
  --motion-fast:150ms;
  --motion-normal:220ms;
  --motion-slow:600ms;
  --ease-standard:cubic-bezier(.4,0,.2,1);
  --ease-enter:cubic-bezier(.16,1,.3,1);
  --reveal-distance:12px;
  --stagger-step:90ms;
}

/* --------------------------------------------------------------------------
   SCHRIFTART / DSGVO
   Google Fonts wurde bewusst ENTFERNT: das Laden von fonts.googleapis.com
   überträgt die IP-Adresse der Besucher in die USA (LG München I, 3 O 17493/20)
   und ist ohne Einwilligung abmahnfähig.
   Inter wird lokal von unserem eigenen Server ausgeliefert (Variable Font,
   deckt Weight 100–900 in einer Datei pro Unicode-Subset ab — kein Request
   verlässt den Server). Dateien: assets/fonts/inter/*.woff2.
   -------------------------------------------------------------------------- */
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/inter/inter-cyrillic-ext-wght-normal-SP7Z6XGK.woff2') format('woff2-variations');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/inter/inter-cyrillic-wght-normal-DR6K5BQD.woff2') format('woff2-variations');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/inter/inter-greek-ext-wght-normal-A2J6H3EX.woff2') format('woff2-variations');unicode-range:U+1F00-1FFF}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/inter/inter-greek-wght-normal-ZABHMKQG.woff2') format('woff2-variations');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/inter/inter-vietnamese-wght-normal-VWEHJHBA.woff2') format('woff2-variations');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/inter/inter-latin-ext-wght-normal-ZIT2UBIY.woff2') format('woff2-variations');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/inter/inter-latin-wght-normal-DIHYUR35.woff2') format('woff2-variations');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}

/* ===== RESET / BASIS (identisch auf allen Seiten) ===== */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:var(--text);line-height:1.6;background:var(--white);-webkit-font-smoothing:antialiased}
main{display:block}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
h1,h2,h3,h4{color:var(--navy);line-height:1.25;font-weight:700}
.container{max-width:1180px;margin:0 auto;padding:0 24px}

/* ===== ZUGÄNGLICHKEIT (neu) ===== */
.skip-link{position:absolute;left:-9999px;top:0;z-index:999;background:var(--navy);color:#fff;padding:12px 20px;border-radius:0 0 8px 0;font-weight:600}
.skip-link:focus{left:0}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}
.nav a.active{color:var(--teal-dark);font-weight:600}
.nav a.active.btn{color:var(--navy)}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ===== FORMULAR-STATUS (neu) ===== */
.field-error{color:#C0392B;font-size:.85rem;margin-top:6px;display:none}
.has-error input,.has-error select,.has-error textarea{border-color:#C0392B !important;background:#fdf3f2}
.has-error .field-error{display:block}
.form-note{font-size:.82rem;color:var(--text);margin-top:10px;line-height:1.5}

/* ===== WHATSAPP FLOAT (neu) ===== */
.wa-float{position:fixed;right:18px;bottom:18px;z-index:90;width:56px;height:56px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.22);transition:.25s}
.wa-float:hover{transform:scale(1.07)}
.wa-float svg{width:30px;height:30px;fill:#fff}
@media(max-width:680px){.wa-float{width:52px;height:52px;right:14px;bottom:14px}}

/* ===== BRAND LOCKUP (Symbol + bestehendes Wordmark, Header & Footer) ===== */
.brand-lockup{display:inline-flex;align-items:center;gap:8px}
.logo-symbol{height:28px;width:auto;display:block;flex-shrink:0}
.logo-symbol.logo-symbol-footer{height:23px}
/* .footer .logo{margin-bottom:14px} (dupliziert in jeder Seiten-<style>) sitzt jetzt als
   Flex-Item in .brand-lockup — der einseitige Bottom-Margin verschiebt das Wordmark optisch
   nach oben relativ zum Symbol. Verschiebt den Abstand auf den Wrapper (höhere Spezifität
   gewinnt gegen die Seiten-Regel, ohne sie in 14 Dateien anfassen zu müssen). */
.footer .brand-lockup .logo{margin-bottom:0}
.footer .brand-lockup{margin-bottom:14px}

/* ===== HEADER ACTIONS (language switcher + burger, kept as siblings of #nav
   so the switcher stays visible in the header on mobile whether the
   navigation panel is open or closed — see layouts/site.blade.php).
   On mobile, #nav is position:fixed (removed from this flex row entirely),
   so .header-actions naturally ends up flush right next to the logo.
   On desktop, #nav is a normal-flow flex sibling again; margin-left:auto on
   #nav (not .header-actions) absorbs the row's free space so #nav and the
   trailing .header-actions sit adjacent, flush right, in the same DOM order
   they're written in (logo, nav, switcher) — matching visual, DOM, and
   focus/reading order without needing the CSS `order` property. Doesn't
   touch the .header-inner/.nav rules duplicated across every page's own
   <style> block. ===== */
.header-actions{display:flex;align-items:center;gap:10px}
@media(min-width:961px){
  #nav{margin-left:auto}
  .header-actions{margin-left:24px}
}
.nav-lang{font-size:.85rem;white-space:nowrap}
.nav-lang span[aria-current]{color:var(--teal-dark);font-weight:700}
.nav-lang-sep{color:var(--text);opacity:.5}
.nav-lang a{color:var(--text);transition:color .2s}
.nav-lang a:hover{color:var(--teal-dark)}

/* ===== PAGE HERO (gemeinsame Bild/Overlay-Struktur für alle Unterseiten-Heros,
   identisch zum Homepage-Hero — siehe .hero/.hero-bg/.hero-overlay in home.blade.php) ===== */
.page-hero{position:relative;color:#fff;overflow:hidden}
.page-hero-bg{
  position:absolute;inset:0;z-index:0;
  background-color:var(--navy);
  background-image:var(--hero-img, none);
  background-size:cover;background-position:65% 25%;background-repeat:no-repeat
}
.page-hero-overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(100deg,
    rgba(12,27,41,.88) 0%,
    rgba(12,27,41,.82) 20%,
    rgba(12,27,41,.72) 40%,
    rgba(12,27,41,.55) 55%,
    rgba(12,27,41,.38) 70%,
    rgba(43,168,154,.22) 85%,
    rgba(63,211,192,.16) 100%)
}
.page-hero-content{position:relative;z-index:2}
@media(max-width:680px){
  .page-hero-bg{background-image:var(--hero-img-m, var(--hero-img, none));background-position:60% 18%}
  .page-hero-overlay{background:linear-gradient(180deg,rgba(12,27,41,.75) 0%,rgba(12,27,41,.70) 100%)}
}

/* ===== TRUST STRIP (gemeinsame Komponente: Home & Arbeitgeber teilen sich
   dieselben Klassen/Struktur — nur der Inhalt pro Seite unterscheidet sich,
   siehe .trust-item-Markup in den jeweiligen Blade-Views) ===== */
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0 44px;padding-top:26px;padding-bottom:26px}
.trust-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;padding-top:4px;padding-bottom:4px;border-left:none;min-width:0}
.trust-icon{flex-shrink:0;width:52px;height:52px;border-radius:50%;background:rgba(63,211,192,.14);display:flex;align-items:center;justify-content:center}
.trust-icon svg{width:26px;height:26px;stroke:var(--teal-dark)}
.trust-copy strong{display:block;font-size:1.05rem;font-weight:700;color:var(--navy);line-height:1.25;text-align:center;margin-bottom:6px;hyphens:auto;overflow-wrap:break-word}
.trust-copy span{display:block;font-size:.92rem;color:var(--text);line-height:1.6;text-align:center;hyphens:auto;overflow-wrap:break-word}
@media(max-width:1199px){
  .trust-grid{column-gap:28px}
}
@media(max-width:960px){
  .trust-grid{grid-template-columns:repeat(2,1fr);gap:20px 16px;padding-top:28px;padding-bottom:28px}
  .trust-item{padding:0}
}
@media(max-width:680px){
  .trust-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:24px;column-gap:12px;padding-top:24px;padding-bottom:24px}
  .trust-icon{width:44px;height:44px}
  .trust-icon svg{width:20px;height:20px}
  .trust-copy strong{font-size:.92rem;margin-bottom:8px}
  .trust-copy span{line-height:1.5}
}

/* Trust Bar bleibt weiß; die direkt folgende Sektion bekommt den bereits
   sitenweit für alternierende Sektionen genutzten Farbton (--bg-light),
   damit beide Blöcke nicht optisch verschmelzen (z. B. #services auf
   /arbeitgeber, das sonst keinen eigenen Hintergrund hat). */
.trust + .section{background:var(--bg-light)}

.model-card h3{hyphens:auto;overflow-wrap:break-word}

/* ===== EINFACHE INHALTSSEITE (Impressum, Datenschutz, AGB, 404) ===== */
.simple-hero{background:linear-gradient(135deg,var(--navy),#1d3a55);color:#fff;padding:64px 0 56px}
.simple-hero h1{color:#fff;font-size:clamp(1.7rem,4vw,2.6rem);margin-bottom:10px}
.simple-hero p{color:#c5d2de;max-width:640px}
.crumb{font-size:.85rem;color:#8fa6ba;margin-bottom:14px}
.crumb a{color:var(--teal)}
.prose{max-width:820px;padding:64px 0}
/* Impressum/Datenschutz/AGB setzen .container und .prose auf demselben <section>-Element
   (<section class="container prose">). .prose{padding:64px 0} überschreibt sonst das
   seitliche .container-Padding (0 24px) komplett mit 0 — auf Desktop unsichtbar, weil
   max-width:1180px das Element ohnehin schon vom Viewport-Rand trennt, aber auf Mobile
   (Viewport < 1180px) liegt der Text direkt an der Bildschirmkante. */
.container.prose{padding:64px 24px}
.prose h2{font-size:1.35rem;margin:36px 0 12px}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:1.05rem;margin:24px 0 8px}
.prose p,.prose li{margin-bottom:12px}
.prose ul,.prose ol{padding-left:22px}
.prose strong{color:var(--navy)}
.prose .todo{background:#FFF4D6;border-left:4px solid #E8B21A;padding:14px 18px;border-radius:0 8px 8px 0;margin:18px 0;font-size:.93rem}
.prose .todo strong{color:#8a6400}

/* ===== MOTION SYSTEM (gemeinsam für alle Seiten) =====
   Zwei Mechanismen:
   1) Hero-/Danke-Einstieg: reine CSS-Keyframe-Animation beim Laden, kein Scroll
      nötig, kein JS nötig (Inhalt ist ohnehin above-the-fold sichtbar).
   2) Scroll-Reveal (.reveal): Klasse wird per IntersectionObserver in main.js
      um .is-visible ergänzt. Ohne JS bleibt .reveal wirkungslos (Progressive
      Enhancement, siehe .js-motion-Gate) — Inhalt ist also auch ohne
      JavaScript immer sichtbar. */
@keyframes almaEnter{from{opacity:0;transform:translateY(var(--reveal-distance))}to{opacity:1;transform:translateY(0)}}

.hero-content>*,.page-hero-content>*{animation:almaEnter var(--motion-slow) var(--ease-enter) both}
.hero-content>*:nth-child(1),.page-hero-content>*:nth-child(1){animation-delay:0ms}
.hero-content>*:nth-child(2),.page-hero-content>*:nth-child(2){animation-delay:var(--stagger-step)}
.hero-content>*:nth-child(3),.page-hero-content>*:nth-child(3){animation-delay:calc(var(--stagger-step) * 2)}
.hero-content>*:nth-child(4),.page-hero-content>*:nth-child(4){animation-delay:calc(var(--stagger-step) * 3)}

.danke .container>*{animation:almaEnter var(--motion-normal) var(--ease-enter) both}
.danke .container>*:nth-child(1){animation-delay:0ms}
.danke .container>*:nth-child(2){animation-delay:var(--stagger-step)}
.danke .container>*:nth-child(3){animation-delay:calc(var(--stagger-step) * 2)}
.danke .container>*:nth-child(4){animation-delay:calc(var(--stagger-step) * 3)}
.danke .container>*:nth-child(5){animation-delay:calc(var(--stagger-step) * 4)}

.js-motion .reveal{opacity:0;transform:translateY(var(--reveal-distance));transition:opacity var(--motion-slow) var(--ease-enter),transform var(--motion-slow) var(--ease-enter)}
.js-motion .reveal.is-visible{opacity:1;transform:translateY(0)}
.reveal-d1{transition-delay:var(--stagger-step)}
.reveal-d2{transition-delay:calc(var(--stagger-step) * 2)}
.reveal-d3{transition-delay:calc(var(--stagger-step) * 3)}
.reveal-d4{transition-delay:calc(var(--stagger-step) * 4)}
.reveal-d5{transition-delay:calc(var(--stagger-step) * 5)}

.btn:active{transform:translateY(0) scale(.98);transition-duration:var(--motion-fast)}

/* ===== DRUCK ===== */
@media print{
  .header,.footer,.wa-float,.skip-link,.filters{display:none !important}
  body{color:#000}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:.8em}
}

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