/* BauherrenPartner – simple, modern, responsive */

:root {
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-text: #1c1c1a;
  --color-muted: #5c5c56;
  --color-accent: #2d5a47;
  --color-accent-hover: #234536;
  --color-border: #e8e8e4;
  --color-hero-overlay: rgba(26, 47, 35, 0.72);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(28, 28, 26, 0.08);
  --header-h: 4rem;
  --max: 1120px;
  --space: clamp(1.25rem, 4vw, 2rem);
  --section-heading-gap: calc(1.25rem * 1.1);
  --section-pad-y: clamp(3rem, 8vw, 5rem);
  --anchor-under-header: 0.75rem;
  --scroll-padding-top: calc(var(--header-h) + var(--anchor-under-header));
  /* Zusätzlicher Offset nur fürs Impressum (#impressum), damit weniger von der Section darüber sichtbar bleibt */
  --impressum-scroll-extra: -4.00rem;
  --hero-lead-actions-gap: 1.75rem;
}

[data-theme="dark"] {
  --color-bg: #141816;
  --color-surface: #1c2220;
  --color-text: #e8eae8;
  --color-muted: #9aa399;
  --color-accent: #6bbd9a;
  --color-accent-hover: #8fd4b4;
  --color-border: #2e3532;
  --color-hero-overlay: rgba(12, 18, 15, 0.82);
  --shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-padding-top);
  /* Gleiche nutzbare Breite mit/ohne Scrollbar (Start vs. kurze Admin-Seite) */
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Fließtext: Blocksatz (html lang="de" für Silbentrennung) */
main p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

main p.form-row,
main p.form-checkbox,
main p.form-feedback,
main p.captcha-status,
main p.hero-eyebrow,
main p.footer-copy,
main p.hero-profil-name,
main p.hero-profil-degrees,
main p.contact-note {
  text-align: left;
}

main .impressum-grid p {
  text-align: left;
}

body.admin-page main p {
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
  text-wrap: wrap;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent-hover);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space);
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .site-header {
  background: rgba(20, 24, 22, 0.94);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.header-center {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.25rem;
  min-width: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  background: rgba(28, 28, 26, 0.08);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.theme-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.theme-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-icon--sun {
  display: block;
}

.logo {
  justify-self: start;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-accent);
}

.logo .logo-admin-mark {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.7em;
  letter-spacing: 0.06em;
  vertical-align: 0.1em;
  margin-left: 0.35em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: center;
}

.nav-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
}

.nav-list a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  /* Volle Breite + translateX(100%) verbreitert sonst das Layout (~2× Viewport) */
  html {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions {
    gap: 0.75rem;
  }

  .header-center {
    /* Nav liegt fixed am Viewport; Spalte soll keinen Platzhalter für ausgerückte Links liefern */
    min-width: 0;
    width: min-content;
    max-width: 100%;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-width: 100vw;
    background: var(--color-bg);
    padding: clamp(0.65rem, 2.5vw, 1rem) var(--space)
      max(0.75rem, env(safe-area-inset-bottom, 0px));
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    transition:
      transform 0.25s ease,
      visibility 0s linear 0.25s;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100dvh - var(--header-h));
    border-top: 1px solid var(--color-border);
    box-shadow: 0 10px 28px rgba(28, 28, 26, 0.1);
    overscroll-behavior: contain;
  }

  [data-theme="dark"] .site-nav {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  }

  body.nav-open .site-nav {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition:
      transform 0.25s ease,
      visibility 0s linear 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
    line-height: 1.35;
  }

  .nav-list li:last-child a {
    border-bottom: none;
    padding-bottom: 0.35rem;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .site-nav,
  body.nav-open .site-nav {
    transition: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  color: #fff;
}

.hero-media {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: min(85vh, 720px);
}

.hero-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(var(--color-hero-overlay), var(--color-hero-overlay)),
    url("medien/hero-baustelle.jpg") center / cover no-repeat;
}

.hero-layout {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: stretch;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: clamp(3rem, 10vw, 5rem) var(--space);
  box-sizing: border-box;
}

.hero-content {
  grid-column: 1;
  min-width: 0;
  max-width: 36rem;
  align-self: end;
}

.hero-profil-bg {
  grid-column: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.hero-profil-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: min(280px, 32vw);
}

.hero-profil {
  margin: 0;
  line-height: 0;
}

