/* GREITERS Designsystem – Tokens laut Corporate-Design-Briefing (Okt. 2026).
   Schrift: nur Manrope (keine Serifen, Vorgabe Lukas). Große Headlines über .editorial in kräftigem Manrope.
   Kontrast: Himmelblau und Wiesen-Grün nie für kleine Schrift auf Weiß (zu wenig Kontrast), nur als Akzent. */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Farben */
  --color-navy: #0B3D91;
  --color-navy-deep: #082B55;
  --color-sky: #4EA3FF;
  --color-meadow: #6DA544;
  --color-sun: #E6B94E;
  --color-off-white: #F7F7F3;
  --color-white: #FFFFFF;
  --color-text: #17243A;
  --color-text-muted: #5B6675;
  --color-line: #E0E5E8;
  --color-navy-tint: #EEF2F8;
  --color-error: #B3261E;

  /* Schrift */
  --font-sans: "Manrope", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  --fs-h1: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem);

  /* Abstände (8er-Raster) */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Layout */
  --container-max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 6.5rem;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(8, 43, 85, .05), 0 8px 30px rgba(8, 43, 85, .07);
  --shadow-card: 0 8px 28px rgba(8, 43, 85, .08);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --shadow-hover: 0 14px 38px rgba(8, 43, 85, .14);
  color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); accent-color: var(--color-navy); caret-color: var(--color-navy); scrollbar-color: #8FA3C0 var(--color-off-white); }
::selection { background: var(--color-sun); color: var(--color-navy-deep); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--color-off-white); color: var(--color-text); font: 400 var(--fs-base)/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--color-navy); font-family: var(--font-sans); font-weight: 750; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h2 { letter-spacing: -.03em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
a { color: var(--color-navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--color-sky); }
:focus-visible { outline: 3px solid var(--color-sky); outline-offset: 3px; border-radius: 4px; }
.editorial { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--color-navy); color: var(--color-white); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-4); }

.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section.white { background: var(--color-white); }
.section.tint { background: var(--color-navy-tint); }
.section.tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.prose { display: grid; gap: var(--space-4); max-width: 42rem; }
.prose > h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin-top: var(--space-5); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--space-2); }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--color-text); }
.muted { color: var(--color-text-muted); }

/* ---------- Eyebrow & Abschnittskopf ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-3); font: 700 var(--fs-xs)/1.3 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--color-navy); }
.eyebrow::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--color-sun); flex: none; }
.eyebrow.light { color: var(--color-white); }
.section-heading { display: grid; gap: var(--space-4); max-width: 46rem; margin-bottom: var(--space-7); }
.section-heading h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); line-height: 1.05; }
.section-heading.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-heading p { color: var(--color-text-muted); font-size: var(--fs-lg); line-height: 1.55; }
.section-heading.split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-4) var(--space-6); }
.section-heading.split > div { display: grid; gap: var(--space-3); max-width: 44rem; }
@media (max-width: 47.99rem) { .section-heading.split { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--color-navy); font: 700 var(--fs-sm)/1.1 var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn-primary { background: var(--color-navy); color: var(--color-white); }
.btn-primary:hover { background: var(--color-navy-deep); border-color: var(--color-navy-deep); }
.btn-secondary { background: transparent; color: var(--color-navy); }
.btn-secondary:hover { background: var(--color-navy); color: var(--color-white); }
.btn-light { background: var(--color-white); border-color: var(--color-white); color: var(--color-navy); }
.btn-light:hover { background: var(--color-off-white); border-color: var(--color-off-white); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.85); color: var(--color-white); }
.btn-ghost-light:hover { background: var(--color-white); color: var(--color-navy); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.arrow { display: inline-block; transition: transform .25s var(--ease-out); }
:is(.btn, .place-card, .job-card > a):hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; min-height: 32px; }
.text-link:hover { text-decoration: underline; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 247, 243, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; padding-top: env(safe-area-inset-top, 0px); }
.site-header.is-scrolled { border-bottom-color: var(--color-line); box-shadow: 0 4px 18px rgba(8, 43, 85, .06); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: clamp(52px, 5.4vw, 76px); width: auto; max-width: 100%; }
@media (max-width: 30rem) { .brand img { height: 42px; max-width: 58vw; } }
.brand .logo-hell { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(.4rem, 1.5vw, 1.6rem); }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .15rem; font-weight: 650; font-size: var(--fs-sm); color: var(--color-text); text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--color-navy); border-bottom-color: var(--color-sky); }
.main-nav a[aria-current="page"] { color: var(--color-navy); border-bottom-color: var(--color-sun); }
.menu-toggle { display: none; align-items: center; gap: .55rem; min-height: 44px; min-width: 44px; padding: 0 1rem; border: 1.5px solid var(--color-navy); border-radius: 999px; background: transparent; color: var(--color-navy); font: 700 var(--fs-sm)/1 var(--font-sans); cursor: pointer; }
.menu-toggle .icon { width: 18px; height: 12px; position: relative; }
.menu-toggle .icon::before, .menu-toggle .icon::after, .menu-toggle .icon span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle .icon::before { top: 0; } .menu-toggle .icon span { top: 5px; } .menu-toggle .icon::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .icon::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .icon::after { transform: translateY(-5px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .icon span { opacity: 0; }
@media (max-width: 63.99rem) {
  .js .menu-toggle { display: inline-flex; }
  .js .main-nav { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--color-off-white); border-bottom: 1px solid var(--color-line); box-shadow: 0 18px 30px rgba(8, 43, 85, .1); padding: var(--space-2) var(--gutter) var(--space-5); }
  .js .main-nav[hidden] { display: none; }
  .main-nav ul { flex-wrap: wrap; }
  .js .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .main-nav a { width: 100%; min-height: 54px; font-size: var(--fs-lg); border-bottom: 1px solid var(--color-line); }
  .js .main-nav a[aria-current="page"] { border-bottom-color: var(--color-line); box-shadow: inset 4px 0 0 var(--color-sun); padding-left: .9rem; }
}
@media (max-width: 63.99rem) { html:not(.js) .site-header .bar { flex-wrap: wrap; padding-block: var(--space-2); } }

/* Kopfzeile über dem Bildkopf: transparent mit hellem Logo, ab dem ersten Scrollen oder bei offenem Menü wieder hell.
   Nur mit JavaScript, weil erst site.js die Klasse is-scrolled setzt. */
