/* =====================================================================
   BirthdayBuddy – Seitenstile (Startseite, Danke, Datenschutz, Impressum)
   Komponenten nach dem BirthdayBuddy-Design-System, mobile first.

   Einbindung im <head> (Reihenfolge wichtig):
     1. style.css          – lokale Schriften (@font-face) + Reset
     2. tokens.css         – Farben, Typografie, Spacing, Radien, Schatten
     3. birthdaybuddy.css  – diese Datei

   Breakpoints: 400 · 480 · 560 · 600 · 640 · 768 · 960 · 1024
   ===================================================================== */

/* ---------- Basis ---------- */
:root {
  --section-pad: var(--space-10);
  --nav-h: 4rem;
}

@media (min-width: 768px) {
  :root {
    --section-pad: var(--space-16);
    --nav-h: 4.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-pad: var(--space-20);
  }
}

html {
  scroll-padding-top: calc(var(--nav-h) + var(--space-4));
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

/* Wird vom Formular-Skript per classList gesetzt/entfernt – nicht umbenennen. */
.hidden {
  display: none !important;
}

/* Telefonnummer im Impressum wird per CSS zusammengesetzt (Schutz vor Auslesen). */
.phone-protected::before {
  content: attr(data-a) attr(data-b) attr(data-c) attr(data-d) attr(data-e);
}

:focus-visible {
  outline: 3px solid rgba(255, 129, 108, 0.65);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.bb-skip {
  position: absolute;
  top: -4rem;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--teal-700);
  color: var(--white);
  font-weight: var(--fw-semibold);
  transition: top var(--dur-fast) var(--ease-soft);
}

.bb-skip:focus {
  top: var(--space-3);
  text-decoration: none;
}

.bb-container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.bb-container--narrow {
  max-width: 44rem;
}

@media (min-width: 640px) {
  .bb-container {
    padding-inline: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .bb-container {
    padding-inline: var(--space-8);
  }
}

/* ---------- Icons (Lucide, 2px Stroke) ---------- */
.bb-icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bb-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  color: var(--teal-600);
}

.bb-chip--mint {
  background: var(--muted-mint);
  color: var(--muted-mint-deep);
}

/* ---------- Buttons ---------- */
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
}

.bb-btn:hover {
  text-decoration: none;
}

.bb-btn:active {
  transform: scale(0.98);
}

.bb-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bb-btn--sm {
  height: 38px;
  padding: 0 16px;
  gap: 8px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.bb-btn--lg {
  height: 56px;
  padding: 0 30px;
  gap: 11px;
  font-size: var(--text-lg);
}

.bb-btn--primary {
  background: var(--coral-400);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.bb-btn--primary:hover:not(:disabled) {
  background: var(--coral-500);
}

.bb-btn--primary:active:not(:disabled) {
  background: var(--coral-600);
}

.bb-btn--secondary {
  background: var(--teal-500);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}

.bb-btn--secondary:hover {
  background: var(--teal-600);
}

.bb-btn--secondary:active {
  background: var(--teal-700);
}

.bb-btn--outline {
  background: transparent;
  border: 1.5px solid var(--border-default);
  color: var(--teal-700);
}

.bb-btn--outline:hover {
  background: var(--sand-50);
  border-color: var(--teal-400);
}

.bb-btn--outline:active {
  background: var(--sand-100);
}

.bb-btn--ghost {
  background: transparent;
  color: var(--teal-700);
}

.bb-btn--ghost:hover {
  background: var(--teal-50);
}

.bb-btn--ghost:active {
  background: var(--teal-100);
}

/* ---------- Navigation ---------- */
.bb-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-canvas);
}

.bb-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--nav-h);
}

.bb-nav__logo {
  display: inline-flex;
  flex: none;
}

.bb-nav__logo img {
  display: block;
  width: auto;
  height: 40px;
}

