/* =========================================================================
   ra-rudorff.de — Moderne Strafverteidiger-Webseite
   ========================================================================= */

/* -----------------------------------------------------------------------
   Design-Tokens (CSS Custom Properties)
   ----------------------------------------------------------------------- */
:root {
  /* Farben — Planinvest-Palette: seriös + warm */
  --color-ink: #12181d;          /* tiefes Navy/Anthrazit */
  --color-navy: #101922;         /* noch dunkler für Footer/Hero */
  --color-navy-light: #1a252f;
  --color-gold: #b5964d;         /* warmes Gold für Akzente */
  --color-gold-bright: #c8a85a;
  --color-cream: #f3efe7;        /* warmes Papier/Cream */
  --color-cream-light: #faf7f2;
  --color-sand: #d9cdb7;
  --color-stone: #b7aa94;
  --color-line: rgba(18, 24, 29, 0.10);
  --color-line-light: rgba(18, 24, 29, 0.06);
  --color-danger: #a53a3a;       /* Notfall-Rot */
  --color-danger-dark: #7d2828;
  --color-success: #2d6b3f;
  --color-text: #1a1f24;
  --color-text-muted: #5a6068;
  --color-text-light: #8a8f96;
  --color-white: #ffffff;
  --color-bg: var(--color-cream);
  --color-surface: var(--color-cream-light);
  --color-surface-alt: #ffffff;

  /* Typografie */
  --font-serif: 'Georgia', 'Cambria', 'Times New Roman', Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --fs-xs: 0.8125rem;    /* 13px */
  --fs-sm: 0.9375rem;    /* 15px */
  --fs-base: 1rem;       /* 16px */
  --fs-md: 1.125rem;     /* 18px */
  --fs-lg: 1.25rem;      /* 20px */
  --fs-xl: 1.5rem;       /* 24px */
  --fs-2xl: 1.875rem;    /* 30px */
  --fs-3xl: 2.25rem;     /* 36px */
  --fs-4xl: 2.875rem;    /* 46px */
  --fs-5xl: 3.625rem;    /* 58px */

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.55;
  --lh-relaxed: 1.75;

  --ls-tight: -0.015em;
  --ls-normal: 0;
  --ls-wide: 0.04em;
  --ls-wider: 0.12em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 820px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* Effekte */
  --shadow-sm: 0 1px 3px rgba(18, 24, 29, 0.06), 0 1px 2px rgba(18, 24, 29, 0.04);
  --shadow-md: 0 4px 12px rgba(18, 24, 29, 0.08), 0 2px 4px rgba(18, 24, 29, 0.04);
  --shadow-lg: 0 16px 40px rgba(18, 24, 29, 0.10), 0 4px 12px rgba(18, 24, 29, 0.06);
  --shadow-xl: 0 24px 60px rgba(18, 24, 29, 0.14), 0 8px 20px rgba(18, 24, 29, 0.08);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --transition-fast: 150ms ease;
  --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------------------------------------
   Reset + Base
   ----------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* v6 — Silbentrennung global (alle Elemente, mobile + desktop).
     Vererbung an alle Kind-Elemente: h1-h6, p, li, td, th, dt, dd,
     blockquote, span, button, etc. Wirkt gegen lange deutsche
     Komposita wie "Vermögensschadenhaftpflichtversicherung" im
     Impressum-h2 (Dietrichs ZTE-Smartphone: Wort schnitt rechts ab). */
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color var(--transition-fast);
  overflow-wrap: anywhere;
}

a:hover, a:focus-visible {
  color: var(--color-gold);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(2.125rem, 5vw + 1rem, var(--fs-5xl)); }
