/*
Theme Name: ALMEDICA Pflege
Theme URI: https://aldemic.lead.bummeltech.com/
Author: ALMEDICA / Bummeltech
Description: Individuelles klassisches WordPress-Theme für den Ambulanten Pflegedienst ALMEDICA. Mehrteilige Landingpage mit Bild-Slider, Leistungs-Grid, Kontakt- und Bewerbungsformular sowie integriertem Bewerber-Kanban im Backend. Alle Inhalte (Slides, Leistungen, Texte, Farben, Kontaktdaten, Menüs) sind im wp-admin pflegbar.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: aldemic-custom
*/

/* =========================================================
   Design-Tokens (Farben kommen als CSS-Variablen aus dem
   Customizer, siehe inc/customizer.php -> aldemic_css_vars)
   ========================================================= */
:root {
  --almedica-primary: #15629c;        /* Mediziner-Blau */
  --almedica-accent: #3aa676;         /* sanftes Grün (CTA) */
  --almedica-primary-dark: #0e4674;
  --almedica-accent-dark: #2e8a61;
  --almedica-bg: #faf8f4;             /* warmes Weiß */
  --almedica-surface: #ffffff;
  --almedica-text: #233240;
  --almedica-muted: #5c6b78;
  --almedica-border: #e6e1d8;
  --almedica-radius: 14px;
  --almedica-shadow: 0 10px 30px rgba(15, 49, 80, 0.10);
  --almedica-maxw: 1180px;
  --almedica-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--almedica-font);
  color: var(--almedica-text);
  background: var(--almedica-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--almedica-primary); }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--almedica-text);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.almedica-wrap { max-width: var(--almedica-maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 76px 0; }
.section--tint { background: linear-gradient(180deg, #ffffff 0%, var(--almedica-bg) 100%); }
.section__head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section__eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--almedica-accent-dark); margin-bottom: 10px;
}
.section__lead { color: var(--almedica-muted); font-size: 1.08rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--accent { background: var(--almedica-accent); color: #fff; }
.btn--accent:hover { background: var(--almedica-accent-dark); transform: translateY(-2px); box-shadow: var(--almedica-shadow); }
.btn--primary { background: var(--almedica-primary); color: #fff; }
.btn--primary:hover { background: var(--almedica-primary-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--almedica-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px; max-width: var(--almedica-maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--almedica-text); }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--almedica-primary), var(--almedica-accent)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.brand__name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.brand__name small { display: block; font-weight: 600; font-size: .72rem; color: var(--almedica-muted); letter-spacing: .04em; }

.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--almedica-text); font-weight: 600; padding: 9px 14px; border-radius: 10px; font-size: .98rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: rgba(21,98,156,.08); color: var(--almedica-primary); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 800; color: var(--almedica-primary); text-decoration: none; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--almedica-primary); }

/* ---------- Slider / Hero ---------- */
.hero-slider { position: relative; overflow: hidden; background: #0e2740; }
.slides { display: flex; transition: transform .7s cubic-bezier(.65,.05,.36,1); will-change: transform; }
.slide { position: relative; min-width: 100%; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__img-fallback { background-size: cover; background-position: center; position: absolute; inset: 0; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,38,64,.86) 0%, rgba(11,38,64,.55) 45%, rgba(11,38,64,.20) 100%); }
.slide__inner { position: relative; z-index: 2; max-width: var(--almedica-maxw); margin: 0 auto; padding: 110px 22px; min-height: 560px; display: flex; flex-direction: column; justify-content: center; }
.slide__content { max-width: 640px; color: #fff; }
.slide__eyebrow { display: inline-block; background: rgba(58,166,118,.95); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.slide__title { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.slide__text { color: rgba(255,255,255,.92); font-size: 1.15rem; margin-bottom: 28px; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.slider-dots { position: absolute; z-index: 3; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.slider-dots button.is-active { background: #fff; transform: scale(1.25); }
.slider-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.18); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.slider-arrow:hover { background: rgba(255,255,255,.32); }
.slider-arrow--prev { left: 18px; } .slider-arrow--next { right: 18px; }

/* ---------- Trust bar ---------- */
.trust { background: var(--almedica-primary); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 0; text-align: center; }
.trust__num { font-size: 2rem; font-weight: 800; }
.trust__label { font-size: .92rem; color: rgba(255,255,255,.82); }

/* ---------- Services grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--almedica-surface); border: 1px solid var(--almedica-border); border-radius: var(--almedica-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--almedica-shadow); }
.card__media { aspect-ratio: 16/10; background: #e9eef3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(58,166,118,.14); color: var(--almedica-accent-dark); display: grid; place-items: center; margin-bottom: 14px; }
.card__title { margin-bottom: 8px; }
.card__text { color: var(--almedica-muted); margin: 0; font-size: .98rem; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split__media img { border-radius: var(--almedica-radius); box-shadow: var(--almedica-shadow); }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--almedica-accent); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }

/* ---------- Forms ---------- */
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.form-card { background: var(--almedica-surface); border: 1px solid var(--almedica-border); border-radius: var(--almedica-radius); padding: 32px; box-shadow: var(--almedica-shadow); }
.form-card--accent { border-top: 5px solid var(--almedica-accent); }
.form-card--primary { border-top: 5px solid var(--almedica-primary); }
.form-card h3 { font-size: 1.5rem; }
.form-card p.form-card__sub { color: var(--almedica-muted); margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--almedica-border); border-radius: 10px;
  font: inherit; font-size: .98rem; background: #fff; color: var(--almedica-text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--almedica-primary); box-shadow: 0 0 0 3px rgba(21,98,156,.15); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .8rem; color: var(--almedica-muted); margin-top: 4px; }
.form-feedback { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.form-feedback--ok { background: rgba(58,166,118,.14); color: var(--almedica-accent-dark); }
.form-feedback--err { background: #fdecea; color: #b3261e; }

/* ---------- Contact info ---------- */
.contact-info { display: grid; gap: 18px; margin-top: 26px; }
.contact-info a { color: var(--almedica-text); text-decoration: none; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item__ic { flex: 0 0 42px; height: 42px; border-radius: 12px; background: rgba(21,98,156,.10); color: var(--almedica-primary); display: grid; place-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0e2740; color: rgba(255,255,255,.8); padding: 56px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 38px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ---------- Generic page content ---------- */
.page-hero { background: linear-gradient(120deg, var(--almedica-primary), var(--almedica-primary-dark)); color: #fff; padding: 70px 0; }
.page-hero h1 { color: #fff; }
.entry { max-width: 820px; margin: 0 auto; padding: 60px 22px; }
.entry img { border-radius: var(--almedica-radius); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split, .forms-grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--almedica-border); padding: 12px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .nav-toggle { display: block; }
  .header__phone { display: none; }
  .cards { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .slide__inner { min-height: 480px; padding: 90px 22px; }
}
