/* Elena Matei – Betreuung & Haushaltshilfe Linz
   Shared stylesheet for all pages / Gemeinsames Stylesheet für alle Seiten.

   Design reasons / Gestaltungs-Gründe (antislop R-31):
   - Cream background + serif headings: warm, letter-like, calm for older readers.
   - Sage green = her shirt in the photo; berry red = her glasses, used once as accent (H1 underline).
   - Identity motif: small squares (echo of her square glasses) as list bullets and heading rule.
   - System fonts only: no external font requests (GDPR) and very readable at 18px.
   - Radius: 10px buttons/inputs, 14px blocks, pill only for area chips (tags). */

:root {
  --bg: #fbf8f2;          /* warm cream / warmes Creme */
  --bg-soft: #f2ede3;
  --card: #ffffff;
  --ink: #2b2a27;         /* main text / Haupttext */
  --ink-soft: #57554f;
  --sage: #5f7f61;        /* sage green like her shirt / Salbeigrün wie ihr T-Shirt */
  --sage-dark: #3f5d43;
  --sage-light: #e4ece0;
  --berry: #b3263a;       /* accent like her glasses / Akzent wie ihre Brille */
  --line: #e3ddd1;
  --radius: 14px;
  --max: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;    /* 18px – easy to read for older visitors / gut lesbar für ältere Besucher */
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); }
a:hover { color: #2f4733; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); margin: 0 0 .8rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 .5rem; }

/* Visible keyboard focus everywhere / Gut sichtbarer Tastatur-Fokus */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sage-dark);
  outline-offset: 2px;
}
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; scroll-margin-top: 64px; }
section.soft { background: var(--bg-soft); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Identity motif: square marker under H2 / Motiv: kleines Quadrat unter H2 */
h2.rule::after { content: ""; display: block; width: 28px; height: 4px; background: var(--sage); margin-top: 12px; }

/* Header */
.site-header { background: rgba(251, 248, 242, .97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 1.25rem; display: block; }
.brand span { font-size: .85rem; color: var(--ink-soft); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-size: 1rem; padding: 10px 0; }
.nav a:hover { color: var(--sage-dark); text-decoration: underline; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; text-decoration: none; padding: 10px 16px; }
@media (max-width: 860px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 1.05rem; border: 2px solid transparent; font-family: var(--sans); }
.btn-primary { background: var(--sage-dark); color: #fff; }
.btn-primary:hover { background: #2f4733; color: #fff; }
.btn-primary:active { background: #253a29; }
.btn-ghost { border-color: var(--sage-dark); color: var(--sage-dark); background: transparent; }
.btn-ghost:hover { background: var(--sage-light); color: var(--sage-dark); }
.btn-ghost:active { background: #d4e0cf; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
/* The one accent: berry underline like her glasses / Der eine Akzent: rote Unterstreichung wie ihre Brille */
.mark { white-space: nowrap; text-decoration: underline; text-decoration-color: var(--berry); text-decoration-thickness: .12em; text-underline-offset: .14em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1.6rem; }
.hero figure { margin: 0; }
.hero figure img { border-radius: 20px; box-shadow: 0 14px 34px rgba(60, 50, 30, .14); } /* only elevated element: the person / einzig erhöhtes Element: die Person */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero figure { max-width: 420px; margin: 0 auto; order: -1; }
}

/* Square bullets (identity motif) / Quadratische Aufzählungszeichen (Motiv) */
.facts, .card ul, .terms { list-style: none; padding: 0; margin: 0; }
.facts li, .card li, .terms li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.facts li::before, .card li::before, .terms li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--sage); }
.facts { color: var(--ink-soft); }

/* Services: one wide main block, one narrower, then a text band / Ein breiter Block, ein schmaler, dann ein Textband */
.services { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.card-main h3 { font-size: 1.5rem; }
.two-col { columns: 2; column-gap: 28px; }
.two-col li { break-inside: avoid; }
.band { margin-top: 28px; padding: 6px 0 0 0; max-width: 72ch; }
.band h3 { font-size: 1.3rem; }
.note { background: var(--sage-light); border-radius: var(--radius); padding: 18px 22px; margin-top: 24px; max-width: 80ch; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .two-col { columns: 1; } }

/* About */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.about > *, .contact > *, .hero .wrap > * { min-width: 0; }  /* stop wide images from stretching columns / verhindert, dass Bilder Spalten aufblähen */
.timeline { list-style: none; padding: 0; margin: 1.2rem 0; border-left: 3px solid var(--sage-light); }
.timeline li { padding: 0 0 14px 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 9px; width: 13px; height: 13px; background: var(--sage); }
.timeline b { display: block; color: var(--sage-dark); }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.cert { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.cert img { border-radius: 6px; }
.cert figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.certs-note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .certs { max-width: 460px; } }

/* Prices */
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; max-width: 760px; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td.price { font-weight: 700; white-space: nowrap; color: var(--sage-dark); }
.price-table tr:last-child td { border-bottom: 0; }
.terms { margin-top: 18px; max-width: 760px; }
.small { font-size: .95rem; color: var(--ink-soft); }

/* Area */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1rem 0; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 1rem; }
.chips li.main { background: var(--sage-dark); color: #fff; border-color: var(--sage-dark); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px; margin-bottom: 10px; max-width: 820px; }
.faq summary { padding: 14px 0; }
.faq summary:hover h3 { color: var(--sage-dark); }
.faq summary h3 { display: inline; font-family: var(--sans); font-size: 1.1rem; }
.faq details p { margin: 0 0 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.big-phone { font-size: 1.7rem; font-weight: 700; font-family: var(--serif); text-decoration: none; color: var(--ink); display: inline-block; margin: .3rem 0 .4rem; }
form .field { margin-bottom: 14px; }
form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 1rem; }
form input, form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #b9b2a3; border-radius: 10px; background: #fff; color: var(--ink); }
form input::placeholder, form textarea::placeholder { color: #6e6a62; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -5000px; }   /* spam trap / Spam-Falle */
.form-status { margin-top: 12px; font-weight: 600; }
.form-status.ok { color: var(--sage-dark); }
.form-status.err { color: var(--berry); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } form .row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #2f3a30; color: #e9ede6; padding: 36px 0; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:focus-visible { outline-color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer address { font-style: normal; }

/* Legal pages / Rechtstexte */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }

/* Sticky call button on phones / Anruf-Knopf am Handy */
.call-fab { display: none; }
@media (max-width: 860px) {
  .call-fab { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 6; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
  body { padding-bottom: 80px; }
}
