/* Steuerkanzlei Katrin Hehl – Vorschlag C „Persönlich-regional“
   Layout: eine Stimme, ein Gesicht. Bordeaux als Boden des Startbereichs, danach
   Weiß und ein kühles Hellgrau im Wechsel; Hand-in-Hand-Motiv als einziges Bildzeichen. */

@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-regular.woff") format("woff"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-bold.woff") format("woff"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-italic.woff") format("woff"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-bolditalic.woff") format("woff"); }

:root {
  color-scheme: light;
  /* Kanzleifarben */
  --bordeaux: #8F0825;
  --bordeaux-dunkel: #6B0519;
  --bordeaux-hell: #F7EDEF;      /* Tint für Markierungen */
  --grau: #676767;               /* Logo-Grau: nur für große Schrift und Linien */
  /* Lesefarben (dunkler als Logo-Grau, damit Fließtext AA besteht) */
  --text: #26222A;
  --text-leise: #56515A;         /* 7,3:1 auf Weiß */
  --bg: #FFFFFF;
  --bg-leise: #F4F3F4;
  --linie: #DAD5D7;
  --auf-dunkel: #FFFFFF;
  --auf-dunkel-leise: #F0D5DB;   /* 7,9:1 auf Bordeaux */
  --fokus: #1F5FBF;

  --schrift: "PT Sans", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --breite: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --abschnitt: clamp(3.5rem, 7vw, 6.5rem);
  --radius: 4px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; /* Kopfzeile 72 px + Linie */ }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--bordeaux-dunkel); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 2px; }
.dunkel :focus-visible { outline-color: var(--auf-dunkel); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; }
small { font-size: 0.875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Sprunglink: unsichtbar, bis er per Tastatur den Fokus bekommt (Fokusring über :focus-visible). */
.skip-link {
  position: absolute; left: var(--gutter-l); top: -100px; z-index: 30;
  padding: 0.6rem 1rem; font-weight: 700; text-decoration: none;
  background: var(--bg); color: var(--bordeaux);
  border: 2px solid var(--bordeaux); border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; }

.rahmen {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.abschnitt { padding-block: var(--abschnitt); }
.leise { background: var(--bg-leise); }
.dunkel { background: var(--bordeaux); color: var(--auf-dunkel); }
.dunkel a { color: var(--auf-dunkel); }
.prosa { max-width: 65ch; }
.prosa p + p { margin-top: 1.1em; }
.vorspann { font-size: 1.2rem; color: var(--text-leise); max-width: 60ch; }
.kopf { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.6rem 1.35rem;
  font: inherit; font-weight: 700; line-height: 1.2; white-space: nowrap;
  border: 2px solid var(--bordeaux); border-radius: var(--radius);
  background: var(--bordeaux); color: var(--auf-dunkel);
  text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}
.knopf:hover { background: var(--bordeaux-dunkel); border-color: var(--bordeaux-dunkel); color: var(--auf-dunkel); }
.knopf:active { transform: translateY(1px); }
.knopf--rand { background: transparent; color: var(--bordeaux); }
.knopf--rand:hover { background: var(--bordeaux-hell); color: var(--bordeaux-dunkel); }
.dunkel .knopf { background: var(--auf-dunkel); border-color: var(--auf-dunkel); color: var(--bordeaux); }
.dunkel .knopf:hover { background: var(--auf-dunkel-leise); border-color: var(--auf-dunkel-leise); color: var(--bordeaux-dunkel); }
.dunkel .knopf--rand { background: transparent; color: var(--auf-dunkel); }
.dunkel .knopf--rand:hover { background: rgb(255 255 255 / 0.12); color: var(--auf-dunkel); }

/* ---------- Kopfzeile ---------- */
.kopfzeile {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--linie);
}
.kopfzeile .rahmen {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 72px;
}
.marke { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; white-space: nowrap; }
.marke img { width: 44px; height: auto; flex: none; }
.marke__text { display: grid; line-height: 1.05; }
.marke__oben { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grau); }
.marke__name { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bordeaux); }
.marke__claim { display: none; font-size: 0.72rem; color: var(--text-leise); line-height: 1.2; border-left: 1px solid var(--linie); padding-left: 0.7rem; margin-left: 0.3rem; }

.menu-knopf {
  display: none; font: inherit; font-weight: 700; color: var(--bordeaux);
  background: none; border: 2px solid var(--bordeaux); border-radius: var(--radius);
  padding: 0.45rem 0.9rem; cursor: pointer;
}
.navi ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.1rem; }
.navi a { color: var(--text); text-decoration: none; font-weight: 400; font-size: 1rem; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.navi a:hover { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }
.navi .knopf { padding-block: 0.4rem; min-height: 2.5rem; border-bottom: 2px solid var(--bordeaux); }
.navi .knopf:hover { border-bottom-color: var(--bordeaux-dunkel); }

@media (max-width: 900px) {
  .marke__claim { display: none; }
  .menu-knopf { display: inline-block; }
  .kopfzeile .rahmen { flex-wrap: wrap; }
  .navi { flex-basis: 100%; padding-bottom: 1rem; }
  .navi ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--linie); padding-top: 0.5rem; }
  .navi li + li { border-top: 1px solid var(--linie); }
  .navi a { display: block; padding: 0.8rem 0; border-bottom: 0; }
  .navi .knopf { margin-top: 0.75rem; display: flex; }
  /* Ohne JavaScript bleibt das Menü aufgeklappt; mit JavaScript schaltet der Knopf. */
  .js .navi[hidden] { display: none; }
}
@media (min-width: 1200px) { .marke__claim { display: block; } }

