/* Vorläufige Website · Ferstl & Singerer Kanzleisysteme
   Eigenständig: keine externen Ressourcen, keine Cookies, kein Tracking, kein JavaScript.
   Farben und Schrift stammen aus site/styles.css (Petrol, Manrope, Pillen-Button). */

/* Manrope liegt lokal unter /fonts (Zeichensatz "latin", deckt Deutsch ab). Kein Abruf bei Google. */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --petrol: #0b4f55;
  --petrol-600: #0e5f66;
  --petrol-deep: #07343a;
  --ink: #0e1c1f;
  --body: #33464a;
  --muted: #5a6b6e;
  --tone: #7a8c8e;
  --line: #e2e9e6;
  --surface: #f5f8f3;
  --mint: #dcebe9;
  --white: #ffffff;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-family: var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }

/* ---------- Kopf ---------- */
.top { flex: none; width: 100%; max-width: 1200px; height: 72px; margin-inline: auto; padding-inline: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 800 19px/1 var(--font); letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 9px 16px; background: var(--petrol); color: var(--white); font: 600 14px/20px var(--font); text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s; }
.btn:hover { transform: translateY(-1px); background: var(--petrol-600); }
.btn:active { transform: scale(.98); }

/* ---------- Startseite: eine Bildschirmhöhe, kein Scrollen ---------- */
.home { height: 100vh; height: 100dvh; overflow: hidden; }
.hero { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; justify-content: safe center; padding: 0 24px clamp(8px, 3vh, 40px); text-align: center; }

.hero__title { margin: 0; font: 800 clamp(30px, min(5.6vw, 11vh), 80px)/1 var(--font); letter-spacing: -.048em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .09em; }
.hero__title .line > span { display: inline-block; text-wrap: balance; animation: up 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.tone { color: var(--tone); }

/* Kontaktkarten. Grundform ist kompakt: Foto, Name, drei runde Schaltflächen.
   Auf großen Bildschirmen klappt sie zur vollen Karte mit ausgeschriebenen Kontaktzeilen auf (siehe unten). */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; margin-top: clamp(22px, 6vh, 64px); animation: rise .9s var(--ease) .45s both; }
.card { flex: 0 1 356px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(7, 52, 58, .04), 0 20px 44px -26px rgba(7, 52, 58, .3); text-align: left; }
.card__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card__who > div { min-width: 0; }
.card__photo { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--mint); }
.card__photo--initials { display: grid; place-items: center; color: var(--petrol); font: 800 16px/1 var(--font); letter-spacing: -.02em; }
.card__name { margin: 0; overflow: hidden; font: 700 16px/1.3 var(--font); letter-spacing: -.015em; white-space: nowrap; text-overflow: ellipsis; }
.card__role { margin: 1px 0 0; font: 500 12.5px/1.4 var(--font); color: var(--muted); }
.card__links { flex: none; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.card__links a { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--petrol); text-decoration: none; transition: background-color .2s, color .2s; }
.card__links a:hover { background: var(--petrol); color: var(--white); }
.ico { display: grid; place-items: center; width: 18px; height: 18px; }
.ico svg { width: 18px; height: 18px; }
.ico--in { font: 800 15px/1 var(--font); letter-spacing: -.04em; }
.lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ext { display: none; }

/* ---------- Fuß: bewusst leise ---------- */
.foot { flex: none; padding: 14px 24px 18px; }
.foot nav { display: flex; justify-content: center; gap: 20px; }
.foot nav a { font: 500 12px/1.4 var(--font); color: var(--tone); text-decoration: none; transition: color .2s; }
.foot nav a:hover, .foot nav a[aria-current] { color: var(--ink); }