.bb-nav__links {
  display: none;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

@media (min-width: 768px) {
  .bb-nav__logo img {
    height: 48px;
  }

  .bb-nav__links {
    display: flex;
  }
}

@media (max-width: 399px) {
  .bb-hide-xs {
    display: none;
  }
}

/* ---------- Typografie-Bausteine ---------- */
.bb-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--coral-600);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  line-height: 1.3;
  text-transform: uppercase;
}

.bb-section-head {
  max-width: 44rem;
  margin: 0 auto var(--space-8);
  text-align: center;
}

.bb-section-head h2,
.bb-audience__card h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, var(--text-3xl));
  line-height: var(--leading-snug);
}

.bb-section-head h2 {
  margin-bottom: var(--space-4);
}

.bb-section-head h2:last-child {
  margin-bottom: 0;
}

.bb-section-head p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

@media (min-width: 640px) {
  .bb-section-head p {
    font-size: var(--text-lg);
  }
}

@media (min-width: 768px) {
  .bb-section-head {
    margin-bottom: var(--space-12);
  }
}

.bb-link {
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bb-link:hover {
  color: var(--coral-600);
}

/* ---------- Sektionen ---------- */
.bb-section {
  padding-block: var(--section-pad);
}

.bb-section + .bb-section,
.bb-hero + .bb-section {
  padding-top: 0;
}

.bb-band {
  padding-block: calc(var(--section-pad) * 0.85);
  background: var(--surface-card);
}

/* ---------- Hero ---------- */
.bb-hero {
  padding: var(--space-10) 0 var(--space-8);
  text-align: center;
}

.bb-hero__inner {
  max-width: 52rem;
  margin-inline: auto;
}

.bb-hero h1 {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.75rem, 1rem + 3.9vw, var(--text-4xl));
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.bb-accent {
  color: var(--coral-600);
}

.bb-hero__sub {
  margin: 0;
  color: var(--teal-500);
  font-size: clamp(1.25rem, 1rem + 1.2vw, var(--text-2xl));
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
}

.bb-hero__sub::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin: var(--space-5) auto;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
}

.bb-lead {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--text-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  line-height: var(--leading-normal);
}

@media (min-width: 640px) {
  .bb-lead {
    font-size: var(--text-lg);
  }
}

.bb-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

@media (min-width: 560px) {
  .bb-hero__actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .bb-hero {
    padding: var(--space-20) 0 var(--space-12);
  }

  .bb-hero__actions {
    margin-top: var(--space-10);
  }
}

/* ---------- Karten & Raster ---------- */
.bb-card {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
}

.bb-card--hero {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.bb-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
}

.bb-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.bb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

/* Karte mit Icon-Chip: mobil Icon oben, auf Tablet Icon links, ab Desktop wieder oben */
.bb-item {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

@media (min-width: 600px) and (max-width: 959px) {
  .bb-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-5);
  }
}

@media (min-width: 960px) {
  .bb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .bb-card {
    padding: var(--space-8);
  }
}

/* ---------- Vertrauens-Leiste ---------- */
.bb-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-8);
  margin: var(--space-10) 0 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  list-style: none;
}

.bb-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-600);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: 1.2;
}

.bb-trust .bb-icon {
  color: var(--teal-500);
}

/* ---------- So funktioniert's (Schritte) ---------- */
.bb-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface-sunken);
}

.bb-step__num {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--coral-100);
  color: var(--coral-700);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.bb-steps h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
}

