/* Sebastian Cario — Unternehmensnachfolge
   Plain CSS, no framework, no external requests. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Lato';
  src: url('fonts/lato-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('fonts/lato-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('fonts/lora-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1c1f1d;
  --ink-soft: #4a524d;
  --paper: #fbfaf7;
  --paper-alt: #f2efe8;
  --line: #ddd8cd;
  --accent: #2f5d4f;
  --accent-dark: #24483e;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --measure: 46rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.85rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); margin-top: 0; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

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

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.35rem; }
.narrow { max-width: var(--measure); }

section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.band { background: var(--paper-alt); }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 10; background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 3px;
}

/* ---------- Header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.site-head nav { display: flex; gap: 1.35rem; flex-wrap: wrap; }
.site-head nav a {
  font-size: 0.95rem; color: var(--ink-soft); text-decoration: none;
}
.site-head nav a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.25rem, 5vw, 3.75rem); }
.hero-grid {
  display: flex; gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: flex-start; flex-wrap: wrap;
}
.hero-text { flex: 1 1 22rem; min-width: 0; max-width: var(--measure); }
.hero-figure { flex: 0 0 auto; margin: 0; width: 340px; max-width: 100%; }
.hero-figure img {
  display: block; width: 100%; height: auto; border-radius: 4px;
  border: 1px solid var(--line);
}
.hero-figure figcaption {
  margin-top: 0.55rem; font-size: 0.85rem; color: var(--ink-soft);
}

.kicker {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 0.9rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.lead:first-of-type { color: var(--ink); }

.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 0.7rem 1.35rem; border-radius: 3px; text-decoration: none;
  font-weight: 700; font-size: 0.975rem; border: 1px solid var(--accent);
  cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Promise list ---------- */
.promise { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.6rem; }
.promise > li { border-left: 3px solid var(--accent); padding-left: 1.1rem; }
.promise h3 { margin-bottom: 0.3em; }
.promise p { margin: 0; color: var(--ink-soft); }

/* ---------- Suchprofil ---------- */
.profile { margin: 2rem 0 1.5rem; display: grid; gap: 0; }
.profile > div {
  display: flex; gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 0; border-top: 1px solid var(--line);
}
.profile > div:last-child { border-bottom: 1px solid var(--line); }
.profile dt { flex: 0 0 9rem; font-weight: 700; }
.profile dd { flex: 1 1 16rem; margin: 0; color: var(--ink-soft); }

.note { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps { margin: 2rem 0 0; padding: 0 0 0 1.1rem; display: grid; gap: 1.5rem; }
.steps > li { padding-left: 0.5rem; }
.steps > li::marker { color: var(--accent); font-family: var(--serif); font-weight: 600; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
details {
  border-top: 1px solid var(--line); padding: 1rem 0;
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem;
  list-style-position: outside;
}
summary:hover { color: var(--accent-dark); }
details p { margin: 0.85rem 0 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-cards {
  display: grid; gap: 1rem; margin: 1.75rem 0 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.card {
  border: 1px solid var(--line); border-radius: 4px; padding: 1.1rem 1.2rem;
  background: var(--paper);
}
.card h3 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 0.5em;
}
.card p { margin: 0; }
.card a { font-weight: 700; }

.form-head { margin-top: 2rem; }
.consent {
  border: 1px solid var(--line); border-radius: 4px; padding: 1.35rem;
  background: var(--paper-alt);
}
.consent p:first-child { margin-top: 0; }
.consent .note { margin: 1rem 0 0; }
#form-slot iframe { display: block; width: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line); padding: 1.75rem 0;
  font-size: 0.92rem; color: var(--ink-soft);
}
.foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.foot-inner p { margin: 0; }
.site-foot nav { display: flex; gap: 1.25rem; }

/* ---------- Legal pages ---------- */
.legal h2 { margin-top: 2.5rem; }
.legal h3 { margin-top: 1.75rem; }
.legal address { font-style: normal; margin-bottom: 1.15em; }
.legal ul { padding-left: 1.25rem; color: var(--ink-soft); }
.legal li { margin-bottom: 0.4em; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  .hero-grid { flex-direction: column-reverse; }
  .hero-figure { width: 240px; }
  .profile dt { flex-basis: 100%; }
}