/* ---------- Rechtstexte ---------- */
.legal { flex: 1; width: 100%; max-width: 768px; margin-inline: auto; padding: clamp(36px, 6vw, 80px) 24px clamp(64px, 9vw, 120px); }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; font: 600 14px/1 var(--font); color: var(--muted); text-decoration: none; transition: color .2s; }
.back svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.back:hover { color: var(--ink); }
.back:hover svg { transform: translateX(-3px); }
.eyebrow { margin: 0 0 14px; font: 700 13px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--petrol); }
.legal h1 { margin: 0; font: 800 clamp(36px, 5vw, 58px)/1.04 var(--font); letter-spacing: -.042em; }
.legal .lead { margin: 18px 0 0; font: 400 clamp(17px, 1.4vw, 20px)/1.55 var(--font); color: var(--muted); text-wrap: pretty; }
.legal h2 { margin: 52px 0 12px; font: 700 22px/1.3 var(--font); letter-spacing: -.02em; }
.legal p, .legal li { font: 400 17px/1.65 var(--font); color: var(--body); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal li::marker { color: var(--petrol); }
.legal a { color: var(--petrol); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal address { font-style: normal; }
.legal > address { margin: 0 0 14px; font: 400 17px/1.65 var(--font); color: var(--body); }

.facts { margin: 36px 0 0; padding: 8px 26px; border-radius: 24px; background: var(--surface); }
.facts > div { display: grid; grid-template-columns: 190px 1fr; gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font: 500 15px/1.6 var(--font); color: var(--muted); }
.facts dd { margin: 0; font: 600 16px/1.6 var(--font); color: var(--ink); }

/* Offene Angabe, vor dem Livegang ersetzen */
.todo { padding: 2px 7px; border-radius: 6px; background: #fff3c4; box-shadow: inset 0 0 0 1px #e9c64a; color: #5b4300; font-weight: 600; }

/* ---------- Keyframes ---------- */
@keyframes up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Responsiv ---------- */
@media (max-width: 640px) {
  .top { height: 64px; padding-inline: 20px; }
  .hero { padding-inline: 20px; }
  .hero__title { font-size: clamp(26px, min(9vw, 6.4vh), 46px); line-height: 1.04; }
  .facts { padding-inline: 20px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
}
@media (max-width: 400px) {
  .top { padding-inline: 16px; gap: 8px; }
  .brand { gap: 9px; font-size: 17px; }
  .brand img { width: 30px; height: 30px; }
  .btn { padding: 8px 13px; font-size: 13px; }
  .hero { padding-inline: 16px; }
  .card { gap: 8px; padding: 10px; }
  .card__who { gap: 10px; }
  .card__photo { width: 40px; height: 40px; }
  .card__name { font-size: 15px; }
  .card__links { gap: 4px; }
  .card__links a { width: 36px; height: 36px; }
}
@media (max-width: 360px) {
  .brand { gap: 8px; font-size: 15.5px; }
  .brand img { width: 28px; height: 28px; }
  .btn { padding: 8px 11px; font-size: 12.5px; }
}

/* Volle Karte: genug Breite für zwei nebeneinander und genug Höhe, damit nichts scrollt */
@media (min-width: 760px) and (min-height: 621px) {
  .cards { gap: 20px; }
  .card { flex-basis: 328px; display: block; padding: 22px 22px 8px; border-radius: 28px; }
  .card__who { gap: 14px; padding-bottom: 18px; }
  .card__photo { width: 64px; height: 64px; }
  .card__photo--initials { font-size: 21px; }
  .card__name { font-size: 19px; }
  .card__role { font-size: 13.5px; }
  .card__links { display: block; }
  .card__links li { border-top: 1px solid var(--line); }
  .card__links a { width: auto; height: auto; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-radius: 0; background: none; color: var(--ink); font: 600 15px/1.4 var(--font); font-variant-numeric: tabular-nums; }
  .card__links a:hover { background: none; color: var(--petrol); }
  .ico { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--petrol); transition: background-color .2s, color .2s; }
  .ico svg { width: 16px; height: 16px; }
  .ico--in { font-size: 14px; }
  .card__links a:hover .ico { background: var(--petrol); color: var(--white); }
  .lbl { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .ext { display: block; width: 15px; height: 15px; margin-left: auto; color: var(--tone); }
}

/* Sehr flache Fenster: lieber scrollen als abschneiden */
@media (max-height: 340px), (max-width: 763px) and (max-height: 430px) {
  .home { height: auto; overflow: visible; }
  .hero { padding-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title .line > span, .cards { animation: none; }
  .btn, .back svg, .card__links a, .ico { transition: none; }
}
