/* Victor Hörnig – Unternehmensberatung
   Schriften lokal eingebunden (keine Verbindung zu Google-Servern). */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #172033;        /* Text & Primärfläche */
  --ink-2: #3a4556;      /* Fließtext */
  --muted: #5f6977;      /* Nebentext */
  --line: #d8dce1;       /* Linien */
  --paper: #ffffff;
  --tint: #f1f3f2;       /* ruhige Wechselfläche */
  --signal: #b9862f;     /* Akzent: nur grafisch, für den Entscheidungspunkt */
  --link: #1f4a72;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --space: clamp(72px, 10vw, 132px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.1rem); line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); line-height: 1.15; }
h3 { font-family: var(--sans); font-size: 1.2rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.brand span { font-size: 0.82rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 24px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 22px; border-radius: 6px; text-decoration: none;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: background-color .15s ease;
}
.btn:hover { background: #26324a; }
.btn--small { padding: 10px 16px; font-size: 0.93rem; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { background: var(--tint); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: #e9ecef; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section--tint { background: var(--tint); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.lead { font-size: clamp(1.13rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split > :first-child h2 { position: sticky; top: 110px; }
.stack > * + * { margin-top: 1.1em; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero h1 { max-width: 16ch; }
.hero .sub { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--ink); margin-top: 22px; max-width: 34ch; line-height: 1.35; }
.hero .lead { margin-top: 18px; }

.page-hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 20ch; }
.page-hero .lead { margin-top: 22px; }

/* ---------- Methoden-Grafik (das zentrale Motiv) ---------- */
.method { margin: clamp(48px, 7vw, 88px) 0 0; }
.method svg { width: 100%; }
.method-labels { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.method-labels li { padding: 14px 16px 0 0; }
.method-labels b { display: block; color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.method-labels span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.45; margin-top: 4px; max-width: 26ch; }
.method-labels small { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.82rem; }

.m-dot { fill: #8a94a3; }
.m-trend { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.m-steps { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linejoin: miter; }
.m-guide { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.m-point { fill: var(--signal); }
.m-ring { fill: none; stroke: var(--signal); stroke-width: 1.5; }

@media (prefers-reduced-motion: no-preference) {
  .js .method .m-trend, .js .method .m-steps { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s cubic-bezier(.6,0,.2,1) .35s forwards; }
  .js .method .m-steps { animation-delay: 1.9s; animation-duration: 1.3s; }
  .js .method .m-point, .js .method .m-ring { opacity: 0; animation: appear .5s ease 1.75s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

/* ---------- Wiedererkennung: Zitate ---------- */
.quotes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 64px); margin-top: 48px; }
.quotes li {
  border-top: 1px solid var(--ink); padding-top: 18px;
  font-family: var(--serif); font-size: clamp(1.18rem, 1.8vw, 1.42rem); line-height: 1.4; color: var(--ink);
}

/* ---------- Beratungsfelder ---------- */
.fields { margin-top: 56px; border-top: 1px solid var(--line); }
.field { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 5vw, 64px); padding-block: 40px; border-bottom: 1px solid var(--line); }
.field h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; line-height: 1.2; }
.field .kicker { display: block; font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-top: 8px; letter-spacing: 0; }
.ticks { list-style: none; columns: 2; column-gap: 32px; margin-top: 20px; }
.ticks li { break-inside: avoid; padding: 5px 0 5px 20px; position: relative; color: var(--ink); font-size: 0.98rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 9px; height: 2px; background: var(--signal); }
.quote-line { margin-top: 22px; padding-left: 18px; border-left: 2px solid var(--ink); font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.45; max-width: 52ch; }
.questions { list-style: none; margin-top: 18px; }
.questions li { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--line); }
.questions li:first-child { border-top: 1px solid var(--line); }

/* ---------- Ablauf (echte Sequenzen) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; padding: 18px 20px 0 0; color: var(--ink); font-weight: 500; line-height: 1.4; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; font-variant-numeric: lining-nums; }

/* ---------- Grundsätze ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: 48px; }
.principles h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.25; font-weight: 600; margin-bottom: 14px; }
.principles p { color: var(--ink-2); }

.values { list-style: none; margin-top: 8px; }
.values li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.values li:first-child { border-top: 1px solid var(--line); }
.values b { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; color: var(--ink); line-height: 1.3; }

/* ---------- Person ---------- */
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; border-radius: 4px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }

/* ---------- Hinweis Steuerberatung ---------- */
.note { margin-top: 32px; padding: 18px 22px; background: var(--tint); border-left: 3px solid var(--ink); font-size: 0.97rem; color: var(--ink); max-width: 66ch; }
.section--tint .note { background: #fff; }

/* ---------- CTA-Band ---------- */
.cta { background: var(--ink); color: #dfe4ea; }
.cta h2 { color: #fff; max-width: 22ch; }
.cta p { color: #cfd6de; }
.cta .lead { color: #dfe4ea; margin-top: 20px; }
.cta a:not(.btn) { color: #fff; }

/* ---------- Impulse ---------- */
.posts { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.posts li { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.posts h3 { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
.posts h3 a { color: var(--ink); text-decoration: none; }
.posts h3 a:hover { text-decoration: underline; }
.posts p { margin-top: 8px; color: var(--ink-2); }
.posts .status { color: var(--muted); font-size: 0.93rem; text-align: right; }

.article { max-width: 720px; }
.article p, .article li { font-size: 1.1rem; line-height: 1.75; }
.article h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 1.8em 0 0.6em; }
.article ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article li { margin-bottom: 0.4em; }
.article .meta { color: var(--muted); font-size: 0.95rem; margin-top: 18px; }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 500; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.legal .todo { background: #fff6e4; border-left: 3px solid var(--signal); padding: 14px 18px; margin: 1em 0; }

/* ---------- Footer ---------- */
.site-footer { background: #101828; color: #b9c2cd; padding-block: 64px 40px; font-size: 0.95rem; }
.site-footer a { color: #e6eaee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.footer-brand strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: #fff; display: block; }
.footer-brand p { margin-top: 10px; color: #b9c2cd; max-width: 34ch; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 3px 0; }
.footer-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid #2a3547; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #9aa5b3; }
.footer-note strong { color: #fff; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .js .nav { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
  }
  .js .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); font-weight: 600; }
  .nav .btn { margin-top: 18px; }
  .site-header .wrap { position: relative; }
  .split, .person, .field { grid-template-columns: 1fr; }
  .split > :first-child h2 { position: static; }
  .principles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
  .steps li::before { margin: 0; font-size: 1.4rem; min-width: 1.4em; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .person .portrait { max-width: 420px; }
}
@media (max-width: 640px) {
  .quotes { grid-template-columns: 1fr; gap: 28px; }
  .ticks { columns: 1; }
  .method-labels { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .values li, .posts li { grid-template-columns: 1fr; gap: 8px; }
  .posts .status { text-align: left; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .nav .btn { width: 100%; }
}
@media print {
  .site-header, .cta, .site-footer { display: none; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.values span { color: var(--ink-2); }
.legal h3 { font-size: 1.08rem; margin: 1.6em 0 .4em; }
.wrap.legal, .wrap.article { max-width: calc(760px + 2 * var(--gutter)); margin-left: max(0px, calc((100% - var(--wrap)) / 2)); margin-right: 0; }
