/* ════════════════════════════════════════════════════════════
   Sandra Ahrens Steuerberatung — Stylesheet
   ★ NEUFASSUNG mit dem Skill "apple-web-design" (Apple HIG, für Web
     übersetzt). Basis: Stand 09.08.2026. Änderungen sind mit markiert.
   Typografie: Source Serif 4 (Überschriften) + Source Sans 3 (Text)
   Schriften lokal eingebunden (DSGVO-konform, kein Google-CDN)
   ════════════════════════════════════════════════════════════ */

/* ── Schriften (self-hosted) ─────────────────────────────── */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/source-serif-4-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic; font-weight: 500; font-display: swap;
  src: url('fonts/source-serif-4-latin-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
}

/* ── Reset & Tokens ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #23272E;
  --ink-mid:   #545A64;
  /* Hilfstextfarbe. Nicht aufhellen: erreicht auf Weiß 4.84:1 und auf dem
     Papierton 4.52:1 und liegt damit knapp über dem Minimum von 4.5:1. */
  --ink-soft:  #6C727C;
  --navy:      #1C3A60;
  --navy-deep: #122947;
  --accent:    #2E5C9E;
  --paper:     #F8F7F4;
  --white:     #FFFFFF;
  --line:      rgba(28, 58, 96, .16);
  --line-soft: rgba(28, 58, 96, .08);
  --shadow-sm: 0 2px 10px rgba(18, 41, 71, .05);
  --shadow-lg: 0 24px 56px rgba(18, 41, 71, .12);
  /* zwei Radien statt einem: Flächen weicher, Linien weiter präzise */
  --r: 3px;
  --r-md: 10px;
  --fd: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --fb: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.25, .7, .35, 1);

  /* Typo-Skala — sieben feste Stufen. Neue Schriftgrößen bitte hier
     ergänzen und über die Variable ansprechen, nicht direkt in px setzen. */
  --fs-label: 12px;   /* Kicker, Tags, Formularlabels   */
  --fs-small: 14px;   /* Fußnoten, Meta, Consent        */
  --fs-ui:    16px;   /* Navigation, Buttons, Eingaben  */
  --fs-body:  17px;   /* Fließtext                      */
  --fs-lead:  19px;   /* Vorspann                       */
  --fs-h3:    21px;   /* Kartentitel, Unterseiten-H2    */
  --fs-h2s:   26px;   /* Formularüberschrift            */
  --fs-list:  var(--fs-ui);

  /* Abstandsskala auf 4px-Raster. Abstände über diese Variablen setzen. */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 40px; --sp-8: 48px;
  --sp-9: 64px; --sp-10: 80px; --sp-11: 104px;
}

/* scroll-padding-top war in dieser Fassung entfernt worden — Ankerziele
   landeten dadurch unter dem festen Header. */
html { scroll-behavior: smooth; scroll-padding-top: 90px; color-scheme: light; }

body {
  font-family: var(--fb);
  font-size: var(--fs-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--navy); color: #fff; }

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

/* Sichtbarer Tastatur-Fokus */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff;
  padding: 10px 18px; z-index: 300; font-size: var(--fs-small);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── Wiederkehrende Bausteine ────────────────────────────── */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 40px; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--sp-5);
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--navy); }

.section { padding: var(--sp-11) 0; }  /* */

.section-heading {
  font-family: var(--fd); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.12; letter-spacing: -.02em;    /* */
  color: var(--ink);
}

/* Feine Journallinie — das eine, ruhige Gestaltungsmotiv */
.rule { height: 1px; background: var(--line); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--fb); font-size: var(--fs-ui); font-weight: 600;
  padding: var(--sp-4) var(--sp-6); border-radius: var(--r);
  text-decoration: none; cursor: pointer; border: none;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 4px 16px rgba(18,41,71,.18); }
