/* =========================================================
   foros Tax Steuerberatung – statische, tracker-freie Seite
   Eine Stylesheet-Datei. Keine Fremddienste, keine Cookies.
   ========================================================= */

/* ---- Lokale Schrift: Droid Serif (Apache 2.0), lokal eingebunden ---- */
@font-face {
  font-family: "Droid Serif";
  src: url("fonts/droid-serif-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Droid Serif";
  src: url("fonts/droid-serif-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Lokale Fließtext-Schrift: Barlow Semi Condensed (OFL) ----
   Wird vom eigenen Server geladen und dient als Ersatz/„Fallback"
   für Bahnschrift auf Systemen ohne diese Schrift. */
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/barlow-semicondensed-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/barlow-semicondensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Farb- und Layout-Variablen (Farben aus dem Logo) ---- */
:root {
  --blue:        #0070b0;   /* Logo-Blau – Primärfarbe          */
  --blue-dark:   #005b90;
  --blue-deep:   #073b5a;   /* dunkles Blau für Überschriften   */
  --green:       #90c020;   /* Logo-Grün – Akzent               */
  --green-dark:  #6f9a12;
  --indigo:      #073b5a;   /* Alias: Überschriften-Dunkelblau  */
  --grey:        #808080;
  --text:        #2a2f36;
  --muted:       #5c6570;
  --light:       #f3f6f9;   /* helle Sektion                    */
  --line:        #e2e8ee;
  --white:       #ffffff;
  --maxw:        1140px;
  --radius:      10px;
  --shadow:      0 6px 24px rgba(7, 59, 90, .08);
  --font-head:   "Droid Serif", Georgia, "Times New Roman", serif;
  --font-body:   "Bahnschrift", "Barlow Semi Condensed", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

/* ---- Reset / Grundlagen ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--blue-deep); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .25em 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Sichtbar nur für Screenreader */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip-Link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 84px;
}
.logo img { width: 230px; max-width: 60vw; }

.main-nav ul {
  list-style: none; display: flex; gap: 8px; margin: 0; padding: 0;
}
.main-nav a {
  display: block; padding: 12px 16px;
  color: var(--text); font-weight: 700; letter-spacing: .2px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  color: var(--blue); background: var(--light); text-decoration: none;
}

/* Hamburger-Button (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  border: 0; background: transparent; cursor: pointer;
  padding: 10px; border-radius: var(--radius);
}
.nav-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-toggle span {
  display: block; width: 26px; height: 3px; margin: 5px 0;
  background: var(--indigo); border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block; cursor: pointer;
  padding: 13px 26px; border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; font-weight: 700;
  border: 2px solid var(--blue); background: var(--blue); color: #fff;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover, .btn:focus { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover, .btn-outline:focus { background: var(--blue); color: #fff; }

/* =========================================================
   Sektionen + „Watermark"-Titel wie im Original
   (großes helles Wort im Hintergrund + Titel darüber)
   ========================================================= */
.section { padding: 76px 0; }
.section--light { background: var(--light); }

.section-head { position: relative; text-align: center; margin-bottom: 48px; }
.section-head .watermark {
  display: block;
  font-size: clamp(46px, 9vw, 92px);
  font-weight: 700; line-height: 1;
  color: rgba(7, 59, 90, .06);
  text-transform: uppercase; letter-spacing: 2px;
  user-select: none;
}
.section-head .title {
  position: relative; margin-top: -.55em;
  font-size: clamp(24px, 3.4vw, 30px); color: var(--indigo);
}
.section-head .title::after {
  content: ""; display: block; width: 72px; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green)); margin: 16px auto 0; border-radius: 2px;
}
.section-intro { max-width: 820px; margin: 0 auto 40px; text-align: center; color: var(--muted); }

/* =========================================================
   Hero / Startabschnitt  (Foto Jochen Willwert, Parallax)
   ========================================================= */
/* =========================================================
   Gemeinsame Parallax-Mechanik – auf jedem Banner identisch.
   Eine bewegte Hintergrundebene (::before), per JS über --par
   vertikal verschoben. ::after bleibt der Aufheller (Veil).
   ========================================================= */
.parallax { position: relative; overflow: hidden; }
.parallax::before {
  content: ""; position: absolute; left: 0; right: 0; top: -24%; height: 148%;
  background-size: cover; background-repeat: no-repeat; background-position: center;
  transform: translate3d(0, var(--par, 0px), 0); will-change: transform; z-index: 0;
}
.parallax > * { position: relative; z-index: 2; }   /* Inhalt über Ebene + Veil */

/* =========================================================
   Hero / Startabschnitt  (Foto Jochen Willwert, Parallax)
   ========================================================= */
.hero { color: var(--text); background: #dbe7f1; padding: 150px 0 160px; }
.hero::before {
  background-image: url("images/bg-hero.jpg");   /* leerer Studiohintergrund (Parallax) */
}
/* Freigestellter Jochen als eigene Ebene davor – Knie sitzen am unteren Hero-Rand */
/* Jochen an die linke Kante der zentrierten Inhaltsspalte binden
   (nicht an den Viewport-Rand) – bleibt so auf breiten Monitoren mittig */
.hero-figure {
  position: absolute; z-index: 1; bottom: 0;
  left: max(16px, calc(50% - 555px));
  height: 110%; width: auto; max-width: 42%;
  object-fit: contain; object-position: bottom;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 8px 22px rgba(7,59,90,.14));
}
/* Aufheller rechts, damit der Text gut lesbar bleibt */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.4) 62%, rgba(255,255,255,.8) 80%);
}
.hero .container { position: relative; z-index: 3; }
.hero__inner { max-width: 480px; margin-left: auto; text-align: right; }