.hero-profil-img {
  display: block;
  width: clamp(115px, 17.9vw, 179px);
  height: auto;
  max-height: min(269px, 37.1vh);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-profil-meta {
  width: 100%;
  text-align: left;
}

.hero-profil-name {
  margin: 0 0 0.25rem;
  font-size: clamp(1.85rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-profil-degrees {
  margin: 0 0 0.75rem;
  font-size: 1.0125rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-profil-highlights {
  margin: 0;
  padding: 0 0 0 1.15em;
  list-style: disc;
  list-style-position: outside;
  font-size: 1.0125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.hero-profil-highlights li {
  padding-left: 0.15em;
}

.hero-profil-social .contact-social-link {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-profil-social .contact-social-link:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
    align-content: start;
    justify-items: stretch;
    row-gap: var(--hero-lead-actions-gap);
    column-gap: 0;
    padding: clamp(2rem, 8vw, 3.5rem) var(--space);
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    max-width: none;
    width: 100%;
  }

  .hero-profil-bg {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    align-items: flex-start;
    width: 100%;
    justify-content: flex-start;
  }

  .hero-profil-stack {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    gap: 0.85rem;
    align-items: flex-start;
  }

  .hero-profil-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .hero-profil-highlights {
    font-size: 0.8rem;
    align-self: stretch;
    text-align: left;
    margin-top: 0.15rem;
  }

  .hero-profil-img {
    width: min(128px, 32vw);
    max-height: min(166px, 23vh);
  }
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.0625rem;
  max-width: 42ch;
  opacity: 0.95;
  margin: 0 0 var(--hero-lead-actions-gap);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.btn-primary:hover {
  background: #f0f4f2;
  color: var(--color-accent-hover);
}

[data-theme="dark"] .hero .btn-primary {
  background: rgba(12, 18, 15, 0.88);
  color: var(--color-accent);
  border-color: rgba(107, 189, 154, 0.65);
}

[data-theme="dark"] .hero .btn-primary:hover {
  background: rgba(20, 30, 26, 0.95);
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-block {
  width: 100%;
}

button.btn-primary {
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

button.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

button.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-muted);
  color: var(--color-text);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  align-self: flex-start;
}

/* Sections */
.section {
  padding: var(--section-pad-y) 0;
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--section-heading-gap);
}

.section-header {
  text-align: left;
  margin: 0 0 2.5rem;
}

.section-intro {
  color: var(--color-muted);
  margin: 0;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-muted);
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space);
}

.trust-card {
  text-align: center;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

.trust-card:hover {
  box-shadow: var(--shadow);
}

.trust-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.trust-label {
  font-size: 0.875rem;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* Split */
.ueber-mich-heading {
  text-align: left;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.split-media {
  margin: 0;
}

.split-media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-caption {
  font-size: 0.8125rem;
  color: var(--color-muted);
  padding: 0.75rem 0 0;
}

.split-media .media-caption {
  text-align: center;
}

.split-text .lead {
  margin-top: 0;
}

.split-text .leistung-expandable {
  margin-top: 1rem;
}

.split-text .leistung-expandable__clip > :first-child {
  margin-top: 0;
}

.checklist {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--color-muted);
}

.checklist li + li {
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Leistungen: Zeilen, Bild links, Text rechts — Mindesthöhe 5cm, wächst mit Inhalt */
.leistungen-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.leistung-row {
  display: grid;
  grid-template-columns: minmax(200px, 340px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  min-height: 5cm;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.leistung-row:hover {
  box-shadow: var(--shadow);
}

.leistung-row--text-only {
  grid-template-columns: 1fr;
}

.leistung-row--text-only .leistung-body {
  padding: 1.25rem 1.5rem;
}

.leistung-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.35rem 0 0.4rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.leistung-row--text-only .leistung-body h3 + .leistung-subtitle {
  margin-top: 0.65rem;
}

.leistung-row--text-only .leistung-body p {
  margin: 0 0 0.15rem;
}

.leistung-media {
  margin: 0;
  align-self: start;
  width: 100%;
  height: 5cm;
  min-height: 5cm;
  max-height: 5cm;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
  line-height: 0;
}

.leistung-media img {
  width: 100%;
  height: 5cm;
  min-height: 5cm;
  max-height: 5cm;
  object-fit: cover;
  display: block;
}

/* DIN-276: Linke Spalte = volle Zeilenhöhe; zugeklappt Bildvorschau vollflächig (cover) */
@media (min-width: 721px) {
  .leistung-row--din-expandable .leistung-media {
    align-self: stretch;
    height: 100%;
    min-height: 5cm;
    max-height: none;
    background: var(--color-bg);
  }

  .leistung-row--din-expandable .leistung-media img {
    width: 100%;
    height: 100%;
    min-height: 5cm;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .leistung-row--din-expandable:has(.leistung-expandable--open) .leistung-media img {
    object-fit: contain;
    object-position: center top;
  }
}

.leistung-body {
  padding: 1.25rem 1.5rem 1.25rem 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.leistung-body h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.leistung-body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.leistung-body--formatted p {
  margin: 0 0 0.75rem;
}

.leistung-body--formatted p:last-child {
  margin-bottom: 0;
}

.leistung-body--formatted .leistung-stufen-list {
  margin: 0.2rem 0 0.85rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.leistung-body--formatted .leistung-stufen-list li + li {
  margin-top: 0.35rem;
}

.leistung-expandable {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.leistung-expandable__clip {
  position: relative;
  overflow: hidden;
  max-height: 6.75rem;
  transition: max-height 0.4s ease;
  min-width: 0;
}

.leistung-expandable--open .leistung-expandable__clip {
  max-height: 3200px;
}

.leistung-expandable__clip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.75rem;
  background: linear-gradient(
    to bottom,
    rgba(250, 250, 248, 0),
    var(--color-bg)
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

[data-theme="dark"] .leistung-expandable__clip::after {
  background: linear-gradient(
    to bottom,
    rgba(20, 24, 22, 0),
    var(--color-bg)
  );
}

.leistung-expandable--open .leistung-expandable__clip::after {
  opacity: 0;
  pointer-events: none;
}

.leistung-expand-btn {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .leistung-expandable__clip {
    transition: none;
  }

  .leistung-expandable__clip::after {
    transition: none;
  }
}

@media (max-width: 720px) {
  .leistung-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: 5cm;
  }

  .leistung-media {
    border-radius: var(--radius) var(--radius) 0 0;
    height: 5cm;
    min-height: 5cm;
    max-height: 5cm;
  }

  .leistung-media img {
    height: 5cm;
    min-height: 5cm;
    max-height: 5cm;
    object-fit: cover;
  }

  .leistung-body {
    padding: 1rem 1.25rem 1.35rem;
    justify-content: flex-start;
  }

  .leistung-row--text-only .leistung-body {
    padding: 1rem 1.25rem 1.35rem;
  }
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

.contact-address {
  font-style: normal;
  margin: 1.5rem 0;
  line-height: 1.8;
}

.contact-address a {
  font-weight: 500;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-social.hero-profil-social {
  margin: 0.9rem 0 0;
  gap: 0.65rem 1rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  text-underline-offset: 0.15em;
}

.contact-social-link:hover {
  color: var(--color-accent-hover);
}

.contact-social-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.contact-social-label {
  line-height: 1;
}

.contact-note,
.form-hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0;
}

.contact-form {
  background: var(--color-surface);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.form-row {
  margin: 0 0 1rem;
}

.form-row label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: transparent;
}

.form-checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.form-checkbox input {
  width: auto;
  margin-top: 0.35rem;
}

.form-checkbox label {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.form-hint {
  margin-top: 1rem;
}

.form-hint code {
  font-size: 0.8125em;
  background: var(--color-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* Captcha */
.captcha-box {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.captcha-heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.captcha-intro {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.captcha-visual {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0.35rem 0.5rem;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  line-height: 0;
}

.captcha-visual svg {
  display: block;
  max-width: 100%;
  height: auto;
}

[data-theme="dark"] .captcha-visual {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-style: solid;
}

[data-theme="dark"] .captcha-visual--loading {
  color: #5c5c56;
}

.captcha-input-row {
  margin-bottom: 0.65rem;
}

.captcha-input-row input {
  max-width: 12rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-family: ui-monospace, monospace;
}

.captcha-status {
  min-height: 1.25rem;
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

.captcha-status--ok {
  color: var(--color-accent);
  font-weight: 500;
}

.captcha-status--err {
  color: #9a3d36;
}

.captcha-visual--loading {
  display: flex;
  align-items: center;
  min-width: 200px;
  min-height: 52px;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.req {
  color: #c62828;
  text-decoration: none;
  font-weight: 700;
  cursor: help;
}

.optional {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.875em;
}

.form-feedback {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.form-feedback--success {
  background: #e8f5ef;
  border: 1px solid #b8dcc8;
  color: #1a3d2e;
}

.form-feedback--error {
  background: #fcefed;
  border: 1px solid #f0c4c0;
  color: #5c2a26;
}

[data-theme="dark"] .form-feedback--success {
  background: #1a2e24;
  border-color: #2d5a47;
  color: #b8dcc8;
}

[data-theme="dark"] .form-feedback--error {
  background: #2a1f1f;
  border-color: #6b3f3a;
  color: #f0c4c0;
}

.form-feedback ul {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Footer / Impressum */
.footer-impressum {
  background: #1a1f1c;
  color: #e4e6e3;
  padding: var(--section-pad-y) 0;
}

[data-theme="dark"] .footer-impressum {
  background: #0d100e;
}

.footer-impressum a {
  color: #a8d4c0;
}

.footer-impressum a:hover {
  color: #c5ead8;
}

.footer-title {
  color: #fff;
}

.impressum-disclosure {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  scroll-margin-top: calc(var(--scroll-padding-top) + var(--impressum-scroll-extra));
}

.impressum-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font: inherit;
  color: inherit;
  user-select: none;
}

.impressum-summary::-webkit-details-marker {
  display: none;
}

.impressum-summary::marker {
  content: "";
}

.impressum-summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.impressum-summary:focus-visible {
  outline: 2px solid #a8d4c0;
  outline-offset: 2px;
}

.impressum-summary-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: inherit;
}

.impressum-summary-title.section-title {
  margin-bottom: 0;
}

.impressum-summary-hint {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a8d4c0;
  white-space: nowrap;
}

.impressum-disclosure[open] .impressum-summary-hint {
  display: none;
}

.impressum-chevron {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #c8ccc6;
  border-bottom: 2px solid #c8ccc6;
  transform: rotate(45deg);
  margin-top: -0.25rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.impressum-disclosure[open] .impressum-chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.impressum-panel {
  padding: 0 1.1rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.impressum-panel .impressum-grid {
  margin-top: 1.25rem;
}

.impressum-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.impressum-grid h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa399;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.impressum-grid p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #c8ccc6;
}

.impressum-sub {
  font-size: 1rem;
  color: #fff;
  margin: 2rem 0 0.5rem;
}

.footer-impressum .impressum-panel > p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #b8bcb6;
  max-width: 65ch;
}

.placeholder-note {
  opacity: 0.75;
  font-style: italic;
}

.footer-copy {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: #8a9088;
}

@media (max-width: 640px) {
  .impressum-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin (/admin) — gleiche Kopfzeile wie .site-header / .header-inner */
.admin-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-nav-placeholder {
  display: none;
}

@media (max-width: 768px) {
  .admin-page .admin-nav-placeholder {
    display: block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
}

.admin-main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) var(--space);
}

.admin-card {
  max-width: 26rem;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}

.admin-card--wide {
  max-width: 36rem;
}

.admin-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

.admin-card h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.admin-card p {
  margin: 0 0 1rem;
}

.admin-card p:last-child {
  margin-bottom: 0;
}

form.admin-form {
  margin: 0;
}

label.admin-label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.admin-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.admin-input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: transparent;
}

.admin-form-row {
  margin: 0 0 1rem;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  margin-top: 0.25rem;
}

.admin-btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

button.admin-btn--primary,
.admin-form .admin-btn--primary {
  width: 100%;
}

.admin-btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

[data-theme="dark"] .admin-btn--primary {
  color: #fff;
}

.admin-btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.admin-btn--secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-muted);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-toolbar h1 {
  margin: 0;
}

.admin-toolbar .admin-eyebrow {
  margin-bottom: 0.35rem;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.admin-toolbar + .admin-metrics {
  margin-top: 0;
}

.admin-metrics .metric {
  margin-top: 0;
}

body.admin-page .notice {
  background: #fff8e6;
  border: 1px solid #e6d9a8;
  color: var(--color-text);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.55;
}

[data-theme="dark"] body.admin-page .notice {
  background: rgba(255, 214, 128, 0.12);
  border-color: rgba(255, 214, 128, 0.28);
}

body.admin-page .notice code {
  font-size: 0.8125em;
  background: var(--color-bg);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

body.admin-page .metric {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

body.admin-page .metric:hover {
  box-shadow: var(--shadow);
}

body.admin-page .metric strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.admin-page .metric span {
  display: block;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

.admin-hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
}

a.admin-text-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.15em;
}

a.admin-text-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