.btn-dark:hover { background: var(--navy-deep); box-shadow: 0 6px 20px rgba(18,41,71,.24); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-hdr { padding: 10px var(--sp-5); font-size: var(--fs-small); }

/* ── Header ──────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s;
}
/* Deckender Fallback zuerst, Unschärfe nur wo unterstützt */
header.solid {
  background: rgb(248 247 244 / .97);
  border-bottom-color: var(--line-soft);
}
@supports (backdrop-filter: blur(1px)) {
  header.solid {
    background: rgb(248 247 244 / .82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}

.hdr {
  max-width: 1140px; margin: 0 auto; padding: 0 40px;
  height: 82px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  transition: height .3s;
}
header.solid .hdr { height: 66px; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 46px; width: auto; transition: height .3s; }
header.solid .logo-img { height: 38px; }

nav.mainnav { display: flex; align-items: center; gap: 32px; }
nav.mainnav a {
  font-size: var(--fs-ui); font-weight: 600; color: var(--ink-mid);
  text-decoration: none; position: relative;
  transition: color .2s;
}
nav.mainnav a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
nav.mainnav a:hover { color: var(--ink); }
nav.mainnav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hdr-right { display: flex; align-items: center; gap: 24px; }
.hdr-tel {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-ui); font-weight: 600; color: var(--navy);
  text-decoration: none; white-space: nowrap;
}
.hdr-tel svg { width: 14px; height: 14px; opacity: .65; }
.hdr-tel:hover { color: var(--navy-deep); }

/* Mobiles Menü */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--r); padding: 9px 11px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 18px; height: 18px; display: block; }

.mobilenav {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 20px 20px;
}
.mobilenav.open { display: block; }
.mobilenav a {
  display: block; padding: 13px 4px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line-soft);
}
.mobilenav a:last-child { border-bottom: none; }

/* ── Hero — typografisch, ruhig, ohne Deko ───────────────── */
#start {
  background: var(--paper);
  padding: 176px 0 104px;
}

.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 84px; align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-family: var(--fd); font-weight: 600;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.08; letter-spacing: -.022em;   /* */
  color: var(--ink);
  margin-bottom: 26px;
  text-wrap: balance;
}

.hero-sub {
  font-size: var(--fs-lead); color: var(--ink-mid); line-height: 1.6;
  max-width: 48ch; margin-bottom: var(--sp-7);   /* 48 Zeichen Lesebreite */
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Dezente Lade-Sequenz: reine Fades, keine Effekte */
.fade-in { opacity: 0; animation: fadeup .7s var(--ease) forwards; }
.fd-1 { animation-delay: .1s; } .fd-2 { animation-delay: .22s; }
.fd-3 { animation-delay: .34s; } .fd-4 { animation-delay: .46s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Wegweiser-Karte: der funktionale Gegenpol zur Headline */
.hero-card {
  background: var(--white);
  border-radius: var(--r-md);                    /* */
  border-top: 2px solid var(--navy);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-7) var(--sp-7) var(--sp-6);
  max-width: 420px; justify-self: end; width: 100%;
}
.hero-card-label {
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 14px;
}
.hero-card nav { display: flex; flex-direction: column; }
.hero-card nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: var(--fs-ui); font-weight: 600; color: var(--ink);
  text-decoration: none;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color .2s;
}
.hero-card nav a:last-child { border-bottom: none; }
.hero-card nav a svg {
  width: 15px; height: 15px; flex-shrink: 0;
  color: var(--ink-soft);
  transition: color .2s, transform .25s var(--ease);
}
.hero-card nav a:hover { color: var(--navy); }
.hero-card nav a:hover svg { color: var(--navy); transform: translateX(3px); }

.hero-card-foot {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.6;
}

/* ── Trust-Bar ───────────────────────────────────────────── */
.trustbar {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
}
.trustbar-inner { display: flex; align-items: center; justify-content: center; gap: var(--sp-6); flex-wrap: wrap; }
.trustbar-kicker {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); flex-shrink: 0;
}
/* Bewusst ohne Graustufenfilter: Mitgliedschaftszeichen sind in aller Regel
   unverändert zu verwenden, und eingefärbt verlieren sie die Wiedererkennung. */
.trustbar img { height: 38px; width: auto; }   /* */
.trustbar-sep { width: 1px; height: 26px; background: var(--line-soft); }

/* ── Leistungen ──────────────────────────────────────────── */
#leistungen { background: var(--white); }

.leistungen-top { margin-bottom: 34px; }
.leistungen-desc {
  font-size: var(--fs-body); color: var(--ink-mid); line-height: 1.7;
  max-width: 62ch; margin-top: var(--sp-5);      /* */
}

.leistungen-rule { margin-bottom: 56px; }