.bb-steps p {
  margin: 0;
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

@media (min-width: 768px) {
  .bb-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .bb-steps li {
    display: block;
    padding: var(--space-8);
  }

  .bb-step__num {
    margin-bottom: var(--space-5);
  }
}

/* ---------- Eltern / Betreiber ---------- */
.bb-audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.bb-audience__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.bb-audience__card h2 {
  margin-bottom: var(--space-3);
}

.bb-audience__card p {
  flex: 1 0 auto;
  margin: 0 0 var(--space-6);
  line-height: var(--leading-normal);
}

.bb-audience__card--parent {
  background: var(--teal-700);
  color: var(--white);
}

.bb-audience__card--parent .bb-eyebrow {
  color: var(--coral-200);
}

.bb-audience__card--parent h2 {
  color: var(--white);
}

.bb-audience__card--parent p {
  color: rgba(255, 255, 255, 0.75);
}

.bb-audience__card--provider {
  border: 1px solid rgba(169, 132, 66, 0.25);
  background: var(--champagne-mist);
}

.bb-audience__card--provider .bb-eyebrow {
  color: var(--coral-700);
}

.bb-audience__card--provider p {
  color: var(--sand-700);
}

/* Outline-Button für die dunkle Eltern-Karte */
.bb-btn--on-dark {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.bb-btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

@media (min-width: 768px) {
  .bb-audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .bb-audience__card {
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
  }
}

/* ---------- Warteliste (Formular) ---------- */
.bb-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bb-form--card {
  padding: var(--space-6) var(--space-5);
}

.bb-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.bb-field {
  min-width: 0;
  text-align: left;
}

.bb-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.bb-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background-color: var(--white);
  box-shadow: none;
  color: var(--text-body);
  font-family: var(--font-body);
  /* 16px verhindert das automatische Hineinzoomen auf iOS */
  font-size: var(--text-base);
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
}

.bb-input::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

.bb-input:hover {
  border-color: var(--border-strong);
}

.bb-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--ring-teal);
}

.bb-input--lg {
  height: 56px;
}

.bb-input--icon {
  padding-left: 48px;
}

.bb-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236f675b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  cursor: pointer;
}

.bb-input-wrap {
  position: relative;
}

.bb-input-wrap > .bb-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--text-subtle);
  pointer-events: none;
  transform: translateY(-50%);
  transition: color var(--dur-fast) var(--ease-soft);
}

.bb-input-wrap:focus-within > .bb-icon {
  color: var(--teal-500);
}

.bb-form .bb-btn {
  width: 100%;
  padding-inline: var(--space-4);
}

.bb-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
  text-align: center;
}

/* Sehr schmale Geräte (z. B. 320 px): Pfeil weglassen, damit das Label einzeilig bleibt */
@media (max-width: 359px) {
  .bb-form .bb-btn {
    font-size: var(--text-base);
  }

  #submit-icon {
    display: none;
  }
}

@media (min-width: 560px) {
  .bb-form__grid {
    grid-template-columns: minmax(9rem, 0.85fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 640px) {
  .bb-form {
    gap: var(--space-5);
  }

  .bb-form--card {
    padding: var(--space-8);
  }
}

/* Rückmeldungen (Erfolg / Fehler) */
.bb-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-align: left;
}

.bb-notice--success {
  flex-direction: column;
  align-items: center;
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.bb-notice .bb-notice__title {
  margin: 0 0 var(--space-2);
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, var(--text-2xl));
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
}

.bb-notice__text {
  margin: 0;
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

.bb-notice--error {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--coral-200);
  border-radius: var(--radius-lg);
  background: var(--danger-surface);
}

.bb-notice--error .bb-icon {
  margin-top: 1px;
  color: var(--danger);
}

.bb-notice--error p {
  margin: 0;
  color: var(--coral-700);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: 1.5;
}

.bb-notice--error a {
  color: inherit;
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

#form-success,
#form-error {
  margin-top: var(--space-4);
}

/* Teilen */
.bb-share {
  margin-top: var(--space-8);
  text-align: center;
}

.bb-share p {
  margin: 0 auto var(--space-4);
  max-width: 28rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* ---------- FAQ ---------- */
/* (im weißen Band liegen die Einträge auf Sand-50, im Canvas auf Weiß) */
.bb-faq {
  display: grid;
  gap: var(--space-3);
  max-width: 48rem;
  margin-inline: auto;
}

.bb-faq details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  transition: border-color var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
}

.bb-band .bb-faq details {
  background: var(--surface-sunken);
}

.bb-band .bb-faq details[open] {
  background: var(--white);
}

.bb-faq details[open] {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-sm);
}

