/* ============================================================
   pflege-medeline.de – zentrales Stylesheet
   Umsetzung der Design-Vorlage „Pflege Medeline Webdesign“
   Farben/Schriften exakt aus der Vorlage übernommen.
   ============================================================ */

:root {
  --pink: #F848C8;        /* Markenfarbe (Logo) – Buttons, Icons, Akzente */
  --pink-hover: #DB2FAD;  /* Hover-Zustand */
  --pink-soft: #FCEFF7;   /* helle Rosa-Flächen (Seitenköpfe, CTA) */
  --footer-bg: #F8E7F3;   /* Footer-Hintergrund */
  --grey-bg: #F7F5F6;     /* grauer Kartenbereich (Leistungen) */
  --navy: #262A5C;        /* Überschriften / dunkle Textfarbe */
  --text: #54595F;        /* Fließtext */
  --border-nav: #F3E3EE;
  --border-footer: #EDD6E6;
  --border-line: #EADDE6;
  --input-border: #E5E7EB;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #ffffff;
}

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-hover); }

img { max-width: 100%; }

h1, h2, h3 { font-family: 'Roboto', Helvetica, Arial, sans-serif; color: var(--navy); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  background: var(--pink);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--pink-hover); color: #ffffff; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  padding: 12px 32px;
  border-radius: 999px;
}
.btn-outline:hover { background: var(--navy); color: #ffffff; }

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(38, 42, 92, 0.08);
  position: relative;
  z-index: 50;
}
.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logo { flex-shrink: 0; }
.logo img { height: 58px; display: block; }

.header-contacts {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-left: auto;
}
.hc-item { display: flex; align-items: center; gap: 12px; }
.hc-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--pink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hc-title { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--navy); }
.hc-sub { font-size: 14px; color: var(--text); }
.header-cta { font-size: 14px; padding: 14px 30px; }

