/* ============================================================
   Paragrafen-Puzzle · Kanzlei für Datenschutz & IT-Recht
   Konzept: CI Paragrafen-Puzzle — Tannengrün, Salbei, Off-White.
   Fonts self-hosted (DSGVO-konform, keine externen Requests).
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design Tokens ---------- */
:root {
  /* CI Paragrafen-Puzzle — Token-Namen bewusst beibehalten, Werte = Grün-Palette */
  --navy: #166023;        /* primäres Tannengrün — dunkle Bänder, Hero, Kontakt */
  --navy-soft: #1C7A33;   /* helleres Grün für Verläufe */
  --navy-deep: #0E3F19;   /* tiefstes Grün — Footer, Mobile-Nav */
  --ink: #18271B;         /* Fließtext auf Hell (grünstichiges Anthrazit) */
  --paper: #F5F4EF;       /* warmes Off-White — Seitenhintergrund */
  --card: #FFFFFF;        /* Karten */
  --sand: #E6EFE4;        /* blasses Salbei — Flächen (ersetzt Sand) */
  --sand-band: #EEF3EA;   /* noch hellere Salbei-Band-Fläche */
  --brick: #1C7A33;       /* Akzent-Grün — Links, Unterstriche, Auswahl */
  --brick-deep: #166023;  /* primäres Grün — Buttons, Heading-Akzent */
  --brick-dark: #0F4D1A;  /* Hover dunkel */
  --brick-light: #A9D2AF; /* Salbei-hell — Akzent auf dunklem Grün */
  --line: rgba(24, 39, 27, 0.14);
  --line-light: rgba(245, 244, 239, 0.18);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow-card: 0 18px 44px rgba(14, 63, 25, 0.10);
  --ease: cubic-bezier(0.22, 0.65, 0.25, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  /* Anker sitzen auf den Inhalts-Containern; nur Header-Höhe + kleiner Abstand abziehen */
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

::selection { background: var(--brick); color: #F5F4EF; }

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 44px);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 7vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; }
h3 { font-size: 1.4rem; font-weight: 480; line-height: 1.25; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brick-deep);
  margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--brick-light); }

.section-head { max-width: 640px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

section { padding-block: clamp(76px, 10vw, 136px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 0.62rem 1.15rem; font-size: 0.88rem; }

.btn-primary {
  background: var(--brick-deep);
  color: #F5F4EF;
  box-shadow: 0 8px 22px rgba(22, 96, 35, 0.28);
}
.btn-primary:hover {
  background: var(--brick-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 96, 35, 0.34);
}

.btn-ghost {
  border-color: rgba(245, 244, 239, 0.38);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(245, 244, 239, 0.07);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--brick-deep);
  color: var(--brick-deep);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  color: var(--paper);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(245, 244, 239, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(14, 63, 25, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
/* Brand = handgeschriebene Wortmarke (CI), als freigestelltes Bild */
.brand-wordmark { height: 30px; width: auto; display: block; }
.brand:hover .brand-wordmark { opacity: 0.82; transition: opacity 0.2s; }
/* Altlasten der bisherigen SVG-Marke — bleiben für evtl. Restvorkommen neutral */
.brand-mark { width: 30px; height: 30px; flex: none; }

.site-nav { display: flex; gap: 2.1rem; }
.site-nav a {
  font-size: 0.93rem;
  font-weight: 530;
  opacity: 0.85;
  position: relative;
  padding-block: 0.35rem;
  transition: opacity 0.2s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--brick);
  transition: right 0.3s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-deep);
  padding: 0.6rem 1.6rem 1.8rem;
}
.nav-open .mobile-nav { display: flex; }
.mobile-nav a {
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 550;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-light);
}
.mobile-nav-cta { color: var(--brick-light) !important; border-bottom: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 82% -10%, rgba(169, 210, 175, 0.16), transparent 60%),
    radial-gradient(900px 700px at -15% 110%, rgba(14, 63, 25, 0.9), transparent 65%),
    var(--navy);
  color: var(--paper);
  padding-block: clamp(150px, 19vh, 210px) clamp(120px, 14vw, 180px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 { color: var(--paper); }

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.7;
  color: rgba(245, 244, 239, 0.82);
  max-width: 34em;
  margin-top: 1.6rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

.hero-trust {
  margin-top: 3.2rem;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: rgba(245, 244, 239, 0.6);
}

.hero-art {
  position: relative;
  align-self: center;
  justify-self: end;
}
.hero-art svg { width: 100%; height: auto; }
.hero-hand {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-inline-start: auto;
  opacity: 0.97;
  transform: rotate(-2deg);
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.28));
}

