/* ===========================================================
   pflegedienst-misterek.de - Relaunch
   Branding 1:1 (Teal/Blau), barrierefreie Textfarben (WCAG AA)
   =========================================================== */

:root {
  --teal:       #40b8b0;   /* Marken-Teal (Flaechen/Deko) */
  --teal-deep:  #147a72;   /* Text/Links/Buttons - AA auf Weiss */
  --blue:       #309ab8;   /* Marken-Blau (Deko) */
  --blue-deep:  #1f6f88;   /* Text-sicheres Blau */
  --ink:        #26302f;   /* Fliesstext */
  --ink-soft:   #4a5654;   /* Sekundaertext */
  --bg:         #ffffff;
  --bg-tint:    #eef8f6;   /* weiche Teal-Flaeche */
  --line:       #d9e6e3;
  --maxw:       1120px;
  --radius:     14px;
  --shadow:     0 8px 30px rgba(20,122,114,.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;      /* ~17px, gut lesbar */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
a:hover { color: var(--blue-deep); }
/* Deutlich sichtbarer Hover fuer Textlinks im Inhalt (nicht Buttons) */
main a:not(.btn):hover, main a:not(.btn):focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.15; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 .5rem; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

/* Grid-/Flex-Items duerfen unter ihre Inhaltsbreite schrumpfen (verhindert
   horizontales Ueberlaufen auf Mobile, z.B. durch das Hero-Bild). */
.hero__inner > *, .about > *, .cards > *, .site-footer__grid > * { min-width: 0; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tint { background: var(--bg-tint); }
.section__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.prose p { max-width: 68ch; margin: 0 0 1rem; }

/* --- Skip-Link & Fokus --- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--teal-deep); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; border-radius: 4px; }

/* --- Buttons --- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; text-decoration: none; cursor: pointer;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
/* Scan-Effekt (uebernommen von sascha-schloenvoigt.de): Lichtstreif laeuft beim Hover durch */
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -120%;
  width: 55%; pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
  transform: skewX(-22deg);
  transition: left .65s cubic-bezier(.5,.1,.3,1);
}
.btn > * { position: relative; z-index: 1; }
.btn:hover::before, .btn:focus-visible::before { left: 120%; }
@media (prefers-reduced-motion: reduce) { .btn::before { display: none; } }
.btn--primary { background: linear-gradient(135deg, var(--teal-deep), var(--blue-deep)); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--teal-deep); border-color: var(--teal-deep); }
.btn--ghost:hover { background: var(--bg-tint); color: var(--teal-deep); }
.btn--phone { background: #fff; color: var(--blue-deep); border-color: var(--blue-deep); }

/* --- Header / Navigation --- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__logo { width: auto; height: 78px; }
.brand__name { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 2.15rem; color: var(--blue); line-height: 1.12; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.3rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal-deep); border-bottom-color: var(--teal); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--teal-deep); border-radius: 2px; }

/* --- Hero (blau #309ab8, weisse grosse Schrift fuer AA-Kontrast) --- */
.hero { position: relative; background: #309ab8; color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.5rem; line-height: 1.45; color: #fff; margin: 1rem 0 1.8rem; max-width: 34ch; }
.hero__cta { display: flex; gap: .8rem; }
.hero .hero__cta .btn { flex: 1; }
/* Anruf-Button: weiss / blaue Schrift -> Hover blau / weiss */
.hero .btn--primary { background: #fff; color: var(--blue-deep); }
.hero .btn--primary:hover { background: var(--blue-deep); color: #fff; }
/* Kontakt-Button: kraeftiges Teal / dunkle Schrift -> Hover weiss / Teal */
.hero .btn--ghost { background: var(--teal); color: #103a35; border-color: var(--teal); }
.hero .btn--ghost:hover { background: #fff; color: var(--teal-deep); border-color: #fff; }
.hero .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.hero__logo { max-width: 340px; width: 100%; margin-inline: auto; border-radius: 50%; filter: drop-shadow(0 16px 34px rgba(0,0,0,.22)); }
.leaf { position: absolute; pointer-events: none; opacity: .45; z-index: 0; }
.leaf--top { top: -10px; right: -10px; width: 200px; }

/* --- Leistungen-Grid --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 2px 10px rgba(20,122,114,.05); }
.card h3 { color: var(--teal-deep); }
.card p { color: var(--ink-soft); margin: 0; }

/* --- Leitbild mit Foto-Komposition (Auto rund + Teal-Scheibe + Blaetter) --- */
.leitbild { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: center; }
.leitbild__media { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin-inline: auto; order: -1; }
.leitbild__disc {
  position: absolute; right: 0; top: 15%; width: 74%; aspect-ratio: 1;
  border-radius: 50%; background: var(--teal); z-index: 0;
}
.leitbild__photo {
  position: absolute; left: 0; top: 0; width: 80%; aspect-ratio: 1;
  border-radius: 50%; z-index: 1;
  filter: drop-shadow(0 16px 32px rgba(20,122,114,.28));
}
.leitbild__leaves {
  position: absolute; left: -7%; bottom: -9%; width: 40%; height: auto; z-index: 2;
  transform: rotate(65deg);
}

/* --- Eyebrow (Kicker ueber Ueberschriften) --- */
.eyebrow { display: inline-block; font-weight: 700; color: var(--teal-deep); letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin-bottom: .5rem; }

/* --- Britta Misterek mit Foto-Komposition --- */
.britta { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.britta__media { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin-inline: auto; }
.britta__disc { position: absolute; border-radius: 50%; aspect-ratio: 1; z-index: 0; }
.britta__disc--teal { right: 0; bottom: 0; width: 72%; background: var(--teal); }
.britta__photo {
  position: absolute; left: 0; top: 0; width: 82%; aspect-ratio: 1;
  border-radius: 50%; z-index: 1; filter: drop-shadow(0 16px 32px rgba(20,122,114,.25));
}
.britta__leaves { position: absolute; left: -9%; bottom: -11%; width: 46%; height: auto; z-index: 2; transform: rotate(60deg); }

/* --- Britta / About (Alt-Layout, ungenutzt) --- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: center; }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* --- Breadcrumb --- */
.breadcrumb { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a { color: var(--teal-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Leistungen-Seite --- */
.leistungen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.leistung { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: 0 2px 10px rgba(20,122,114,.05); }
.leistung h2 { font-size: 1.4rem; color: var(--teal-deep); margin-bottom: .6rem; }
.leistung > p { color: var(--ink-soft); }
.checklist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-deep); font-weight: 700; }
.leistungen-cta { margin-top: 2.5rem; padding: 1.8rem; background: var(--bg-tint); border-radius: var(--radius); }
.leistungen-cta > p { margin-top: 0; }
.cta-buttons { display: flex; gap: .8rem; max-width: 540px; margin-top: 1.2rem; }
.cta-buttons .btn { flex: 1; }
/* Fueller-Kachel mit Blaettern (nur im 3-Spalten-Layout sichtbar, fuellt die Luecke) */
.leistung--filler { display: none; align-items: center; justify-content: center; background: transparent; border: 0; box-shadow: none; }
.leistung--filler img { width: 62%; max-width: 220px; height: auto; opacity: .9; transform: rotate(-8deg); }
@media (min-width: 992px) { .leistung--filler { display: flex; } }
@media (max-width: 560px) { .cta-buttons { flex-direction: column; } }

/* --- Rechtstexte --- */
.legal { max-width: 75ch; }
.legal h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.legal h3 { margin-top: 1.6rem; font-size: 1.2rem; color: var(--teal-deep); }
.legal h4 { margin-top: 1.1rem; font-size: 1rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; }
.legal a { word-break: break-word; }
.legal-source { font-size: .85rem; margin-top: 2.5rem; }
.legal-tldr { background: var(--bg-tint); border-left: 4px solid var(--teal-deep); border-radius: 10px; padding: 1.2rem 1.5rem; margin: 1.5rem 0 2.5rem; }
.legal-tldr__title { font-weight: 700; margin: 0 0 .7rem; color: var(--teal-deep); }
.legal-tldr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.legal-tldr li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.legal-tldr li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-deep); font-weight: 700; }

/* --- Kontaktseite + Formular --- */
.kontakt { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; margin-top: 2rem; align-items: start; }
.kontakt__info { background: linear-gradient(160deg, #237893, #185a6f); color: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.kontakt__info h2 { font-size: 1.3rem; margin-bottom: .8rem; color: #fff; }
.kontakt__info a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.kontakt__info a:hover { color: #dff1f8; }
.kontakt__row { display: flex; align-items: center; gap: .6rem; }
.kontakt__row span[aria-hidden] { color: #bfe6f0; font-size: 1.1rem; }
.kontakt__hours { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.25); }
.kontakt__hours h2 { font-size: 1.15rem; margin-bottom: .7rem; }
.kontakt__hours dl { margin: 0; }
.kontakt__hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.kontakt__hours-row:last-of-type { border-bottom: 0; }
.kontakt__hours-row dt { margin: 0; }
.kontakt__hours-row dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kontakt__hours-note { margin: .9rem 0 0; font-size: .88rem; color: #dff1f8; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink);
  border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(31,111,136,.18); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.err { display: block; color: #c0392b; font-size: .9rem; margin-top: .3rem; font-weight: 600; }
.field--check .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.field--check input { width: auto; margin-top: .3rem; flex-shrink: 0; }
.req { color: #c0392b; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: .8rem; }
.formmsg { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; }
.formmsg--ok { background: #e6f7f2; border: 1px solid #7fd0bb; color: #0d5c47; }
.formmsg--err { background: #fdecea; border: 1px solid #f0b0a8; color: #a02318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- 404-Seite --- */
.error404 { text-align: center; }
.error404__inner { max-width: 680px; margin-inline: auto; }
.error404__leaves { width: 130px; height: auto; margin: 0 auto 1rem; opacity: .85; transform: rotate(35deg); }
.error404__code { font-family: "Playfair Display", Georgia, serif; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--teal); font-weight: 700; margin: 0 0 .5rem; }

/* --- Region (dunkler Akzentblock) --- */
.region { background: linear-gradient(135deg, var(--teal-deep), var(--blue-deep)); color: #fff; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); text-align: center; }
.region h2 { color: #fff; }
.region p { color: rgba(255,255,255,.92); max-width: 60ch; margin-inline: auto; }

/* --- Footer --- */
.site-footer { background: #12211f; color: #d7e4e1; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: #9fe0d8; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.site-footer__brand { font-family: "Playfair Display", serif; font-size: 1.4rem; color: #fff; margin: 0 0 .5rem; }
.site-footer__head { font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .9rem; color: #9fb4b0; }

/* --- Mobile Sticky-Anrufleiste --- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: none; gap: 1px; transform: translateY(100%); transition: transform .25s ease; }
.callbar.is-visible { transform: translateY(0); }
.callbar__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem; font-weight: 700; text-decoration: none; color: #fff; }
.callbar__btn--call { background: var(--teal-deep); }
.callbar__btn--mail { background: var(--blue-deep); }

/* --- Responsive --- */
@media (max-width: 860px) {
  .hero__inner, .about { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__logo { max-width: 220px; }
  .hero__cta { flex-direction: column; }
  .leitbild { grid-template-columns: 1fr; gap: 2rem; }
  .leitbild__media { max-width: 300px; order: 0; }
  .britta { grid-template-columns: 1fr; gap: 2rem; }
  .britta__media { max-width: 300px; }
  .kontakt { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-header__inner { padding: .85rem 0; }
  .brand__logo { height: 50px; }
  .brand__name { font-size: 1.55rem; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 4.9rem; left: 0; right: 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.2rem 1.5rem;
    transform: translateY(-130%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s; box-shadow: var(--shadow);
  }
  body.nav-open .site-nav { transform: translateY(0); visibility: visible; transition: transform .25s ease; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: .9rem 0; }
  .site-nav .btn--phone { margin-top: 1rem; justify-content: center; }
  .callbar { display: flex; }
  body { padding-bottom: 56px; } /* Platz fuer Callbar */
}