/* ---------- Startbereich ---------- */
.start { position: relative; overflow: hidden; }
.start .rahmen {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.start__text { padding-block: clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: 1.4rem; }
.start h1 { font-size: clamp(2.3rem, 1.1rem + 3.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.015em; }
.start__ort { font-size: 1.15rem; color: var(--auf-dunkel-leise); }
.start__ort strong { color: var(--auf-dunkel); }
.start p.gruss { font-size: 1.2rem; max-width: 48ch; }
.start__aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.start__bild {
  align-self: end; position: relative;
  /* Bild blutet rechts bis zum Viewport-Rand: Abstand Rahmen→Viewport plus Innenabstand aufheben. */
  margin-right: calc(-1 * (max(0px, (100vw - var(--breite)) / 2) + var(--gutter-r)));
}
.start__bild img {
  width: 100%; max-height: 640px; aspect-ratio: 785 / 1100; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%), linear-gradient(to top, transparent 0%, #000 26%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 24%), linear-gradient(to top, transparent 0%, #000 26%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
@media (max-width: 760px) {
  .start .rahmen { grid-template-columns: 1fr; }
  .start__bild { order: -1; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); }
  .start__bild img {
    aspect-ratio: 1 / 1; max-height: 100vw; object-position: 50% 0;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 35%);
            mask-image: linear-gradient(to top, transparent 0%, #000 35%);
  }
  .start__text { padding-top: 0.5rem; padding-bottom: 2.5rem; }
}

/* ---------- Erreichbarkeit (Leiste unter dem Start) ---------- */
.erreichbar { border-bottom: 1px solid var(--linie); }
.erreichbar dl {
  margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 2rem; padding-block: 1.4rem;
}
.erreichbar div { min-width: 0; }
.erreichbar dt { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-leise); }
.erreichbar dd { margin: 0.15rem 0 0; font-weight: 700; font-size: 1.1rem; }
.erreichbar dd a { color: var(--text); text-decoration: none; }
.erreichbar dd a:hover { color: var(--bordeaux); text-decoration: underline; }
@media (max-width: 760px) {
  .erreichbar dl { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* ---------- Die Kanzlei: Hand in Hand ---------- */
.kanzlei .rahmen {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.kanzlei__zeichen { display: grid; gap: 1.25rem; }
.kanzlei__zeichen img { width: min(100%, 360px); }
.kanzlei__zeichen h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.5rem); }
.kanzlei__zeichen .vorspann { max-width: 30ch; }
.gruss-zeile { margin-top: 1.6rem; font-style: italic; font-size: 1.25rem; color: var(--bordeaux); }
@media (max-width: 860px) {
  .kanzlei .rahmen { grid-template-columns: 1fr; }
  .kanzlei__zeichen img { width: min(60%, 260px); }
}

/* ---------- Leistungsspektrum: Verzeichnis ---------- */
.leistungen__liste { list-style: none; border-top: 1px solid var(--linie); }
.leistungen__gruppe {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(2rem, 5vw, 5rem); padding-block: 2rem;
  border-bottom: 1px solid var(--linie);
}
.leistungen__gruppe h3 { font-size: 1.45rem; color: var(--bordeaux); max-width: 22ch; }
.leistungen__gruppe ul { list-style: none; columns: 2; column-gap: 1.5rem; }
.leistungen__gruppe li { padding-left: 1.1rem; position: relative; break-inside: avoid; padding-bottom: 0.45rem; }
.leistungen__gruppe li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5rem; height: 2px; background: var(--bordeaux);
}
.leistungen__hinweis { margin-top: 1.5rem; color: var(--text-leise); }
@media (max-width: 760px) {
  .leistungen__gruppe { grid-template-columns: 1fr; padding-block: 1.5rem; }
  .leistungen__gruppe ul { columns: 1; }
}

/* ---------- So arbeite ich ---------- */
.service .rahmen {
  display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.service__bild { position: relative; }
.service__bild img { width: 100%; max-width: 330px; border-radius: var(--radius); }
.service__bild figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-leise); }
.service__punkte { display: grid; gap: 2rem; margin-top: 2rem; }
.service__punkte article { display: grid; gap: 0.4rem; padding-left: 1.25rem; border-left: 3px solid var(--bordeaux); max-width: 60ch; }
.service__punkte h3 { font-size: 1.3rem; }
@media (max-width: 860px) {
  .service .rahmen { grid-template-columns: 1fr; }
  .service__bild { order: 2; }
  .service__bild img { max-width: 260px; }
}