.hero-wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: clamp(40px, 7vw, 90px); }

/* ---------- Statement / Positionierung ---------- */
.statement { padding-block: clamp(80px, 9vw, 120px) clamp(60px, 7vw, 90px); }

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 21em;
}
.statement-text em {
  font-style: normal;
  color: var(--brick-deep);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 530;
  line-height: 1;
  margin-bottom: 0.55rem;
}
.stats li:last-child strong { color: var(--brick-deep); }
.stats span {
  font-size: 0.88rem;
  color: rgba(24, 39, 27, 0.68);
}

/* ---------- Leistungen ---------- */
.services { padding-top: clamp(40px, 5vw, 70px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 96, 35, 0.35);
  box-shadow: var(--shadow-card);
}

.card-num {
  position: absolute;
  top: 1.6rem;
  right: 1.8rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 530;
  color: rgba(22, 96, 35, 0.55);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--sand);
  border-radius: 50%;
  color: var(--brick-deep);
  margin-bottom: 1.6rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.card-icon svg { width: 34px; height: 34px; }
.card:hover .card-icon { background: var(--brick-deep); color: var(--paper); }

.card h3 { margin-bottom: 0.8rem; hyphens: manual; }
.card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(24, 39, 27, 0.78);
}

/* ---------- Warum ---------- */
.why {
  background:
    radial-gradient(900px 500px at 110% 0%, rgba(169, 210, 175, 0.13), transparent 60%),
    var(--navy);
  color: var(--paper);
  position: relative;
}
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  pointer-events: none;
}

.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.why h2 { color: var(--paper); }
.why .section-head { margin-bottom: 0; }
.why-note {
  margin-top: 1.4rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(245, 244, 239, 0.65);
  max-width: 30em;
}

.why-list { counter-reset: why; }
.why-list li {
  counter-increment: why;
  position: relative;
  padding: 1.9rem 0 1.9rem 4.6rem;
  border-top: 1px solid var(--line-light);
}
.why-list li:last-child { border-bottom: 1px solid var(--line-light); }
.why-list li::before {
  content: counter(why, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2.1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 480;
  color: var(--brick-light);
}
.why-list h3 { color: var(--paper); margin-bottom: 0.6rem; }
.why-list p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(245, 244, 239, 0.72);
  max-width: 36em;
}

/* ---------- Kanzlei / Über ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, rgba(169, 210, 175, 0.16), transparent 55%),
    linear-gradient(20deg, rgba(14, 63, 25, 0.12), transparent 50%),
    var(--sand);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(22, 96, 35, 0.35);
  border-radius: 8px;
  pointer-events: none;
}
.portrait-monogram {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  font-weight: 460;
  color: var(--navy);
  opacity: 0.82;
  letter-spacing: 0.04em;
}
.portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 1;
}
.about-portrait figcaption {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(24, 39, 27, 0.66);
}
.about-portrait figcaption strong {
  display: block;
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 620;
}

.about-text p { margin-top: 1.15rem; max-width: 38em; }
.about-text p:first-child { margin-top: 1.6rem; }
.about-text strong { font-weight: 620; }

.about-quote {
  margin: 2.2rem 0;
  padding-left: 1.6rem;
  border-left: 3px solid var(--brick);
}
.about-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 440;
  line-height: 1.4;
  color: var(--brick-deep);
}

.about-facts { display: grid; gap: 0.7rem; }
.about-facts li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.94rem;
  color: rgba(24, 39, 27, 0.8);
}
.about-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.95rem;
  height: 2px;
  background: var(--brick);
  border-radius: 2px;
}

/* ---------- Ablauf ---------- */
.process { background: var(--sand-band); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.steps li { position: relative; padding-top: 0.4rem; }

.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--brick-deep);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--brick-deep);
  background: transparent;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}

/* Verbindungslinie zwischen den Schritten */
.steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  top: calc(0.4rem + 26px);
  left: 64px;
  right: calc(-1 * clamp(1.5rem, 3vw, 2.5rem) + 12px);
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(22, 96, 35, 0.45) 0 6px, transparent 6px 13px);
}

.steps h3 { margin-bottom: 0.7rem; }
.steps p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(24, 39, 27, 0.76);
  max-width: 30em;
}