h2 { font-size: clamp(1.625rem, 3vw + 1rem, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p {
  margin: 0 0 var(--space-4);
}

ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-gold);
  font-style: italic;
  color: var(--color-text-muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: var(--space-6) 0;
}

/* -----------------------------------------------------------------------
   Layout-Helpers
   ----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section--tight {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.section--alt {
  background: var(--color-surface);
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-cream-light);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.section--dark .eyebrow {
  color: var(--color-gold-bright);
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
  max-width: 60ch;
}

.section--dark .lead {
  color: rgba(243, 239, 231, 0.78);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-ink);
  color: var(--color-cream);
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: var(--space-4);
}

/* -----------------------------------------------------------------------
   Topbar + Navigation
   ----------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: var(--shadow-md);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-cream);
  font-family: var(--font-serif);
}

.brand:hover, .brand:focus-visible {
  color: var(--color-gold-bright);
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__title {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
}

.brand__sub {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-sand);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(243, 239, 231, 0.25);
  color: var(--color-cream);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 3px auto;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
}

.nav__link {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  color: var(--color-cream);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link.is-active {
  color: var(--color-gold-bright);
  border-bottom-color: var(--color-gold);
}

.nav__cta {
  margin-left: var(--space-3);
}

/* -----------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  color: var(--color-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--danger {
  background: var(--color-danger);
  color: var(--color-white);
  border-color: var(--color-danger);
}

.btn--danger:hover,
.btn--danger:focus-visible {
  background: var(--color-danger-dark);
  border-color: var(--color-danger-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--color-cream);
  color: var(--color-navy);
}

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-ink);
  color: var(--color-cream);
}

.btn--lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--fs-base);
}

.btn--block {
  width: 100%;
}

.btn__icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  background:
    linear-gradient(135deg, rgba(16, 25, 34, 0.92) 0%, rgba(18, 24, 29, 0.86) 100%),
    radial-gradient(circle at 80% 20%, rgba(181, 150, 77, 0.20) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-cream);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 239, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 231, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  z-index: 1;
}

.hero__content {
  max-width: 720px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw + 1rem, 3.875rem);
  color: var(--color-cream-light);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}

.hero__title em {
  color: var(--color-gold-bright);
  font-style: normal;
}

.hero__lead {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: rgba(243, 239, 231, 0.88);
  max-width: 60ch;
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__meta {
  max-width: 720px;
  border-top: 1px solid rgba(243, 239, 231, 0.15);
}

.hero__meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
  padding-top: var(--space-6);
}

.hero__meta > summary {
  list-style: none;
  cursor: pointer;
}
.hero__meta > summary::-webkit-details-marker {
  display: none;
}
.hero__meta > summary::marker {
  display: none;
  content: "";
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__meta-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-gold-bright);
}

.hero__meta-value {
  font-size: var(--fs-md);
  color: var(--color-cream);
  font-family: var(--font-serif);
}

/* -----------------------------------------------------------------------
   Notfall-Banner
   ----------------------------------------------------------------------- */
.notfall-banner {
  background: linear-gradient(135deg, var(--color-danger) 0%, var(--color-danger-dark) 100%);
  color: var(--color-white);
  padding-block: var(--space-5);
  border-top: 4px solid var(--color-gold);
  border-bottom: 4px solid var(--color-gold);
}

.notfall-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.notfall-banner__text {
  display: flex;
  flex-direction: column;
}

.notfall-banner__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: var(--space-1);
}

.notfall-banner__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-white);
}

.notfall-banner__sub {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.88);
  margin-top: var(--space-1);
}

.notfall-banner__cta {
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   Card-Grid (Leistungen)
   ----------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-line-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-line);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--color-ink);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: 0;
}

/* -----------------------------------------------------------------------
   Vita / Über mich
   ----------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 880px) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-8);
    align-items: start;
  }
}

.about__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-ink) 100%);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.about__photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-gold-bright);
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 500;
  opacity: 0.4;
}

.about__photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(180deg, transparent 0%, rgba(16, 25, 34, 0.92) 100%);
  color: var(--color-cream);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.about__photo-caption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--color-cream-light);
  margin-bottom: var(--space-1);
}

.about__vita {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}

.about__vita-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line-light);
}

.about__vita-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about__vita-year {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--color-gold);
  font-weight: 600;
}

.about__vita-text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
}

/* -----------------------------------------------------------------------
   Kontakt-Block
   ----------------------------------------------------------------------- */
.kontakt {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 880px) {
  .kontakt {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.kontakt-info {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-line-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.kontakt-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.kontakt-info__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-3);
  align-items: start;
}

.kontakt-info__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  flex-shrink: 0;
}

