/* ajredini.ch – private Familienseite. Farben und Schriften als Variablen,
   damit das gemeinsame Design-System später leicht übernommen werden kann. */
:root {
  --c-bg: #f5f6f4;
  --c-surface: #ffffff;
  --c-text: #1f2522;
  --c-text-2: #4f5b56;   /* Nebentext laut Gesamtkonzept, 7.1:1 auf Weiss */
  --c-muted: #5f6a65;
  --c-line: rgba(31, 37, 34, 0.12);
  --c-accent: #4f5b56;
  --c-focus: #1f5f8b;

  --f-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px;
  --w-text: 36rem;
  --w-page: 64rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #161a18;
    --c-surface: #1d2220;
    --c-text: #e7ebe8;
    --c-text-2: #a4ada8;
    --c-muted: #a4ada8;
    --c-line: rgba(231, 235, 232, 0.14);
    --c-accent: #a4ada8;
    --c-focus: #8cc3ea;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 1.0625rem/1.6 var(--f-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; display: inline-flex; align-items: center; min-height: 44px; }
.skip:focus { left: var(--s-4); top: var(--s-4); background: var(--c-surface); padding: var(--s-2) var(--s-4); z-index: 10; }

.wrap { width: 100%; max-width: var(--w-page); margin: 0 auto; padding: 0 var(--s-6); }

/* Kopf */
.top { border-top: 4px solid var(--c-accent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.mark { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; min-height: 44px; font-family: var(--f-display); font-size: 1.125rem; }
.mark svg { width: 28px; height: 28px; flex: none; }

/* Hauptteil */
main { flex: 1; }
.hero { padding: var(--s-16) 0 var(--s-12); }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-6);
}
.hero .ort { color: var(--c-text-2); margin: 0 0 var(--s-8); font-size: 1rem; }
.hero .ort::before { content: ""; display: inline-block; width: 32px; height: 1px; background: currentColor; vertical-align: middle; margin-right: var(--s-3); }
.lead { max-width: var(--w-text); font-size: 1.1875rem; margin: 0 0 var(--s-4); }
.lead + p { max-width: var(--w-text); color: var(--c-text-2); margin: 0; }

.kontakt { border-top: 1px solid var(--c-line); padding: var(--s-12) 0 var(--s-16); }
.kontakt h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; margin: 0 0 var(--s-3); }
.kontakt p { max-width: var(--w-text); margin: 0 0 var(--s-6); color: var(--c-text-2); }
.mail {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: var(--s-3) var(--s-6);
  border: 1px solid var(--c-text); border-radius: 999px;
  text-decoration: none; font-size: 1.0625rem;
  overflow-wrap: anywhere;
}
.mail:hover { background: var(--c-text); color: var(--c-bg); }

/* Textseiten */
.text { padding: var(--s-12) 0 var(--s-16); }
.text h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 var(--s-8); }
.text h2 { font-size: 1.125rem; font-weight: 600; margin: var(--s-8) 0 var(--s-2); }
.text p, .text ul { max-width: var(--w-text); margin: 0 0 var(--s-4); }
.text ul { padding-left: 1.25rem; }
.crumb { font-size: 0.9375rem; color: var(--c-text-2); margin: 0 0 var(--s-6); }
.crumb a { display: inline-block; min-height: 44px; line-height: 44px; }

/* Fuss */
.foot { border-top: 1px solid var(--c-line); font-size: 0.9375rem; color: var(--c-text-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); justify-content: space-between; align-items: center; padding-top: var(--s-6); padding-bottom: var(--s-6); }
.foot nav { display: flex; gap: var(--s-6); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot p { margin: 0; }

@media (min-width: 48rem) {
  .hero { padding: var(--s-24) 0 var(--s-16); }
}
