/*
Theme Name: Pflege Engel
Description: Modernes Design für Pflege Engel Stenske – Ambulante Pflege & Tagespflege. Child-Theme von Twenty Twenty-Five.
Author: Pflege Engel Stenske
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Text Domain: pflegeengel
*/

:root {
  --pe-blue: #1B6CA8;
  --pe-blue-dark: #0E4F80;
  --pe-navy: #0E2A47;
  --pe-text: #3B5470;
  --pe-muted: #4A6178;
  --pe-soft: #EEF6FC;
  --pe-light: #D6EAF8;
  --pe-line: #E3EEF7;
  --pe-radius: 24px;
}

body { color: var(--pe-navy); background: #fff; }
h1, h2, h3, h4 { color: inherit; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
a { color: var(--pe-blue); }
a:hover { color: var(--pe-blue-dark); }

/* ---------- Schaltflächen (ganze Website) ---------- */
.wp-element-button,
.wp-block-button__link {
  background: var(--pe-blue);
  color: #fff;
  border: 1px solid var(--pe-blue);
  border-radius: 999px;
  padding: 0.85em 1.6em;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.wp-element-button:hover,
.wp-block-button__link:hover { background: var(--pe-blue-dark); border-color: var(--pe-blue-dark); color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link {
  background: #fff; color: var(--pe-navy); border: 1px solid #C9E1F3;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--pe-blue); color: var(--pe-blue); }
.wp-block-button.pe-btn-light > .wp-block-button__link { background: #fff; color: var(--pe-navy); border-color: #fff; }
.wp-block-button.pe-btn-light > .wp-block-button__link:hover { background: var(--pe-light); border-color: var(--pe-light); }

/* ---------- Abschnitte ---------- */
.pe-section { padding: 96px 24px; margin-block: 0 !important; }
.pe-soft { background: var(--pe-soft); }
.pe-hero { padding: 80px 24px 96px; margin-block: 0 !important; }
.pe-pagehead { padding: 80px 24px 72px; margin-block: 0 !important; }
.pe-head { margin-bottom: 40px; max-width: 720px; }
.pe-head > * + * { margin-top: 12px; }
.pe-section h2, .pe-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 0; }
.pe-hero h1, .pe-pagehead h1 { font-size: clamp(38px, 5.5vw, 60px); line-height: 1.05; letter-spacing: -0.025em; margin: 16px 0 0; }

.pe-eyebrow {
  color: var(--pe-blue); font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin: 0;
}
.pe-lead { font-size: 19px; line-height: 1.65; color: var(--pe-text); max-width: 620px; }
.pe-small { font-size: 13px; font-weight: 700; color: var(--pe-blue); margin: 0; }
.pe-badge {
  display: inline-block; background: #fff; color: var(--pe-blue);
  border: 1px solid #C9E1F3; border-radius: 999px; padding: 8px 16px;
  font-size: 14px; font-weight: 700; margin: 0;
}

/* ---------- Hero ---------- */
.pe-hero-cols { gap: 56px; align-items: center; }
.pe-hero-cols > .wp-block-column:last-child { position: relative; }
.pe-float {
  position: absolute; left: -24px; bottom: 32px; background: #fff;
  border-radius: 20px; padding: 16px 22px; box-shadow: 0 12px 32px rgba(14,42,71,.14);
}
.pe-float p { margin: 0; }
.pe-float a { color: var(--pe-navy); text-decoration: none; }

/* ---------- Häkchen-Listen ---------- */
.pe-check { list-style: none; padding: 0; margin: 24px 0; }
.pe-check li { position: relative; padding-left: 32px; margin: 10px 0; font-size: 17px; }
.pe-check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px;
  background: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B6CA8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.pe-check-inline { display: flex; flex-wrap: wrap; gap: 0 28px; }
.pe-dark .pe-check li::before { filter: brightness(2.2); }

/* ---------- Karten ---------- */
.pe-cards { gap: 20px; margin-bottom: 20px; }
.pe-card {
  background: #F6FAFD; border: 1px solid var(--pe-line); border-radius: var(--pe-radius);
  padding: 32px;
}
.pe-card h3 { font-size: 22px; margin: 0 0 10px; }
.pe-card p { color: var(--pe-muted); line-height: 1.6; margin: 0; }
.pe-cards .pe-card::before {
  content: ""; display: block; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px;
  background: var(--pe-light) no-repeat center/26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B6CA8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.5-9.5-9A5.5 5.5 0 0 1 12 6a5.5 5.5 0 0 1 9.5 6c-2.5 4.5-9.5 9-9.5 9z'/%3E%3C/svg%3E");
}
.pe-facts { background: #fff; }
.pe-facts p { color: var(--pe-navy); margin: 0 0 12px; }

/* ---------- Dunkler Kasten (Tagespflege, Beratung) ---------- */
.pe-dark {
  background: var(--pe-navy); color: #fff; border-radius: 40px; padding: 64px;
}
.pe-dark h2 { color: #fff; }
.pe-dark .pe-eyebrow { color: #9FCDF0; }
.pe-dark .pe-lead, .pe-dark li { color: #C9DDEE; }
.pe-dark .wp-block-columns { gap: 56px; align-items: center; }
.pe-cta { text-align: center; }
.pe-cta .pe-lead { margin-inline: auto; }
.pe-cta .wp-block-buttons { justify-content: center; }

/* ---------- Foto-Platzhalter ---------- */
.pe-photo {
  min-height: 380px; border-radius: 32px; background: #CFE5F5;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.pe-photo-label { color: var(--pe-blue); font-size: 15px; margin: 0; }
.pe-photo-dark { background: #1E4468; min-height: 220px; border-radius: 24px; }
.pe-photo-dark .pe-photo-label { color: #9FCDF0; }
.pe-photo-sm { min-height: 160px; }
.pe-photo-row { gap: 16px; margin-top: 16px; }
.pe-gallery { gap: 16px; }
.pe-gallery .pe-photo { min-height: 220px; border-radius: 24px; }
/* echte Bilder in diesen Bereichen schön abrunden */
.pe-hero .wp-block-image img, .pe-dark .wp-block-image img, .pe-gallery .wp-block-image img {
  border-radius: 24px; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Team ---------- */
.pe-team { gap: 16px; margin-bottom: 16px; }
.pe-member {
  border: 1px solid var(--pe-line); border-radius: 20px; padding: 20px; background: #fff;
}
.pe-member p { margin: 0; }
.pe-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--pe-light); color: var(--pe-blue);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
  margin-bottom: 14px !important;
}
.pe-name { font-size: 17px; }
.pe-role { font-size: 14px; color: var(--pe-muted); line-height: 1.45; margin-top: 4px !important; }

/* ---------- Standorte ---------- */
.pe-locations { gap: 24px; }
.pe-location { background: #fff; border-radius: 28px; padding: 40px; }
.pe-pagehead + .pe-section .pe-location { background: var(--pe-soft); }
.pe-location h3 { font-size: 28px; margin: 6px 0; }
.pe-address { color: var(--pe-muted); font-size: 17px; margin: 0 0 16px; }
.pe-phones { line-height: 1.9; }
.pe-phones a { color: var(--pe-navy); font-weight: 700; text-decoration: none; }

/* ---------- Kopfbereich ---------- */
.pe-topbar { background: var(--pe-navy); color: #DCEBF7; font-size: 14px; padding: 8px 24px; margin: 0 !important; }
.pe-topbar p { margin: 0; text-align: right; }
.pe-topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.pe-header { background: #fff; border-bottom: 1px solid var(--pe-line); padding: 14px 24px; margin: 0 !important; }
.pe-header-cols { align-items: center; margin: 0; }
.pe-nav-col .wp-block-navigation { justify-content: flex-end; gap: 28px; font-weight: 600; }
.pe-nav-col .wp-block-navigation a { color: var(--pe-navy); text-decoration: none; }
.pe-nav-col .wp-block-navigation a:hover { color: var(--pe-blue); }

/* ---------- Fußbereich ---------- */
.pe-footer { background: var(--pe-navy); color: #C9DDEE; padding: 48px 24px; font-size: 15px; line-height: 1.7; margin: 0 !important; }
.pe-footer strong { color: #fff; }
.pe-footer a { color: #fff; }

/* ---------- Handy ---------- */
@media (max-width: 781px) {
  .pe-section { padding: 64px 20px; }
  .pe-hero, .pe-pagehead { padding: 56px 20px; }
  .pe-dark { padding: 40px 24px; border-radius: 28px; }
  .pe-float { position: static; margin-top: 16px; }
  .pe-photo { min-height: 260px; }
  .pe-topbar p { text-align: center; }
  .pe-location { padding: 28px; }
}

/* Logo im Kopfbereich */
.pe-logo { margin: 0 !important; }
.pe-logo img { height: 64px; width: auto; max-width: 100%; display: block; }
@media (max-width: 781px) { .pe-logo img { height: 48px; } }
/* Normale Textseiten (z. B. Impressum) */
main > .wp-block-post-content > :not(.alignfull):first-child { margin-top: 64px; }
main > .wp-block-post-content > :not(.alignfull):last-child { margin-bottom: 64px; }
