/* ===========================================================
   Rechtsanwaltskanzlei Wojciechowski-Witsch
   Stylesheet — System-typografisch (Lora-/Heebo-nah)
   ===========================================================
   Schriftarten ohne Webfont-Downloads — Georgia entspricht visuell
   weitgehend Lora (dem ursprünglichen WP-Body-Font); für Überschriften
   wird die System-Sans-Serif genutzt (entspricht weitgehend Heebo).
   Keine externen Anfragen, kein Google Fonts CDN.
   =========================================================== */

:root {
  --ink: #1a2332;
  --ink-deep: #0d1622;
  --paper: #f5f0e6;
  --paper-warm: #ede5d3;
  --paper-soft: #faf6ec;
  --bronze: #8b6f3e;
  --bronze-light: #b08a4f;
  --line: rgba(26, 35, 50, 0.12);
  --line-strong: rgba(26, 35, 50, 0.22);
  --muted: rgba(26, 35, 50, 0.62);

  --font-serif: Georgia, "Times New Roman", "Liberation Serif", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============== Skip-Link (a11y) ============== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-deep);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ============== Topbar ============== */
.topbar {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(245, 240, 230, 0.92);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark { line-height: 1.1; text-decoration: none; flex: 0 0 auto; }
.wordmark-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.005em;
  color: var(--ink-deep);
}
.wordmark-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}
nav.primary ul {
  display: flex;
  list-style: none;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav.primary a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  display: inline-block;
  min-height: 2.75rem;     /* WCAG-empfohlene Mindestgröße für Touch-Targets (44 px) */
  line-height: 1.7;
}
nav.primary a::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--bronze);
  transition: right 0.3s ease;
}
nav.primary a:hover::after,
nav.primary a[aria-current="page"]::after { right: 0; }
nav.primary a[aria-current="page"] { color: var(--bronze); }

/* ============== Hero (homepage) ============== */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--paper-warm) 0%, transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem;
  align-items: end;
  position: relative;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--bronze);
  flex: 0 0 auto;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
  margin-bottom: 1.75rem;
}
.hero p.lead {
  font-size: 1.075rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 2.75rem;
}
.cta-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ============== Buttons & inline links ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  background: var(--ink-deep);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: background 0.25s ease, transform 0.25s ease;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--bronze); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.5rem 0;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}
.btn-ghost:hover { color: var(--bronze); border-color: var(--bronze); }

/* ============== Contact card ============== */
.contact-card {
  background: var(--paper-soft);
  padding: 2.25rem 2rem;
  border-left: 2px solid var(--bronze);
  box-shadow: 0 1px 0 rgba(26,35,50,0.04), 0 20px 40px -25px rgba(26,35,50,0.15);
}
.contact-card-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.contact-card-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
  color: var(--ink-deep);
  line-height: 1.2;
}
.contact-card dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.85rem 1rem;
  align-items: baseline;
}
.contact-card dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.contact-card dd { font-size: 0.92rem; line-height: 1.5; }
.contact-card a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s ease;
}
.contact-card a:hover { color: var(--bronze); border-color: var(--bronze); }
.contact-card-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============== Sections ============== */
.section { padding: 6rem 0; }
.section--bordered { border-top: 1px solid var(--line); }
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.section-head p {
  color: var(--muted);
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.65;
}

/* ============== Practice areas grid (homepage) ============== */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.practice-item {
  padding: 2.75rem 2rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  transition: background 0.25s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.practice-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.practice-item:hover {
  background: var(--paper-soft);
}
.practice-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--bronze);
  letter-spacing: 0.05em;
  padding-top: 0.4rem;
}
.practice-item h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--ink-deep);
  letter-spacing: -0.005em;
}
.practice-item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}
.practice-additional {
  background: var(--paper-warm);
  padding: 1.25rem 2rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.practice-additional strong { color: var(--bronze); font-weight: 500; }

/* ============== About / Portrait ============== */
.about { background: var(--paper-warm); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.about-portrait-wrap {
  position: relative;
  max-width: 380px;
}
.about-portrait-wrap::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: -1.25rem;
  bottom: -1.25rem;
  border: 1px solid var(--bronze);
  pointer-events: none;
  z-index: 0;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
  filter: contrast(1.04) saturate(0.92);
  background: var(--ink-deep);
}
.about-content h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 1.75rem;
  letter-spacing: -0.018em;
}
.about-content p {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 540px;
}
.about-facts {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  max-width: 540px;
}
.about-facts-item .num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--ink-deep);
  line-height: 1;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}