.kontakt-info__icon svg {
  width: 18px;
  height: 18px;
}

.kontakt-info__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.kontakt-info__value {
  font-size: var(--fs-md);
  color: var(--color-ink);
  font-family: var(--font-serif);
  line-height: var(--lh-snug);
}

.kontakt-info__value a {
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
}

.kontakt-info__value a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.kontakt-info__hint {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line-light);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.kontakt-form {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-line-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-cream-light);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
  border-color: var(--color-gold);
  background: var(--color-white);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: var(--space-4) 0;
}

.form-consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.form-status {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
}

.form-status.is-success {
  display: block;
  background: rgba(45, 107, 63, 0.10);
  color: var(--color-success);
  border: 1px solid rgba(45, 107, 63, 0.25);
}

.form-status.is-error {
  display: block;
  background: rgba(165, 58, 58, 0.10);
  color: var(--color-danger);
  border: 1px solid rgba(165, 58, 58, 0.25);
}

/* -----------------------------------------------------------------------
   Vertrauen / Trust-Section
   ----------------------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.trust__item {
  text-align: center;
  padding: var(--space-5);
}

.trust__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  color: var(--color-gold);
}

.trust__icon svg {
  width: 28px;
  height: 28px;
}

.trust__title {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--color-cream-light);
  margin-bottom: var(--space-2);
}

.trust__text {
  font-size: var(--fs-sm);
  color: rgba(243, 239, 231, 0.78);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* -----------------------------------------------------------------------
   Prose (für lange Textseiten wie Impressum/Datenschutz)
   ----------------------------------------------------------------------- */
.prose {
  max-width: var(--container-narrow);
}

.prose h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-line);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--space-5);
  font-size: var(--fs-lg);
}

.prose p {
  line-height: var(--lh-relaxed);
  color: var(--color-text);
}

.prose ul, .prose ol {
  line-height: var(--lh-relaxed);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose address {
  font-style: normal;
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-gold);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  margin: var(--space-5) 0;
  line-height: var(--lh-relaxed);
}

.prose address strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  margin-bottom: var(--space-2);
}

/* -----------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */
.footer {
  background: var(--color-navy);
  color: rgba(243, 239, 231, 0.78);
  padding-block: var(--space-7) var(--space-5);
  font-size: var(--fs-sm);
  border-top: 3px solid var(--color-gold);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (min-width: 720px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__title {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--color-cream-light);
}

.footer__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  max-width: 40ch;
}

.footer__heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: var(--space-3);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.footer__list a {
  color: rgba(243, 239, 231, 0.78);
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer__list a:hover {
  color: var(--color-cream-light);
  border-bottom-color: var(--color-gold);
}

.footer__bottom {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(243, 239, 231, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(243, 239, 231, 0.55);
}

/* -----------------------------------------------------------------------
   Print
   ----------------------------------------------------------------------- */
@media print {
  .topbar, .notfall-banner, .footer, .nav__cta, .hero__actions, .kontakt-form { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .section { padding-block: 1.5rem; }
  .hero { background: white; color: black; padding-block: 2rem; }
  .hero__title { color: black; }
  .hero__lead { color: #333; }
}

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

/* =========================================================================
   v2 — Premium-Veredelungen ("Chick")
   ========================================================================= */

/* -----------------------------------------------------------------------
   v2.1 — Hero: Premium-Side-Layout + Hintergrund-Pattern + Siegel
   ----------------------------------------------------------------------- */
.hero--premium {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-8);
}

.hero--premium .hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-5);
}

.hero--premium .hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% 8%;
  background:
    radial-gradient(circle, rgba(181, 150, 77, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(181, 150, 77, 0.20) 39%, rgba(181, 150, 77, 0.20) 40%, transparent 41%);
  border-radius: 50%;
  z-index: 0;
  animation: hero-glow 8s ease-in-out infinite alternate;
}

.hero--premium .hero__visual-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero--premium .hero__visual img,
.hero--premium .hero__visual svg {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.45));
  animation: hero-float 7s ease-in-out infinite alternate;
}

