/* sv-reich.de – Thomas Reich, PV-Sachverständiger
   Gestaltung wie die eigenen Werkzeuge: Inter, Schiefer #1E293B, Sonnen-Amber #E8A317,
   dezentes PV-Zellenraster. Keine externen Schriften oder Skripte (Datenschutz). */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #1e293b;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --slate: #1e293b;
  --slate-2: #334155;
  --sun: #e8a317;
  --sun-dark: #c98a0c;
  --sun-soft: #fdf4e1;
  --sun-ink: #7a5200;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30,41,59,.04), 0 8px 24px rgba(30,41,59,.07);
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--sun); color: var(--slate); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

/* ---------- Kopfzeile ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(30,41,59,.97); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; min-width: 0; }
.brand img { width: 42px; height: 42px; flex: 0 0 auto; }
.brand b { display: block; font-size: 1.02rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand small { display: block; font-size: .76rem; color: #cbd5e1; letter-spacing: .02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: #e2e8f0; font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.cta { background: var(--sun); color: var(--slate); font-weight: 600; margin-left: 8px; }
.nav a.cta:hover { background: #f0b23a; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px;
  width: 44px; height: 40px; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor;
  margin: 0 auto; position: relative; transition: transform .2s; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--slate); flex-direction: column;
    align-items: stretch; padding: 8px 16px 16px; gap: 2px; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 24px rgba(0,0,0,.2); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 380px) { .brand small { display: none; } }

/* ---------- Kopfbereich (Hero) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(140deg, var(--slate-2), var(--slate) 60%); padding: 76px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 85%); mask-image: linear-gradient(105deg, transparent 30%, #000 85%); }
.hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 620px; height: 620px; right: -160px; top: -260px;
  background: radial-gradient(closest-side, rgba(232,163,23,.42), rgba(232,163,23,0)); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  color: var(--sun); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sun); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: 1.15rem; color: #cbd5e1; max-width: 36rem; margin-bottom: 30px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 10px; border: 2px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
.btn-sun { background: var(--sun); color: var(--slate); }
.btn-sun:hover { background: #f0b23a; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-dark { background: var(--slate); color: #fff; }
.btn-dark:hover { background: var(--slate-2); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--ink-2); }

.badge-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(2px); }
.badge-card .seal { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.badge-card .seal img { width: 64px; height: 64px; }
.badge-card .seal b { display: block; font-size: 1.02rem; line-height: 1.3; }
.badge-card .seal small { color: #cbd5e1; font-size: .85rem; }
.badge-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9rem; }
.badge-card dt { color: #94a3b8; }
.badge-card dd { margin: 0; color: #f1f5f9; font-weight: 500; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #cbd5e1; font-size: .93rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%231E293B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

@media (max-width: 900px) {
  .hero { padding: 52px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { max-width: none; }
}

/* ---------- Abschnitte ---------- */
section { padding: 84px 0; scroll-margin-top: 68px; }
.section-head { max-width: 44rem; margin-bottom: 40px; }
.section-head .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-ink); margin-bottom: 10px; display: block; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { section { padding: 60px 0; } .section-head { margin-bottom: 28px; } }

.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
  position: relative; overflow: hidden; }
.alt .card { background: var(--bg); box-shadow: none; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--sun), var(--sun-dark)); opacity: .9; }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.card ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: .95rem; }
.card ul li { margin: 3px 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); margin-bottom: 16px; }
.icon svg { width: 25px; height: 25px; }

/* Zielgruppen */
.who .card h3 { font-size: 1.15rem; }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--slate); color: var(--sun); font-weight: 700; margin-bottom: 14px; }
.steps li p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Über mich */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.portrait { border-radius: var(--radius); overflow: hidden; background: var(--slate); aspect-ratio: 4 / 5; position: relative; box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; flex: 0 0 auto;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%231E293B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } .portrait { max-width: 320px; } }

/* Anerkennung */
.cert { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--slate); color: #fff;
  border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; isolation: isolate; }
.cert::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.cert img { width: 96px; height: 96px; }
.cert h3 { font-size: 1.25rem; margin-bottom: 6px; }
.cert p { color: #cbd5e1; margin: 0 0 14px; }
.cert dl { margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 4px 28px; justify-content: start; font-size: .92rem; }
.cert dt { color: #94a3b8; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.cert dd { margin: 0; font-weight: 600; }
.cert .pair { display: flex; flex-direction: column; }
@media (max-width: 760px) { .cert { grid-template-columns: 1fr; padding: 26px 22px; } .cert img { width: 72px; height: 72px; }
  .cert dl { grid-template-columns: 1fr 1fr; gap: 12px 20px; } }

/* Region */
.region { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.region .places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.region .places li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--ink-2); }
.alt .region .places li { background: var(--bg); }
.map { aspect-ratio: 1 / 1; max-width: 380px; justify-self: center; width: 100%; }
@media (max-width: 860px) { .region { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact .card { padding: 30px 28px; }
.contact-line { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line .icon { margin: 0; width: 44px; height: 44px; flex: 0 0 auto; }
.contact-line small { display: block; color: var(--muted); font-size: .82rem; }
.contact-line b { font-weight: 600; font-size: 1.05rem; word-break: break-word; }
a.contact-line:hover b { color: var(--sun-ink); text-decoration: underline; }
.checklist { margin: 8px 0 0; padding-left: 1.15em; color: var(--ink-2); }
.checklist li { margin: 5px 0; }
.note { font-size: .88rem; color: var(--muted); margin-top: 16px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Platzhalter, die vor dem Veröffentlichen ersetzt werden müssen */
.todo { background: #fff3c4; color: #7a5200; outline: 1px dashed #c98a0c; border-radius: 3px; padding: 0 3px; }

/* ---------- Fußzeile ---------- */
.site-foot { background: var(--slate); color: #cbd5e1; padding: 40px 0 34px; font-size: .9rem; position: relative; overflow: hidden; isolation: isolate; }
.site-foot::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 22px 22px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
.site-foot .brand small { color: #94a3b8; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot a { color: #e2e8f0; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .copy { width: 100%; color: #94a3b8; font-size: .82rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal h3 { font-size: 1.02rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--sun-ink); }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.legal .back { display: inline-block; margin-bottom: 22px; color: var(--muted); text-decoration: none; font-size: .93rem; }
.legal .back:hover { color: var(--ink); }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.nf img { width: 96px; height: 96px; margin: 0 auto 20px; }

@media print {
  .site-head, .nav-toggle, .btns { display: none !important; }
  .hero { background: none; color: var(--ink); padding: 0; }
  .hero h1, .hero .lead { color: var(--ink); }
  body { background: #fff; }
}
.section-head.tight { margin-bottom: 14px; }
/* Unterseiten: nur der Anfrage-Knopf, auch auf dem Handy sichtbar */
@media (max-width: 860px) {
  .nav.nav-plain { display: flex; position: static; flex-direction: row; background: none; padding: 0; border: 0; box-shadow: none; }
  .nav.nav-plain a.cta { margin: 0; padding: 9px 14px; font-size: .92rem; }
}
.site-foot .brand { align-items: flex-start; }
.site-foot .brand small { white-space: normal; }