.about-facts-item .label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ============== Vertrauensanwalt block ============== */
.vertrauen {
  background: var(--ink-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.vertrauen::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(176, 138, 79, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.vertrauen-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}
.vertrauen .section-eyebrow { color: var(--bronze-light); }
.vertrauen h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  color: var(--paper);
  line-height: 1.12;
  margin-bottom: 1.75rem;
  letter-spacing: -0.012em;
}
.vertrauen p {
  color: rgba(245, 240, 230, 0.78);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 480px;
}
.vertrauen .btn {
  background: var(--bronze);
  color: var(--ink-deep);
}
.vertrauen .btn:hover { background: var(--paper); color: var(--ink-deep); }
.vertrauen-card {
  background: rgba(245, 240, 230, 0.04);
  padding: 2rem;
  border-left: 2px solid var(--bronze);
}
.vertrauen-card-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 1rem;
  font-weight: 500;
}
.vertrauen-card-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--paper);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.vertrauen-card p {
  color: rgba(245, 240, 230, 0.7);
  font-size: 0.92rem;
  margin: 0;
}

/* ============== Inner page header ============== */
.page-header {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.page-header .container-narrow { padding-left: 2rem; padding-right: 2rem; }
.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.breadcrumb a {
  color: var(--bronze);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.5em; opacity: 0.5; }
.page-header h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink-deep);
  max-width: 720px;
}

/* ============== Inner page content ============== */
.page-content {
  padding: 3.5rem 0 5rem;
}
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ink);
}
.prose p { margin-bottom: 1.4rem; }
.prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 3rem 0 1.25rem;
  color: var(--ink-deep);
}
.prose h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 2.25rem 0 1rem;
  color: var(--ink-deep);
}
.prose h4 {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
  color: var(--bronze);
}
.prose strong { font-weight: 600; color: var(--ink-deep); }
.prose em { font-style: italic; }
.prose a {
  color: var(--ink-deep);
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.prose a:hover { color: var(--bronze); }
.prose ul, .prose ol {
  margin: 0 0 1.4rem 1.5rem;
  padding-left: 0.5rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose ul li::marker { color: var(--bronze); }
.prose blockquote {
  margin: 2rem 0;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 2px solid var(--bronze);
  font-style: italic;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.55;
}
.prose hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid var(--line);
}

/* WordPress block table styling — used heavily for content */
.prose .wp-block-table {
  margin: 2rem 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.prose table td,
.prose table th {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.prose table th {
  background: var(--paper-soft);
  font-weight: 600;
  color: var(--ink-deep);
}

/* WordPress columns */
.prose .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.prose .wp-block-column > * { margin-bottom: 1rem; }

/* Highlighted intro paragraph (red brand box from old WP, now: editorial cite) */
.prose .intro-block {
  background: var(--paper-soft);
  border-left: 2px solid var(--bronze);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-deep);
}

/* WordPress text alignment & color helpers — preserved so the lawyer's
   deliberate styling decisions (e.g. centered red intro box on homepage)
   render as intended. */
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose .has-text-align-left { text-align: left; }
.prose .has-background { padding: 1.25rem 1.5rem; }
.prose .has-white-color { color: #fff; }
.prose .has-text-color.has-background { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.3; }

/* ============== Homepage portrait (above content) ============== */
.home-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
  margin: 0 0 1.75rem;
}
.home-portrait {
  margin: 0 0 2rem;
}
.home-portrait img {
  display: block;
  max-width: 200px;
  height: auto;
  border: 1px solid var(--line);
}

/* ============== Vertrauensanwalt contact form ============== */
.vform {
  margin: 2rem 0;
  background: var(--paper-soft);
  border-left: 2px solid var(--bronze);
  padding: 2rem;
}
.vform-intro {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.vform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.vform label {
  display: block;
  margin-bottom: 1.25rem;
}
.vform-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-deep);
  margin-bottom: 0.45rem;
}
.vform-label em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}
.vform-required {
  color: var(--bronze);
  font-weight: 500;
}
.vform input[type="text"],
.vform input[type="email"],
.vform textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.15s ease;
}
.vform input[type="text"]:focus,
.vform input[type="email"]:focus,
.vform textarea:focus {
  outline: none;
  border-color: var(--bronze);
}
.vform textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
}
.vform-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.vform button[type="submit"] {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--ink-deep);
  color: var(--paper);
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}
.vform button[type="submit"]:hover {
  background: var(--bronze);
}
.vform-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .vform { padding: 1.25rem; }
  .vform-row { grid-template-columns: 1fr; gap: 0; }
}