.hero--premium .hero__seal {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 130px;
  height: 130px;
  background: var(--color-cream-light);
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(181, 150, 77, 0.25);
  z-index: 2;
  animation: hero-float 9s ease-in-out 1s infinite alternate-reverse;
}

.hero--premium .hero__seal img,
.hero--premium .hero__seal svg {
  width: 100%;
  height: 100%;
}

@keyframes hero-glow {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes hero-float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(0.5deg); }
}

@media (max-width: 880px) {
  .hero--premium {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero--premium .hero__content,
  .hero--premium .hero__visual {
    min-width: 0;
  }
  .hero--premium .hero__visual {
    order: -1;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .hero--premium .hero__visual img,
  .hero--premium .hero__visual svg {
    width: 100%;
    height: 100%;
    max-height: 240px;
    object-fit: contain;
    display: block;
  }
  .hero--premium .hero__visual-frame {
    display: none;
  }
  .hero--premium .hero__seal {
    width: 96px;
    height: 96px;
    bottom: -18px;
    right: 4%;
  }

  /* v5.2 — Anti-flicker fix (gold-Jura-Bild scale-pulse + float on Android).
     The .hero--premium .hero__visual::before animation (hero-glow, 8s
     scale 1→1.1 alternate) and the img/svg hero-float animation (7s
     translateY 0→-10px alternate) caused visible "growing-shrinking"
     pulses on Android WebView/Chrome. Disable both animations on mobile
     and pin the glow to a static scale so the visual frame is stable. */
  .hero--premium .hero__visual::before {
    animation: none;
    transform: scale(1.05);
    opacity: 0.9;
  }
  .hero--premium .hero__visual img,
  .hero--premium .hero__visual svg {
    animation: none;
    transform: none;
  }
}

/* -----------------------------------------------------------------------
   v2.2 — Topbar Premium (Glass + Sticky-Schatten onScroll)
   ----------------------------------------------------------------------- */
.topbar--sticky,
.topbar {
  background: linear-gradient(180deg, rgba(16, 25, 34, 0.96) 0%, rgba(16, 25, 34, 0.92) 100%);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(181, 150, 77, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.topbar--sticky .brand__mark,
.topbar .brand__mark {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%);
  color: var(--color-navy);
  border: 1px solid rgba(181, 150, 77, 0.50);
}

.topbar--sticky .brand__title,
.topbar .brand__title { color: var(--color-cream-light); }
.topbar--sticky .brand__sub,
.topbar .brand__sub { color: rgba(243, 239, 231, 0.70); }

/* -----------------------------------------------------------------------
   v2.3 — Sektionen: Welle/Wellen-Trenner
   ----------------------------------------------------------------------- */
.section--divider {
  position: relative;
  overflow: hidden;
}

.section--divider-bottom::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("/assets/images/divider-wave.svg") center bottom / cover no-repeat;
  pointer-events: none;
}

.section--divider-top::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("/assets/images/divider-wave.svg") center top / cover no-repeat;
  pointer-events: none;
  transform: scaleY(-1);
}

/* -----------------------------------------------------------------------
   v2.4 — Bento-Grid für Leistungen
   ----------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.bento__item {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
  isolation: isolate;
}

.bento__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(181, 150, 77, 0) 0%, rgba(181, 150, 77, 0.04) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.bento__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(181, 150, 77, 0.40);
}

.bento__item:hover::before {
  opacity: 1;
}

.bento__item--wide { grid-column: span 8; }
.bento__item--half { grid-column: span 6; }
.bento__item--third { grid-column: span 4; }
.bento__item--quarter { grid-column: span 3; }

.bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-light) 100%);
  border: 1px solid rgba(181, 150, 77, 0.25);
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  transition: transform var(--transition-base), background var(--transition-base);
}

.bento__item:hover .bento__icon {
  transform: scale(1.06) rotate(-2deg);
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%);
  color: var(--color-cream);
  border-color: var(--color-gold);
}

.bento__icon svg {
  width: 30px;
  height: 30px;
}

.bento__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: var(--lh-snug);
}

.bento__text {
  color: var(--color-text-muted);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

.bento__number {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-3xl);
  color: var(--color-gold);
  opacity: 0.30;
  font-weight: 600;
  letter-spacing: -0.02em;
  z-index: -1;
}

@media (max-width: 880px) {
  .bento { grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-5); }
  .bento__item { padding: var(--space-5) var(--space-4); }
  .bento__item--wide,
  .bento__item--half,
  .bento__item--third,
  .bento__item--quarter { grid-column: 1 / -1; }
}

/* -----------------------------------------------------------------------
   v2.5 — Stats-Grid (Vertrauen)
   ----------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.stat-card {
  position: relative;
  padding: var(--space-6) var(--space-5);
  background: linear-gradient(180deg, rgba(243, 239, 231, 0.04) 0%, rgba(243, 239, 231, 0.02) 100%);
  border: 1px solid rgba(243, 239, 231, 0.10);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 150, 77, 0.45);
}

.stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(181, 150, 77, 0.20) 0%, rgba(181, 150, 77, 0.05) 100%);
  color: var(--color-gold-bright);
  margin-bottom: var(--space-3);
}

.stat-card__icon svg {
  width: 24px;
  height: 24px;
}

.stat-card__value {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--color-cream-light);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-card__value sup {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--color-gold-bright);
  margin-left: 0.15em;
}

.stat-card__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.70);
}

/* -----------------------------------------------------------------------
   v2.6 — Premium-Foto-Platzhalter (Monogramm mit Gold-Rahmen)
   ----------------------------------------------------------------------- */
.monogram-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.monogram-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(181, 150, 77, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 30% 80%, rgba(181, 150, 77, 0.10) 0%, transparent 50%);
  z-index: 0;
}

