/* =========================================================
   Pflegedienst Neckartal – Landingpage
   Farben aus dem Logo: Grün, Limette, Blau, Hellblau
   ========================================================= */

:root {
  --green-900: #0f3d1c;
  --green-700: #17701a;   /* Buttons, Links (Kontrast auf Weiß > 5:1) */
  --green-500: #208820;   /* Logo-Grün */
  --lime-500:  #78b018;   /* Logo-Limette */
  --blue-700:  #00689f;   /* Blau für Text/Buttons */
  --blue-500:  #0080c0;   /* Logo-Blau */
  --blue-300:  #60b8e0;   /* Logo-Hellblau */

  --ink:       #1c2a22;   /* Fließtext */
  --ink-soft:  #44554b;
  --tint:      #f0f7ea;   /* helle Grünfläche */
  --tint-blue: #eaf5fb;
  --white:     #ffffff;
  --line:      #d5e3cf;

  --radius:    14px;
  --radius-lg: 28px;
  --shadow:    0 6px 22px rgba(15, 61, 28, .10);
  --max:       1160px;
  --header-h:  84px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

/* ---------- Reset / 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);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin-top: 0; }
p:empty { display: none; }   /* leere Textplatzhalter ausblenden */

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.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: 1rem; top: -4rem; z-index: 200;
  background: var(--green-900); color: #fff; padding: .7rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.1rem; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-outline { background: transparent; color: var(--green-900); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--tint); }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.text-link { font-weight: 700; color: var(--blue-700); text-underline-offset: 4px; }
.text-link:hover { color: var(--green-900); }
.hidden {
  display: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(15, 61, 28, .12); border-color: var(--line); }
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand img { width: 150px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; gap: 1.6rem; }
.main-nav ul a {
  display: block; padding: .4rem 0;
  color: var(--ink); font-weight: 600; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.main-nav ul a:hover { color: var(--green-700); }
.main-nav ul a.is-active { border-bottom-color: var(--lime-500); color: var(--green-900); }

.nav-toggle {
  display: none; width: 48px; height: 48px;
  background: var(--tint); border: 0; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 3px; border-radius: 2px;
  background: var(--green-900); transition: transform .25s, opacity .25s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 7.5rem);

  background-color: var(--tint);   /* Fallback, solange das Foto lädt */
  background-image: url("/img/Bearbeitet_webp/Fahrzeug_1.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.26) inset;
  border-radius: 1px;
}

.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
/* Milchglas-Karte: Foto bleibt unverändert sichtbar, nur der Textbereich bekommt eine helle Fläche */
.hero-text {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-text { background: rgba(255, 255, 255, .94); }
}
.hero-claim {
  display: inline-block; margin-bottom: 1rem;
  padding: .35rem .9rem; border-radius: 999px;
  background: var(--green-700); color: #fff; font-weight: 700; font-size: .95rem;
}
.hero h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; letter-spacing: -.015em;
  color: var(--green-900);
}
.hero-lead { font-size: 1.2rem; font-weight: 500; color: var(--ink); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* Bild mit „Hügel“-Form (Anlehnung ans Logo) */
.hero-media {
  position: relative;
  border-radius: 10%;
  overflow: hidden;
  background: var(--blue-300);
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--shadow);
  @media (min-width: 1375px) {
    height: 27rem;
  }
  @media (max-width: 1375px) {
  	height: 22rem;
  } 
  @media (max-width: 1150px) {
    height: 18rem;
  }
  @media (max-width: 1024px) {
    height: auto;
    width: 100%;    
  }
}

.hero-landing-page {
  position: relative;
  border-radius: 10%;
  overflow: hidden;
  background: var(--blue-300);
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--shadow);
}

.hero-media img, .hero-landing-page img { width: 100%; height: 100%; object-fit: cover; }
.hero-media.is-fallback, .hero-landing-page.is-fallback { background: linear-gradient(160deg, var(--lime-500), var(--green-500) 55%, var(--blue-500)); }
.hero-media.is-fallback img, .hero-landing-page.is-fallback img { display: none; }

.wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(40px, 6vw, 80px);
  fill: var(--white);
}

