/* ============================================================
   Sarah Schaper — Senioren- und Alltagsbegleitung
   Shared brand stylesheet  ·  user:product
   Palette: Ivory / Cream / Espresso / Taupe / Sand
            Terracotta (accent) / Maroon (accent-2) / Gold (fine)
   Type: Georgia (display) · Inter (body)
   ============================================================ */

:root {
  --ivory: #fbf7f1;
  --cream: #f4ece1;
  --espresso: #2e2824;
  --taupe: #7d7169;
  --sand: #e2d7c8;
  --terracotta: #b6502f;
  --terracotta-dark: #7a2e2a; /* hover = maroon (brand) */
  --maroon: #7a2e2a;
  --gold: #c79a3a; /* sanctioned fine highlight per DESIGN.md posture */

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(46, 40, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(46, 40, 36, 0.10);
  --shadow-lg: 0 18px 48px rgba(46, 40, 36, 0.16);

  --maxw: 1140px;
  --gap: clamp(16px, 3vw, 32px);

  --font-display: Georgia, Cambria, "Times New Roman", serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--espresso);
  text-wrap: balance;
  margin: 0 0 0.5em;
  scroll-margin-top: 96px;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); }

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

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--cream { background: var(--cream); }
.section--maroon { background: var(--maroon); color: var(--ivory); }
.section--maroon h2, .section--maroon h3 { color: var(--ivory); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 0.6rem;
}
.eyebrow--gold { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--taupe); max-width: 62ch; }
.section--maroon .lead { color: rgba(251, 247, 241, 0.82); }
.rule { width: 56px; height: 3px; background: var(--terracotta); border: 0; border-radius: 3px; margin: 0 0 1.5rem; }
.section--maroon .rule { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  text-decoration: none; line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--sand); }
.btn-ghost:hover { background: var(--cream); color: var(--espresso); }
.btn-on-maroon { background: var(--gold); color: var(--maroon); }
.btn-on-maroon:hover { background: var(--gold); color: var(--maroon); filter: brightness(0.94); }
.btn-light { background: var(--ivory); color: var(--maroon); }
.btn-light:hover { background: #fff; color: var(--maroon); }

/* ---------- WhatsApp chip ---------- */
.wa-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--ivory); border: 1px solid var(--terracotta);
  color: var(--espresso); border-radius: 999px;
  padding: 0.5rem 0.95rem; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  line-height: 1.1; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.wa-chip:hover { background: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--espresso); }
.wa-chip:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.wa-chip svg { width: 22px; height: 22px; flex: none; fill: var(--terracotta); }
.wa-chip strong { font-weight: 700; letter-spacing: 0.01em; }
.wa-chip .wa-chip__txt { display: flex; flex-direction: column; line-height: 1.15; }
.wa-chip .wa-chip__hint { display: block; font-size: 0.72rem; font-weight: 600; color: var(--terracotta); letter-spacing: 0.02em; }
/* the chip stays visible on mobile even when the nav CTA button hides */
@media (max-width: 880px) { .nav-cta .wa-chip { order: 2; } }
@media (max-width: 520px) {
  .wa-chip .wa-chip__hint { display: none; }
  .wa-chip { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-stuck { border-color: var(--sand); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--maroon); }
.brand-text span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--espresso); font-weight: 500; font-size: 0.96rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--terracotta); transition: right .2s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--sand); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--espresso); position: relative; transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--sand);
    padding: 1.25rem clamp(20px, 5vw, 40px) 1.75rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open a { font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--maroon); }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top; opacity: 0; transform: scale(1.06);
  animation: heroFade 21s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 7s; }
.hero-slide:nth-child(3) { animation-delay: 14s; }
@keyframes heroFade {
  0%, 4% { opacity: 0; transform: scale(1.06); }
  10%, 30% { opacity: 1; transform: scale(1.12); }
  37%, 100% { opacity: 0; transform: scale(1.18); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(46,40,36,0.82) 0%, rgba(122,46,42,0.55) 45%, rgba(46,40,36,0.25) 100%);
}
.hero-inner { color: var(--ivory); max-width: 760px; padding-block: 120px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero .lead { color: rgba(251,247,241,0.9); font-size: clamp(1.1rem, 2vw, 1.4rem); }
.hero-signature { font-family: var(--font-script); color: var(--gold); font-size: 2rem; margin: 0.5rem 0 1.75rem; line-height: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(251,247,241,0.7); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: rgba(251,247,241,0.5); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream); border: 1px solid var(--sand);
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.section--cream .card { background: var(--ivory); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--taupe); margin: 0; font-size: 0.97rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.portrait { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--sand); box-shadow: var(--shadow-md); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.pullquote {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.35; color: var(--maroon); border-left: 3px solid var(--terracotta);
  padding-left: 1.25rem; margin: 1.5rem 0; font-style: italic;
}

/* ---------- Values block (Was mir wichtig ist) ---------- */
.values-block {
  background: var(--ivory);
  border: 1px solid var(--sand);
  border-left: 3px solid var(--terracotta);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}
.section--cream .values-block { background: var(--ivory); }
.values-block h3 { margin-bottom: 0.6rem; }

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ivory); border: 1px solid var(--sand);
  color: var(--espresso); border-radius: 999px;
  padding: 0.6rem 1.1rem; font-weight: 500; font-size: 0.95rem;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Stat / callout ---------- */
