:root {
    --color-wordmark: #FFFFFF;
    --color-eyebrow: #F0C888;
    --color-headline: #FBF8F2;
    --color-lede: #EDE4D4;
    --color-contact-value: #F3EEE3;
    --color-contact-label: #C9AD82;
    --color-legal: #B5AC9C;
    --color-ai-hint: rgba(255, 255, 255, 0.45);
    --color-divider: rgba(255, 255, 255, 0.16);
    --scrim-top: rgba(40, 30, 22, 0);
    --scrim-bottom: #3f3126;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html, body {
    height: 100%;
  }

  body {
    font-family: 'General Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }

  .background {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image: url('hintergrund.jpg');
    background-size: cover;
    background-position: top center;
  }

  /* Verlauf am Foto selbst (unten dunkler) – Werte per Pixelvergleich aus dem Referenzbild ermittelt */
  .scrim {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
      180deg,
      rgba(63, 49, 38, 0) 0%,
      rgba(63, 49, 38, 0) 15%,
      rgba(63, 49, 38, 0.06) 25%,
      rgba(63, 49, 38, 0.18) 34%,
      rgba(63, 49, 38, 0.30) 45%,
      rgba(63, 49, 38, 0.32) 55%,
      rgba(63, 49, 38, 0.50) 65%,
      rgba(63, 49, 38, 0.80) 75%,
      rgba(63, 49, 38, 0.95) 85%,
      rgba(63, 49, 38, 0.97) 100%
    );
  }

  /* Balken hinter der Topbar — scharfkantig, kein Verlauf (Farbe/Höhe per Pixelmessung ermittelt) */
  .header-scrim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    z-index: -1;
    background: rgba(63, 49, 38, 0.78);
  }

  .page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 48px 0;
    position: relative;
  }

  /* Topbar sitzt exakt im 90px-Balken, vertikal zentriert */
  .topbar {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .wordmark {
    color: var(--color-wordmark);
    font-size: 1.16rem;
    font-weight: 400;
    letter-spacing: 0.01em;
  }

  .lang-switch {
    font-size: 0.83rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .lang-switch a {
    color: var(--color-wordmark);
    text-decoration: none;
    opacity: 0.7;
    padding-bottom: 3px;
  }

  .lang-switch a.active {
    opacity: 1;
    border-bottom: 1px solid var(--color-wordmark);
  }

  .lang-switch a:hover {
    opacity: 0.85;
  }

  .lang-divider {
    color: var(--color-wordmark);
    opacity: 0.4;
    margin: 0 6px;
  }

  .hero {
    padding-bottom: 28px;
    margin-top: auto;
  }

  .eyebrow {
    color: var(--color-eyebrow);
    font-size: 1.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }

  .headline {
    color: var(--color-headline);
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 1.15rem;
  }

  .lede {
    color: var(--color-lede);
    font-size: 1.01rem;
    line-height: 1.5;
    font-weight: 400;
    max-width: 560px;
  }

  /* Contact block */
  .contact-block {
    display: grid;
    grid-template-columns: auto auto 1fr;
    column-gap: 17.05px;
    margin-top: 28px;
  }

  .contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .contact-label {
    color: var(--color-contact-label);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .contact-value {
    color: var(--color-contact-value);
    font-size: 0.92rem;
    font-weight: 400;
  }

  .contact-value a {
    color: inherit;
    text-decoration: none;
  }

  .contact-value a:hover {
    text-decoration: underline;
  }

  /* Footer */
  .footer {
    border-top: 1px solid var(--color-divider);
    padding: 16.5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .copyright {
    color: var(--color-legal);
    font-size: 0.68rem;
  }

  .legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .legal-links a {
    color: var(--color-legal);
    font-size: 0.68rem;
    text-decoration: none;
  }

  .legal-links a:hover {
    text-decoration: underline;
    color: var(--color-contact-value);
  }

  .ai-hint {
    color: var(--color-ai-hint);
    font-size: 0.544rem;
  }

  /* Responsive */
  @media (max-width: 780px) {
    .page {
      padding: 24px 24px;
    }

    .headline {
      font-size: 2.1rem;
    }

    .lede {
      font-size: 1rem;
      max-width: 100%;
    }

    .hero {
      max-width: 100%;
    }

    .contact-block {
      flex-direction: column;
      gap: 18px;
      margin-top: 32px;
    }

    .footer {
      flex-direction: column;
      align-items: flex-start;
    }

    .footer-right {
      align-items: flex-start;
    }
  }

  .black-bg {
    background: #EDE8DE;
  }

  .black-bg .legal-back,
  .black-bg .legal-title,
  .black-bg .legal-meta,
  .black-bg .legal-section h2,
  .black-bg .legal-section h3,
  .black-bg .legal-section p,
  .black-bg .legal-section address,
  .black-bg .legal-section ul,
  .black-bg .footer .copyright,
  .black-bg .footer a {
    color: #2A2119;
  }

  .black-bg .legal-back:hover,
  .black-bg .footer a:hover {
    color: #2A2119;
    opacity: 0.65;
  }

  .black-bg .legal-section a {
    color: #2A2119;
    text-decoration: underline;
    text-decoration-color: rgba(42, 33, 25, 0.35);
  }

  .black-bg .legal-section a:hover {
    text-decoration-color: #2A2119;
  }

  .black-bg .legal-divider,
  .black-bg .footer {
    border-color: rgba(42, 33, 25, 0.18);
  }

  /* ===== Rechtstexte (Impressum / Datenschutz) ===== */

  .legal-body {
    background: #241b14;
    min-height: 100vh;
  }

  .legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 24px 100px;
  }

  .legal-back {
    display: inline-block;
    color: var(--color-legal);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 20px;
  }

  .legal-back:hover {
    color: var(--color-contact-value);
    text-decoration: underline;
  }

  .legal-title {
    color: var(--color-headline);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 6px;
  }

  .legal-meta {
    color: var(--color-headline);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
  }

  .legal-section {
    margin-bottom: 30px;
  }

  .legal-section h2 {
    color: var(--color-headline);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .legal-section h3 {
    color: var(--color-legal);
    font-size: 0.92rem;
    font-weight: 700;
    margin: 16px 0 2px;
  }

  .legal-section p,
  .legal-section address {
    color: var(--color-lede);
    font-size: 0.98rem;
    line-height: 1.6;
    font-style: normal;
    margin-bottom: 8px;
  }

  .legal-section ul {
    color: var(--color-lede);
    font-size: 0.98rem;
    line-height: 1.75;
    padding-left: 20px;
    margin-bottom: 10px;
  }

  .legal-section a {
    color: var(--color-contact-value);
    text-decoration: underline;
    text-decoration-color: var(--color-divider);
  }

  .legal-section a:hover {
    color: var(--color-eyebrow);
  }

  .legal-divider {
    border: none;
    border-top: 1px solid var(--color-divider);
    margin: 48px 0;
  }

  .legal-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: flex;
    justify-content: space-between;
    color: var(--color-legal);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 8px;
  }

  .legal-footer a {
    color: var(--color-legal);
    text-decoration: none;
  }

  .legal-footer a:hover {
    text-decoration: underline;
    color: var(--color-contact-value);
  }

  @media (max-width: 600px) {
    .legal-page { padding: 120px 20px 80px; }
    .legal-title { font-size: 1.8rem; }
  }

  @media (max-width: 420px) {
    .headline {
      font-size: 1.7rem;
    }

    .wordmark {
      font-size: 1.1rem;
    }
  }

  /* Varianten-Test: Hintergrundfoto scheint rechts durch */
  .legal-photo-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image: url('hintergrund.jpg');
    background-size: cover;
    background-position: right center;
  }

  .legal-photo-scrim {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
      to right,
      #EDE8DE 0%,
      #EDE8DE 52%,
      rgba(237, 232, 222, 0.88) 64%,
      rgba(237, 232, 222, 0.45) 80%,
      rgba(237, 232, 222, 0.08) 100%
    );
  }

  /* Varianten-Test: noch hellerer, reiner Hintergrund */
  .lighter-bg {
    background: #F7F4EE;
  }
