/* Vorschlag A – Klassisch-seriös („Kanzleimappe“)
   Layout: schmale Satzspiegel-Breite, viel Weiß, Serife für Überschriften,
   Bordeaux nur als Akzent (Linien, Initiale, Buttons), Grau für Sekundäres. */

@font-face {
  font-family: "Noto Serif Display";
  src: url("fonts/NotoSerifDisplay-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("fonts/NotoSerifDisplay-Italic-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: italic;
  font-display: swap;
}

:root {
  --bordeaux: #8F0825;
  --bordeaux-dunkel: #6B0619;
  --bordeaux-hauch: #F9F1F3;
  --grau: #676767;          /* Kanzleigrau – nur für große Schrift / Linien */
  --ink: #241F21;           /* Überschriften */
  --text: #3A3537;          /* Fließtext, AA auf Weiß */
  --text-sekundaer: #5C5658;
  --linie: #DDD7D9;
  --linie-stark: #BFB7B9;
  --papier: #FFFFFF;
  --papier-weich: #FAF8F8;

  --serif: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --satz: 68rem;            /* Satzspiegel */
  --rand: clamp(1rem, 5vw, 4rem);
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--bordeaux); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--bordeaux-dunkel); }

:focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
h4, .randtitel { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-sekundaer); }

p { margin: 0 0 1.1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--bordeaux); color: #fff; padding: 0.5rem 1rem; z-index: 20;
}
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Satzspiegel ---------- */
.satz {
  width: 100%;
  max-width: var(--satz);
  margin-inline: auto;
  padding-left: max(var(--rand), env(safe-area-inset-left, 0px));
  padding-right: max(var(--rand), env(safe-area-inset-right, 0px));
}

/* ---------- Kopf ---------- */
.kopf {
  border-bottom: 1px solid var(--linie);
}
.kopf-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}

/* Wortmarke in HTML nachgesetzt (Original nur 250 px breit) */
.wortmarke {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}
.wortmarke:hover { color: inherit; }
.wortmarke-puzzle { width: 3.1rem; flex: none; }
.wortmarke-text {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  line-height: 1.15;
}
.wortmarke-text .l1 { display: block; color: var(--grau); font-size: 0.78em; letter-spacing: 0.12em; }
.wortmarke-text .l2 { display: block; color: var(--bordeaux); }
.wortmarke-claim {
  border-left: 1px solid var(--linie-stark);
  padding-left: 0.9rem;
  margin-left: 0.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--text-sekundaer);
  max-width: 11rem;
}

/* Navigation: ohne JS immer sichtbar (umbrechende Zeile), mit JS auf Mobil klappbar */
.nav-toggle { display: none; }
.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.2rem;
  align-items: center;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }
.nav a[aria-current="page"] { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }
.nav .portal a {
  color: var(--bordeaux);
  border: 1px solid var(--bordeaux);
  border-radius: 2px;
  padding: 0.4rem 0.9rem;
}
.nav .portal a:hover { background: var(--bordeaux); color: #fff; }

@media (max-width: 56rem) {
  .kopf-zeile { align-items: flex-start; }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--linie-stark);
    border-radius: 2px;
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    margin-left: auto;
  }
  .js .nav-toggle::before {
    content: "";
    width: 1rem; height: 2px; background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  }
  .js .nav-toggle[aria-expanded="true"]::before { box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; opacity: 0.6; }
  .js .nav { display: none; flex-basis: 100%; }
  .js .nav.offen { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--linie); margin-top: 0.4rem; }
  .nav li { border-bottom: 1px solid var(--linie); }
  .nav a { display: block; padding-block: 0.75rem; border-bottom: 0; }
  .nav .portal { border-bottom: 0; padding-top: 0.8rem; }
  .nav .portal a { display: inline-block; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }

.abschnitt-kopf { margin-bottom: clamp(2rem, 4vw, 3rem); }
.abschnitt-kopf::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--bordeaux);
  margin-bottom: 1.25rem;
}
.abschnitt-kopf p {
  margin-top: 0.9rem;
  color: var(--text-sekundaer);
  font-size: 1.125rem;
}

/* Brochüren-Raster: linke Randspalte, rechte Textspalte */
.spalten {
  display: grid;
  gap: 2rem 4rem;
}
@media (min-width: 56rem) {
  .spalten { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .spalten.umgekehrt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.spalten > * { min-width: 0; }

/* ---------- Begrüßung ---------- */
.begruessung { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.begruessung-raster {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 56rem) {
  .begruessung-raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
}
.begruessung h1 { margin-bottom: 1.25rem; }
.begruessung h1 em { font-style: italic; color: var(--bordeaux); }
.begruessung .vorspann { font-size: 1.1875rem; line-height: 1.6; max-width: 54ch; }
.aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2rem; }

/* klassisch gerahmtes Porträt (Passepartout) */
.rahmen {
  justify-self: center;
  width: min(100%, 22rem);
  padding: 0.75rem;
  border: 1px solid var(--linie-stark);
  background: var(--papier);
  margin: 0;
}
.rahmen img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 0;
  border: 1px solid var(--linie);
}
.rahmen figcaption {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text-sekundaer);
  padding: 0.85rem 0.25rem 0.25rem;
  text-align: center;
  line-height: 1.35;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
  border: 1px solid var(--bordeaux);
  background: var(--bordeaux);
  color: #fff;
  white-space: nowrap;
}
.btn:hover { background: var(--bordeaux-dunkel); border-color: var(--bordeaux-dunkel); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-kontur { background: transparent; color: var(--bordeaux); }
.btn-kontur:hover { background: var(--bordeaux-hauch); color: var(--bordeaux-dunkel); }
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
}