.monogram-frame img,
.monogram-frame svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.monogram-frame__border {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(181, 150, 77, 0.40);
  border-radius: calc(var(--radius-lg) - 6px);
  z-index: 2;
  pointer-events: none;
}

.monogram-frame__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  color: var(--color-cream-light);
  font-family: var(--font-serif);
}

.monogram-frame__caption strong {
  display: block;
  font-size: var(--fs-lg);
  margin-bottom: 2px;
  color: var(--color-cream-light);
}

.monogram-frame__caption small {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-gold-bright);
  font-family: var(--font-sans);
  font-weight: 600;
}

/* -----------------------------------------------------------------------
   v2.7 — Premium-Buttons (Gold-Veredelung)
   ----------------------------------------------------------------------- */
.btn--premium {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 60%, #8a6f35 100%);
  color: var(--color-navy);
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 6px 18px rgba(181, 150, 77, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.btn--premium:hover,
.btn--premium:focus-visible {
  background: linear-gradient(135deg, #f0d68a 0%, var(--color-gold-bright) 60%, var(--color-gold) 100%);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.30) inset,
    0 10px 24px rgba(181, 150, 77, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.20);
}

.btn--premium-outline {
  background: transparent;
  color: var(--color-cream-light);
  border: 1px solid rgba(243, 239, 231, 0.40);
  font-weight: 600;
}

.btn--premium-outline:hover,
.btn--premium-outline:focus-visible {
  background: rgba(243, 239, 231, 0.06);
  border-color: var(--color-gold-bright);
  color: var(--color-cream-light);
}

/* -----------------------------------------------------------------------
   v2.8 — Trust-Siegel-Bereich (Premium)
   ----------------------------------------------------------------------- */
.trust-seals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(243, 239, 231, 0.12);
}

.trust-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  color: rgba(243, 239, 231, 0.75);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  font-weight: 600;
  transition: color var(--transition-base);
}

.trust-seal:hover { color: var(--color-gold-bright); }

.trust-seal__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-bright);
  background: rgba(181, 150, 77, 0.08);
  border-radius: 50%;
  border: 1px solid rgba(181, 150, 77, 0.25);
}

.trust-seal__icon svg {
  width: 28px;
  height: 28px;
}

/* -----------------------------------------------------------------------
   v2.9 — Quote / Testimonial-Bereich
   ----------------------------------------------------------------------- */
