/* ==========================================================================
   MobiHelp Pflegedienst — Stylesheet
   Design: warm & vertrauensvoll (Petrol/Teal + Creme/Sand + Terrakotta)
   ========================================================================== */

:root {
  --teal: #0e6b66;
  --teal-dark: #0a4f4b;
  --teal-deeper: #063a37;
  --teal-soft: #e3f0ee;
  --ink: #1e3532;
  --muted: #52645f;
  --cream: #faf6ef;
  --sand: #f1e8da;
  --white: #ffffff;
  --accent: #e07a5f;
  --accent-dark: #c05f45;
  --green: #6ba32f;
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 26px;
  --shadow: 0 10px 30px rgba(10, 79, 75, 0.10);
  --shadow-soft: 0 4px 14px rgba(10, 79, 75, 0.07);
  --container: 1180px;
  --font: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset & Basics ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--teal-deeper);
  font-weight: 800;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal-dark); }
.section--teal h2, .section--teal p { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section--teal .eyebrow { color: #f4b8a5; }

.lead { font-size: 1.2rem; color: var(--muted); }
.section--teal .lead { color: #cfe4e1; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }

.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: var(--white); }

.btn--light { background: var(--white); color: var(--teal-dark); }
.btn--light:hover { background: var(--cream); color: var(--teal-deeper); }

.btn svg { flex-shrink: 0; }

/* ---------- Topbar ---------- */

.topbar {
  background: var(--teal-deeper);
  color: #d7e8e5;
  font-size: 0.9rem;
  padding-block: 8px;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  justify-content: center;
}

.topbar a { color: var(--white); font-weight: 700; }
.topbar a:hover { color: #f4b8a5; }

.topbar span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand img { height: 52px; width: auto; }

.brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--teal-deeper);
  line-height: 1.05;
}

.brand-name small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav ul { display: flex; gap: 6px; }

.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
}

.main-nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.main-nav a[aria-current="page"] { background: var(--teal); color: var(--white); }

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 52px;
  height: 52px;
  padding: 12px;
  background: var(--teal-soft);
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--teal-dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--cream) 55%, var(--sand) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 110px);
}

.hero-text h1 span { color: var(--teal); }

.hero-text .lead { margin-block: 20px 32px; max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--teal-dark);
}

.hero-note img { height: 56px; width: auto; }

.hero-media { position: relative; }

.hero-media::before {
  content: "";
  position: absolute;
  inset: -8% -6% auto auto;
  width: 82%;
  aspect-ratio: 1;
  background: var(--teal-soft);
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  z-index: 0;
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  z-index: 2;
  left: -14px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 20px;
  font-weight: 800;
  color: var(--teal-deeper);
  line-height: 1.3;
}

.hero-badge strong { font-size: 1.5rem; color: var(--accent); }

.hero-badge small { display: block; font-weight: 700; color: var(--muted); font-size: 0.85rem; }

/* ---------- Trust bar ---------- */

.trustbar { background: var(--teal-dark); }

.trustbar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 34px;
}

.trust-item { display: flex; align-items: center; gap: 14px; color: var(--white); }

.trust-item .icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.trust-item strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.trust-item small { color: #b9d6d2; font-size: 0.88rem; line-height: 1.3; display: block; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.section--white .card { background: var(--cream); }

.card .icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: var(--radius);
}

.card h3 { color: var(--teal-deeper); }
.card p { color: var(--muted); font-size: 1.02rem; }

.card .card-link {
  margin-top: auto;
  font-weight: 800;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card .card-link:hover { color: var(--accent-dark); }

/* ---------- Split sections (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split--reverse .split-media { order: 2; }

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}

.split-text h2 { margin-bottom: 18px; }
.split-text .eyebrow { margin-bottom: 8px; }

/* ---------- Check list ---------- */

.check-list { display: grid; gap: 14px; margin-block: 22px; }

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 700;
  color: var(--ink);
}

