:root {

  --rot:        #A6192E;
  --rot-dunkel: #861322;
  --schwarz:    #111111;
  --weiss:      #FFFFFF;
  --grau-hell:  #F5F5F4;
  --grau-text:  #555555;
  --gold:       #B8860B;
  --grau-border:#E7E7E5;

  --font-base:  -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --maxwidth:        1100px;
  --maxwidth-narrow: 760px;
  --header-h:        72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; touch-action: manipulation; }

body {
  margin: 0;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-base);
  font-size: 18px;
  line-height: 1.65;
  color: var(--schwarz);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
main > :last-child { flex: 1 0 auto; }
.site-footer { margin-top: auto; }

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 400;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 70ch; }

a { color: var(--rot); text-decoration: none; }
a:hover { color: var(--rot-dunkel); text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rot);
  outline-offset: 2px;
}
.section-dark a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--weiss);
}

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

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--maxwidth-narrow); }

.section { padding: 80px 0; }
.section-alt { background: var(--grau-hell); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--rot);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--rot);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--weiss);
  border-bottom: 1px solid var(--grau-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.logo img { height: 40px; width: auto; }

.logo { margin-right: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--schwarz);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;

  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--rot); }
.site-nav a.active {
  color: var(--rot);
  border-bottom-color: var(--rot);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 28px;
  padding-left: 28px;
  border-left: 1px solid var(--grau-border);
  font-size: 0.85rem;
}
.lang-switch a {
  color: var(--grau-text);
  letter-spacing: 0.04em;
  text-decoration: none;

  padding: 14px 4px;
}
.lang-switch a:hover { color: var(--rot); text-decoration: none; }
.lang-switch a.active { color: var(--rot); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--schwarz);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { background: var(--weiss); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 56px;
  align-items: end;
}
.hero-text { padding: 88px 0; align-self: center; }
.hero-text h1 { margin-bottom: 0.5em; }
.hero-intro {
  color: var(--grau-text);
  margin-bottom: 2em;
}
.hero-foto {
  position: relative;
  margin: 0;

  align-self: stretch;
}

.hero-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(1.02);
}

.hero-foto::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--weiss) 100%);
}

.hero-stats {
  border-top: 1px solid var(--grau-border);
  border-bottom: 1px solid var(--grau-border);
  background: var(--weiss);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 26px 0;
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}
.stat-value-regions { font-size: 1.25rem; }
.stat-label {
  font-size: 0.9rem;
  color: var(--grau-text);
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--rot);
  color: var(--weiss);
  border-color: var(--rot);
  box-shadow: 0 6px 20px rgba(166, 25, 46, 0.3);
}
.btn-primary:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.btn-outline {
  background: transparent;
  color: var(--schwarz);
  border-color: var(--schwarz);
}
.btn-outline:hover { background: var(--schwarz); color: var(--weiss); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: block;
  padding: 30px 28px;
  background: var(--weiss);
  border: 1px solid var(--grau-border);
  color: var(--schwarz);

  overflow-wrap: break-word;
  hyphens: auto;
}
.card > :last-child { margin-bottom: 0; }
a.card { transition: border-color 0.2s ease; }
a.card:hover {
  text-decoration: none;
  border-color: var(--rot);
}

.card h2, .card h3 { font-size: 1.2rem; margin: 0 0 0.8em; }
a.card h2, a.card h3 { margin: 0; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 70ch;
}
.check-list li {
  position: relative;
  padding-left: 1.7em;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rot);
  font-weight: 700;
}

.leitsatz {
  margin: 1.4em 0 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--schwarz);
  max-width: 70ch;
}

.profil-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
.profil-foto { margin: 0; }

.profil-foto img { width: 100%; filter: brightness(1.02); }
.profil-grid .leitsatz { margin: 0 0 1.6em; }
.profil-download { margin-top: 1.8em; }

.profil-download .btn { margin: 0 10px 10px 0; }

.page-head { padding: 56px 0 8px; }
.page-head h1 { margin: 0; }

.kontakt-card { margin-top: 36px; }
.kontakt-card p { max-width: none; }
.kontakt-card p:last-child { margin-bottom: 0; }
.kontakt-name { font-weight: 700; }