/* Einmaliger Einstieg im Hero – respektiert reduzierte Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .hero-media { animation: einblenden .7s both cubic-bezier(.2, .7, .2, 1); }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-media { animation-delay: .18s; }
}
@keyframes einblenden { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Sektionen ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--tint-blue); }
.section-head { max-width: 44rem; margin-bottom: 2.4rem; }
.section h2, .jobs h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; letter-spacing: -.01em;
  color: var(--green-900); margin-bottom: .8rem;
}
.section-lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Leistungs-Karten ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 150px; padding: 1.4rem 1.4rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line); border-top: 6px solid var(--green-500);
  border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:nth-child(even) { border-top-color: var(--blue-500); }
.card:hover, .card:focus-within { box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.card-link { color: var(--green-900); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* ganze Karte klickbar */
.card-link:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--blue-500); outline-offset: 3px; }
.card p { margin: .6rem 0 0; color: var(--ink-soft); font-size: 1rem; }
.card-all { background: var(--green-700); border-color: var(--green-700); }
.card-all .card-link { color: #fff; }
.card-all:hover { background: var(--green-900); }

/* ---------- Vertrauen / Zertifikat ---------- */
.trust { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.trust-badge {
  display: block; padding: 1.2rem; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.trust-text h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.trust-text p { color: var(--ink-soft); }

/* ---------- Standorte ---------- */
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.location {
  padding: 1.8rem; border-radius: var(--radius-lg);
  background: var(--tint); border: 1px solid var(--line);
}
.location h3 { font-size: 1.5rem; color: var(--green-900); margin-bottom: .6rem; }
.location address { font-style: normal; margin-bottom: 1rem; }
.contact-list { margin: 0 0 1.4rem; }
.contact-list div { display: flex; gap: .8rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.contact-list dt { width: 5.5rem; color: var(--ink-soft); }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { color: var(--ink); text-decoration-color: var(--lime-500); text-underline-offset: 4px; }
.location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }

/* ---------- Jobs ---------- */
.jobs { background: var(--green-700); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.jobs-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.jobs h2 { color: #fff; margin-bottom: .4rem; }
.jobs p { margin: 0; max-width: 38rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #e6f2dc; padding-top: 3rem; font-size: 1rem; }
.site-footer a { color: #d3ee9c; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 2rem; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-links li { padding: .15rem 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
  margin-top: 2.2rem; padding: 1.2rem 0 1.4rem; border-top: 1px solid rgba(255, 255, 255, .18);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.4rem; }

/* ---------- Anrufleiste (Smartphone) ---------- */
.call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; aspect-ratio: 16 / 10; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(15, 61, 28, .12);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .main-nav ul a.is-active { border-bottom-color: var(--line); } /* grüner Aktiv-Strich nur ab Desktop */
  .nav-cta { align-self: stretch; }
  .trust, .location-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .call-bar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .55rem 1rem;
    background: var(--green-900); box-shadow: 0 -4px 18px rgba(0, 0, 0, .2);
  }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .hero-actions .btn { width: 100%; }
  .brand img { width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Nur im mobilen Menü sichtbar (gleicher Breakpoint wie .nav-toggle) */
.sm-only { display: none; }
@media (max-width: 1024px) {
  .sm-only { display: block; }
}

/* ---------- Seite „Schlüssel gefunden?“ ---------- */
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.finder h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.015em;
  color: var(--green-900);
}
.finder-reward { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; line-height: 1.3; color: var(--green-900); }
.finder-form {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.finder-form h2 { margin-bottom: 1.2rem; font-size: 1.3rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; margin-bottom: .35rem; font-weight: 600; }
.form-field input {
  width: 100%; padding: .8rem 1rem;
  font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
}
.form-field input:focus-visible { border-color: var(--blue-500); outline-offset: 2px; }
.form-note { margin: 1.2rem 0; font-size: .95rem; color: var(--ink-soft); }
.finder-form .btn { width: 100%; }

@media (max-width: 1024px) {
  .finder { grid-template-columns: 1fr; }
}

#call-button {
  padding-left: 5rem;
  padding-right: 5rem;
}