:root {
  --ink: #16212c;
  --ink-soft: #47566a;
  --muted: #8195a8;
  --line: #dfe6ea;
  --paper: #f5f8fa;
  --paper-2: #eaf0f4;
  --white: #ffffff;
  --accent: #1c3a5e;
  --accent-deep: #12283f;
  --accent-tint: #e6eef4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 1.7rem 0 2.7rem;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  animation: fadeDown 0.6s ease both;
}

.brand { display: flex; align-items: center; gap: 0.3rem; text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28em 0.45em;
  background: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand-word {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-word span { font-weight: 400; color: var(--muted); }

nav.mainnav { display: flex; gap: 2.3rem; }
nav.mainnav a {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav.mainnav a:hover, nav.mainnav a.active { color: var(--ink); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO (landing page only) ── */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 68px;
  display: flex;
  align-items: center;
  background: var(--paper);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('hero-bg.jpg') center 65% / cover no-repeat;
  opacity: 0.6;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem);
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-text { max-width: 620px; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2rem;
}

h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent);
  letter-spacing: -0.03em;
}
h1 .name {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 1.3rem;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 420px;
  font-weight: 300;
  line-height: 1.9;
}

.hero-cta {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.85rem 2.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-deep); }

.btn-secondary {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, gap 0.2s;
}
.btn-secondary:hover { color: var(--accent); gap: 0.9rem; }
.btn-secondary::after { content: '→'; }

/* ── SECTION BASE ── */
section { padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5vw, 4rem); }

/* ── PAGE HEADER (internal pages) ── */
.page-header {
  padding-top: calc(68px + clamp(2.5rem, 6vw, 4.5rem));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-header .rule { margin-bottom: 0; }
.page-header p {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 640px;
  line-height: 1.9;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* ── PROFIL (photo) ── */
.profil-page-inner {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 900px;
  margin-top: 3rem;
}
.profil-photo {
  width: 100%;
  aspect-ratio: 7/ 8;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.profil-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center -0.01%;
  display: block;
  filter: grayscale(0.08);
}
.profil-fullname {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.profil-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}
.profil-text p { font-size: 0.92rem; color: var(--ink-soft); font-weight: 300; margin-top: 1.2rem; line-height: 1.9; max-width: 460px; }
.profil-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.6rem;
  transition: background 0.2s;
}
.profil-cta:hover { background: var(--accent-deep); }

/* ── UNSERE KANZLEI (intro) ── */
#kanzlei-intro { border-bottom: 1px solid var(--line); }
#kanzlei-intro p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.9;
  max-width: 680px;
}

#profil { background: var(--paper); border-bottom: 1px solid var(--line); }

/* ── SCHWERPUNKTE ── */
#schwerpunkte { background: var(--white); border-bottom: 1px solid var(--line); }

.sp-list { margin-top: 3rem; }

.sp-row {
  border-top: 1px solid var(--line);
  cursor: default;
  overflow: hidden;
}
.sp-row:last-child { border-bottom: 1px solid var(--line); }

.sp-row-head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.7rem 0;
  cursor: pointer;
  user-select: none;
}
.sp-row-head:hover .sp-row-title { color: var(--accent); }
.sp-row-head:hover .sp-row-num { color: var(--ink); }

.sp-row-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

.sp-row-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.sp-row-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sp-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  background: var(--paper);
}

.sp-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.sp-row-body-inner { overflow: hidden; }
.sp-row-body-inner p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.85;
  padding-bottom: 1.9rem;
  padding-left: calc(56px + 2rem);
  max-width: 580px;
}

.sp-row.open .sp-row-body { grid-template-rows: 1fr; }
.sp-row.open .sp-row-title { color: var(--accent); }
.sp-row.open .sp-row-num { color: var(--ink); }

/* ── AKTUELLES ── */
.news-card {
  margin-top: 3rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 2.2rem;
  max-width: 680px;
}
.news-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}
.news-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.news-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.85;
}
.news-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ── KONTAKT ── */
.kontakt-inner {
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}
.kontakt-block { margin-top: 1.6rem; }
.kontakt-block:first-child { margin-top: 0; }
.kontakt-block strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.kontakt-block p { font-size: 0.92rem; color: var(--ink); font-weight: 300; }
.kontakt-block a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.2s;
  font-size: 0.92rem;
}
.kontakt-block a:hover { opacity: 0.6; }

.contact-card {
  background: var(--accent-tint);
  border: 1px solid var(--line);
  padding: 2.4rem;
}
.contact-card h3 { color: var(--ink); margin-bottom: 0.9rem; }
.contact-card p {
  font-size: 0.87rem;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 1.9rem;
  line-height: 1.8;
}
.contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.85rem 1.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.contact-card a:hover { background: var(--accent-deep); }
.contact-card a::after { content: '→'; }

/* ── IMPRESSUM ── */
.impressum-list { margin-top: 3rem; display: flex; flex-direction: column; max-width: 740px; }
.imp-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.imp-row:last-child { border-bottom: 1px solid var(--line); }
.imp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding-top: 0.1rem;
}
.imp-value { font-size: 0.9rem; color: var(--ink); font-weight: 300; line-height: 1.8; }
.imp-value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.2s;
}
.imp-value a:hover { opacity: 0.6; }

/* ── DATENSCHUTZ ── */
.datenschutz-inner { max-width: 740px; }
.ds-block { border-top: 1px solid var(--line); padding: 1.9rem 0; }
.ds-block:first-child { border-top: none; margin-top: 3rem; }
.ds-block h3 { font-size: 0.94rem; margin-bottom: 0.65rem; }
.ds-block p { font-size: 0.87rem; color: var(--ink-soft); font-weight: 300; line-height: 1.85; }
.ds-block a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.2s;
}
.ds-block a:hover { opacity: 0.6; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 2.6rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.3rem; }
.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28em 0.45em;
  background: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.8);
}
.footer-logo span { font-weight: 400; color: rgba(255,255,255,0.45); }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.9); }
.footer-copy { font-size: 0.66rem; color: rgba(255,255,255,0.3); font-family: 'JetBrains Mono', monospace; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .profil-page-inner { grid-template-columns: 1fr; }
  .profil-photo { max-width: 360px; }
}

@media (max-width: 768px) {
  .kontakt-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .imp-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .sp-row-tags { display: none; }
  .sp-row-head { grid-template-columns: 40px 1fr; }
  .sp-row-body-inner p { padding-left: calc(40px + 1rem); }

  .nav-toggle { display: flex; }

  nav.mainnav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
  }
  nav.mainnav.open { max-height: 360px; }
  nav.mainnav a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }
  nav.mainnav a:last-child { border-bottom: none; }

  .hero-tagline { display: none; }
  .hero-cta .btn-secondary { display: none; }
}