/* Navigation */
.nav-bar { border-top: 1px solid var(--border-nav); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-inner > a, .has-sub > a {
  padding: 14px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  display: inline-block;
}
.nav-inner > a:hover, .has-sub > a:hover { color: var(--pink); }
.nav-inner > a.active, .has-sub > a.active { color: var(--pink); }

.has-sub { position: relative; }
.has-sub > a { display: inline-flex; align-items: center; gap: 6px; }
.sub {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(38, 42, 92, 0.18);
  padding: 8px 0;
  min-width: 260px;
  z-index: 60;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a {
  display: block;
  padding: 11px 20px;
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
}
.sub a:hover { background: var(--pink-soft); color: var(--pink); }
.sub a.sub-all { font-weight: 600; color: var(--pink); }
.sub a.sub-all:hover { color: var(--pink-hover); }

/* Mobile-Navigation (Hamburger, rein CSS) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  margin-left: auto;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--navy);
  position: relative;
  content: '';
  transition: transform .2s;
}
.nav-toggle-label span::before { position: absolute; top: -8px; }
.nav-toggle-label span::after { position: absolute; top: 8px; }

@media (max-width: 920px) {
  .hc-address { display: none; }
  .header-cta { display: none; }
  .nav-toggle-label { display: block; }
  .nav-bar { display: none; }
  .nav-toggle:checked ~ .nav-bar { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .nav-inner > a, .has-sub > a { padding: 12px 4px; }
  .has-sub .sub {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0 0 4px 16px;
    min-width: 0;
  }
}

/* ---------- Startseite: Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: center;
}
.kicker { font-weight: 600; font-size: 16px; color: var(--navy); margin-bottom: 10px; }
.hero h1 {
  font-weight: 700;
  font-size: 38px;
  line-height: 1.25;
  margin: 0 0 22px;
}
.hero p { font-size: 15px; line-height: 1.7; margin: 0 0 14px; }
.hero img {
  width: 100%;
  border-radius: 6px;
  display: block;
  box-shadow: 0 18px 40px rgba(38, 42, 92, 0.14);
}

/* Häkchen-Listen */
.checks { display: flex; flex-direction: column; gap: 13px; margin-top: 26px; }
.check-item { display: flex; align-items: center; gap: 11px; }
.check-item svg { flex-shrink: 0; }
.check-item span { font-size: 15px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px 40px;
  max-width: 960px;
}

/* ---------- Startseite: pinkes Leistungs-Band ---------- */
.services-band { background: var(--pink); }
.services-band .wrap {
  padding-top: 64px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  text-align: center;
}
.band-item {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.band-item:hover { color: #ffffff; opacity: 0.92; }
.band-item img.band-icon { width: 52px; height: 52px; display: block; }
.band-title { font-weight: 600; font-size: 20px; }
.band-text { font-size: 14px; line-height: 1.6; opacity: 0.92; }

/* ---------- Unterseiten-Kopf (Breadcrumb + Titel) ---------- */
.page-hero { background: var(--pink-soft); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.breadcrumb { font-size: 14px; margin-bottom: 10px; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb .sep { color: #B8A3B0; }
.breadcrumb .current { color: var(--pink); }
.page-hero h1 { font-weight: 700; font-size: 40px; line-height: 1.2; margin: 0; }

/* ---------- Inhaltsbereiche ---------- */
.content { max-width: 1200px; margin: 0 auto; padding: 64px 24px 72px; }
.lead {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.65;
  color: var(--navy);
  max-width: 960px;
  margin: 0 0 36px;
}
.content .btn { margin-top: 40px; }

/* ---------- CTA-Bereich „Individuelle Beratung“ ---------- */
.cta { background: var(--pink-soft); }
.cta .wrap { padding-top: 64px; padding-bottom: 64px; text-align: center; }
.cta h2 { font-weight: 700; font-size: 32px; line-height: 1.3; margin: 0 0 14px; }
.cta p { font-size: 16px; line-height: 1.7; max-width: 680px; margin: 0 auto 28px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Leistungen: Karten ---------- */
.cards-section { background: var(--grey-bg); }
.cards-section .wrap { padding-top: 72px; padding-bottom: 88px; }
.cards-section h2 {
  font-weight: 700; font-size: 32px; line-height: 1.3;
  margin: 0 0 18px; text-align: center;
}
.cards-intro {
  font-size: 15px; line-height: 1.75;
  max-width: 560px; margin: 0 auto 56px; text-align: center;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 36px;
  max-width: 1000px;
  margin: 0 auto;
}
.card img.card-img {
  width: 100%; height: 190px; object-fit: cover;
  display: block; border-radius: 4px;
}
.card-body {
  position: relative;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(38, 42, 92, 0.12);
  margin: -52px 20px 0;
  padding: 46px 22px 26px;
  text-align: center;
}
.card-icon {
  position: absolute;
  top: -28px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
}
.card-icon img { width: 30px; height: 30px; display: block; }
.card-body h3 { font-weight: 700; font-size: 19px; margin: 0 0 10px; }
.card-body p { font-size: 14px; line-height: 1.65; margin: 0 0 14px; }
.card-more { font-weight: 700; font-size: 14px; }

/* ---------- Über uns ---------- */
.two-col {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: center;
}
.two-col h2 { font-weight: 700; font-size: 30px; line-height: 1.35; margin: 0 0 20px; }
.two-col p { font-size: 15px; line-height: 1.75; margin: 0 0 14px; }
.two-col p:last-child { margin-bottom: 0; }
.two-col img {
  width: 100%; border-radius: 6px; display: block;
  box-shadow: 0 18px 40px rgba(38, 42, 92, 0.14);
}

.quote-section { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }
.quote-box {
  background: var(--pink-soft);
  border-radius: 12px;
  padding: 44px 48px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.quote-box svg { margin-bottom: 14px; }
.quote-box blockquote {
  font-weight: 500; font-size: 18px; line-height: 1.7;
  color: var(--navy); margin: 0 0 12px;
}
.quote-author { font-size: 14px; color: var(--text); }

/* ---------- Kontakt ---------- */
.map-embed { width: 100%; height: 460px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Zwei-Klick-Lösung: Google wird erst nach Klick kontaktiert */
.map-consent {
  width: 100%; height: 100%;
  background: var(--pink-soft);
  border-bottom: 1px solid var(--border-line);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; text-align: center;
  /* unten mehr Abstand: die Formularkarte ragt 140px in den Kartenbereich */
  padding: 32px 24px 170px;
}
.map-consent-title {
  font-weight: 700; font-size: 22px; line-height: 1.3;
  color: var(--navy); margin: 0;
}
.map-consent-text {
  font-size: 14px; line-height: 1.65;
  max-width: 520px; margin: 0;
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: start;
}
.contact-intro { padding-top: 64px; }
.contact-intro .kicker { color: var(--pink); }
.contact-intro h1 { font-weight: 700; font-size: 36px; line-height: 1.3; margin: 0 0 22px; }
.contact-intro p { font-size: 17px; line-height: 1.7; margin: 0 0 14px; }

.form-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(38, 42, 92, 0.16);
  padding: 36px;
  margin-top: -140px;
  position: relative;
  z-index: 5;
}
.form-card h3 {
  font-weight: 600; font-size: 20px;
  color: var(--pink); text-align: center;
  margin: 0 0 24px;
}
.form-fields { display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.form-fields label {
  display: block;
  font-weight: 700; font-size: 14px;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-fields input, .form-fields textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: #FAFAFA;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--navy);
  outline: none;
}
.form-fields textarea { resize: vertical; }
.form-fields input:focus, .form-fields textarea:focus {
  border-color: var(--pink);
  background: #ffffff;
}
.form-submit { text-align: center; }
.form-submit button {
  background: var(--pink);
  color: #ffffff;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-weight: 600; font-size: 15px;
  padding: 13px 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.form-submit button:hover { background: var(--pink-hover); }
/* Honeypot-Feld unsichtbar */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-error {
  background: #FDE8E8;
  border: 1px solid #F5B5B5;
  color: #9B1C1C;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
}

@media (max-width: 767px) {
  .form-card { margin-top: 0; }
  .map-consent { padding-bottom: 32px; }
}

.contact-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}
.ci-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--pink);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-info h3 { font-weight: 600; font-size: 20px; margin: 18px 0 0; }
.ci-line { height: 1px; background: var(--border-line); margin: 16px 0; }
.ci-text { font-size: 15px; line-height: 1.8; color: var(--navy); }
.ci-text a { color: var(--navy); }
.ci-text a:hover { color: var(--pink); }

/* ---------- Textseiten (Impressum, Datenschutz, Danke, 404) ---------- */
.text-page { max-width: 860px; margin: 0 auto; padding: 64px 24px 80px; }
.text-page h2 { font-weight: 700; font-size: 22px; margin: 0 0 14px; }
.text-page p { font-size: 15px; line-height: 1.8; margin: 0 0 28px; }
.text-page p:last-child { margin-bottom: 0; }
.text-note { font-size: 13px; line-height: 1.7; color: #8A8F98; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); }
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
}
.footer-logo img { height: 64px; display: block; margin-bottom: 14px; }
.footer-firm { font-weight: 600; font-size: 15px; color: var(--navy); margin-bottom: 22px; }
.footer-contacts { display: flex; flex-direction: column; gap: 14px; }
.fc-item { display: flex; align-items: center; gap: 12px; color: var(--navy); font-size: 14px; }
.fc-item svg { flex-shrink: 0; }
.fc-item.fc-address { align-items: flex-start; }
.fc-item.fc-address svg { margin-top: 2px; }
a.fc-item:hover { color: var(--pink); }

.footer-hours h3 { font-weight: 600; font-size: 18px; margin: 0 0 18px; }
.footer-hours .fc-item { margin-bottom: 26px; }
.footer-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pink); color: #ffffff;
  font-weight: 600; font-size: 14px;
  padding: 13px 26px; border-radius: 999px;
}
.footer-btn:hover { background: var(--pink-hover); color: #ffffff; }

.footer-legal { border-top: 1px solid var(--border-footer); }
.footer-legal .wrap {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; gap: 24px; flex-wrap: wrap;
}
.footer-legal a { font-size: 13px; color: var(--text); }
.footer-legal a:hover { color: var(--pink); }