/* ---------- Aktuelles ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 2.6vw, 2.2rem);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 96, 35, 0.35);
  box-shadow: var(--shadow-card);
}

.news-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brick-deep);
  background: var(--sand);
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}

.news-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.8rem;
}
.news-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(24, 39, 27, 0.72);
  margin-bottom: 1.6rem;
}

.news-more {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 620;
  color: var(--brick-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.news-more::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.news-card:hover .news-more::after { transform: translateX(5px); }

/* ---------- Wiki-Teaser (Startseite) ---------- */
.wiki-teaser { background: var(--sand-band); }
.wiki-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.7rem);
}
.wiki-chip-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}
.wiki-chip-card:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 96, 35, 0.35);
  box-shadow: var(--shadow-card);
}
.wiki-chip-letter {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--brick-deep);
  background: var(--sand);
  border-radius: 11px;
}
.wiki-chip-card h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.wiki-chip-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(24, 39, 27, 0.7);
}
@media (max-width: 900px) {
  .wiki-teaser-grid { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */
.contact {
  background:
    radial-gradient(1000px 600px at -10% -20%, rgba(169, 210, 175, 0.14), transparent 60%),
    var(--navy);
  color: var(--paper);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact h2 { color: var(--paper); max-width: 11em; }

.contact-sub {
  margin-top: 1.4rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(245, 244, 239, 0.72);
  max-width: 30em;
}

.contact-channels {
  margin-top: 2.6rem;
  display: grid;
  gap: 1.6rem;
}
.contact-channel { display: block; width: fit-content; }
.contact-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 244, 239, 0.55);
  margin-bottom: 0.3rem;
}
.contact-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 440;
  letter-spacing: -0.01em;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.contact-channel:hover .contact-value {
  color: var(--brick-light);
  border-color: var(--brick-light);
}

.contact-card {
  position: relative;
  background: rgba(20, 80, 33, 0.55);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.4rem);
}
.contact-card h3 { color: var(--paper); margin-bottom: 1.2rem; }
.contact-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-light);
}
.contact-person img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(169, 210, 175, 0.5);
  flex: none;
}
.contact-person strong {
  display: block;
  color: var(--paper);
  font-size: 1.02rem;
  font-weight: 620;
  line-height: 1.3;
}
.contact-person span {
  font-size: 0.86rem;
  color: rgba(245, 244, 239, 0.6);
}
.contact-card address {
  line-height: 1.7;
  color: rgba(245, 244, 239, 0.85);
}
.contact-hint {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(245, 244, 239, 0.62);
}
.contact-map {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brick-light);
  border-bottom: 1px solid rgba(169, 210, 175, 0.45);
  padding-bottom: 2px;
  transition: border-color 0.25s, color 0.25s;
}
.contact-map:hover { color: var(--paper); border-color: var(--paper); }

.privacy-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: fit-content;
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 0.88rem;
  color: rgba(245, 244, 239, 0.75);
  text-align: center;
}
.privacy-badge svg { width: 19px; height: 19px; flex: none; color: var(--brick-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 244, 239, 0.62);
  padding-block: 3rem;
  font-size: 0.88rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2.5rem;
  align-items: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.55;
}
.footer-brand .brand-wordmark { height: 30px; opacity: 0.95; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.footer-nav a { transition: color 0.2s; }
.footer-nav a:hover { color: var(--paper); }
.footer-copy { opacity: 0.75; }
.footer-credit { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; opacity: 0.75; font-size: 0.82rem; transition: opacity 0.2s; }
.footer-credit img { height: 28px; width: auto; display: block; border-radius: 4px; flex: none; }
.footer-credit .credit-lines { display: flex; flex-direction: column; line-height: 1.35; text-align: left; }
.footer-credit b { font-weight: 650; color: #fff; }
.footer-credit:hover { opacity: 1; color: #fff; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.subpage-main {
  padding-top: clamp(140px, 18vh, 190px);
  padding-bottom: clamp(80px, 10vw, 130px);
  min-height: 70vh;
}
.subpage-main .container { max-width: 820px; }
.subpage-main h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 2.5rem; }
.subpage-main h2 {
  font-size: 1.45rem;
  margin: 2.6rem 0 0.9rem;
}
.subpage-main p, .subpage-main address { margin-top: 0.8rem; max-width: 60ch; }
.subpage-main a { color: var(--brick-deep); border-bottom: 1px solid rgba(22, 96, 35, 0.35); }
.subpage-main a:hover { border-color: var(--brick-deep); }

.draft-note {
  background: var(--sand);
  border: 1px solid rgba(22, 96, 35, 0.3);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  color: rgba(24, 39, 27, 0.85);
  margin-bottom: 2.5rem;
}

/* Header-Variante für Unterseiten: immer dunkel auf hell */
.site-header.header-solid {
  background: rgba(245, 244, 239, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

/* ============================================================
   Blog / Wiki / Artikel — generierte Seiten
   ============================================================ */

.site-nav a.active { opacity: 1; }
.site-nav a.active::after { right: 0; }

/* ---------- Listing-Hero (Blog- & Wiki-Index) ---------- */
.listing-main { background: var(--paper); }
.listing-hero {
  padding-top: clamp(130px, 17vh, 180px);
  padding-bottom: clamp(40px, 5vw, 64px);
  background:
    radial-gradient(700px 320px at 85% -40%, rgba(169, 210, 175, 0.10), transparent 60%),
    var(--sand-band);
  border-bottom: 1px solid var(--line);
}
.listing-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-top: 0.4rem;
}
.listing-sub {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(24, 39, 27, 0.72);
  max-width: 40em;
}

.listing-body { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(70px, 9vw, 120px); }

/* ---------- Such- und Filterleiste ---------- */
.listing-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}
.search-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.search-wrap svg {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: rgba(24, 39, 27, 0.4);
  pointer-events: none;
}
#post-search {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.85rem 1rem 0.85rem 2.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
#post-search::placeholder { color: rgba(24, 39, 27, 0.42); }
#post-search:focus, #post-search:focus-visible {
  outline: none;
  border-color: var(--brick-deep);
  box-shadow: 0 0 0 4px rgba(22, 96, 35, 0.1);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 540;
  color: var(--navy-soft);
  padding: 0.5rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.chip:hover {
  border-color: rgba(22, 96, 35, 0.4);
  color: var(--brick-deep);
  transform: translateY(-1px);
}
.chip:focus-visible {
  outline: none;
  border-color: var(--brick-deep);
  box-shadow: 0 0 0 3px rgba(22, 96, 35, 0.18);
}
.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}
.chip.active:hover { color: var(--paper); }

