/* =========================================================
   HeimWert NORD – Stylesheet
   ---------------------------------------------------------
   Mobile-first Aufbau: Basisstile gelten für Smartphones,
   ab den definierten Breakpoints folgen Anpassungen für
   Tablet und Desktop. Farben und Abstände liegen als
   CSS-Variablen oben, damit sie an einer Stelle austauschbar
   sind (z. B. sobald exakte Marken-Hexwerte vorliegen).
   ========================================================= */

/* ---------- 1. Design-Tokens ---------- */
:root {
  /* Farben – geschätzt aus der Bildvorlage, bei Bedarf anpassen */
  --color-navy: #1c3a4d;
  --color-navy-dark: #12293a;
  --color-sand: #c9a679;
  --color-sand-light: #f3ead9;
  --color-white: #ffffff;
  --color-off-white: #faf8f4;
  --color-text: #2b2b2b;
  --color-text-muted: #5a5a5a;
  --color-border: #e3ddd0;
  --color-success: #2f6b3a;
  --color-error: #9b2d2d;

  /* Typografie – bewusst reine Systemschriften, keine Web-Font-Ladezeit */
  --font-heading: -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Abstände */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --radius: 10px;
  --max-width: 1180px;
  --shadow-soft: 0 8px 24px rgba(28, 58, 77, 0.08);
}

/* ---------- 2. Reset & Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* damit Sprungmarken nicht unter dem Sticky-Header verschwinden */
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 1rem;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 var(--space-sm); color: var(--color-text); }
p.hero-sub, .section-intro { color: var(--color-text-muted); }

a { color: var(--color-navy); }

ul { padding-left: 1.2rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container.narrow { max-width: 760px; }

section { padding: var(--space-xl) 0; }

.section-title { text-align: center; margin-bottom: var(--space-md); }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto var(--space-lg); }

/* ---------- 3. Barrierefreiheit: Skip-Link & Fokus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-sand);
  outline-offset: 2px;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-navy-dark); box-shadow: var(--shadow-soft); }

.btn-secondary {
  background: var(--color-sand-light);
  color: var(--color-navy);
  border-color: var(--color-sand);
}
.btn-secondary:hover { background: var(--color-sand); }

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
  width: 100%;
  margin-top: var(--space-sm);
}
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }

.btn-full { width: 100%; }

.center-cta { text-align: center; margin-top: var(--space-lg); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-icon { flex-shrink: 0; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-navy);
  white-space: nowrap;
}
.logo-nord { color: var(--color-sand); font-weight: 700; }

.header-phone {
  display: none; /* erst ab Tablet sichtbar, siehe Media Query */
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile Navigation: Hamburger + ausklappbares Menü */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-navy);
  border-radius: 2px;
}

.main-nav {
  display: none;
  width: 100%;
  order: 3;
}
.main-nav.open { display: block; }
.main-nav ul {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.main-nav a {
  display: block;
  padding: 0.6rem 0.25rem;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 500;
  border-radius: 6px;
}
.main-nav a:hover { background: var(--color-sand-light); }
.main-nav a.nav-cta {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  margin-top: 0.5rem;
}

/* ---------- 6. Hero ---------- */
.hero { padding-top: var(--space-lg); background: var(--color-off-white); }
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-sand);
  margin-bottom: var(--space-xs);
}
.hero h1 { font-size: 2.1rem; }
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- 7. Problem/Nutzen ---------- */
.problem-nutzen { background: var(--color-white); text-align: center; }

/* ---------- 8. Drei Schritte ---------- */
.drei-schritte { background: var(--color-sand-light); }
.schritte-grid {
  display: grid;
  gap: var(--space-md);
}
.schritt-card {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.schritt-nummer {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-sand);
  margin-bottom: var(--space-xs);
}

/* ---------- 9. Warum-Liste ---------- */
.warum-liste {
  list-style: none;
  padding: 0;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.warum-liste li {
  position: relative;
  padding-left: 1.8rem;
}
.warum-liste li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-sand);
  font-weight: 700;
}

/* ---------- 10. Leistungen ---------- */
.leistungen { background: var(--color-off-white); }
.leistungen-grid {
  display: grid;
  gap: var(--space-md);
}
.leistung-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.leistung-card .preis {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
}
.leistung-card ul { margin: var(--space-sm) 0; padding-left: 1.2rem; }
.leistung-card .ergebnis {
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: auto;
}
.preis-hinweis {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 680px;
  margin: var(--space-lg) auto 0;
}

/* ---------- 11. Für Angehörige ---------- */
.angehoerige-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-lg);
  align-items: center;
}
.angehoerige-image img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---------- 12. Über uns ---------- */
.ueberuns { background: var(--color-off-white); }
.team-image { margin-top: var(--space-md); }
.team-image img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---------- 13. FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-navy);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--color-sand);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: var(--space-sm); color: var(--color-text-muted); }

/* ---------- 14. Kontakt ---------- */
.kontakt { background: var(--color-sand-light); }
.kontakt-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.kontakt-details {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.kontakt-details li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.kontakt-details a { text-decoration: none; font-weight: 600; }

.kontakt-form {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.form-row {
  display: grid;
  gap: var(--space-sm);
}
.form-group { margin-bottom: var(--space-sm); }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-navy);
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.checkbox-group input { margin-top: 0.3rem; }
.checkbox-group label { font-weight: 400; font-size: 0.9rem; }

/* Honeypot: für Menschen unsichtbar, aber für Screenreader technisch vorhanden versteckt */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  font-weight: 600;
  margin-top: var(--space-sm);
}
.form-status.success { color: var(--color-success); }
.form-status.error { color: var(--color-error); }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: var(--color-sand-light);
  margin-top: var(--space-xl);
}
.footer-inner {
  display: grid;
  gap: var(--space-lg);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}
.site-footer a { color: var(--color-white); }
.site-footer h3 {
  color: var(--color-sand);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}
.footer-brand .logo-text { color: var(--color-white); }
.footer-brand .logo-nord { color: var(--color-sand); }

.rechtliches {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  color: var(--color-sand-light);
}
.rechtliches h2, .rechtliches h3 { color: var(--color-white); }
.rechtliches-hinweis {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px dashed var(--color-sand);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* =========================================================
   16. Breakpoints – Tablet ab 640px
   ========================================================= */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-ctas { flex-direction: row; }
  .schritte-grid { grid-template-columns: repeat(3, 1fr); }
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   17. Breakpoints – Desktop ab 960px
   ========================================================= */
@media (min-width: 960px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }

  .header-phone { display: flex; }

  .nav-toggle { display: none; }
  .main-nav {
    display: block;
    width: auto;
    order: 2;
  }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
  .main-nav a { padding: 0.5rem 0.75rem; }

  .hero-inner {
    flex-direction: row;
    align-items: center;
  }
  .hero-text { flex: 1; }
  .hero-image { flex: 1; }

  .leistungen-grid { grid-template-columns: repeat(3, 1fr); }

  .angehoerige-inner {
    flex-direction: row;
    align-items: center;
  }
  .angehoerige-text, .angehoerige-image { flex: 1; }

  .kontakt-inner {
    flex-direction: row;
    align-items: flex-start;
  }
  .kontakt-info { flex: 1; position: sticky; top: 110px; }
  .kontakt-form { flex: 1.3; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* =========================================================
   18. Reduzierte Bewegung respektieren
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