/* Inline section nav (e.g. on Aufsätze, Urteilssammlung) */
.section-nav {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.section-nav li { padding: 0; }
.section-nav a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--paper-soft);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--ink-deep);
  font-weight: 500;
  transition: all 0.2s ease;
}
.section-nav a:hover {
  border-left-color: var(--bronze);
  background: var(--paper-warm);
  padding-left: 1.5rem;
}

/* ============== Footer ============== */
footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
footer h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
footer ul { list-style: none; }
footer li { margin-bottom: 0.6rem; line-height: 1.5; }
footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
footer a:hover { color: var(--bronze); }
.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.005em;
  margin-bottom: 0.6rem;
  color: var(--ink-deep);
}
.footer-tag {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.footer-bottom-links a { font-size: 0.78rem; }

/* ============== Error pages ============== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}
.error-code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 400;
  color: var(--bronze);
  line-height: 1;
  margin-bottom: 1.5rem;
}

/* ============== Responsive ============== */
@media (max-width: 880px) {
  .container, .container-narrow { padding: 0 1.25rem; }
  .topbar { padding: 1.1rem 0; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  nav.primary ul { gap: 1rem 1.25rem; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid, .section-head, .about-grid, .vertrauen-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .section { padding: 4rem 0; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-item { padding: 2rem 1rem; }
  .practice-item:nth-child(odd) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-facts { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-header { padding: 2.5rem 0 2rem; }
  .page-content { padding: 2.5rem 0 4rem; }
  .prose { font-size: 1rem; }
  .about-portrait-wrap::before { right: -0.75rem; bottom: -0.75rem; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .contact-card dl { grid-template-columns: 70px 1fr; }
}

/* ============== Print ============== */
@media print {
  .topbar, footer, .vertrauen, nav.primary { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .container, .container-narrow { max-width: 100%; padding: 0; }
  a { color: black; text-decoration: underline; }
  .hero { padding: 1rem 0; }
}

/* ============== Subtle entrance animations ============== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow, .hero h1, .hero p.lead, .cta-row, .contact-card,
.page-header h1, .breadcrumb {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 { animation-delay: 0.08s; }
.hero p.lead { animation-delay: 0.16s; }
.cta-row { animation-delay: 0.24s; }
.contact-card { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============== Mobile hamburger menu ============== */
/* Visually-hidden utility (for screen reader text) */
.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;
}

/* Hide the toggle input visually but keep it accessible */
.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Desktop: hide the hamburger label, show nav inline */
.nav-toggle-label { display: none; }

/* Mobile: hamburger menu */
@media (max-width: 880px) {
  .topbar-inner {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }

  .wordmark { flex: 1; min-width: 0; }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--ink-deep);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: background 0.2s ease;
  }
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
  }
  .nav-toggle-icon::before { top: -7px; }
  .nav-toggle-icon::after  { top: 7px;  }

  /* X-state when checkbox is checked */
  .nav-toggle-input:checked ~ .nav-toggle-label .nav-toggle-icon {
    background: transparent;
  }
  .nav-toggle-input:checked ~ .nav-toggle-label .nav-toggle-icon::before {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-input:checked ~ .nav-toggle-label .nav-toggle-icon::after {
    transform: translateY(-7px) rotate(-45deg);
  }
  /* Visual focus state on keyboard focus */
  .nav-toggle-input:focus-visible ~ .nav-toggle-label {
    outline: 2px solid var(--bronze);
    outline-offset: 2px;
  }

  /* Nav: hidden by default, visible when checkbox checked */
  nav.primary {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
  }
  .nav-toggle-input:checked ~ nav.primary {
    display: block;
  }

  /* Mobile nav layout: vertical list, full-width tap targets */
  nav.primary ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  nav.primary li {
    width: 100%;
    border-top: 1px solid var(--line);
  }
  nav.primary a {
    display: block;
    padding: 1rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }
  /* Disable hover-underline animation on mobile (it conflicts with full-width links) */
  nav.primary a::after { display: none; }
  nav.primary a[aria-current="page"] {
    color: var(--bronze);
  }
}