/* ---------- Ihre Steuerberaterin: Weg ---------- */
.person .rahmen {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.person__name { font-size: 1.9rem; font-weight: 700; line-height: 1.15; margin-top: 1rem; }
.person__titel { color: var(--text-leise); }
.person__lead { margin-top: 1.25rem; max-width: 40ch; }
.weg { list-style: none; position: relative; padding-left: 1.75rem; display: grid; gap: 1.6rem; }
.weg::before { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--linie); }
.weg li { position: relative; max-width: 55ch; }
.weg li::before {
  content: ""; position: absolute; left: -1.75rem; top: 0.45rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--bg-leise); border: 3px solid var(--bordeaux);
}
.weg h3 { font-size: 1.15rem; }
.weg p { color: var(--text-leise); margin-top: 0.2rem; }
@media (max-width: 860px) {
  .person .rahmen { grid-template-columns: 1fr; }
}

/* ---------- Mandantenportal ---------- */
.portal .rahmen {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: center;
}
.portal p { color: var(--auf-dunkel-leise); max-width: 55ch; }
.portal p strong { color: var(--auf-dunkel); }
.portal__aktion { display: grid; gap: 0.6rem; justify-items: start; }
.portal__aktion small { color: var(--auf-dunkel-leise); }
@media (max-width: 760px) {
  .portal .rahmen { grid-template-columns: 1fr; }
}

/* ---------- Karriere (Kurzform) ---------- */
.karriere-kurz .rahmen {
  display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: center; justify-content: space-between;
  padding-block: 2.25rem; border-bottom: 1px solid var(--linie);
}
.karriere-kurz h2 { font-size: 1.45rem; }
.karriere-kurz p { color: var(--text-leise); }

/* ---------- Kontakt ---------- */
.kontakt__spalten {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem;
}
.kontakt__spalten h3 { font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-leise); margin-bottom: 0.8rem; }
.kontakt__spalten address { font-style: normal; }
.kontakt__spalten dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.kontakt__spalten dt { color: var(--text-leise); }
.kontakt__spalten dd { margin: 0; }
.zeiten { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { text-align: left; padding: 0.4rem 0; vertical-align: top; font-weight: 400; }
.zeiten th { color: var(--text-leise); padding-right: 1rem; white-space: nowrap; width: 1%; }
.zeiten tr + tr { border-top: 1px solid var(--linie); }
.zeiten td span { display: block; }
.kontakt__hinweis { margin-top: 0.9rem; font-weight: 700; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 1rem; }
.kontakt__aktion { margin-top: 1.4rem; }
@media (max-width: 860px) {
  .kontakt__spalten { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Fußzeile ---------- */
.fuss { border-top: 1px solid var(--linie); padding-block: 2.5rem 2rem; font-size: 0.95rem; color: var(--text-leise); }
.fuss .rahmen { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: start; }
.fuss__partner { display: flex; align-items: center; gap: 1rem; }
.fuss__partner img { width: 84px; height: auto; flex: none; }
.fuss__partner p { max-width: 28ch; line-height: 1.4; }
.fuss__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1rem; }
.fuss__links a { color: var(--text-leise); }
.fuss__unten { margin-top: 1.5rem; }
@media (max-width: 760px) {
  .fuss .rahmen { grid-template-columns: 1fr; }
}

/* ---------- Unterseiten ---------- */
.seite { padding-block: clamp(2.5rem, 6vw, 5rem); }
.seite h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); margin-bottom: 1.5rem; }
.seite h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.6rem; }
.seite h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.4rem; }
.seite .prosa p + p, .seite .prosa p + ul, .seite .prosa ul + p { margin-top: 1em; }
.seite ul { padding-left: 1.2rem; }
.seite li + li { margin-top: 0.3rem; }
.hinweis-kasten {
  margin: 1.5rem 0 2rem; padding: 1rem 1.25rem; border-left: 4px solid var(--bordeaux);
  background: var(--bordeaux-hell); max-width: 65ch;
}
.karriere-seite .rahmen { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
.karriere-seite .gross { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); font-weight: 700; line-height: 1.2; color: var(--bordeaux); }
.karriere-seite img { max-width: 300px; }
@media (max-width: 760px) { .karriere-seite .rahmen { grid-template-columns: 1fr; } }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .kopfzeile, .menu-knopf, .start__bild, .skip-link { display: none; }
  .dunkel { background: none; color: #000; }
  /* Alles, was auf Bordeaux hell (--auf-dunkel, --auf-dunkel-leise) gesetzt ist, wird auf Papier schwarz. */
  .dunkel a, .dunkel p, .dunkel small, .dunkel strong,
  .start__ort, .start__ort strong, .portal p, .portal p strong, .portal__aktion small { color: #000; }
  .dunkel .knopf { border-color: #000; color: #000; }
}