/* Eigenständige Flächen in natürlicher Höhe. Bewusst keine gleiche Höhe
   erzwingen: die Karten haben unterschiedlich viele Punkte, gleiche Höhe
   erzeugt in der kürzesten Karte ein großes Loch. */
.cards-grid {
  /* minmax(0,1fr) statt 1fr: Rasterspalten schrumpfen sonst nicht unter
     ihr laengstes Wort. Deutsche Komposita wie "Einnahmenueberschuss-
     rechnungen" sprengten dadurch bei 320px die Seite. */
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5); align-items: start;
}

.card {
  background: var(--white);
  padding: var(--sp-7) var(--sp-6) var(--sp-8);
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--navy);
  border-radius: var(--r-md);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
  scroll-margin-top: 96px;
}
@media (hover: hover) {          /* kein klebender Hover auf Touchgeräten */
  .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
}
.card:target { box-shadow: var(--shadow-lg); }

.card-tag {
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 20px;
}

.card h3 {
  font-family: var(--fd); font-weight: 600; font-size: var(--fs-h3);
  color: var(--ink); margin-bottom: 18px; line-height: 1.25;
}

/* Abstand und feine Marke statt Trennlinien: Linien unter jedem Punkt
   lassen die Liste wie eine Tabelle wirken. */
.card-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.card-list li {
  font-size: var(--fs-list); color: var(--ink-mid); line-height: 1.55;
  position: relative; padding-left: 18px;
  overflow-wrap: break-word; hyphens: auto;      /* lange Komposita */
}
.card-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 7px; height: 1px; background: var(--navy); opacity: .55;
}

/* ── Über mich ───────────────────────────────────────────── */
#ueber { background: var(--paper); }

.ueber-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 84px; align-items: center;
  margin-bottom: 72px;
}

/* Porträt — Passepartout wie ein gerahmtes Bild, Originalproportion */
.ueber-photo { position: relative; max-width: 430px; justify-self: end; width: 100%; }
.ueber-photo-frame {
  position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.ueber-photo-mat {
  position: relative; z-index: 1;
  background: var(--white);
  padding: 12px;
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.ueber-photo img {
  width: 100%; height: auto;
  border-radius: 2px;
}

.ueber-quote {
  font-family: var(--fd); font-style: italic; font-weight: 500;
  font-size: clamp(21px, 2vw, 25px);
  color: var(--navy); line-height: 1.55;
  margin: 24px 0 26px;
  padding-left: 26px;
  border-left: 2px solid var(--navy);
}

.ueber-body { font-size: var(--fs-body); color: var(--ink-mid); line-height: 1.7; max-width: 62ch; }  /* */

.ueber-card {
  background: var(--white);
  border-radius: var(--r-md); padding: var(--sp-7) var(--sp-8) var(--sp-6);   /* */
  box-shadow: var(--shadow-sm);
  border-top: 2px solid var(--navy);
}
.ueber-card-label {
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 16px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.ueber-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
}
.ueber-list li {
  font-size: 16px; font-weight: 600; color: var(--ink);
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ueber-list li:nth-child(odd)  { padding-right: 44px; }
.ueber-list li:nth-child(even) { padding-left: 44px; border-left: 1px solid var(--line-soft); }
.ueber-list li:nth-last-child(-n+2) { border-bottom: none; }

/* ── Kontakt ─────────────────────────────────────────────── */
#kontakt { background: var(--navy-deep); color: rgba(255,255,255,.9); }

.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 84px; align-items: start;
}

.kontakt-kicker { color: rgba(255,255,255,.55); }
.kontakt-kicker::before { background: rgba(255,255,255,.4); }
.kontakt-heading { color: #fff; margin-bottom: 46px; }

.k-items { display: flex; flex-direction: column; }
.k-item {
  display: flex; gap: 22px; align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.k-item:first-child { border-top: 1px solid rgba(255,255,255,.09); }
.k-label {
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  width: 86px; flex-shrink: 0;
}
.k-value, .k-value a { font-size: var(--fs-ui); color: rgba(255,255,255,.9); text-decoration: none; line-height: 1.6; }
/* die E-Mail-Adresse ist ein 222px breiter, nicht
   umbrechbarer String. Mit der 86px-Labelspalte ergab das bei 320px
   Fensterbreite 350px Inhalt — die ganze Seite ließ sich seitlich schieben. */
.k-value { overflow-wrap: anywhere; }
.k-value a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Formular */
.form-card {
  background: var(--white); border-radius: var(--r-md);   /* */
  padding: var(--sp-8); box-shadow: var(--shadow-lg);
}
.form-card h3 {
  font-family: var(--fd); font-weight: 600; font-size: var(--fs-h2s);
  color: var(--ink); margin-bottom: 8px;
}
.form-intro { font-size: var(--fs-small); color: var(--ink-mid); margin-bottom: 30px; }

.form-group { margin-bottom: 20px; position: relative; }
.form-group label {
  display: block;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mid); margin-bottom: 7px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 2px;
  border: none; border-bottom: 1px solid var(--line); border-radius: 0;
  font-family: var(--fb); font-size: var(--fs-ui); color: var(--ink);
  background: transparent;
  transition: border-color .25s, box-shadow .25s;
}
/* hier stand `outline: none`. Diese Regel steht
   später im Stylesheet als die :focus-visible-Regel und hat sie bei
   gleicher Spezifität überschrieben — auf keinem Eingabefeld war ein
   Tastaturfokus sichtbar. */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-bottom-color: var(--accent);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-soft); }
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--accent); }
.form-group textarea { height: 110px; resize: vertical; }