/* Auf breiten Monitoren Jochen und Text näher zur Mitte rücken
   (verkleinert den mittleren Abstand); schmale Desktops unverändert */
@media (min-width: 1160px) {
  .hero-figure { left: max(16px, calc(50% - 522px)); }   /* Jochen ~33 px nach rechts */
  .hero__inner { margin-right: 34px; }                    /* Text ~34 px nach links   */
}
.hero__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 4px; font-weight: 700;
  font-size: .8rem; color: var(--blue); margin: 0 0 18px;
  padding-bottom: 8px; border-bottom: 3px solid var(--green);
}
.hero h1 { color: var(--blue-deep); font-size: clamp(30px, 5vw, 48px); margin: 0 0 18px; }
.hero p { font-size: clamp(17px, 2.2vw, 20px); margin: 0 0 12px; color: #2b3038; }
.hero .btn { margin-top: 26px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--blue); color: rgba(255,255,255,.85);
  padding: 40px 0; font-size: .92rem;
}
.site-footer a { color: #fff; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* =========================================================
   Raster + Karten
   ========================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 32px;
}
.section--light .card { background: #fff; }
.card h3 { color: var(--indigo); font-size: 1.25rem; margin-top: 0; }

/* Leistungs-Listen mit Häkchen (Inline-SVG, keine Icon-Font) */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative; padding-left: 30px; margin: .5em 0; color: var(--text);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2379a417' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* =========================================================
   Akkordeon (Leistungs-Themen, Lebensläufe)
   ========================================================= */
.accordion { margin-top: 34px; }
.accordion-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 16px; overflow: hidden;
}
.accordion-trigger {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: 0; padding: 20px 24px;
  font-family: inherit; font-size: 1.15rem; font-weight: 700; color: var(--indigo);
}
.accordion-trigger:hover { color: var(--blue); }
.accordion-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.accordion-trigger .chev {
  flex: 0 0 auto; width: 20px; height: 20px; transition: transform .25s;
  color: var(--blue);
}
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.accordion-panel { padding: 0 24px 22px; }
.accordion-panel > *:first-child { margin-top: 0; }

/* =========================================================
   CTA-Band mit Jochen-Foto (bg_jochen.jpg)
   ========================================================= */
.cta-band {
  background: #dbe4ee;
  min-height: 340px; display: flex; align-items: center;
  text-align: center;
}
.cta-band::before { background-image: url("images/bg-hero.jpg"); }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.7) 0%, rgba(255,255,255,.35) 55%, rgba(255,255,255,.1) 85%);
}
.cta-band .container { width: 100%; }
.cta-band__text { max-width: 760px; margin: 0 auto; }
.cta-band__text p {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.6vw, 38px); font-weight: 700; color: var(--blue-deep);
  margin: 0; line-height: 1.3;
}
.cta-band__text p::after {
  content: ""; display: block; width: 72px; height: 4px; border-radius: 2px;
  background: var(--green); margin: 20px auto 0;
}

