/* ============================================================
   Tagespflege Entwurf (Seite "TagespflegeEntwurf")
   Struktur: Elementor Sections/Widgets — Optik: diese Datei
   Geladen via novamira-sandbox/tagespflege-assets.php
   Hinweis: Spaltenlayouts laufen über CSS-Grid auf dem
   .elementor-container; Elementor-Gap-Padding wird genullt.
   ============================================================ */

/* ---------- Design-Tokens ---------- */
.tp-scope {
  --green: #96c15e;
  --green-dark: #65a747;
  --green-tint: #f7faf6;
  --green-line: #d9e7c8;
  --green-disc: #eef5e3;
  --blue-tint: #f7fafd;
  --ink: #141414;
  --ink-2: #3b3d42;
  --tp-body: #333333;
  --muted: #666666;
  --meta: #999999;
  --line: #e6e8ea;
  --tp-shadow: 0 18px 50px rgba(0, 0, 0, .08);
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--tp-body);
}
.tp-scope .hl { color: var(--green); }
.tp-scope a { color: var(--green-dark); text-decoration: none; }
.tp-scope a:hover { color: var(--green); }

/* ---------- Container & Grund-Layout ---------- */
.tp-scope.elementor-section-boxed > .elementor-container { max-width: 1320px !important; padding: 0 60px !important; }
/* Elementor-Gap-Padding neutralisieren — Karten setzen ihres weiter unten neu */
.tp-scope .elementor-column > .elementor-element-populated { padding: 0 !important; }

/* Spaltenlayouts als Grid */
.tp-scope > .elementor-container { display: grid !important; grid-template-columns: 1fr !important; }
.tp-scope .elementor-section > .elementor-container { display: grid !important; grid-template-columns: 1fr !important; }
/* min-width:0 ist entscheidend: Als Grid-Item würde eine Spalte sonst die Mindestbreite
   ihres Inhalts erzwingen und das Raster auf schmalen Displays aufsprengen. */
.tp-scope .elementor-column { width: auto !important; min-width: 0 !important; }
/* Bleibt in einem Grid nur eine Spalte übrig (weil Spalten im Editor gelöscht wurden),
   nimmt sie die volle Containerbreite ein statt eine Lücke zu lassen. */
.tp-scope .elementor-container > .elementor-column:only-child { grid-column: 1 / -1 !important; }
/* Innensektionen sind Flex-Kinder von .elementor-widget-wrap. Ohne min-width:0 erzwingt
   ihr Raster-Inhalt eine Mindestbreite und läuft auf schmalen Displays über. */
.tp-scope .elementor-widget-wrap > .elementor-inner-section { width: 100%; min-width: 0; }
.tp-hero > .elementor-container { grid-template-columns: 1fr 1.05fr !important; gap: 48px !important; align-items: center !important; }
.tp-photos > .elementor-container { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; }
.tp-welcome > .elementor-container { grid-template-columns: 1fr 1fr !important; gap: 56px !important; align-items: center !important; }
.tp-cost > .elementor-container { grid-template-columns: 1fr 1fr !important; gap: 56px !important; align-items: start !important; }
.tp-cta > .elementor-container { grid-template-columns: 1fr auto !important; gap: 24px !important; align-items: center !important; }
.tp-scope .tp-hero-grid > .elementor-container { grid-template-columns: 1.15fr 1fr !important; gap: 14px !important; }
.tp-scope .tp-step > .elementor-container { grid-template-columns: 44px 1fr !important; gap: 0 20px !important; }
.tp-scope .tp-featgrid > .elementor-container { grid-template-columns: 1fr 1fr !important; gap: 18px !important; align-items: start !important; }
.tp-scope .tp-detail-row > .elementor-container { grid-template-columns: repeat(3, 1fr) !important; gap: 18px !important; }
.tp-scope .tp-contact-grid > .elementor-container { grid-template-columns: 1.15fr 1fr !important; gap: 28px !important; align-items: start !important; }
.tp-scope .tp-btnrow > .elementor-container { display: flex !important; gap: 14px !important; flex-wrap: wrap !important; }