/* ---------- Online-Visitenkarte (Kontaktseite) ---------- */
.visitenkarte {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 36px;
  padding: 32px;
  background: var(--weiss);
  border: 1px solid var(--grau-border);
  border-top: 3px solid var(--rot);
}
.visitenkarte-foto { margin: 0; }
.visitenkarte-foto img {
  width: 150px; height: 150px;
  object-fit: cover; object-position: center top;
  border-radius: 6px;
  filter: brightness(1.02);
}
.visitenkarte-info p { max-width: none; margin: 0 0 0.5em; }
.visitenkarte-name { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.2; }
.visitenkarte-rolle {
  color: var(--rot); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.visitenkarte-firma { font-weight: 600; }
.visitenkarte .btn { margin-top: 12px; }

.legal h2 { font-size: 1.35rem; margin: 2em 0 0.6em; }
.legal h2:first-of-type { margin-top: 0; }

/* ---------- Eingebettete Rechtstexte (Kanzlei) ---------- */
.legal-frame-wrap { padding-bottom: 56px; }
.legal-frame {
  display: block;
  width: 100%;
  min-height: 75vh;
  border: 1px solid var(--grau-border);
  border-radius: 4px;
  background: var(--weiss);
}
.legal-frame-fallback {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--grau-text);
}

.section-dark {

  background: linear-gradient(180deg, var(--schwarz) 0%, #000000 100%);
  color: var(--weiss);
  text-align: center;
}
.section-dark h2 { color: var(--weiss); }
.section-dark p {
  color: rgba(255,255,255,0.82);
  margin-left: auto;
  margin-right: auto;
}
.section-dark .btn { margin-top: 8px; }

.site-footer {

  background: linear-gradient(180deg, var(--schwarz) 0%, #000000 100%);
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}
.site-footer p { max-width: none; margin: 0 0 0.4em; }
.footer-name { font-weight: 700; color: var(--weiss); }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: var(--weiss); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom p { margin: 0; }

@media (max-width: 820px) {

  .nav-toggle { display: flex; order: 1; }

  .lang-switch {
    margin-left: 12px;
    padding-left: 12px;
    gap: 10px;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--weiss);
    border-bottom: 1px solid var(--grau-border);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav li { border-top: 1px solid #f0f0ee; }
  .site-nav a {
    display: block;
    padding: 16px 24px;
    border-bottom: 0;
  }
  .site-nav a.active { border-bottom: 0; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .section { padding: 56px 0; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-text { padding: 56px 0 40px; }
  .hero-foto { max-width: 340px; }

  .card-grid-2 { grid-template-columns: 1fr; }

  .profil-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .profil-foto { max-width: 360px; }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .visitenkarte { grid-template-columns: 1fr; gap: 20px; }
  .visitenkarte-foto img { width: 120px; height: 120px; }
}

/* ---------- Kompetenzprofil per E-Mail anfordern ---------- */
.profil-anfordern { margin-top: 1.8em; }
.profil-anfordern-titel { font-weight: 600; margin-bottom: 10px; }
.profil-mail-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
}
.profil-mail-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--schwarz);
  background: var(--weiss);
  border: 1px solid var(--grau-border);
  border-radius: 4px;
}
.profil-mail-form input[type="email"]:focus-visible {
  outline: 2px solid var(--rot);
  outline-offset: 2px;
}
.profil-mail-form .btn { font-family: inherit; white-space: nowrap; }
.form-hinweis {
  font-size: 0.9rem;
  color: var(--grau-text);
  margin-top: 10px;
}
/* Honeypot: für Menschen unsichtbar — bewusst NICHT display:none */
.hp-feld { position: absolute; left: -9999px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.form-meldung {
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--weiss);
  border: 1px solid var(--grau-border);
}
.form-meldung p { margin: 0; max-width: none; }
.form-meldung-ok { border-left: 3px solid var(--gold); }
.form-meldung-fehler { border-left: 3px solid var(--rot); }

@media (max-width: 600px) {
  .profil-mail-form { flex-direction: column; }
}