/* =========================================================
   Über uns – Team
   ========================================================= */
.prose { max-width: 860px; margin: 0 auto; }
.prose h3 { margin-top: 1.6em; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
/* Foto als kompakter, runder Avatar (ca. halb so groß wie zuvor) */
.team-photo {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  background: #eef1f5; margin: 28px auto 0;
  border: 4px solid #fff; box-shadow: 0 4px 14px rgba(7,59,90,.14);
}
.team-body { padding: 18px 26px 24px; text-align: center; }
.team-role { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; margin: 0 0 4px; }
.team-name { color: var(--indigo); font-size: 1.4rem; font-weight: 700; margin: 0 0 14px; }
.team-body .accordion-item { text-align: left; }
.team-body .accordion-item { margin: 0; }
.team-body .accordion-trigger { font-size: 1rem; padding: 14px 18px; }
.team-body .accordion-panel { padding: 0 18px 18px; }

/* Lebenslauf-Zeitleiste */
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.cv li:first-child { border-top: 0; }
.cv .cv-year { font-weight: 700; color: var(--blue); }

/* =========================================================
   Kontakt
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info dl { margin: 0; }
.contact-block { margin-bottom: 26px; }
.contact-block h3 { color: var(--indigo); font-size: 1.1rem; margin: 0 0 8px; }
.contact-block .rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }
.contact-block .rows dt { color: var(--muted); }
.contact-block .rows dd { margin: 0; }
.contact-block a { font-weight: 700; }

/* Karte: statisches Bild + Route-Button (kein Google-Maps-Embed) */
.map-static { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-static img { width: 100%; display: block; }
.map-static .map-actions {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  padding: 40px 18px 16px; display: flex; justify-content: flex-end;
}
.map-note { font-size: .85rem; color: var(--muted); margin: 10px 2px 0; }

/* Parkplatz-Hinweis unter der Karte */
.parking-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0 0; padding: 12px 14px;
  background: rgba(144, 192, 32, .1); border-left: 4px solid var(--green);
  border-radius: var(--radius); color: var(--text); font-size: .95rem;
}
.parking-note svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--green-dark); margin-top: 1px; }

/* =========================================================
   Kontaktformular
   ========================================================= */
.contact-form { margin-top: 20px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; color: var(--indigo); margin-bottom: 6px; }
.form-row .req { color: var(--blue); }
.contact-form input,
.contact-form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid #c9d0d9; border-radius: var(--radius);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,105,180,.15);
}
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.field-error { display: block; color: #c0392b; font-size: .85rem; margin-top: 5px; min-height: 1em; }
.form-status { margin: 8px 0 0; font-weight: 700; color: var(--indigo); }
.form-hint { font-size: .88rem; color: var(--muted); margin-top: 16px; }

/* =========================================================
   Über uns – moderne Anordnung
   ========================================================= */
.about-lead { max-width: 900px; margin: 0 auto 8px; }
.about-lead .lead {
  font-size: clamp(19px, 2.3vw, 23px); line-height: 1.55; color: var(--blue-deep);
}
.about-grid {
  max-width: 980px; margin: 26px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 44px;
}
.about-grid p { margin: 0 0 1em; }

.highlight-cards {
  max-width: 980px; margin: 44px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.hl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 32px; position: relative; overflow: hidden;
}
.hl-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--blue), var(--green));
}
.hl-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0,112,176,.1); color: var(--blue); margin-bottom: 14px;
}
.hl-icon svg { width: 24px; height: 24px; }
.hl-card h3 { margin: 0 0 10px; color: var(--blue-deep); }
.hl-card p:last-child { margin-bottom: 0; }

.about-signature {
  max-width: 980px; margin: 34px auto 0; text-align: center;
  font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--blue);
}