.result-count {
  font-size: 0.85rem;
  color: rgba(24, 39, 27, 0.55);
  margin-bottom: 1.6rem;
  letter-spacing: 0.01em;
}

/* ---------- Beitrags-Grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.7rem);
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 1.9rem);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 96, 35, 0.35);
  box-shadow: var(--shadow-card);
}
.post-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick-deep);
  background: var(--sand);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.post-card h2 {
  font-size: 1.2rem;
  line-height: 1.28;
  font-weight: 480;
  margin-bottom: 0.7rem;
}
.post-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(24, 39, 27, 0.7);
  margin-bottom: 1.4rem;
}
.post-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(24, 39, 27, 0.55);
}
.post-arrow {
  color: var(--brick-deep);
  font-weight: 600;
  transition: transform 0.3s var(--ease);
}
.post-card:hover .post-arrow { transform: translateX(4px); }

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(24, 39, 27, 0.6);
  font-size: 1rem;
}
.show-more-wrap { text-align: center; margin-top: clamp(2.5rem, 4vw, 3.5rem); }

/* ---------- Wiki-Index ---------- */
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.wiki-card {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}
.wiki-card:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 96, 35, 0.35);
  box-shadow: var(--shadow-card);
}
.wiki-card-letter {
  flex: none;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--brick-deep);
  background: var(--sand);
  border-radius: 12px;
}
.wiki-card h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.wiki-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(24, 39, 27, 0.7);
  margin-bottom: 0.9rem;
}

/* ---------- Artikel-Seite ---------- */
.article-main { background: var(--paper); }
.article-wrap {
  max-width: 760px;
  padding-top: clamp(120px, 15vh, 170px);
}
/* Luft zum Footer, wenn kein „Weitere Beiträge"-Block folgt (z. B. Wiki-Seiten) */
.article-wrap:last-child {
  padding-bottom: clamp(90px, 11vw, 150px);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(24, 39, 27, 0.55);
  margin-bottom: 2.2rem;
}
.breadcrumb a { color: var(--brick-deep); transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 0.7; }
.breadcrumb span { color: rgba(24, 39, 27, 0.3); }
.breadcrumb-current {
  color: rgba(24, 39, 27, 0.55) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22em;
}

.article-head { margin-bottom: 2.6rem; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.article-tag {
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick-deep);
  background: var(--sand);
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
}
.article-meta time { font-size: 0.86rem; color: rgba(24, 39, 27, 0.55); }
.article-head h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
}

