/* =========================================================
   Steuerberatung Probst — Stylesheet
   Farbwelt: warmes Sand/Creme + seriöses Tiefblau-Petrol
   Keine externen Fonts/CDNs (DSGVO: keine Drittanbieter)
   ========================================================= */

:root {
  --navy:        #1c3040;
  --navy-soft:   #2c4a60;
  --petrol:      #3a6b73;
  --sand:        #f6f1e9;
  --sand-deep:   #ebe1d3;
  --cream:       #fdfbf7;
  --ink:         #23282d;
  --ink-soft:    #55606a;
  --line:        #ddd2c2;
  --gold:        #b08a4e;

  --wrap: 1080px;
  --radius: 4px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 .7em; }
h3 { font-size: 1.15rem; margin: 0 0 .5em; }

p { margin: 0 0 1.1em; }
a { color: var(--petrol); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 247, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.2rem; color: var(--navy);
  text-decoration: none; line-height: 1.2;
}
.brand span { display: block; font-family: var(--sans); font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
/* Muss die padding-bottom-Regel von `.nav a` ueberschreiben, sonst sitzt
   die Beschriftung nicht mittig (2px unten gegen 13px oben). */
.nav a.btn { color: #fff; border: none; padding: 13px 26px; line-height: 1.2; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--navy); color: #fff;
  padding: 13px 26px; border-radius: var(--radius); text-decoration: none;
  font-size: .95rem; letter-spacing: .01em; transition: background .2s;
}
.btn:hover { background: var(--navy-soft); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1px solid var(--navy); padding: 12px 25px;
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--sand); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 88px; padding-bottom: 88px; max-width: 820px; }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Abschnitte ---------- */
section { padding: 80px 0; }
section.alt { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Karten ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
}
section.alt .card { background: #fff; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card .marker { display: block; width: 34px; height: 2px; background: var(--gold); margin-bottom: 18px; }

/* ---------- Leistungsliste ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  position: relative; padding: 0 0 0 26px; margin-bottom: 10px;
  color: var(--ink-soft); font-size: .97rem;
}
.list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border: 1px solid var(--petrol); border-radius: 50%;
}

/* ---------- Über / Split ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.quote {
  border-left: 2px solid var(--gold); padding: 4px 0 4px 22px;
  font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-style: italic;
}

/* ---------- Ablauf ---------- */
.steps { counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 18px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: .9rem; color: var(--gold);
  display: block; margin-bottom: 10px;
}
.step p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.contact-box {
  background: var(--navy); color: #e8eef2; border-radius: var(--radius);
  padding: 52px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contact-box h2 { color: #fff; }
.contact-box p { color: #c3d0d9; }
.contact-box a { color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 18px; }
.contact-list .label {
  display: block; font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: #8fa6b4; margin-bottom: 3px;
}
.contact-list a, .contact-list span { font-size: 1.05rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--sand);
  padding: 40px 0; font-size: .9rem; color: var(--ink-soft);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--ink-soft); text-decoration: none; margin-right: 20px; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); font-size: .97rem; }
.legal dl { margin: 0 0 1.4em; }
.legal dt { font-weight: 600; color: var(--ink); margin-top: 1em; }
.legal dd { margin: 0; }

.todo {
  background: #fff6e0; border: 1px solid var(--gold);
  padding: 4px 8px; border-radius: 3px; font-size: .93rem; color: #6b4f1d;
}

/* ---------- Responsiv ---------- */
@media (max-width: 880px) {
  .grid-3, .grid-2, .steps, .split, .contact-box { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .contact-box { padding: 36px 28px; gap: 32px; }
  section { padding: 60px 0; }
  .hero .wrap { padding-top: 60px; padding-bottom: 60px; }

  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { text-align: center; margin-top: 14px; border-bottom: none; }
  .header-inner { position: relative; }
}

/* ---------- Branchen ----------
   Keine Trennlinien und keine Rahmen: Die Branchen sollen die Seite nicht
   dominieren. Struktur entsteht ueber weiche Flaechen und ein Symbol je
   Eintrag - das gibt jedem Punkt einen Ankerpunkt fuers Auge, ohne die
   Leichtigkeit zu stoeren. */
.branchen { margin-top: 64px; }

.branchen-titel { font-size: 1.15rem; margin-bottom: 10px; }
.branchen-hinweis {
  color: var(--ink-soft); font-size: .95rem; max-width: 68ch; margin-bottom: 0;
}

.branchen-liste {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Alle Kacheln gleich hoch - das wirkt als bewusst gesetzte Flaeche.
     Mobil ist das abgeschaltet, dort passt sich jede Kachel ihrem Text an. */
  grid-auto-rows: 1fr;
  gap: 18px;
  margin-top: 32px;
}

.branche {
  background: rgba(255, 255, 255, .55);
  border-radius: 10px;
  padding: 26px 24px 24px;
  transition: background .2s, transform .2s;
}
.branche:hover { background: rgba(255, 255, 255, .9); transform: translateY(-2px); }

.branche-symbol {
  width: 26px; height: 26px;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
  display: block;
}

.branche h4 {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 8px;
  /* Alle Ueberschriften sind bewusst einzeilig gehalten. Wird eine laenger,
     bitte den Text kuerzen statt hier Platz zu reservieren. */
}
.branche p {
  font-size: .89rem; line-height: 1.65; color: var(--ink-soft); margin: 0;
}

.branchen-schluss {
  margin: 30px 0 0; font-size: .92rem; color: var(--ink-soft); font-style: italic;
}

@media (max-width: 880px) {
  .branchen { margin-top: 44px; }
  /* Einspaltig wuerde eine erzwungene Einheitshoehe nur Leerraum erzeugen. */
  .branchen-liste { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; margin-top: 26px; }
  .branche { padding: 22px 20px; }
  .branche:hover { transform: none; }
}