.form-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--fs-small); color: var(--ink-mid); line-height: 1.5;
  margin: 18px 0 20px;
}
.form-consent input { margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.form-consent a { color: var(--navy); }

.form-status {
  display: none;
  font-size: var(--fs-small); line-height: 1.55;
  padding: 12px 14px; border-radius: var(--r);
  margin-bottom: 16px;
}
.form-status.ok  { display: block; background: rgba(46,92,158,.08); color: var(--navy); border: 1px solid rgba(46,92,158,.25); }
.form-status.err { display: block; background: rgba(160,50,50,.07); color: #8C3030; border: 1px solid rgba(160,50,50,.25); }

.btn-submit { width: 100%; }

/* Honeypot — für Menschen unsichtbar */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── Footer ──────────────────────────────────────────────── */
footer { background: #0D1B30; color: rgba(255,255,255,.62); padding: var(--sp-8) 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
/* war weiß bei 40% bzw. 25% Deckung — auf #0D1B30 ergibt das 3.77:1
   und 2.25:1, beides unter dem Minimum. Jetzt 62% / 55%. */
.footer-brand { font-size: var(--fs-small); color: rgba(255,255,255,.62); line-height: 1.6; }
.footer-brand strong {
  display: block; color: rgba(255,255,255,.75);
  font-family: var(--fd); font-weight: 600; font-size: var(--fs-ui); margin-bottom: 2px;
}
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: var(--fs-small); color: rgba(255,255,255,.62); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-copy { font-size: var(--fs-label); color: rgba(255,255,255,.55); }

/* ── Scroll-Reveals: reiner Fade, kein Blur ──────────────── */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.dl-1 { transition-delay: .08s; } .dl-2 { transition-delay: .16s; }

/* ── Unterseiten (Impressum / Datenschutz) ───────────────── */
.subpage { padding: 150px 0 90px; max-width: 780px; }
.subpage h1 {
  font-family: var(--fd); font-weight: 600;
  font-size: clamp(26px, 6vw, 40px); color: var(--ink);
  margin-bottom: 36px;
  hyphens: auto; overflow-wrap: break-word;
}
.subpage h2 {
  font-family: var(--fd); font-weight: 600; font-size: var(--fs-h3);
  color: var(--ink); margin: 38px 0 12px;
}
.subpage p, .subpage li { font-size: 16px; color: var(--ink-mid); line-height: 1.75; margin-bottom: 12px; }
.subpage ul { padding-left: 22px; margin-bottom: 12px; }
.subpage a { color: var(--navy); }
.subpage .todo {
  background: rgba(160, 120, 30, .08); border: 1px solid rgba(160, 120, 30, .3);
  border-radius: var(--r); padding: 12px 14px;
  font-size: var(--fs-small); color: #7A5A10;
}
.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  text-decoration: none; margin-bottom: 34px;
}
.backlink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-in, .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1020px) {
  nav.mainnav { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { justify-self: start; }
  .leistungen-top { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .leistungen-desc { justify-self: start; padding-bottom: 0; }
  .cards-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }  /* */
  /* Karten sind jetzt eigenstaendige Flaechen — keine Trennlogik noetig */
  .ueber-grid, .kontakt-grid { grid-template-columns: 1fr; gap: 52px; }
  .ueber-grid { margin-bottom: 52px; }
  .ueber-photo { justify-self: start; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  html { scroll-padding-top: 86px; }             /* Header ist hier 70px */
  /* Kontaktzeilen stapeln statt fester Labelspalte — löst den
     seitlichen Überlauf bei 320px */
  .k-item { flex-direction: column; gap: 6px; }
  .k-label { width: auto; }
  .hdr { padding: 0 20px; height: 70px; }
  .logo-img, header.solid .logo-img { height: 34px; }
  .hdr-tel span { display: none; }        /* nur Icon auf sehr schmalen Screens */
  #start { padding: 118px 0 60px; }
  .section { padding: 72px 0; }
  .form-card, .ueber-card { padding: 34px 26px; }
  .hero-card { padding: 28px 26px 22px; }
  .ueber-list { grid-template-columns: 1fr; }
  .ueber-list li:nth-child(odd)  { padding-right: 0; }
  .ueber-list li:nth-child(even) { padding-left: 0; border-left: none; }
  .ueber-list li { border-bottom: 1px solid var(--line-soft) !important; }
  .ueber-list li:last-child { border-bottom: none !important; }
  .trustbar-inner { flex-wrap: wrap; gap: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .subpage { padding: 120px 0 70px; }
  .mobilenav.open {
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 101;
    box-shadow: 0 16px 32px rgba(18, 41, 71, .08);
  }
}

/* ── Kanzlei / Hier finden Sie mich ──────────────────────── */
/* Neuer Abschnitt vor dem Kontaktblock. Raster und Bildbreite bewusst
   wie bei „Über mich" — ein Bild ueber die volle Breite wirkte im Verhaeltnis
   zur uebrigen Seite zu gross und zwang den Text in eine schmale Spalte
   mit schlechten Zeilenumbruechen. */
#kanzlei { background: var(--white); }

.kanzlei-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--sp-9); align-items: center;
}

.kanzlei-story {
  font-size: var(--fs-lead); color: var(--ink-mid);
  line-height: 1.6;
  margin: var(--sp-5) 0 var(--sp-6);
}

/* Sichtbar, damit die fehlende Jahreszahl nicht versehentlich live geht */
.platzhalter {
  background: rgba(160, 120, 30, .16);
  border-bottom: 1px solid rgba(160, 120, 30, .55);
  padding: 0 .3em; border-radius: 2px;
  letter-spacing: .06em;
}

.kanzlei-adresse {
  font-size: var(--fs-ui); color: var(--ink-mid); line-height: 1.7;
  border-top: 2px solid var(--navy);
  padding-top: var(--sp-4);
  display: inline-block;
}
.kanzlei-adresse a {
  font-weight: 600; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
@media (hover: hover) { .kanzlei-adresse a:hover { border-bottom-color: var(--navy); } }

.kanzlei-bild {
  max-width: 460px; width: 100%; justify-self: end;
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kanzlei-bild img { width: 100%; height: auto; }

@media (max-width: 1020px) {
  .kanzlei-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
  .kanzlei-bild { justify-self: start; max-width: 100%; }
}

/* Offener Punkt mitten im Fließtext — soll auffallen, bis er ersetzt ist */
.todo-inline {
  background: rgba(160, 120, 30, .16);
  border-bottom: 1px solid rgba(160, 120, 30, .55);
  padding: 0 .25em; border-radius: 2px; color: #7A5A10; font-weight: 600;
}

/* Hinweis ueber dem Absende-Button — zurueckhaltend, aber lesbar */
.form-hinweis {
  font-size: var(--fs-small);
  color: var(--ink-mid);
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}

/* Unterueberschrift auf den Rechtsseiten (Formward-Absatz) */
.subpage h3 {
  font-family: var(--fb); font-weight: 600; font-size: var(--fs-ui);
  color: var(--ink); margin: var(--sp-5) 0 var(--sp-2);
}