/* ---------- Artikel-Fließtext ---------- */
.article-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-body > *:first-child { margin-top: 0; }
.article-body h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  line-height: 1.25;
  margin: 2.6rem 0 1rem;
}
.article-body h3 {
  font-size: 1.28rem;
  margin: 2rem 0 0.8rem;
}
.article-body h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.6rem 0 0.6rem;
}
.article-body p { margin: 1.1rem 0; }
.article-body a {
  color: var(--brick-deep);
  border-bottom: 1px solid rgba(22, 96, 35, 0.35);
  transition: border-color 0.2s;
}
.article-body a:hover { border-color: var(--brick-deep); }
.article-body ul, .article-body ol { margin: 1.1rem 0; padding-left: 1.5rem; }
.article-body ul li, .article-body ol li {
  margin: 0.5rem 0;
  list-style: revert;
}
.article-body ul li::marker { color: var(--brick); }
.article-body ol li::marker { color: var(--brick-deep); font-weight: 600; }
.article-body strong { font-weight: 650; }
.article-body blockquote {
  margin: 1.8rem 0;
  padding: 0.4rem 0 0.4rem 1.5rem;
  border-left: 3px solid var(--brick);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy-soft);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.95rem;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  vertical-align: top;
}
.article-body th, .article-body tr:first-child td { background: var(--sand-band); font-weight: 600; }
.article-body figure { margin: 1.8rem 0; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2.2rem 0; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 3rem;
  padding: 0.72rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brick-deep);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.article-back-arrow { transition: transform 0.25s var(--ease); }
.article-back:hover {
  background: var(--sand);
  border-color: rgba(22, 96, 35, 0.4);
  box-shadow: 0 6px 18px rgba(14, 63, 25, 0.06);
}
.article-back:hover .article-back-arrow { transform: translateX(-4px); }

/* ---------- „Weitere Beiträge" unter dem Artikel ---------- */
.article-more {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  background: var(--sand-band);
  border-top: 1px solid var(--line);
}
.more-head { font-size: 1.5rem; margin-bottom: 1.8rem; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.mini-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 96, 35, 0.35);
  box-shadow: var(--shadow-card);
}
.mini-tag {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick-deep);
  margin-bottom: 0.7rem;
}
.mini-card h3 { font-size: 1.02rem; line-height: 1.3; font-weight: 480; margin-bottom: 0.7rem; }
.mini-card time { margin-top: auto; font-size: 0.78rem; color: rgba(24, 39, 27, 0.5); }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .listing-tools { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: none; }
}

/* ---------- Reveal-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .news-card, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Menü exakt mittig — Marke und Aktionsbereich gleich breit (identisch auf beiden Kanzlei-Seiten) */
@media (min-width: 1021px) {
  .brand { min-width: 250px; }
  .header-actions { min-width: 250px; justify-content: flex-end; }
}
@media (max-width: 1020px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-open.site-header { background: var(--navy-deep); color: var(--paper); box-shadow: none; }
}

@media (max-width: 880px) {
  .card-grid, .news-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps li:not(:last-child)::before {
    top: calc(0.4rem + 52px + 10px);
    left: 25px;
    right: auto;
    width: 1px;
    height: calc(100% - 52px - 6px);
    background: repeating-linear-gradient(180deg, rgba(22, 96, 35, 0.45) 0 6px, transparent 6px 13px);
  }
  .steps li { padding-left: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 130px; }
  .hero-cta .btn { width: 100%; }
  .section-head-row .btn { width: 100%; }
  .privacy-badge { border-radius: 18px; }
  /* Kopfzeile entlasten: CTA steckt im Hamburger-Menü („Erstgespräch vereinbaren") */
  .header-actions .btn { display: none; }
}

/* Paragrafen-Puzzle: Marke = Hand-Zeichnung + handschriftliche Wortmarke (Caveat, lokal als PNG).
   .brand-wordmark/Hover sind oben im Header-Block definiert; hier nur Hand + Footer-Override. */
.brand-hand{height:34px;width:auto;display:block}
.brand:hover .brand-hand{opacity:.82;transition:opacity .2s}
.footer-brand .brand-wordmark{height:30px;opacity:.95}

/* ---------- Kontrast über dem grünen Hero ----------
   Solange der Header transparent über dem Hero liegt (nicht gescrollt, keine
   Unterseite) oder das Mobilmenü offen ist: Marke weiß, Button hell, Menü-Icon hell. */
.nav-toggle { color: inherit; }
.brand img { transition: filter 0.35s var(--ease); }
.site-header:not(.scrolled):not(.header-solid) .brand img,
.site-header.nav-open .brand img { filter: brightness(0) invert(1); }
.site-header:not(.scrolled):not(.header-solid) .header-actions .btn-primary,
.site-header.nav-open .header-actions .btn-primary {
  background: var(--paper); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.hero .btn-primary { background: var(--paper); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
.hero .btn-primary:hover { background: #ffffff; color: var(--navy-deep); }