/* =========================================================
   Kontakt – lockerer, modern (Info-Kacheln + Karte/Formular)
   ========================================================= */
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px;
}
.info-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 26px; text-align: center;
}
.info-badge {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}
.info-badge svg { width: 26px; height: 26px; }
.info-tile h3 { margin: 0 0 10px; color: var(--blue-deep); font-size: 1.15rem; }
.info-tile p, .info-tile address { margin: 0; font-style: normal; line-height: 1.7; }
.info-tile a { font-weight: 700; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { padding: 6px 0; }
.hours li + li { border-top: 1px solid var(--line); }
.hours .day { display: block; color: var(--blue-deep); font-weight: 700; }
.hours .time { display: block; color: var(--text); }
.hours .hours-note { color: var(--muted); font-style: italic; }

.contact-main {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch;
}
.contact-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 32px;
}
.contact-panel > h3:first-child { margin-top: 0; color: var(--blue-deep); }
.contact-panel .map-static { margin-top: 18px; }

@media (max-width: 860px) {
  .about-grid,
  .highlight-cards,
  .contact-cards,
  .contact-main { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================
   Unterseiten (Impressum / Datenschutz)
   ========================================================= */
.page-banner {
  background: #dfe6ef; text-align: center; padding: 96px 0;
}
.page-banner::before { background-image: url("images/bg-hero.jpg"); }
.page-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.72) 0%, rgba(255,255,255,.35) 55%, rgba(255,255,255,0) 85%);
}
.page-banner h1 { color: var(--indigo); font-size: clamp(26px, 4vw, 38px); margin: 0; }

.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { color: var(--indigo); font-size: 1.5rem; margin: 1.8em 0 .5em; padding-bottom: .3em; border-bottom: 2px solid var(--line); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { color: var(--blue); font-size: 1.12rem; margin: 1.4em 0 .4em; }
.legal address { font-style: normal; margin: 0 0 1em; }
.legal ul { padding-left: 1.25em; }

/* Markierung geänderter/neuer Stellen in der Datenschutzerklärung */
.change-legend {
  max-width: 860px; margin: 0 auto 30px; padding: 16px 20px;
  background: #fff8e6; border: 1px solid #f0dca0; border-left: 4px solid #e0a800;
  border-radius: var(--radius); font-size: .95rem;
}
.change-legend strong { color: #8a6d00; }
.changed {
  display: block; margin: 1em 0; padding: 16px 18px;
  background: #fff8e6; border: 1px solid #f0dca0; border-left: 4px solid #e0a800;
  border-radius: var(--radius);
}
.changed .change-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: #8a6d00; background: #ffefbf;
  padding: 2px 8px; border-radius: 20px; margin-bottom: 8px;
}
.changed :last-child { margin-bottom: 0; }

/* =========================================================
   404-Fehlerseite
   ========================================================= */
.error-404 { text-align: center; padding: 90px 0; }
.error-404 .code {
  font-family: var(--font-head); font-weight: 700; line-height: 1;
  font-size: clamp(96px, 20vw, 210px); margin: 0;
  background: linear-gradient(120deg, var(--blue), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-404 h1 { color: var(--blue-deep); font-size: clamp(24px, 4vw, 34px); margin: 4px 0 16px; }
.error-404 p { max-width: 560px; margin: 0 auto 10px; color: var(--muted); }
.error-404 .actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.error-404 .quick-links { margin-top: 34px; font-size: .95rem; color: var(--muted); }
.error-404 .quick-links a { margin: 0 10px; white-space: nowrap; }

/* =========================================================
   Responsive: Mobile-Menü
   ========================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 60vh; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav a { padding: 14px 22px; border-radius: 0; }
  .main-nav li + li a { border-top: 1px solid var(--line); }

  .header-inner { min-height: 70px; }
  .section { padding: 56px 0; }
  .footer-inner { flex-direction: column; text-align: center; }

  .grid-2,
  .team-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }

  /* Hero mobil: Jochen zentriert oben (Beine per Maske ausblendend), Text darunter */
  .hero { padding: 360px 0 46px; }
  .hero-figure {
    height: auto; width: 58%; max-width: 280px;
    left: 50%; transform: translateX(-50%); bottom: auto; top: 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
            mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
    filter: none;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.6) 62%, rgba(255,255,255,.85) 100%);
  }
  .hero__inner { max-width: none; margin: 0 auto; text-align: center; }
  .hero__eyebrow { display: inline-block; }

  .cta-band { min-height: 0; padding: 70px 0; }
}

@media (max-width: 520px) {
  .cv li { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .cv .cv-year { color: var(--blue); }
  .contact-block .rows { grid-template-columns: 1fr; gap: 2px; }
  .contact-block .rows dt { margin-top: 6px; }
}