.js body:has(> main > :is(.hero, .page-hero):first-child) .site-header { position: fixed; left: 0; right: 0; }
.js body:has(> main > :is(.hero, .page-hero):first-child) .site-header:not(.is-scrolled, .is-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.js body:has(> main > :is(.hero, .page-hero):first-child) .site-header:not(.is-scrolled, .is-open) .logo-dunkel { display: none; }
.js body:has(> main > :is(.hero, .page-hero):first-child) .site-header:not(.is-scrolled, .is-open) .logo-hell { display: block; }
.js body:has(> main > :is(.hero, .page-hero):first-child) .site-header:not(.is-scrolled, .is-open) .main-nav a { color: var(--color-white); }
.js body:has(> main > :is(.hero, .page-hero):first-child) .site-header:not(.is-scrolled, .is-open) .menu-toggle { color: var(--color-white); border-color: rgba(255, 255, 255, .8); }
.js main > .page-hero:first-child .container { padding-top: calc(var(--header-h) + var(--space-6)); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(34rem, 88vh, 56rem); display: grid; align-items: end; color: var(--color-white); background: var(--color-navy-deep); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,43,85,.5) 0%, rgba(8,43,85,0) 24%), linear-gradient(180deg, rgba(8,43,85,0) 35%, rgba(8,43,85,.8) 100%), linear-gradient(90deg, rgba(8,43,85,.5) 0%, rgba(8,43,85,0) 62%); }
.hero .container { width: 100%; padding-block: var(--space-9) clamp(3rem, 8vh, 5.5rem); display: grid; gap: var(--space-5); justify-items: start; }
.hero h1 { color: var(--color-white); max-width: none; line-height: 1.02; text-shadow: 0 2px 30px rgba(8,43,85,.35); }
@media (max-width: 30rem) { .hero h1 { font-size: 1.95rem; } }
.hero p { max-width: 36rem; font-size: var(--fs-lg); line-height: 1.55; text-shadow: 0 1px 14px rgba(8,43,85,.45); }