/* ---------- Sektions-Abstände ---------- */
.tp-hero { padding: 72px 0 40px; }
.tp-photos { padding: 24px 0 0; }
.tp-welcome, .tp-day, .tp-features, .tp-prices, .tp-cost, .tp-contact { padding: 80px 0; }
.tp-cta { padding: 48px 0; }

/* ---------- Widget-Abstände ---------- */
.tp-scope .elementor-widget:not(:last-child) { margin-bottom: 0; }
.tp-scope .elementor-widget.tp-eyebrow { margin-bottom: 14px; }
.tp-scope .elementor-widget.tp-h1 { margin-bottom: 20px; }
.tp-scope .elementor-widget.tp-h2 { margin-bottom: 18px; }
.tp-scope .elementor-widget.tp-lead { margin-bottom: 24px; }
.tp-scope .elementor-widget.tp-body:not(:last-child) { margin-bottom: 16px; }
.tp-scope .elementor-widget.tp-intro { margin-bottom: 48px; }
.tp-scope .elementor-widget.tp-btnrow { margin-bottom: 10px; }

/* ---------- Typografie ---------- */
.tp-scope .elementor-heading-title {
  font-family: 'Montserrat', system-ui, sans-serif !important;
  color: var(--ink);
  font-weight: 600;
}
.tp-scope .tp-eyebrow .elementor-heading-title { color: #96c15e; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.tp-scope .tp-h1 .elementor-heading-title { font-size: 46px; line-height: 1.15; letter-spacing: -.01em; color: #141414; }
.tp-scope .tp-h2 .elementor-heading-title { font-size: 42px; line-height: 1.2; color: #141414; }
.tp-scope .tp-lead p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.tp-scope .tp-body p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.tp-scope .tp-body-sm p { font-size: 15px; }
.tp-scope .tp-strong p { color: var(--ink-2); font-weight: 500; }
.tp-scope .tp-center { text-align: center; }
.tp-scope .elementor-widget.tp-narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons (harte Werte, schlagen Kit-Globals) ---------- */
.tp-scope .tp-btn .elementor-button {
  background-color: #96c15e !important;
  color: #ffffff !important;
  border: 1px solid #96c15e !important;
  border-radius: 3px;
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  padding: 15px 28px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tp-scope .tp-btn .elementor-button:hover { background-color: #65a747 !important; border-color: #65a747 !important; color: #fff !important; }
.tp-scope .tp-btn-outline .elementor-button { background-color: transparent !important; color: #65a747 !important; }
.tp-scope .tp-btn-outline .elementor-button:hover { background-color: #96c15e !important; border-color: #96c15e !important; color: #fff !important; }
.tp-scope .tp-btn-dark .elementor-button { background-color: #3b3d42 !important; border-color: #3b3d42 !important; font-size: 17px !important; padding: 17px 32px; }
.tp-scope .tp-btn-dark .elementor-button:hover { background-color: #141414 !important; border-color: #141414 !important; }

/* ---------- Hero: USP-Zeile & Galerie ---------- */
.tp-scope .elementor-widget.tp-usps { margin-top: 10px; }
.tp-scope .tp-usps .elementor-widget-container { padding: 0; }
.tp-scope .tp-usps .elementor-icon-list-items { display: flex !important; flex-wrap: wrap !important; gap: 8px 24px !important; padding-left: 0; margin-left: 0; list-style: none; }
.tp-scope .tp-usps .elementor-icon-list-item { display: inline-flex; align-items: center; gap: 7px; margin: 0 !important; padding: 0; width: auto; }
.tp-scope .tp-usps .elementor-icon-list-icon i { color: #96c15e !important; font-size: 13px; }
.tp-scope .tp-usps .elementor-icon-list-text { color: #3b3d42 !important; font-size: 14px; font-weight: 500; }
.tp-scope .tp-img img { width: 100% !important; object-fit: cover !important; border-radius: 12px; }
.tp-scope .tp-img-tall img { height: 414px; }
.tp-scope .tp-img-sm img { height: 200px; }
.tp-scope .elementor-widget.tp-img-sm:not(:last-child) { margin-bottom: 14px; }
.tp-scope .tp-photo img { height: 240px; }
.tp-scope .tp-img-welcome img { height: 420px; }

/* ---------- Tagesablauf (Timeline) ---------- */
.tp-scope .tp-step { max-width: 760px; margin-left: auto; margin-right: auto; }
.tp-scope .tp-col-num > .elementor-widget-wrap { display: flex !important; flex-direction: column !important; align-items: center !important; height: 100% !important; }
.tp-scope .tp-step-num .elementor-heading-title {
  width: 44px !important; height: 44px !important; border-radius: 50%; background: #96c15e; color: #fff !important;
  display: flex !important; align-items: center !important; justify-content: center !important; font-size: 15px; font-weight: 600;
}
.tp-scope .tp-col-num > .elementor-widget-wrap::after { content: ''; width: 2px; flex: 1; background: #d9e7c8; }
.tp-scope .tp-step-last .tp-col-num > .elementor-widget-wrap::after { display: none; }
.tp-scope .tp-step-last .tp-step-num .elementor-heading-title { background: #65a747; }
.tp-scope .tp-col-body { padding-bottom: 28px; }
.tp-scope .tp-step-last .tp-col-body { padding-bottom: 0; }
.tp-scope .tp-step-title .elementor-heading-title { font-size: 19px; }
.tp-scope .elementor-widget.tp-step-title { margin-bottom: 6px; }
.tp-scope .tp-step-text p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.tp-scope .elementor-widget.tp-step-text:not(:last-child) { margin-bottom: 12px; }
.tp-scope .tp-chips .tp-chip {
  display: inline-block; background: #fff; border: 1px solid #d9e7c8; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: #3b3d42; font-weight: 500; margin: 0 8px 8px 0;
}

/* ---------- Ausstattung (Check-Karten) ---------- */
.tp-scope .tp-check { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.tp-scope .elementor-widget.tp-check:not(:last-child) { margin-bottom: 18px; }
.tp-scope .tp-check .elementor-icon-box-wrapper { display: flex !important; gap: 16px !important; align-items: flex-start !important; text-align: left; }
.tp-scope .tp-check .elementor-icon-box-icon { margin: 0 !important; }
.tp-scope .tp-check .elementor-icon {
  width: 34px !important; height: 34px !important; border-radius: 50%; background: #eef5e3;
  display: flex !important; align-items: center !important; justify-content: center !important; font-size: 15px;
}
.tp-scope .tp-check .elementor-icon i { color: #65a747 !important; }
.tp-scope .tp-check .elementor-icon-box-title { font-size: 16px; margin: 0 0 4px; color: #141414 !important; font-family: 'Montserrat', system-ui, sans-serif !important; }
.tp-scope .tp-check .elementor-icon-box-description { font-size: 14px; line-height: 1.6; color: var(--muted) !important; margin: 0; }

/* ---------- Tagessätze ---------- */
.tp-scope .tp-price-card { max-width: 980px; margin-left: auto; margin-right: auto; width: 100%; }
.tp-scope .tp-price-card > .elementor-container { background: #fff; border-radius: 12px; box-shadow: var(--tp-shadow); padding: 28px 32px; }
.tp-scope .tp-price-grid > .elementor-widget-wrap { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 12px !important; }
.tp-scope .tp-price-grid .elementor-widget { margin-bottom: 0; }
.tp-scope .tp-price-grid .elementor-widget.tp-card-title { grid-column: 1 / -1; }
.tp-scope .tp-card-title .elementor-heading-title { font-size: 18px; }
.tp-scope .elementor-widget.tp-card-title { margin-bottom: 6px; }
.tp-scope .tp-card-title-sm .elementor-heading-title { font-size: 17px; }
.tp-scope .elementor-widget.tp-card-title-sm { margin-bottom: 4px; }
.tp-scope .tp-tile { background: #f7faf6; border-radius: 9px; padding: 16px 10px; text-align: center; }
.tp-scope .tp-tile .tp-tile-label { font-size: 13px; font-weight: 600; color: #65a747; text-transform: uppercase; letter-spacing: .08em; }
.tp-scope .tp-tile .tp-tile-price { font-size: 24px; font-weight: 600; color: #141414; margin-top: 6px; }
.tp-scope .tp-tile .tp-tile-unit { font-size: 12px; color: #999; margin-top: 2px; }
.tp-scope .tp-detail-row { max-width: 980px; margin: 18px auto 0; width: 100%; }
.tp-scope .tp-detail-card > .elementor-element-populated {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 26px !important; height: 100%; align-content: flex-start;
}
.tp-scope .tp-card-h4 .elementor-heading-title { font-size: 15px; }
.tp-scope .elementor-widget.tp-card-h4 { margin-bottom: 6px; }
.tp-scope .tp-detail-desc p { margin: 0; font-size: 13px; line-height: 1.55; color: #999; }
.tp-scope .elementor-widget.tp-detail-desc { margin-bottom: 14px; }

/* ---------- Zeilen (Label/Wert) ---------- */
.tp-scope .tp-rows .tp-row { display: flex !important; justify-content: space-between !important; gap: 12px !important; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.tp-scope .tp-rows .tp-row span:first-child { color: var(--muted); }
.tp-scope .tp-rows .tp-row span:last-child { font-weight: 600; color: #141414; text-align: right; }
.tp-scope .tp-rows-lg .tp-row { font-size: 15px; padding: 13px 0; border-top: 0; border-bottom: 1px solid var(--line); align-items: center; }
.tp-scope .tp-rows-lg .tp-row span:first-child { color: #3b3d42; font-weight: 500; }
.tp-scope .tp-rows-lg .tp-row:last-child { border-bottom: 0; }
.tp-scope .tp-note { font-weight: 400; font-size: 13px; color: #999; }

/* ---------- Kostenübernahme ---------- */
.tp-scope .tp-callout { background: #f7faf6; border-radius: 12px; padding: 20px 24px; margin-top: 8px; }
.tp-scope .tp-callout .elementor-icon-box-wrapper { display: flex !important; gap: 14px !important; align-items: flex-start !important; text-align: left; }
.tp-scope .tp-callout .elementor-icon-box-icon { margin: 0 !important; }
.tp-scope .tp-callout .elementor-icon {
  width: 34px !important; height: 34px !important; border-radius: 50%; background: #96c15e;
  display: flex !important; align-items: center !important; justify-content: center !important; font-size: 15px;
}
.tp-scope .tp-callout .elementor-icon i { color: #fff !important; }
.tp-scope .tp-callout .elementor-icon-box-title { display: none; }
.tp-scope .tp-callout .elementor-icon-box-description { margin: 0; font-size: 14px; line-height: 1.6; color: #3b3d42 !important; font-weight: 500; }
.tp-scope .tp-cost-cardcol > .elementor-element-populated {
  background: #fff; border-radius: 12px; box-shadow: var(--tp-shadow); padding: 28px 32px !important;
}
.tp-scope .tp-card-meta p { margin: 0; font-size: 13px; color: #999; }
.tp-scope .elementor-widget.tp-card-meta { margin-bottom: 18px; }
.tp-scope .tp-footnote p { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: #999; }

/* ---------- Kontakt / Formulare ---------- */
.tp-scope .tp-contact-grid { max-width: 1080px; margin-left: auto; margin-right: auto; width: 100%; }
.tp-scope .tp-form-col > .elementor-element-populated {
  background: #fff; border-radius: 12px; box-shadow: var(--tp-shadow); padding: 34px 36px !important;
}
.tp-scope .tp-form-col-b > .elementor-element-populated {
  box-shadow: none; border: 1px solid var(--line); padding: 30px 32px !important;
}
.tp-scope .tp-form-col .tp-card-title .elementor-heading-title { font-size: 20px; }
.tp-scope .tp-form-col .elementor-widget.tp-card-title { margin-bottom: 22px; }
.tp-scope .tp-form .elementor-field-group { margin-bottom: 16px; }
.tp-scope .tp-form label.elementor-field-label { font-size: 14px; font-weight: 500; color: #3b3d42 !important; margin-bottom: 7px; font-family: 'Montserrat', system-ui, sans-serif; }
.tp-scope .tp-form .elementor-field-textual {
  background-color: #fff !important;
  border: 1px solid #e6e8ea !important;
  border-radius: 9px !important;
  padding: 13px 15px;
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-size: 16px !important;
  color: #333 !important;
}
.tp-scope .tp-form .elementor-field-textual:focus { border-color: #96c15e !important; box-shadow: none; outline: none; }
.tp-scope .tp-form .elementor-button {
  background-color: #96c15e !important;
  border: 1px solid #96c15e !important;
  border-radius: 3px;
  color: #fff !important;
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  padding: 15px 28px;
  margin-top: 8px;
  transition: background-color .2s, color .2s;
}
.tp-scope .tp-form .elementor-button:hover { background-color: #65a747 !important; border-color: #65a747 !important; }
.tp-scope .tp-form-b .elementor-button { background-color: transparent !important; color: #65a747 !important; }
.tp-scope .tp-form-b .elementor-button:hover { background-color: #96c15e !important; border-color: #96c15e !important; color: #fff !important; }

/* ---------- CTA-Band ---------- */
.tp-scope .tp-cta-title .elementor-heading-title { color: #fff !important; font-size: 28px; }
.tp-scope .elementor-widget.tp-cta-title { margin-bottom: 6px; }
.tp-scope .tp-cta-sub p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .92); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .tp-scope .tp-h1 .elementor-heading-title { font-size: 40px; }
  .tp-scope .tp-h2 .elementor-heading-title { font-size: 36px; }
}
@media (max-width: 1024px) {
  .tp-scope .tp-price-grid > .elementor-widget-wrap { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
  .tp-scope .tp-detail-row > .elementor-container { grid-template-columns: 1fr !important; }
}
@media (max-width: 767px) {
  .tp-scope.elementor-section-boxed > .elementor-container { padding: 0 24px !important; }
  .tp-hero { padding: 48px 0 32px; }
  .tp-welcome, .tp-day, .tp-features, .tp-prices, .tp-cost, .tp-contact { padding: 56px 0; }
  .tp-scope .tp-h1 .elementor-heading-title { font-size: 34px; }
  .tp-scope .tp-h2 .elementor-heading-title { font-size: 30px; }
  .tp-scope .tp-lead p { font-size: 16px; }
  .tp-hero > .elementor-container,
  .tp-welcome > .elementor-container,
  .tp-cost > .elementor-container,
  .tp-photos > .elementor-container,
  .tp-cta > .elementor-container,
  .tp-scope .tp-hero-grid > .elementor-container,
  .tp-scope .tp-featgrid > .elementor-container,
  .tp-scope .tp-contact-grid > .elementor-container { grid-template-columns: 1fr !important; }
  .tp-hero > .elementor-container, .tp-welcome > .elementor-container { gap: 24px !important; }
  .tp-cost > .elementor-container { gap: 28px !important; }
  .tp-scope .tp-img-tall img { height: 280px; }
  .tp-scope .tp-img-sm img { height: 160px; }
  .tp-scope .tp-photo img { height: 200px; }
  .tp-scope .tp-img-welcome img { height: 300px; }
  .tp-scope .tp-step > .elementor-container { grid-template-columns: 44px 1fr !important; }
  .tp-scope .tp-form-col > .elementor-element-populated,
  .tp-scope .tp-form-col-b > .elementor-element-populated { padding: 24px 20px !important; }
  /* Formularfelder auf Handys immer volle Breite (unabhängig von den Elementor-Feldbreiten) */
  .tp-scope .tp-form .elementor-field-group {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }
  .tp-scope .tp-form .elementor-field-textual { width: 100%; }
  .tp-scope .tp-cta-colr .elementor-widget-button { text-align: left; }
  .tp-scope .tp-cta-title .elementor-heading-title { font-size: 24px; }
}
