/*
Theme Name: Pflege Demo Custom
Theme URI: https://wpdemo.lead.bummeltech.com/
Author: ECC
Description: Massgeschneidertes klassisches WordPress-Theme fuer den ambulanten Pflegedienst "Pflege Demo". Modernes, vertrauensvolles Design in Blau/Weiss mit warmen Akzenten.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpdemo-custom
*/

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --blue-900: #0b2a4a;
  --blue-700: #14538b;
  --blue-600: #1c6fb8;
  --blue-500: #2f8fd6;
  --blue-100: #e8f2fb;
  --blue-50:  #f4f9fe;
  --warm-500: #f0913a;   /* warmer Akzent */
  --warm-400: #f7a85c;
  --warm-100: #fdeede;
  --ink:      #1c2b3a;
  --ink-soft: #4a5b6c;
  --white:    #ffffff;
  --line:     #dde7f0;
  --shadow:   0 10px 30px rgba(11, 42, 74, 0.10);
  --shadow-lg:0 20px 50px rgba(11, 42, 74, 0.16);
  --radius:   18px;
  --radius-sm:12px;
  --maxw:     1140px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   Reset / Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--blue-900); line-height: 1.18; margin: 0 0 .4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tint { background: var(--blue-50); }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-600); background: var(--blue-100);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section__head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section__head p { font-size: 1.1rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.02rem; padding: 15px 30px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--warm-500); color: #fff; box-shadow: 0 8px 22px rgba(240,145,58,.36); }
.btn--primary:hover { background: var(--warm-400); }
.btn--ghost { background: transparent; color: var(--blue-700); border-color: var(--blue-600); }
.btn--ghost:hover { background: var(--blue-100); }
.btn--light { background: #fff; color: var(--blue-700); }
.btn--light:hover { background: var(--blue-50); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--blue-900); font-size: 1.25rem; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  display: grid; place-items: center; color: #fff; font-size: 1.3rem;
  box-shadow: var(--shadow);
}
.brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--blue-600); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--blue-600); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; color: var(--blue-700); white-space: nowrap; }
.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(47,143,214,.20), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(240,145,58,.16), transparent 60%),
    linear-gradient(180deg, var(--blue-50), #fff);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 96px 0; }
.hero__lead { font-size: 1.2rem; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero__trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero__trust div { }
.hero__trust strong { display: block; font-size: 1.9rem; color: var(--blue-700); font-weight: 800; }
.hero__trust span { font-size: .92rem; color: var(--ink-soft); }
.hero__card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 34px; border: 1px solid var(--line);
}
.hero__card h3 { margin-bottom: 18px; }
.hero__card .check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hero__card .check:last-child { border-bottom: 0; }
.hero__card .check i { color: var(--blue-600); font-weight: 900; }
.hero__card .check b { color: var(--ink); }
.badge-row { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.badge { font-size: .8rem; font-weight: 700; color: var(--warm-500); background: var(--warm-100); padding: 6px 12px; border-radius: 999px; }

/* ============================================================
   Slider (CPT slide)
   ============================================================ */
.slider {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--blue-100);
  aspect-ratio: 4 / 3; isolation: isolate;
}
.slider__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.65,.05,.36,1); }
.slide-item { position: relative; flex: 0 0 100%; height: 100%; }
.slide-item__img { width: 100%; height: 100%; object-fit: cover; }
.slide-item__overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 28px 30px;
  background: linear-gradient(180deg, transparent, rgba(11,42,74,.85));
  color: #fff;
}
.slide-item__title { color: #fff; font-size: 1.5rem; margin: 0 0 6px; }
.slide-item__text { color: #eaf3fc; margin: 0; font-size: 1rem; }
.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--blue-900);
  font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: background .15s ease, transform .15s ease; z-index: 2;
}
.slider__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider__nav--prev { left: 16px; }
.slider__nav--next { right: 16px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; gap: 9px; justify-content: center; z-index: 2; }
.slider__dot {
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  background: transparent; padding: 0; transition: background .2s ease, transform .2s ease;
}
.slider__dot[aria-current="true"] { background: #fff; transform: scale(1.15); }

/* ============================================================
   Services
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 24px 24px 28px; }
.card__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 20px;
  background: var(--blue-100); color: var(--blue-700);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; margin: 0; }

/* ============================================================
   About / Team
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  border-radius: var(--radius); padding: 44px; color: #fff; box-shadow: var(--shadow-lg);
}
.about__media h3 { color: #fff; }
.about__media .quote { font-size: 1.25rem; font-style: italic; line-height: 1.5; }
.about__media .sig { margin-top: 22px; font-weight: 700; }
.about__media .sig span { display:block; font-weight: 500; color: var(--blue-100); font-size:.9rem; }
.about ul.values { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.about ul.values li { display: flex; gap: 12px; align-items: flex-start; }
.about ul.values i { color: var(--warm-500); font-weight: 900; font-size: 1.1rem; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; }
.member { text-align: center; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; }
.member .avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color:#fff; display:grid; place-items:center; font-size: 2rem; font-weight: 800;
}
.member h3 { margin-bottom: 4px; font-size: 1.15rem; }
.member .role { color: var(--blue-600); font-weight: 700; font-size: .92rem; }
.member p { font-size: .92rem; margin-top: 10px; }

/* ============================================================
   Contact / CTA
   ============================================================ */
.cta {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border-radius: var(--radius); color: #fff; padding: 60px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: var(--blue-100); font-size: 1.12rem; max-width: 38em; margin-left:auto; margin-right:auto; }
.cta .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 48px; }
.contact-item { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align:center; }
.contact-item i { font-size: 1.6rem; }
.contact-item h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.contact-item p { margin: 0; }
.contact-item a { font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--blue-900); color: #cfe0f0; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color:#fff; margin: 0 0 16px; font-size: 1.05rem; }
.site-footer a { color:#cfe0f0; }
.site-footer ul { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; text-align:center; font-size:.88rem; color:#9fb8d0; }

/* ============================================================
   Generic content (index / single pages)
   ============================================================ */
.page-content { padding: 70px 0; }
.page-content .container { max-width: 800px; }
.entry { margin-bottom: 40px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner, .about { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .team, .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav, .header-phone { display: none; }
  .cards, .team, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 24px; }
  body { font-size: 17px; }
}