.quote-block {
  position: relative;
  padding: var(--space-7) var(--space-6);
  margin: var(--space-7) 0;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.quote-block::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.40;
}

.quote-block__text {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: var(--lh-snug);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.quote-block__cite {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-style: normal;
}

.quote-block__cite strong {
  color: var(--color-text);
}

/* -----------------------------------------------------------------------
   v2.10 — Decorative Pattern-Background (Section-Alt)
   ----------------------------------------------------------------------- */
.section--patterned {
  position: relative;
  background-color: var(--color-bg);
  background-image: url("/assets/images/pattern-bg.svg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section--patterned .container {
  position: relative;
  z-index: 1;
}

.section--patterned::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(243, 239, 231, 0.94) 0%, rgba(243, 239, 231, 0.92) 100%);
  z-index: 0;
  pointer-events: none;
}

/* -----------------------------------------------------------------------
   v2.11 — Smooth Reveal Stagger Animation
   ----------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"].is-revealed { transition-delay: 80ms; }
[data-reveal-delay="2"].is-revealed { transition-delay: 160ms; }
[data-reveal-delay="3"].is-revealed { transition-delay: 240ms; }
[data-reveal-delay="4"].is-revealed { transition-delay: 320ms; }
[data-reveal-delay="5"].is-revealed { transition-delay: 400ms; }
[data-reveal-delay="6"].is-revealed { transition-delay: 480ms; }

/* SAFETY NET (v5.1 — fix mobile-leerbereich 2026-10-09):
   reveal-items are NEVER permanently hidden: prefers-reduced-motion users
   AND users with JS disabled see content immediately. Without this guard,
   reduced-motion + no-JS users would see 2 of 9 bento-cards permanently
   stuck at opacity:0 (574px invisible white space on mobile index.html). */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* -----------------------------------------------------------------------
   v2.12 — Section-Pattern: Subtile Akzent-Border (vertikaler Trenner)
   ----------------------------------------------------------------------- */
.section-divider-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-6) auto;
  max-width: 200px;
  gap: var(--space-3);
  color: var(--color-gold);
}

.section-divider-rule::before,
.section-divider-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-gold) 50%, transparent 100%);
  opacity: 0.5;
}

.section-divider-rule svg {
  width: 24px;
  height: 24px;
}

/* =========================================================================
   v4 — Mobile-Hardening (Hamburger + Overflow-Cleanup)
   ========================================================================= */