/* Unterseiten-Kopf */
.page-hero { position: relative; isolation: isolate; color: var(--color-white); background: var(--color-navy); overflow: hidden; min-height: clamp(20rem, 48vh, 32rem); display: grid; align-items: end; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,43,85,.5) 0%, rgba(8,43,85,.15) 28%, rgba(8,43,85,.82) 100%); }
.page-hero .container { width: 100%; padding-block: var(--space-8) var(--space-7); display: grid; gap: var(--space-4); justify-items: start; }
.page-hero h1 { color: var(--color-white); font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; max-width: 20ch; }
.page-hero .hero-meta { font-size: var(--fs-sm); font-weight: 700; color: rgba(255, 255, 255, .88); }
.page-hero p { max-width: 40rem; font-size: var(--fs-lg); }
.page-hero.plain { min-height: clamp(18rem, 40vh, 26rem); }
.page-hero.hoch { min-height: clamp(28rem, 72vh, 40rem); }
img[data-pos="kapelle"] { object-position: 62% 48%; }
.page-hero.plain::after { background: none; }
.page-hero.plain .contours { color: var(--color-white); opacity: .1; }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: var(--fs-sm); }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.breadcrumbs a { color: inherit; }
.breadcrumbs [aria-current] { opacity: .85; }

/* ---------- Konturlinien (Deko) ---------- */
.contours { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; color: var(--color-navy); opacity: .08; pointer-events: none; z-index: 0; }
.has-contours { position: relative; overflow: hidden; }
.has-contours > .container { position: relative; z-index: 1; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 60rem) { .intro-grid { grid-template-columns: 1fr 1fr; gap: var(--space-9); } }
.intro-grid h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); }

/* ---------- Bild-Mosaik ---------- */
.mosaic { display: grid; gap: var(--space-3); grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(7rem, 11vw, 10.5rem); }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--color-line); position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic a { display: block; height: 100%; }
.mosaic a:hover img { transform: scale(1.03); }
.mosaic figcaption { position: absolute; left: var(--space-3); bottom: var(--space-3); padding: .3rem .7rem; border-radius: 999px; background: rgba(8,43,85,.82); color: var(--color-white); font-size: var(--fs-xs); font-weight: 700; }
.mosaic .m1 { grid-column: span 3; grid-row: span 3; }
.mosaic .m2 { grid-column: span 3; grid-row: span 2; }
.mosaic .m3 { grid-column: span 2; grid-row: span 1; }
.mosaic .m4 { grid-column: span 1; grid-row: span 1; }
@media (max-width: 47.99rem) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9.5rem; }
  .mosaic .m1, .mosaic .m2 { grid-column: span 2; grid-row: span 2; }
  .mosaic .m3, .mosaic .m4 { grid-column: span 1; grid-row: span 1; }
}

/* ---------- Feature: Bild + Text ---------- */
.feature { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 56rem) { .feature { grid-template-columns: 1.15fr 1fr; gap: var(--space-9); } .feature.reverse > figure { order: 2; } }
.feature > figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-line); }
.feature > figure img { width: 100%; height: 100%; object-fit: cover; }
.feature .prose h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin: 0; }
.feature .duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-3); aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }
.feature .duo img { border-radius: var(--radius-lg); aspect-ratio: 3 / 4; object-fit: cover; height: 100%; }
.feature .duo img:first-child { aspect-ratio: 4 / 5; }
.feature .duo img:last-child { align-self: end; }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--color-line); }
.facts-list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); font-size: var(--fs-sm); }
.facts-list strong { color: var(--color-navy); font-weight: 700; }
@media (max-width: 30rem) { .facts-list li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Weiler als Fotokarten ---------- */
.place-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.place-card { position: relative; isolation: isolate; display: grid; align-content: end; min-height: clamp(24rem, 34vw, 32rem); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-navy-deep); color: var(--color-white); text-decoration: none; }
.place-card figure { position: absolute; inset: 0; z-index: -2; margin: 0; }
.place-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.place-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,43,85,0) 25%, rgba(8,43,85,.55) 58%, rgba(8,43,85,.92) 100%); }
.place-card:hover img { transform: scale(1.04); }
.place-card .body { display: grid; gap: var(--space-2); padding: var(--space-6) var(--space-5) var(--space-5); text-shadow: 0 1px 12px rgba(8,43,85,.4); }
.place-card h3 { color: var(--color-white); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); letter-spacing: -.03em; }
.place-card p { max-width: 34ch; color: rgba(255,255,255,.92); font-size: var(--fs-sm); }
.place-card .more { margin-top: var(--space-2); font-weight: 700; font-size: var(--fs-sm); }

