/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

:root {
  --bg:      #FFFFFF;
  --bg-2:    #F4F7FB;
  --bg-dark: #1B3A6B;
  --ink:     #1A1A28;
  --ink-2:   #5A5E6A;
  --ink-3:   #9898A4;
  --line:    #DDE3EE;
  --accent:  #1B3A6B;
  --accent-2:#4A8BC4;
  --red:     #C82B2B;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --max:    1160px;
  --pill:   999px;
  --gutter: clamp(1.5rem, 5vw, 3.5rem);
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.scroll-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--red); z-index: 1000; }

/* ─── NAV ─── */
/* Scroll-Morph-Pille (Pierre 03.08., Muster aus der Apprecare-Website): oben liegt
   die Leiste flächenbündig über dem Hero, ab 20px Scroll löst sie sich als
   schwebende Pille ab. Logo bleibt absolut mittig, alle Menüpunkte rechts —
   dadurch kann das Logo wachsen, ohne die Links zu verschieben. */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 0; transition: padding 0.32s ease; }
.nav.scrolled { padding: 14px 14px 0; }
.nav-inner {
  position: relative; min-height: 118px;
  width: 100%; max-width: 2000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
  /* Reservierte Mitte: das Logo steht absolut zentriert und ist damit aus dem
     Flow — ohne diesen Innenabstand würden die rechten Links darunterlaufen.
     66px = halbe Logobreite (84px hoch · Seitenverhältnis 708:535) plus Puffer. */
  padding: 0.5rem var(--gutter) 0.5rem calc(50% + 66px);
  background: transparent;
  border: 1px solid transparent; border-width: 0 0 1px; border-radius: 0;
  transition: max-width 0.32s ease, min-height 0.32s ease, border-radius 0.32s ease,
              box-shadow 0.32s ease, border-width 0.32s ease, border-color 0.4s, background 0.4s;
}
.nav.scrolled .nav-inner {
  max-width: 1240px; min-height: 104px;
  padding: 0.5rem 1.5rem 0.5rem calc(50% + 56px);
  border-width: 1px; border-color: var(--line); border-radius: var(--pill);
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px -18px rgba(27,58,107,0.28);
}
.nav-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: inline-flex; align-items: center; }
.nav-logo img { height: 84px; width: auto; display: block; transition: height 0.32s ease; }
.nav.scrolled .nav-logo img { height: 68px; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
/* Drilldown (Pierre 03.08.): oben trägt die Leiste nur Logo und „Bewerben".
   Die Navigationspunkte blenden erst ein, wenn sich die Pille beim Scrollen
   ablöst. Sie behalten dabei ihren Platz im Flow (visibility statt display),
   damit der CTA beim Einblenden nicht springt. */
.nav-right .nav-links, .nav-social {
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
}
.nav.scrolled .nav-right .nav-links, .nav.scrolled .nav-social {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity 0.34s ease 0.08s, transform 0.34s ease 0.08s, visibility 0s;
}
.nav-links { display: flex; align-items: center; list-style: none; gap: 0.1rem; }
.nav-links a { display: block; white-space: nowrap; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; color: var(--ink-2); padding: 0.5rem 0.8rem; border-radius: var(--pill); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--accent); background: var(--bg-2); }
.nav-social { display: flex; align-items: center; gap: 0.5rem; }
.nav-social-link { color: var(--ink-3); display: flex; align-items: center; padding: 0.4rem; border-radius: var(--pill); transition: color 0.2s, background 0.2s; }
.nav-social-link:hover { color: var(--accent-2); background: var(--bg-2); }
.nav-cta { font-size: 0.75rem; font-weight: 600; color: #fff; background: var(--accent); padding: 0.55rem 1.25rem; border-radius: var(--pill); transition: background 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-2); }
.nav-cta-apply { background: #C82B2B; }
.nav-cta-apply:hover { background: #a82323; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; width: 32px; }
.hamburger span { display: block; height: 1px; background: var(--ink); transition: all 0.3s; }
.hamburger span:nth-child(2) { width: 70%; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 100%; }
.drawer { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 190; flex-direction: column; padding: 6rem var(--gutter) 3rem; }
.drawer.open { display: flex; }
.drawer-link { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; color: var(--ink); padding: 0.9rem 0; border-bottom: 1px solid var(--line); transition: color 0.2s; }
.drawer-link:hover { color: var(--accent); }
.drawer-cta { margin-top: 2rem; display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--bg); background: var(--accent); padding: 0.85rem 2rem; border-radius: 4px; transition: background 0.2s; align-self: flex-start; }
.drawer-cta:hover { background: var(--accent-2); }

/* ─── HERO ─── */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 11.5rem var(--gutter) 6rem; max-width: var(--max); margin: 0 auto; gap: 4rem; }
.hero-label { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.75rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 400; line-height: 1.08; color: var(--ink); margin-bottom: 2rem; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero-heart-wrap { display: inline-flex; align-items: center; vertical-align: middle; }
.hero-heart { width: 0.72em; height: 0.72em; display: block; filter: drop-shadow(0 2px 4px rgba(200,43,43,0.25)); }
.hero-sub { font-size: 1rem; color: var(--ink-2); line-height: 1.8; max-width: 44ch; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: var(--bg); background: var(--accent); padding: 0.85rem 2rem; border-radius: 4px; border: none; cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { font-family: var(--sans); font-size: 0.82rem; font-weight: 500; color: var(--ink-2); padding: 0.85rem 1.5rem; border-radius: 4px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: color 0.2s, border-color 0.2s; display: inline-flex; align-items: center; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); }
.hero-img { position: relative; min-height: 520px; background: linear-gradient(145deg, #1B3A6B 0%, #2A5298 50%, #4A8BC4 100%); overflow: hidden; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(0deg, rgba(27,58,107,0.65) 0%, transparent 100%); }
.hero-img-caption span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ─── SECTIONS ─── */
.section      { padding: 8rem var(--gutter); }
.section-dark { padding: 8rem var(--gutter); background: var(--bg-dark); }
.section-tint { padding: 8rem var(--gutter); background: var(--bg-2); }
.section-red-top { border-top: 3px solid var(--red); }
.inner        { max-width: var(--max); margin: 0 auto; }
.eyebrow { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 1.5rem; }
.eyebrow-light { color: rgba(255,255,255,0.3); }
h2.display { font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.1; color: var(--ink); margin-bottom: 1.5rem; }
@media (min-width: 769px) { .nowrap-desktop { white-space: nowrap; font-size: clamp(2rem, 3.2vw, 3.2rem); } }
h2.display-light { color: rgba(255,255,255,0.92); }

/* ─── ACCORDION (Leistungen, Zielgruppe, Team) ─── */
.leistungen-list, .ziel-list, .team-list { margin-top: 4rem; }
.leistung-item { border-top: 1px solid var(--line); }
.leistung-item:last-child { border-bottom: 1px solid var(--line); }
.leistung-trigger {
  display: grid;
  grid-template-columns: 3.5rem 1fr 1.5rem;
  align-items: center;
  gap: 2rem;
  width: 100%;
  background: none;
  border: none;
  padding: 2rem 0;
  cursor: pointer;
  text-align: left;
}
.leistung-num { font-family: var(--serif); font-size: 0.85rem; color: var(--ink-3); flex-shrink: 0; }
.leistung-name { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 400; color: var(--ink); line-height: 1.2; transition: color 0.3s; }
.leistung-trigger:hover .leistung-name { color: var(--accent); }
details[open] > summary .leistung-name { color: var(--accent); }
.leistung-toggle { position: relative; width: 16px; height: 16px; flex-shrink: 0; justify-self: end; }
.leistung-toggle::before, .leistung-toggle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 1px; background: var(--ink-3); transform: translate(-50%, -50%); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.3s; }
.leistung-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .leistung-toggle::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
details.leistung-item { list-style: none; }
details.leistung-item summary { list-style: none; }
details.leistung-item summary::-webkit-details-marker { display: none; }
.leistung-panel-inner { overflow: hidden; max-height: 0; padding-left: 5.5rem; transition: max-height 0.55s cubic-bezier(0.22,1,0.36,1), padding-bottom 0.55s; }
details[open] > .leistung-panel-inner { max-height: 800px; padding-bottom: 2.5rem; }
.leistung-ref { font-size: 0.63rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1rem; }
.leistung-lead { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: var(--ink); line-height: 1.65; margin-bottom: 1.5rem; max-width: 56ch; }
.leistung-details { list-style: none; padding: 0; }
.leistung-details li { font-size: 0.85rem; color: var(--ink-2); line-height: 1.75; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.leistung-details li:last-child { border-bottom: 1px solid var(--line); }

/* ─── QUOTE ─── */
.quote-wrap { max-width: 800px; margin: 0 auto; text-align: center; }
.quote-text { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-weight: 400; font-style: italic; line-height: 1.45; color: rgba(255,255,255,0.9); margin-bottom: 2rem; }
.quote-attr { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.28); }

/* ─── ÜBER UNS ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; align-items: start; margin-top: 4rem; }
.about-img { aspect-ratio: 3/4; position: relative; overflow: hidden; }
.about-img-inner { position: absolute; inset: 0; background: linear-gradient(160deg, #D6E4F5 0%, #B8CCE8 100%); display: flex; align-items: center; justify-content: center; }
.about-img-inner svg { width: 50%; opacity: 0.1; color: var(--ink); }
.about-img-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem 1.5rem; background: linear-gradient(0deg, rgba(17,17,16,0.6) 0%, transparent 100%); }
.about-img-caption p { font-size: 0.75rem; font-style: italic; color: rgba(255,255,255,0.75); }
.about-lead { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; line-height: 1.6; color: var(--ink); margin-bottom: 1.5rem; }
.about-body { font-size: 0.9rem; color: var(--ink-2); line-height: 1.85; margin-bottom: 1rem; }
.values-list { margin-top: 3rem; }
.value-row { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-n { font-family: var(--serif); font-size: 0.85rem; color: var(--ink-3); padding-top: 0.15rem; }
.value-title { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
.value-text { font-size: 0.82rem; color: var(--ink-2); line-height: 1.75; }

/* ─── ZIELGRUPPE (uses leistung-* accordion) ─── */

/* ─── VERSORGUNGSGEBIET MAP ─── */
.map-layout { display: grid; grid-template-columns: 1fr 320px; gap: 5rem; align-items: stretch; margin-top: 4rem; }
.map-container { display: flex; flex-direction: column; }
.map-sidebar { display: flex; flex-direction: column; justify-content: space-between; }

/* Image wrap */
.map-img-wrap { position: relative; overflow: hidden; border-radius: 2px; flex: 1; }
.map-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder when image is missing */
.map-placeholder { background: linear-gradient(145deg, #D6E4F5 0%, #EDF3FB 100%); min-height: 360px; display: flex; align-items: center; justify-content: center; }
.map-placeholder::after { content: 'assets/images/munich-map.jpg'; font-family: var(--sans); font-size: 0.75rem; color: var(--ink-3); letter-spacing: 0.08em; }

/* Hotspot markers */
.hotspot { position: absolute; width: 32px; height: 32px; transform: translate(-50%, -50%); cursor: pointer; }
.hotspot::before { content: ''; position: absolute; inset: 8px; background: var(--accent-2); border-radius: 50%; opacity: 0.9; transition: transform 0.25s, opacity 0.25s; }
.hotspot::after  { content: ''; position: absolute; inset: 2px; border: 1.5px solid var(--accent-2); border-radius: 50%; opacity: 0; transition: opacity 0.25s, transform 0.25s; transform: scale(0.8); }
.hotspot:hover::before { transform: scale(1.25); opacity: 1; }
.hotspot:hover::after  { opacity: 0.35; transform: scale(1); }

/* Moosach badge – anchored top-left of the image */
.moosach-badge { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; align-items: center; gap: 0.5rem; background: var(--accent); color: #fff; font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.75rem 0.35rem 0.5rem; border-radius: 3px; pointer-events: none; }
.moosach-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255,255,255,0.4); }

/* Tooltip */
.map-tooltip { position: absolute; top: 0; left: 0; background: var(--ink); color: #fff; font-size: 0.7rem; font-family: var(--sans); padding: 0.35rem 0.65rem; border-radius: 3px; pointer-events: none; opacity: 0; transition: opacity 0.15s; white-space: nowrap; z-index: 10; }
.map-tooltip.show { opacity: 1; }

/* Sidebar legend + PLZ checker */
.map-legend { margin-bottom: 2.5rem; }
.legend-row { display: flex; align-items: flex-start; gap: 0.9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.legend-row:last-child { border-bottom: 1px solid var(--line); }
.legend-swatch { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; margin-top: 3px; }
.legend-title { font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
.legend-desc { font-size: 0.73rem; color: var(--ink-2); line-height: 1.55; }

.plz-checker { border: 1px solid var(--line); padding: 1.5rem; }
.plz-question { font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.plz-row { display: flex; gap: 0.5rem; }
.plz-row input { flex: 1; min-width: 0; border: 1px solid var(--line); padding: 0.55rem 0.75rem; font-family: var(--sans); font-size: 0.85rem; color: var(--ink); outline: none; border-radius: 3px; background: transparent; transition: border-color 0.2s; }
.plz-row input:focus { border-color: var(--accent); }
.plz-btn { background: var(--accent); color: #fff; border: none; padding: 0.55rem 1rem; font-family: var(--sans); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; cursor: pointer; border-radius: 3px; white-space: nowrap; transition: background 0.2s; }
.plz-btn:hover { background: var(--accent-2); }
.plz-result { margin-top: 0.85rem; font-size: 0.82rem; line-height: 1.65; min-height: 1.4rem; }
.plz-result a { color: var(--accent); text-decoration: underline; }
.plz-core { color: var(--accent); font-weight: 500; }
.plz-service { color: var(--accent-2); font-weight: 500; }
.plz-outside { color: var(--ink-2); }

/* ─── PFLEGEGRAD RECHNER ─── */
.rechner-wrap { max-width: 760px; }
.pg-tabs { display: flex; margin: 3rem 0 2.5rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 4px; overflow: hidden; }
.pg-tab { flex: 1; padding: 1.25rem 0.5rem 1rem; text-align: center; cursor: pointer; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); background: transparent; border: none; border-right: 1px solid rgba(255,255,255,0.18); border-top: 3px solid transparent; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.pg-tab:last-child { border-right: none; }
.pg-tab span { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 300; margin-bottom: 0.35rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.pg-tab:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.pg-tab:hover span { color: rgba(255,255,255,0.65); }
.pg-tab.active { background: rgba(255,255,255,0.07); color: #fff; border-top-color: var(--accent-2); }
.pg-tab.active span { color: var(--accent-2); }
.rechner-result { display: none; }
.rechner-result.show { display: block; animation: fadeUp 0.4s ease both; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); gap: 1rem; }
.result-row:last-child { border-bottom: none; }
.result-label { font-size: 0.82rem; color: rgba(255,255,255,0.42); }
.result-value { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9); text-align: right; white-space: nowrap; }
.result-note { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.72rem; color: rgba(255,255,255,0.28); line-height: 1.7; }
.pg-note-box { margin-top: 0.5rem; padding: 0.85rem 1rem; border-left: 2px solid rgba(255,255,255,0.12); font-size: 0.76rem; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ─── TEAM (uses leistung-* accordion) ─── */
.team-initial-badge { font-family: var(--serif); font-size: 1rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0.04em; }
.team-role-tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.75rem; display: block; }

/* ─── KARRIERE ─── */
.karriere-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 7rem; align-items: start; }
.karriere-sticky { position: sticky; top: 6rem; }
.karriere-intro { font-size: 0.9rem; color: var(--ink-2); line-height: 1.85; max-width: 38ch; margin-top: 1.5rem; }
.job-row { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; border-top: 1px solid var(--line); gap: 1rem; }
.job-row:last-child { border-bottom: 1px solid var(--line); }
.job-title { font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.job-link { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); flex-shrink: 0; transition: color 0.2s; }
.job-link:hover { color: var(--accent); }

/* ─── KONTAKT ─── */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 7rem; align-items: start; }
.k-info-block { margin-bottom: 2rem; }
.k-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.35rem; }
.k-val { font-size: 0.92rem; color: var(--ink); line-height: 1.6; }
.k-val a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color 0.2s, color 0.2s; }
.k-val a:hover { color: var(--accent); border-color: var(--accent); }
.fg { margin-bottom: 1.75rem; }
.fg label { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.5rem; }
.fg input, .fg select, .fg textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line); padding: 0.5rem 0; font-family: var(--sans); font-size: 0.92rem; color: var(--ink); outline: none; border-radius: 0; -webkit-appearance: none; transition: border-color 0.2s; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--ink); }
.fg textarea { min-height: 90px; resize: vertical; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.fg-check { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.78rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 1.75rem; }
.fg-check input { width: auto; accent-color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.fg-check a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); cursor: pointer; }
.form-success { display: none; font-size: 0.85rem; color: var(--accent); margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.form-success.show { display: block; }

/* ─── FOOTER ─── */
footer { padding: 2.5rem var(--gutter); border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--serif); font-size: 1rem; color: var(--ink-2); }
.footer-copy { font-size: 0.72rem; color: var(--ink-3); }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { font-size: 0.72rem; color: var(--ink-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }

/* ─── MODALS ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(27,58,107,0.7); backdrop-filter: blur(4px); z-index: 500; display: none; align-items: center; justify-content: center; padding: 2rem; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg); max-width: 680px; width: 100%; max-height: 82vh; overflow-y: auto; padding: 2.5rem; position: relative; border-top: 2px solid var(--red); }
.modal-close { position: absolute; top: 1.25rem; right: 1.25rem; background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 0.25rem; transition: color 0.2s; }
.modal-close:hover { color: var(--ink); }
.modal h2 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; color: var(--ink); margin-bottom: 1.25rem; padding-right: 3rem; }
.modal h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--ink); margin: 1.25rem 0 0.4rem; }
.modal p, .modal li { font-size: 0.85rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 0.6rem; }
.modal ul { padding-left: 1rem; }
.modal a { color: var(--accent); text-decoration: underline; }

/* ─── COOKIE ─── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 400; background: var(--bg-dark); padding: 1.25rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); border-top: 1px solid rgba(255,255,255,0.12); }
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 0.78rem; color: rgba(255,255,255,0.5); max-width: 580px; line-height: 1.6; }
.cookie-text a { color: rgba(255,255,255,0.8); text-decoration: underline; cursor: pointer; }
.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; padding: 0.55rem 1.1rem; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.cookie-accept { background: rgba(255,255,255,0.9); color: var(--ink); border: none; }
.cookie-accept:hover { background: #fff; }
.cookie-decline { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.45); }
.cookie-decline:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.35); }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Zwischenstufen: das mittig stehende Logo halbiert die nutzbare Breite.
   Unter 1600px fallen die Social-Icons weg, unter 1280px zusätzlich der CTA,
   unter 1024px die Links komplett (der Drawer übernimmt). */
@media (max-width: 1599px) {
  .nav-social { display: none; }
  .nav-links a { font-size: 0.72rem; padding: 0.45rem 0.65rem; }
}
@media (max-width: 1279px) {
  /* Nur im Pillen-Zustand weicht der CTA den eingeblendeten Links — oben bleibt
     „Bewerben" der einzige Handlungsanker neben dem Logo. */
  .nav.scrolled .nav-cta { display: none; }
  .nav-links a { font-size: 0.7rem; padding: 0.45rem 0.5rem; }
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 9rem; }
  .hero-img { min-height: 320px; order: -1; }
  .leistung-trigger { grid-template-columns: 2.5rem 1fr 1.5rem; gap: 1rem; }
  .leistung-panel-inner { padding-left: 3.5rem; }
  .about-grid, .karriere-grid, .kontakt-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .map-layout { grid-template-columns: 1fr; gap: 3rem; }
  .nav-right .nav-links { display: none; }
  .nav-inner { min-height: 96px; padding-left: var(--gutter); }
  .nav.scrolled .nav-inner { min-height: 84px; }
  .nav-logo img { height: 68px; }
  .nav.scrolled .nav-logo img { height: 58px; }
  .nav-right { gap: 0.5rem; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .section, .section-tint, .section-dark { padding: 5rem var(--gutter); }
  .leistung-trigger { grid-template-columns: 2rem 1fr 1.5rem; gap: 0.75rem; }

  /* Pflegegrad: alle 5 Tabs in einer Reihe, kompakter */
  .pg-tabs { flex-wrap: nowrap; }
  .pg-tab { flex: 1; padding: 0.85rem 0.25rem 0.65rem; font-size: 0.62rem; letter-spacing: 0.04em; }
  .pg-tab span { font-size: 1.5rem; margin-bottom: 0.15rem; }

  /* Karten-Bild: Höhe begrenzen auf Mobile */
  .map-photo { max-height: 320px; object-fit: cover; object-position: center top; }
  .map-sidebar { justify-content: flex-start; gap: 2rem; }
  .moosach-badge { font-size: 0.6rem; padding: 0.3rem 0.55rem 0.3rem 0.4rem; }

  /* Modal: weniger Padding */
  .modal { padding: 1.75rem 1.25rem; max-height: 90vh; }
  .modal h2 { font-size: 1.5rem; }

  /* iOS-Zoom-Fix: Inputs min 16px */
  .fg input, .fg select, .fg textarea,
  .plz-row input { font-size: 1rem; }

  .fg-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  :root { --gutter: 1.25rem; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3rem); }
  .leistung-name { font-size: 1.1rem; }
  .leistung-panel-inner { padding-left: 2.75rem; }
  .pg-tab { padding: 0.7rem 0.15rem 0.5rem; }
  .pg-tab span { font-size: 1.3rem; }
  .cookie-banner { flex-direction: column; gap: 1rem; }
  .cookie-btns { width: 100%; justify-content: stretch; }
  .cookie-btn { flex: 1; text-align: center; }
  .plz-row { flex-direction: column; }
  .plz-btn { width: 100%; padding: 0.75rem; }
}