@media (max-width: 880px) {
  /* v5.2 — Mobile h1 tightening (Tätigkeitsschwerpunkte-Overflow-Fix).
     Base h1 used clamp(2.125rem, 5vw + 1rem, 3.625rem) which on 360px
     Android produced ~34px font-size — too wide for "Tätigkeitsschwerpunkte"
     (22 chars). Result: word overflowed container, Android browsers clipped
     mid-letter ("Tätigkeitsschwerpunk" + cut). Lower the min + dial back the
     vw component and enable word-break so long German compound words wrap. */
  h1 {
    font-size: clamp(1.625rem, 3.5vw + 0.875rem, 2.625rem);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .topbar__inner {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    z-index: 1001;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    width: 100%;
    min-height: 0;
  }

  .nav__list {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--space-7) var(--space-5);
    background: var(--color-navy);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-xl);
    visibility: hidden;
    min-height: 100vh;
    height: 100vh;
  }

  .nav__list.is-open,
  .nav.is-open .nav__list {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__list li {
    border-bottom: 1px solid rgba(243, 239, 231, 0.12);
  }

  .nav__link {
    display: block;
    padding: var(--space-4) var(--space-2);
    font-size: var(--fs-md);
    font-weight: 600;
    width: 100%;
  }

  .nav__cta {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  html {
    overflow-x: hidden;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__lead {
    max-width: 100%;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero__meta > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-3);
    margin-top: var(--space-3);
    border: 1px solid rgba(243, 239, 231, 0.18);
    border-radius: var(--radius-md);
    background: rgba(243, 239, 231, 0.04);
    color: var(--color-cream);
    font-size: var(--fs-md);
    font-weight: 600;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    list-style: none;
  }
  .hero__meta > summary::-webkit-details-marker {
    display: none;
  }
  .hero__meta > summary::after {
    content: "+";
    color: var(--color-gold-bright);
    font-size: var(--fs-xl);
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: transform var(--transition-base);
  }
  .hero__meta[open] > summary {
    border-color: rgba(181, 150, 77, 0.5);
    background: rgba(181, 150, 77, 0.06);
  }
  .hero__meta[open] > summary::after {
    content: "−";
  }
  .hero__meta > .hero__meta-grid {
    padding-top: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-4);
  }

  .notfall-banner {
    padding-block: var(--space-6);
    border-top-width: 4px;
    border-bottom-width: 4px;
  }
  .notfall-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  .notfall-banner__label {
    font-size: var(--fs-sm);
    letter-spacing: var(--ls-widest);
    margin-bottom: var(--space-2);
  }
  .notfall-banner__title {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  .notfall-banner__sub {
    font-size: var(--fs-md);
    margin-top: var(--space-2);
  }
  .notfall-banner__cta {
    width: 100%;
    justify-content: center;
  }

  .bento__item--wide,
  .bento__item--half,
  .bento__item--third,
  .bento__item--quarter {
    grid-column: span 12;
  }

  .section--patterned {
    background-attachment: scroll;
  }

  /* -----------------------------------------------------------------------
     v4.3 — Tap-Target-Hardening Mobile (Apple HIG 44x44pt minimum).
     Erhoeht die klickbereich-groesse von inline-links in footer,
     kontakt-info und langen impressum/datenschutz-urls von ~17px auf
     minimum 44x44px, ohne layout der umgebenden section zu brechen.
     ----------------------------------------------------------------------- */
  .footer__list a,
  .kontakt-info__value a {
    display: inline-block;
    padding-block: var(--space-3);
    min-height: 44px;
    line-height: 1.6;
  }

  .prose a {
    display: inline-block;
    padding: 2px 4px;
    margin-block: 6px;
    line-height: 1.8;
    min-height: 44px;
  }

  .bento__text a,
  .form-consent a {
    display: inline-block;
    padding-block: var(--space-3);
    min-height: 44px;
    line-height: 1.6;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 44px;
    font-size: var(--fs-md);
  }

  .form-field textarea {
    min-height: 88px;
  }

  .form-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding-block: var(--space-3);
    min-height: 44px;
    line-height: 1.6;
  }

  .form-consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  button.btn[type="submit"],
  button.btn[type="button"] {
    min-height: 48px;
  }
}

@media (min-width: 881px) {
  .hero__meta > summary {
    display: none;
  }
}

@media (max-width: 480px) {
  .trust-seals {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* -----------------------------------------------------------------------
   v4.2 — Floating-Call-Button (Notfall-Hotline 24/7) base rule
   Hidden by default on desktop (≥881px). Mobile visibility + position +
   animation live inside the @media (max-width:880px) block.
   NOTE: this rule MUST come BEFORE the @media block so the @media override
   wins cascade on viewports ≤880px (later-source rule at equal specificity).
   ----------------------------------------------------------------------- */
.floating-call {
  display: none;
}

/* -----------------------------------------------------------------------
   v4.2 — Mobile variant: Floating-Call-Button sichtbar + position fixed
   ----------------------------------------------------------------------- */
@media (max-width: 880px) {
  .floating-call {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold);
    color: var(--color-navy);
    border: 2px solid var(--color-gold-bright);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    animation: pulse-call 2s infinite;
    -webkit-tap-highlight-color: transparent;
  }

  .floating-call:hover,
  .floating-call:focus-visible {
    background: var(--color-gold-bright);
    border-color: var(--color-navy);
    transform: translateY(-1px);
  }

  .floating-call svg {
    width: 24px;
    height: 24px;
    display: block;
  }
}

@keyframes pulse-call {
  0%, 100% {
    box-shadow: var(--shadow-lg), 0 0 0 0 rgba(201, 168, 90, 0.7);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 0 16px rgba(201, 168, 90, 0);
  }
}