/* ---------- Foto-Band „Was Greiters ausmacht“ ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--color-navy-deep); color: var(--color-white); padding-block: clamp(5rem, 3rem + 9vw, 10rem); }
.band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,43,85,.92) 0%, rgba(8,43,85,.78) 55%, rgba(8,43,85,.55) 100%); }
.band .container { display: grid; gap: clamp(3rem, 2rem + 4vw, 5.5rem); }
.band h2 { max-width: 13ch; color: var(--color-white); font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.8rem); line-height: 1; }
.band-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6) var(--space-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.band-points li { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.35); }
.band-points h3 { color: var(--color-white); font-size: 1.25rem; }
.band-points p { color: rgba(255,255,255,.88); }
@media (max-width: 47.99rem) { .band::after { background: rgba(8,43,85,.82); } }

/* ---------- Unternehmen ---------- */
.company-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.company-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 40rem) { .company-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .company-grid.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.company-card { min-width: 0; }
.company-card > a { height: 100%; display: grid; grid-template-rows: auto 1fr; gap: var(--space-4); padding: var(--space-4); background: var(--color-white); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
.company-card > a:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.company-logo { position: relative; aspect-ratio: 16 / 7; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--color-off-white); overflow: hidden; }
.company-logo.dark { background: var(--color-text); }
.company-logo img { position: absolute; inset: 14% 12%; width: 76%; height: 72%; max-width: none; object-fit: contain; }
.company-logo .name-mark { font-weight: 800; color: var(--color-navy); text-align: center; padding: var(--space-3); }
.company-card .body { display: grid; gap: var(--space-2); align-content: start; }
.company-card h3 { font-size: 1.08rem; color: var(--color-text); overflow-wrap: anywhere; }
.company-card .cat { font-size: var(--fs-xs); font-weight: 700; color: var(--color-navy); }
.company-card .desc { font-size: var(--fs-sm); color: var(--color-text-muted); }
.company-card .place { font-size: var(--fs-xs); color: var(--color-text-muted); }
.jobs-hinweis { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; margin-top: var(--space-1); padding: .2rem .65rem; border-radius: 999px; background: var(--color-sun); color: var(--color-navy-deep); font-size: var(--fs-xs); font-weight: 800; }
.company-grid.compact .jobs-hinweis { display: none; }
.company-grid.compact .company-card > a { gap: var(--space-3); padding: var(--space-3); }
.company-grid.compact .desc, .company-grid.compact .cat { display: none; }
.company-grid.compact h3 { font-size: var(--fs-sm); }
.company-card[hidden] { display: none; }

/* Suche & Filter */
.directory { display: grid; gap: var(--space-6); }
.filters { display: grid; gap: var(--space-5); padding: var(--space-5); background: var(--color-white); box-shadow: var(--shadow-soft); border-radius: var(--radius-lg); }
.search-field { display: grid; gap: var(--space-2); }
.search-field label, .filter-group legend { font-weight: 700; font-size: var(--fs-sm); color: var(--color-text); padding: 0; }
.search-field input { width: 100%; min-height: 52px; padding: .8rem 1rem .8rem 2.9rem; border: 1.5px solid var(--color-line); border-radius: 999px; font: 500 var(--fs-base) var(--font-sans); color: var(--color-text); background: var(--color-off-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3D91' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1.05rem 50% / 20px; }
.search-field input:focus { outline: none; border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(78,163,255,.35); background-color: var(--color-white); }
.filter-row { display: grid; gap: var(--space-5); }
@media (min-width: 60rem) { .filter-row { grid-template-columns: 2fr 1fr; } }
.filter-group { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-2); min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--color-line); background: var(--color-white); font-size: var(--fs-sm); font-weight: 650; color: var(--color-text); transition: background .2s, border-color .2s, color .2s; }
.chip input:hover + span { border-color: var(--color-navy); }
.chip input:checked + span { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.chip input:focus-visible + span { outline: 3px solid var(--color-sky); outline-offset: 2px; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.result-count { font-weight: 700; color: var(--color-navy); }
.az-nav { display: flex; flex-wrap: wrap; gap: .3rem; }
.az-nav a, .az-nav span { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.az-nav a { color: var(--color-navy); background: var(--color-white); border: 1px solid var(--color-line); }
.az-nav a:hover { border-color: var(--color-navy); }
.az-nav span { color: #8b95a2; }
.letter-group { display: grid; gap: var(--space-4); }
.letter-group + .letter-group { margin-top: var(--space-6); }
.letter-group > h2 { font-size: 1.6rem; display: flex; align-items: center; gap: var(--space-3); }
.letter-group > h2::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }
.letter-group[hidden] { display: none; }
.empty-state { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-6); background: var(--color-white); border: 1.5px dashed #c8d3e3; border-radius: var(--radius-lg); }
.empty-state[hidden] { display: none; }
.empty-state h2 { font-size: 1.3rem; }

/* Firmenprofil */
.profile { display: grid; gap: var(--space-7); }
@media (min-width: 60rem) { .profile { grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--space-9); align-items: start; } }
.profile-card { display: grid; gap: var(--space-5); padding: var(--space-5); background: var(--color-white); box-shadow: var(--shadow-soft); border-radius: var(--radius-lg); min-width: 0; }
@media (min-width: 60rem) { .profile-card { position: sticky; top: calc(var(--header-h) + var(--space-5)); } }
.profile-card .company-logo { aspect-ratio: 16 / 9; }
.profile-card dl { margin: 0; display: grid; gap: var(--space-4); }
.profile-card dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }
.profile-card dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.profile-card .btn { width: 100%; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--color-navy-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230B3D91' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") center / 80% no-repeat; }

/* Bild im Text */
.inline-figure { margin: var(--space-3) 0; }
.inline-figure img { width: 100%; border-radius: var(--radius-md); }

/* Kontakt */
.contact-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.contact-box { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6); background: var(--color-white); box-shadow: var(--shadow-soft); border-radius: var(--radius-lg); }
.contact-box h2 { font-size: 1.4rem; }
.contact-box .btn { justify-self: start; margin-top: var(--space-2); }
.address { font-style: normal; font-weight: 650; font-size: var(--fs-lg); line-height: 1.45; color: var(--color-navy); }

/* ---------- Jobs ---------- */
.job-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.job-card { min-width: 0; }
.job-card > a { height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--space-3); padding: var(--space-5); background: var(--color-white); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
.job-card > a:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.job-card h2, .job-card h3 { font-size: 1.15rem; color: var(--color-text); overflow-wrap: anywhere; }
.job-firma { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-muted); min-width: 0; }
.job-firma img { width: 4.5rem; height: 1.9rem; object-fit: contain; object-position: left center; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: .15rem .7rem; border-radius: 999px; background: var(--color-navy-tint); color: var(--color-navy); font-size: var(--fs-xs); font-weight: 700; }
.job-card .more { font-weight: 700; color: var(--color-navy); font-size: var(--fs-sm); }
.result-count { margin-bottom: var(--space-4); }

/* ---------- Karte ---------- */
.map-layout { display: grid; gap: var(--space-5); }
@media (min-width: 60rem) { .map-layout { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; } }
.map-wrap { position: relative; min-width: 0; }
.map { height: clamp(26rem, 70vh, 44rem); border-radius: var(--radius-lg); border: 1px solid var(--color-line); background: #E8EFDB; overflow: hidden; }
.map:focus-visible { outline: 3px solid var(--color-sky); outline-offset: 3px; }
.map-noscript, .map-error { padding: var(--space-5); }
.map-list { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); background: var(--color-white); box-shadow: var(--shadow-soft); border-radius: var(--radius-lg); min-width: 0; }
@media (min-width: 60rem) { .map-list { position: sticky; top: calc(var(--header-h) + var(--space-5)); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; } }
.map-list h2 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); margin-top: var(--space-3); }
.map-list h2:first-child { margin-top: 0; }
.map-list [data-auswahl] { display: grid; gap: var(--space-2); justify-items: start; overflow-wrap: anywhere; }
.map-entries { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.map-entries li > strong { display: block; color: var(--color-text); }
.map-entries li > span { font-size: var(--fs-sm); color: var(--color-text-muted); }
.map-entry { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: center; padding: var(--space-3); min-height: 48px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-off-white); color: var(--color-text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.map-entry:hover { border-color: var(--color-navy); background: var(--color-white); }
.map-entry strong { display: block; font-size: var(--fs-sm); color: var(--color-text); }
.map-entry span span { font-size: var(--fs-xs); color: var(--color-text-muted); }
.map-entry .sign { display: inline-grid; place-items: center; min-width: 2.6rem; height: 1.9rem; padding: 0 .4rem; border-radius: 6px; background: var(--color-navy); color: var(--color-white); font-weight: 800; font-size: var(--fs-sm); box-shadow: inset 0 0 0 2px var(--color-navy), inset 0 0 0 3.5px var(--color-white); }
.map-entries.compact a { display: block; padding: .35rem 0; font-size: var(--fs-sm); text-decoration: none; border-bottom: 1px solid var(--color-line); }
.map-entries.compact a span { color: var(--color-text-muted); }
.map-entries.compact a:hover strong { text-decoration: underline; }
.map-list p.muted { font-size: var(--fs-sm); }
/* Leaflet-Anpassungen */
.map.leaflet-container { font-family: var(--font-sans); background: #E8EFDB; }
.map.leaflet-container a { color: var(--color-navy); }
.leaflet-bar a { width: 40px; height: 40px; line-height: 40px; font-size: 20px; color: var(--color-navy); }
.leaflet-control-attribution { font-size: 11px; }
.karte-marker { display: grid; place-items: center; }
.karte-marker span { display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 .45rem; border-radius: 7px; background: var(--color-navy); color: var(--color-white); font: 800 14px/1 var(--font-sans); box-shadow: inset 0 0 0 2px var(--color-navy), inset 0 0 0 4px var(--color-white), 0 4px 12px rgba(8,43,85,.3); }
.karte-marker.ort span { min-width: 36px; background: var(--color-sun); color: var(--color-navy-deep); box-shadow: inset 0 0 0 2px var(--color-sun), inset 0 0 0 4px var(--color-white), 0 4px 12px rgba(8,43,85,.3); }
.leaflet-marker-icon.karte-marker:focus-visible span { outline: 3px solid var(--color-sky); outline-offset: 2px; }
.karte-ortsname { white-space: nowrap; }
.map .karte-ortsname a, .map .karte-ortsname span { display: inline-block; transform: translate(-50%, 70%); padding: .15rem .55rem; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--color-navy); font: 800 13px/1.3 var(--font-sans); letter-spacing: .04em; text-decoration: none; box-shadow: 0 2px 8px rgba(8,43,85,.12); }
.karte-popup { display: grid; gap: .5rem; min-width: 12rem; font-family: var(--font-sans); }
.karte-popup-adresse { margin: 0 !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.karte-ortsname.klein span { background: rgba(255,255,255,.6); color: var(--color-text-muted); font-weight: 650; font-size: 11px; box-shadow: none; }
.map .karte-popup a { display: grid; gap: .1rem; text-decoration: none; padding: .4rem 0; border-top: 1px solid var(--color-line); }
.karte-popup a strong { color: var(--color-navy); font-size: 15px; }
.karte-popup a span { color: var(--color-text-muted); font-size: 13px; }
.karte-popup a:hover strong { text-decoration: underline; }

/* ---------- Abschluss-CTA ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--color-navy); color: var(--color-white); border-radius: var(--radius-lg); padding: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 4vw, 5rem); display: grid; gap: var(--space-5); justify-items: start; }
.cta-band h2 { color: var(--color-white); max-width: 16ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.cta-band p { max-width: 36rem; color: rgba(255,255,255,.9); font-size: var(--fs-lg); }
.cta-band .contours { color: var(--color-white); opacity: .12; z-index: -1; }
.cta-band .sun { position: absolute; z-index: -1; right: clamp(1.5rem, 6vw, 5rem); top: clamp(1.5rem, 5vw, 3.5rem); width: clamp(3rem, 7vw, 5.5rem); aspect-ratio: 1; border-radius: 50%; background: var(--color-sun); }

/* ---------- Fußzeile ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--color-navy-deep); color: rgba(255,255,255,.86); }
.site-footer a { color: var(--color-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--color-sun); text-underline-offset: .25em; }
.site-footer .btn-light, .cta-band .btn-light { color: var(--color-navy); }
.site-footer .btn:hover { text-decoration: none; }
.footer-hero { display: grid; gap: var(--space-6); justify-items: center; text-align: center; padding-block: clamp(4rem, 3rem + 5vw, 7rem) clamp(3rem, 2rem + 4vw, 5rem); }
.footer-hero img { height: auto; width: min(560px, 88vw); }
.footer-claim { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); line-height: 1.1; color: var(--color-white); }
.footer-claim span, .hero h1 span { display: block; }
.footer-hero .btn-row { justify-content: center; }
.footer-cols { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); padding-block: var(--space-7); border-top: 1px solid rgba(255,255,255,.14); }
.footer-col { display: grid; gap: var(--space-3); align-content: start; }
.footer-col h2 { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--color-sun); font-weight: 800; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.footer-col a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-col address { font-style: normal; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3) var(--space-6); padding-block: var(--space-5) var(--space-6); border-top: 1px solid rgba(255,255,255,.14); font-size: var(--fs-sm); color: rgba(255,255,255,.72); }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-bottom a { min-height: 36px; display: inline-flex; align-items: center; }
.footer-landscape { position: absolute; z-index: -1; left: 0; right: 0; top: clamp(2rem, 6vw, 5rem); width: 100%; height: auto; color: rgba(255,255,255,.05); pointer-events: none; }

/* ---------- Formular ---------- */
.form { display: grid; gap: var(--space-6); }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-4); min-width: 0; }
.form legend { font-weight: 750; font-size: 1.3rem; color: var(--color-navy); margin-bottom: var(--space-2); padding: 0; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > label { font-weight: 700; font-size: var(--fs-sm); }
.field-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=url], .form select, .form textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1.5px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-white); font: 500 var(--fs-base)/1.4 var(--font-sans); color: var(--color-text); }
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(78,163,255,.35); }
.form [aria-invalid="true"] { border-color: var(--color-error); }
.field-error { color: var(--color-error); font-size: var(--fs-sm); font-weight: 650; }
.form-alert { padding: var(--space-4); border-radius: var(--radius-sm); background: #FDECEA; color: #8C1D18; font-weight: 650; }
.upload { position: relative; display: grid; gap: .25rem; padding: var(--space-5); border: 2px dashed #c8d3e3; border-radius: var(--radius-md); background: var(--color-off-white); text-align: center; }
.upload:hover, .upload:focus-within { border-color: var(--color-navy); }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload-title { font-weight: 700; color: var(--color-navy); overflow-wrap: anywhere; }
.upload-info { font-size: var(--fs-sm); color: var(--color-text-muted); }
.field.check { grid-template-columns: auto 1fr; align-items: start; gap: .3rem .75rem; }
.field.check input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; accent-color: var(--color-navy); }
.field.check label { font-weight: 500; font-size: var(--fs-sm); }
.field.check .field-error { grid-column: 2; }
.form-note { font-size: var(--fs-sm); color: var(--color-text-muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.two-col { display: grid; gap: var(--space-7); }
@media (min-width: 60rem) { .two-col { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-9); align-items: start; } }
.steps { list-style: none; margin: 0; padding: var(--space-5); display: grid; gap: var(--space-4); background: var(--color-white); box-shadow: var(--shadow-soft); border-radius: var(--radius-lg); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-3); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-navy); color: var(--color-white); font-weight: 800; font-size: var(--fs-sm); }
.steps strong { display: block; color: var(--color-navy); }

img[data-pos="left"] { object-position: 30% 50%; }
img[data-pos="right"] { object-position: 70% 50%; }
img[data-pos="oben"] { object-position: 50% 30%; }
.aside-note { margin-top: var(--space-4); }

/* Galerie */
.galerie { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .galerie { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.galerie figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: var(--color-line); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galerie figure:hover img { transform: scale(1.03); }

/* Bildnachweise */
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); font-size: var(--fs-sm); }
.credits li { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--space-3); align-items: center; }
.credits img { width: 4.5rem; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }

/* ---------- Bewegung ---------- */
/* Ein einziger bewusster Moment: der Startseiten-Hero baut sich beim Laden ruhig auf. */
@media (prefers-reduced-motion: no-preference) {
  .hero > img { animation: hero-bild 1.8s var(--ease-out) both; }
  .hero .container > * { animation: hero-text .9s var(--ease-out) both; }
  .hero .container > :nth-child(2) { animation-delay: .08s; }
  .hero .container > :nth-child(3) { animation-delay: .18s; }
  .hero .container > :nth-child(4) { animation-delay: .28s; }
}
@keyframes hero-bild { from { transform: scale(1.06); } }
@keyframes hero-text { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