/* ---------- Die Kanzlei ---------- */
.zitatzeile {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink);
  border-left: 2px solid var(--bordeaux);
  padding-left: 1.25rem;
  max-width: 24ch;
}
.unterschrift {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  margin-top: 1.5rem;
}

/* ---------- Leistungsspektrum: vier Spalten ---------- */
.leistungen {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .leistungen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.leistung { border-top: 1px solid var(--linie-stark); padding-top: 1.1rem; }
.leistung h3 { min-height: 5em; margin-bottom: 0.9rem; }
.leistung .unterzeile { display: block; font-family: var(--sans); font-size: 0.875rem; font-weight: 400; line-height: 1.4; color: var(--text-sekundaer); margin-top: 0.35rem; }
@media (max-width: 40rem) { .leistung h3 { min-height: 0; } }
.leistung ul { list-style: none; }
.leistung li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.9875rem;
  line-height: 1.5;
}
.leistung li::before {
  content: "";
  position: absolute; left: 0; top: 0.7em;
  width: 0.5rem; height: 1px; background: var(--bordeaux);
}
.leistungen-fuss {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ---------- Service ---------- */
.service-liste {
  list-style: none;
  border-top: 1px solid var(--linie-stark);
}
.service-liste li {
  display: grid;
  gap: 0.35rem 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--linie);
}
@media (min-width: 40rem) {
  .service-liste li { grid-template-columns: 13rem minmax(0, 1fr); }
}
.service-liste h3 { font-size: 1.15rem; }
.service-liste p { font-size: 1rem; }

/* ---------- Steuerberaterin ---------- */
.initiale::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  line-height: 0.8;
  float: left;
  color: var(--bordeaux);
  padding: 0.12em 0.08em 0 0;
}
.randspalte .randtitel { margin-bottom: 0.9rem; }
.randspalte ul { list-style: none; }
.randspalte li {
  padding-block: 0.7rem;
  border-top: 1px solid var(--linie);
  font-size: 0.9875rem;
}
.randspalte li:last-child { border-bottom: 1px solid var(--linie); }
.randspalte li strong { display: block; color: var(--ink); font-weight: 500; }

/* ---------- Mandantenportal ---------- */
.portal-tafel {
  border: 1px solid var(--bordeaux);
  background: var(--bordeaux-hauch);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
}
@media (min-width: 56rem) {
  .portal-tafel { grid-template-columns: minmax(0, 1fr) auto; }
}
.portal-tafel h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 0.6rem; }
.portal-tafel p { color: var(--text); }

/* ---------- Partner ---------- */
.partner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}
.partner img { width: 7rem; flex: none; }

/* ---------- Kontakt ---------- */
.kontakt-raster { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 56rem) { .kontakt-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.adresse { font-style: normal; }
.adresse dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.4rem 1.5rem; margin: 1.25rem 0 0; }
.adresse dt { color: var(--text-sekundaer); font-size: 0.9375rem; }
.adresse dd { margin: 0; }
.adresse .anschrift { font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; color: var(--ink); }
.zeiten { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zeiten caption { text-align: left; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); padding-bottom: 0.75rem; }
.zeiten th, .zeiten td { text-align: left; padding: 0.55rem 0; border-top: 1px solid var(--linie); vertical-align: top; }
.zeiten th { font-weight: 500; color: var(--ink); width: 7.5rem; }
.zeiten tr:last-child th, .zeiten tr:last-child td { border-bottom: 1px solid var(--linie); }
.zeiten td.zu { color: var(--text-sekundaer); }
.hinweis { margin-top: 1rem; color: var(--text-sekundaer); font-size: 0.9375rem; }

/* ---------- Karriere-Teaser ---------- */
.karriere-teaser { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 56rem) { .karriere-teaser { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- Fuß ---------- */
.fuss {
  border-top: 1px solid var(--linie-stark);
  padding-block: 2.5rem 3rem;
  font-size: 0.9375rem;
  color: var(--text-sekundaer);
}
.fuss-raster { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 56rem) { .fuss-raster { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.fuss ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.fuss a { color: var(--text-sekundaer); text-decoration: none; }
.fuss a:hover { color: var(--bordeaux); text-decoration: underline; }
.fuss .klein { margin-top: 1.25rem; font-size: 0.875rem; }

/* ---------- Unterseiten (Karriere, Impressum, Datenschutz) ---------- */
.seite { padding-block: clamp(3rem, 7vw, 5.5rem); }
.seite .inhalt { max-width: 44rem; }
.seite h1 { margin-bottom: 1.5rem; }
.seite h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.seite h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.seite ul, .seite ol { padding-left: 1.3rem; margin-bottom: 1.1em; }
.seite li { margin-bottom: 0.35rem; }
.seite address { font-style: normal; margin-bottom: 1.1em; }
.notiz {
  border-left: 2px solid var(--bordeaux);
  background: var(--bordeaux-hauch);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.notiz p { margin: 0; }
.gross {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 1.5rem;
  max-width: 24ch;
}