.check-list li svg { flex-shrink: 0; margin-top: 5px; color: var(--teal); }

.check-list li small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Region / chips ---------- */

.chip-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.chip {
  background: var(--white);
  border: 2px solid var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 800;
  font-size: 0.98rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius-l);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  color: var(--white);
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: #cfe4e1; }

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  padding-block: clamp(48px, 7vw, 80px);
}

.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: #cfe4e1; max-width: 40em; font-size: 1.15rem; }

.breadcrumb { font-size: 0.9rem; font-weight: 700; color: #9fc6c1; margin-bottom: 18px; }
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { color: #f4b8a5; }

/* ---------- Leistungen detail ---------- */

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-nav a {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.service-nav a:hover { background: rgba(255, 255, 255, 0.28); color: var(--white); }

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 64px);
}

.service + .service { border-top: 2px solid var(--sand); }

.service:nth-child(even) .service-media { order: 2; }

.service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}

.service-media--placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  color: var(--teal);
}

.service h2 { margin-bottom: 14px; }
.service .note {
  background: var(--sand);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-top: 18px;
}

/* ---------- Jobs ---------- */

.job-card {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 18px;
}

.job-card + .job-card { margin-top: 32px; }

.job-meta { display: flex; flex-wrap: wrap; gap: 10px; }

.job-meta span {
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 6px 16px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
}

.benefit .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: var(--radius-s);
}

.benefit strong { display: block; color: var(--teal-deeper); }
.benefit small { color: var(--muted); font-size: 0.95rem; line-height: 1.4; display: block; }

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.contact-card h3 { display: flex; align-items: center; gap: 12px; }
.contact-card h3 svg { color: var(--accent); }
.contact-card a { font-weight: 800; }
.contact-card p { color: var(--muted); font-size: 1rem; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 20px;
}

.form-field { display: grid; gap: 8px; }

.form-field label { font-weight: 800; color: var(--teal-deeper); font-size: 1rem; }

.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size: 1.05rem;
  padding: 14px 18px;
  border: 2px solid var(--sand);
  border-radius: var(--radius-s);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-hint { font-size: 0.9rem; color: var(--muted); }

/* ---------- Legal pages ---------- */

.legal { max-width: 800px; }
.legal h2 { margin-top: 40px; margin-bottom: 12px; font-size: 1.5rem; }
.legal .placeholder {
  background: #fdf1d7;
  border: 2px dashed #e5b95c;
  border-radius: var(--radius-s);
  padding: 18px 22px;
  color: #7a5b16;
  font-weight: 700;
  margin-block: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-deeper);
  color: #b9d6d2;
  padding-top: clamp(48px, 6vw, 72px);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }

.site-footer a { color: #d7e8e5; }
.site-footer a:hover { color: #f4b8a5; }

.footer-brand img { height: 54px; margin-bottom: 16px; background: var(--white); border-radius: 12px; padding: 6px; }

.footer-list { display: grid; gap: 10px; }

.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list svg { flex-shrink: 0; margin-top: 5px; color: #f4b8a5; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 0.92rem;
}

.footer-bottom ul { display: flex; gap: 24px; }

/* ---------- Utility ---------- */

.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 800;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--white); }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .trustbar .container { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 90px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
    padding: 16px 24px 24px;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px 18px; font-size: 1.1rem; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }

  .split, .service, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .split--reverse .split-media, .service:nth-child(even) .service-media { order: 0; }
  .cta-band .actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 1.05rem; }

  .topbar .container { gap: 4px 18px; font-size: 0.85rem; }
  .topbar .topbar-hours { display: none; }

  .brand img { height: 44px; }
  .brand-name { font-size: 1.2rem; }

  .card-grid, .trustbar .container, .benefit-grid, .form-row, .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge { left: 8px; bottom: 12px; padding: 10px 16px; }

  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn, .cta-band .btn { width: auto; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