.bb-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  color: var(--text-heading);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  list-style: none;
}

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

.bb-faq summary::after {
  content: "+";
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--teal-50);
  color: var(--teal-700);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: var(--fw-regular);
  line-height: 1;
}

.bb-faq details[open] summary::after {
  content: "\2013";
  background: var(--coral-100);
  color: var(--coral-700);
}

.bb-faq details p {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-body);
  line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
  .bb-faq summary {
    padding-inline: var(--space-6) var(--space-5);
    font-size: var(--text-lg);
  }

  .bb-faq details p {
    padding-inline: var(--space-6);
    font-size: var(--text-base);
  }
}

/* ---------- Unterseiten: Kopf, Fließtext, Danke ---------- */
.bb-page {
  padding-block: var(--space-10) var(--space-12);
}

.bb-page-head {
  margin-bottom: var(--space-8);
}

.bb-page-head h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 1rem + 3.9vw, var(--text-4xl));
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.bb-prose {
  display: grid;
  gap: var(--space-6);
}

.bb-prose section {
  display: grid;
  gap: var(--space-3);
}

.bb-prose h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
}

.bb-prose p {
  margin: 0;
  color: var(--text-body);
  line-height: var(--leading-relaxed);
}

.bb-prose .bb-muted {
  color: var(--text-muted);
}

.bb-prose address {
  font-style: normal;
}

.bb-prose .bb-strong,
.bb-address .bb-strong {
  font-weight: var(--fw-semibold);
}

.bb-prose .bb-text-lg {
  font-size: var(--text-lg);
}

.bb-address {
  display: grid;
  gap: 0;
}

.bb-address p {
  margin: 0;
  color: var(--text-body);
  line-height: var(--leading-normal);
}

.bb-address .bb-mt {
  margin-top: var(--space-1);
}

.bb-divider {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .bb-page {
    padding-block: var(--space-16) var(--space-20);
  }

  .bb-page-head {
    margin-bottom: var(--space-10);
  }

  .bb-prose {
    gap: var(--space-8);
  }
}

.bb-thanks,
.bb-thanks .bb-page-head {
  text-align: center;
}

.bb-thanks .bb-card {
  margin-top: var(--space-8);
  text-align: left;
}

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

.bb-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-body);
  font-weight: var(--fw-medium);
  line-height: var(--leading-normal);
}

.bb-checklist .bb-icon {
  margin-top: 2px;
  color: var(--muted-mint-deep);
}

.bb-thanks__back {
  margin-top: var(--space-8);
}

/* ---------- Footer ---------- */
.bb-footer {
  margin-top: auto;
  padding: var(--space-10) 0 var(--space-8);
  background: var(--teal-800);
  color: rgba(255, 255, 255, 0.75);
}

.bb-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

.bb-footer__logo {
  display: block;
  width: auto;
  height: 40px;
  margin-bottom: var(--space-3);
}

.bb-footer__copy {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.bb-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.bb-footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.bb-footer__nav a:hover {
  color: var(--white);
}

.bb-footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.bb-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease-soft);
}

.bb-footer__social a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Die Icons werden per Filter weiß dargestellt (unabhängig von der Originalfarbe der SVGs). */
.bb-footer__social img {
  display: block;
  width: auto;
  height: 20px;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  transition: opacity var(--dur-fast) var(--ease-soft);
}

.bb-footer__social a:hover img {
  opacity: 1;
}

.bb-footer :focus-visible {
  outline-color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .bb-footer {
    padding: var(--space-12) 0 var(--space-10);
  }

  .bb-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-8) var(--space-12);
  }

  .bb-footer__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-3);
  }

  .bb-footer__nav {
    justify-content: flex-end;
  }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