.stat { text-align: left; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--terracotta); line-height: 1; }
.section--maroon .stat .num { color: var(--gold); }
.stat .label { color: var(--taupe); font-size: 0.95rem; margin-top: 0.5rem; }
.section--maroon .stat .label { color: rgba(251,247,241,0.82); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--sand); box-shadow: var(--shadow-md); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.g-wide { grid-column: span 7; }
.g-tall { grid-column: span 5; }
@media (max-width: 880px) { .g-wide, .g-tall { grid-column: span 12; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--espresso); }
.field .hint { font-size: 0.82rem; color: var(--taupe); }
.input, .textarea, select {
  font-family: var(--font-body); font-size: 1rem; color: var(--espresso);
  background: var(--ivory); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 0.8rem 0.95rem; width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .textarea:focus, select:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(182,80,47,0.15); outline: none; }
.textarea { min-height: 130px; resize: vertical; }
.field--error .input, .field--error .textarea { border-color: var(--terracotta); }
.error-msg { color: var(--terracotta); font-size: 0.84rem; font-weight: 600; min-height: 1em; }

.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; color: var(--taupe); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--terracotta); flex: none; }
.check a { font-weight: 600; }

.form-note { font-size: 0.86rem; color: var(--taupe); }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: var(--ivory); color: var(--maroon); border: 1px solid var(--sand); }
.form-status.err { background: var(--cream); color: var(--terracotta); border: 1px solid var(--sand); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: 0.8rem; max-width: 820px; }
.acc-item { background: var(--ivory); border: 1px solid var(--sand); border-radius: var(--radius-lg); overflow: hidden; }
.acc-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; font-size: 1.5rem; color: var(--terracotta); font-weight: 400; transition: transform .2s ease; }
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 1.3rem 1.3rem; color: var(--taupe); }

/* ---------- Read more / Weiter lesen ---------- */
.readmore__toggle { margin-top: 1rem; }
.readmore__more[hidden] { display: none; }
.card-list { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.card-list li { position: relative; padding-left: 1.15rem; color: var(--taupe); font-size: 0.95rem; line-height: 1.5; }
.card-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }
.link-toggle {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.9rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--terracotta);
}
.link-toggle::after { content: "›"; font-size: 1.2rem; line-height: 1; transition: transform .2s ease; }
.link-toggle[aria-expanded="true"]::after { transform: rotate(90deg); }
.link-toggle:hover { color: var(--terracotta-dark); }
.recogn-note { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1.5rem; color: var(--ivory); font-weight: 500; }
.recogn-badge { background: var(--gold); color: var(--maroon); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; padding: 0.3rem 0.7rem; border-radius: 999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon); color: rgba(251,247,241,0.85); padding: clamp(48px, 7vw, 80px) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(251,247,241,0.9); }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 1rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(251,247,241,0.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem; color: rgba(251,247,241,0.65); }

/* WhatsApp chip on the dark maroon footer uses gold (sanctioned highlight) */
.footer-contact { margin-top: 1.25rem; }
.footer-contact .wa-chip { background: rgba(251,247,241,0.08); border-color: var(--gold); color: #fff; }
.footer-contact .wa-chip:hover { background: rgba(251,247,241,0.16); color: #fff; }
.footer-contact .wa-chip svg { fill: var(--gold); }
.footer-contact .wa-chip .wa-chip__hint { color: var(--gold); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(940px, calc(100% - 32px)); z-index: 80;
  background: var(--ivory); border: 1px solid var(--sand); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.25rem 1.4rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 0.92rem; color: var(--taupe); max-width: 60ch; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie a { font-weight: 600; }

/* ---------- Legal page header ---------- */
.legal-hero { background: var(--cream); border-bottom: 1px solid var(--sand); }
.legal-hero .nav { height: 72px; }
.legal-body { max-width: 820px; }
.legal-body section { margin-bottom: 2.4rem; }
.legal-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.placeholder {
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 12px, var(--ivory) 12px, var(--ivory) 24px);
  border: 1px dashed var(--terracotta); border-radius: var(--radius);
  padding: 0.85rem 1rem; color: var(--maroon); font-size: 0.9rem; font-weight: 600;
}
.placeholder code { background: rgba(122,46,42,0.08); padding: 0.1rem 0.35rem; border-radius: 4px; }

/* skip link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--maroon); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }
