@font-face {
  font-family: 'Oswald';
  src: url('assets/fonts/Oswald-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('assets/fonts/Oswald-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('assets/fonts/Oswald-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d1a2e;
  --sky: rgba(10, 18, 34, 0.72);
  --sky-strong: rgba(8, 15, 28, 0.91);
  --card: rgba(13, 26, 48, 0.60);
  --card-strong: rgba(250, 237, 205, 0.95);
  --text: #fdf0d0;
  --text-dark: #2a1a08;
  --muted: rgba(253, 240, 208, 0.80);
  --line: rgba(196, 158, 74, 0.22);
  --accent: #c4872a;
  --accent-strong: #e0a840;
  --accent-light: #f5d48a;
  --navy: #0d1f3c;
  --paper: #fef8ec;
  --paper-line: rgba(71, 43, 17, 0.12);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.40);
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --max: 76rem;
  --font-hand: 'Oswald', "Trebuchet MS", "Segoe UI", sans-serif;
  --font-script: 'Dancing Script', "Segoe Print", "Bradley Hand", cursive;
  --font-ui: 'Oswald', "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-hand);
}

body.is-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.scene__backdrop,
.scene__glow {
  position: absolute;
  inset: 0;
}

.scene__backdrop {
  background:
    linear-gradient(to bottom, rgba(13, 26, 46, 0.45) 0%, rgba(13, 26, 46, 0.05) 30%, rgba(13, 26, 46, 0.28) 80%, rgba(13, 26, 46, 0.65) 100%),
    url("assets/3.png") center 60% / cover no-repeat;
}

.scene__glow {
  background:
    radial-gradient(ellipse at 50% 72%, rgba(196, 135, 42, 0.22), transparent 32%),
    radial-gradient(ellipse at 50% 100%, rgba(196, 135, 42, 0.12), transparent 55%),
    linear-gradient(to bottom, rgba(8, 14, 26, 0.06), rgba(8, 14, 26, 0.22) 60%, rgba(8, 14, 26, 0.38));
}

.floating-cta {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 5;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(135deg, #d49a30, #b5761a);
  color: #fdf0d0;
  font-family: var(--font-hand);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.story {
  position: relative;
  z-index: 1;
}

.story--sky {
  min-height: 100vh;
}

.sky-stage {
  position: relative;
  height: calc(var(--steps) * 124svh);
}

.sky-stage__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.sky-copy {
  position: relative;
  width: 100%;
  height: 100%;
}

.sky-slide__kicker,
.modal__eyebrow,
.form-section__eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-hand);
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe7b1;
}

.primary-button,
.ghost-button,
.secondary-button,
.sky-document-link {
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.primary-button {
  border: 0;
  padding: 0.92rem 1.3rem;
  background: linear-gradient(135deg, #d49a30, #a8661a);
  color: #fdf0d0;
  font-family: var(--font-hand);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(168, 102, 26, 0.35);
}

.primary-button--wide {
  width: 100%;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.3rem;
  border: 1px solid rgba(255, 227, 170, 0.28);
  background: rgba(255, 248, 226, 0.08);
  color: var(--text);
}

.ghost-button--small {
  padding: 0.65rem 0.95rem;
  font-size: 0.95rem;
}

.sky-slide {
  position: absolute;
  top: clamp(4.8rem, 12vh, 8rem);
  width: min(86vw, 37rem);
  opacity: 0;
  pointer-events: none;
  color: #fff3d0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
  transform: translate3d(var(--slide-x, 0), var(--slide-shift, 1.75rem), 0) scale(var(--slide-scale, 0.98));
  transition: opacity 280ms linear, transform 280ms linear;
}

.sky-slide.is-active {
  pointer-events: auto;
}

.sky-slide--left {
  left: clamp(1.1rem, 8vw, 7rem);
  --slide-x: 0;
  text-align: left;
}

.sky-slide--right {
  right: clamp(1.1rem, 8vw, 7rem);
  --slide-x: 0;
  text-align: right;
}

.sky-slide--center {
  left: 50%;
  --slide-x: -50%;
  text-align: center;
}

.sky-slide__icon {
  width: clamp(2.8rem, 5vw, 4.3rem);
  height: clamp(2.8rem, 5vw, 4.3rem);
  object-fit: contain;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.sky-slide--right .sky-slide__icon {
  margin-left: auto;
}

.sky-slide--center .sky-slide__icon {
  margin-left: auto;
  margin-right: auto;
}

.sky-slide h1,
.sky-slide h2,
.modal__header h2,
.form-section__head h3 {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 400;
  line-height: 0.95;
}

.sky-slide h1 {
  font-size: clamp(3.6rem, 8vw, 6.8rem);
  text-wrap: balance;
}

.sky-slide h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}

.sky-slide__text {
  margin: 0.8rem 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.18;
  color: rgba(255, 244, 214, 0.95);
}

.sky-slide__actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.sky-link-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.sky-document-link {
  border: 1px solid rgba(255, 227, 170, 0.28);
  background: rgba(255, 246, 224, 0.1);
  color: inherit;
  padding: 0.8rem 1.1rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.sky-contact-lines {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.sky-contact-lines a {
  color: inherit;
  text-decoration: none;
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
}

.sky-stage__hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 239, 203, 0.78);
  font-family: var(--font-hand);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.footer-reveal-sentinel {
  height: 24svh;
}

.site-footer {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 6;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 232, 181, 0.2);
  background: rgba(8, 19, 37, 0.78);
  color: rgba(255, 244, 214, 0.9);
  font-size: 1.05rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1.5rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

body.is-footer-visible .site-footer,
.site-footer--static {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer--static {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0 clamp(1rem, 4vw, 2rem) max(1rem, env(safe-area-inset-bottom));
}

.site-footer__meta,
.site-footer__nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer a,
.site-footer__button {
  color: inherit;
  text-decoration: none;
}

.site-footer__button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  /* inset:0 allein reicht auf manchen mobilen Browsern nicht - bei
     ein-/ausblendender Adressleiste kann der fixed-Layer sich auf die
     größere Layout-Viewport statt die tatsächlich sichtbare Fläche
     beziehen. Explizite Höhe mit dvh-Fallback behebt das. */
  height: 100vh;
  height: 100dvh;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.74);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 70rem);
  /* Feste 75% der Fensterhöhe statt variabler calc()-Werte - einfacher
     vorhersehbar über alle Geräte hinweg. dvh-Variante überschreibt vh dort,
     wo unterstützt (genauer bei ein-/ausblendender Adressleiste). */
  height: 75vh;
  height: 75dvh;
  max-height: 75vh;
  max-height: 75dvh;
  margin: auto;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--paper);
  color: var(--text-dark);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.modal__dialog--form {
  display: flex;
  flex-direction: column;
}

.modal__dialog--document {
  width: min(100%, 78rem);
}

.modal__dialog--cookie {
  width: min(100%, 42rem);
}

.modal__header {
  padding: 1.5rem 4.25rem 1rem 1.5rem;
  border-bottom: 1px solid var(--paper-line);
  background: linear-gradient(180deg, rgba(247, 220, 160, 0.28), rgba(255, 246, 231, 0.9));
  flex-shrink: 0;
}

.modal__header--document {
  display: block;
}

.modal__body {
  overflow: auto;
  /* Ohne min-height:0 verweigert sich ein Flex-Child manchmal dem
     Schrumpfen und drückt den Dialog über seine max-height hinaus, statt
     intern zu scrollen - das war die zweite Ursache des Abschneidens. */
  min-height: 0;
}

.modal__body--form {
  padding: 1.25rem;
}

.modal__body--document {
  height: min(78vh, 60rem);
  background: #f0ece2;
  padding: 1.25rem;
}

.modal__body--cookie {
  padding: 1.25rem;
}

.document-content {
  padding: 1.2rem 1.25rem;
  border-radius: 1.3rem;
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid rgba(71, 43, 17, 0.1);
}

.document-article {
  display: grid;
  gap: 1rem;
}

.document-section {
  display: grid;
  gap: 0.55rem;
}

.document-section h3 {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #7e5521;
}

.document-section p,
.document-section li {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.18rem;
  line-height: 1.28;
  color: #34230f;
}

.document-section ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.document-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

.modal__close {
  position: absolute;
  top: 0.95rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(53, 38, 19, 0.08);
  color: #352613;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.registration-form {
  display: grid;
  gap: 1.15rem;
  font-family: var(--font-ui);
}

.registration-form .field input,
.registration-form .field textarea,
.registration-form .field select,
.registration-form .repeat-card__title,
.registration-form .secondary-button,
.registration-form .primary-button,
.registration-form .field span,
.registration-form .field-group legend,
.registration-form .check-line span,
.registration-form .radio-line span,
.registration-form .age-hint,
.registration-form .inline-link {
  font-family: var(--font-ui);
}

.honeypot {
  display: none;
}

.lang-switch {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
}

.lang-switch label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.lang-switch select {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(71, 43, 17, 0.18);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  color: #281b0b;
  font: inherit;
  font-size: 0.9rem;
}

.form-section {
  padding: 1.2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--paper-line);
  /* Im Anmeldeformular-Modal wird diese Farbe schon vom Modal-Rahmen
     vorgegeben (var(--text-dark)). Auf eigenständigen Seiten wie
     anmeldung-verwalten.php gibt es diesen Rahmen nicht - ohne diese Zeile
     erben Überschriften/Labels die helle Seiten-Schrift und sind auf dem
     hellen Kartenhintergrund kaum lesbar. */
  color: var(--text-dark);
}

.form-section__head {
  margin-bottom: 1rem;
}

.form-section__eyebrow {
  color: #8d632b;
}

.form-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.field-group {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.field span,
.field-group legend {
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(71, 43, 17, 0.18);
  border-radius: 1rem;
  padding: 0.9rem 0.95rem;
  background: rgba(255, 255, 255, 0.84);
  color: #281b0b;
}

.field textarea {
  resize: vertical;
}

.field--wide {
  grid-column: 1 / -1;
}

.stack {
  display: grid;
  gap: 1rem;
}

.repeat-card {
  position: relative;
  padding: 1rem;
  border-radius: 1.35rem;
  background: rgba(255, 248, 238, 0.92);
  border: 1px solid rgba(71, 43, 17, 0.12);
}

.repeat-card__title {
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.secondary-button {
  justify-self: start;
  border: 1px solid rgba(71, 43, 17, 0.16);
  background: rgba(255, 248, 238, 0.92);
  padding: 0.75rem 1rem;
  color: #352613;
  font-weight: 700;
}

.remove-chip {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(161, 74, 43, 0.12);
  color: #8b2d14;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.birth-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.age-hint {
  margin: 0;
  color: #9a2919;
  font-size: 0.95rem;
}

.gender-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.gender-slider input[type="range"] {
  width: 100%;
}

.check-line,
.radio-line {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-line input,
.radio-line input {
  margin-top: 0.18rem;
}

.health-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1rem;
  border-radius: 1.15rem;
  background: rgba(250, 240, 223, 0.74);
}

.field-group {
  padding: 0;
  border: 0;
}

.field-group legend {
  margin-bottom: 0.6rem;
  padding: 0;
}

.form-actions {
  padding-bottom: 0.5rem;
}

.required {
  color: #b53211;
}

.csrf-warning {
  margin: 0.6rem 0 0;
  color: #b53211;
  font-weight: 700;
  font-size: 0.95rem;
}

/* .legal-card hat einen dunklen Hintergrund - das dunkle Rot von
   .csrf-warning wäre dort kaum lesbar, deshalb hier ein helles Rot. */
.legal-card .csrf-warning {
  color: #ffb4a1;
}

.inline-link {
  color: #6f4715;
}

.cookie-banner {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 18;
  display: grid;
  gap: 1rem;
  width: min(100% - 2rem, 44rem);
  margin-left: auto;
  padding: 1.15rem 1.2rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 232, 181, 0.22);
  background: rgba(9, 19, 35, 0.92);
  color: #fff3d0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
  display: none;
}

body.is-footer-visible .cookie-banner {
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 6.8rem);
}

.cookie-banner__eyebrow,
.legal-hero__eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-hand);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe7b1;
}

.cookie-banner h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 0.98;
}

.cookie-banner p {
  margin: 0;
  font-family: var(--font-ui);
  line-height: 1.45;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-settings {
  display: grid;
  gap: 1rem;
}

.cookie-option {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 1.3rem;
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid rgba(71, 43, 17, 0.1);
}

.cookie-option--muted {
  background: rgba(245, 238, 224, 0.82);
}

.cookie-option__head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-option__head h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1;
}

.cookie-option p,
.cookie-toggle {
  margin: 0;
  font-family: var(--font-ui);
  line-height: 1.45;
}

.cookie-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: rgba(235, 193, 109, 0.24);
  color: #7b5318;
  font-size: 0.95rem;
  font-family: var(--font-ui);
}

.cookie-chip--quiet {
  background: rgba(53, 38, 19, 0.08);
  color: #5e4827;
}

.cookie-toggle {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
}

.legal-page {
  min-height: 100vh;
}

.legal-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.2rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) 2rem;
}

.legal-hero,
.legal-card {
  border: 1px solid rgba(255, 232, 181, 0.18);
  background: rgba(8, 19, 37, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.legal-hero {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  border-radius: 2rem;
}

.legal-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 8vw, 4.7rem);
  line-height: 0.96;
}

.legal-hero p:last-child {
  margin: 0;
  max-width: 48rem;
  font-family: var(--font-ui);
  line-height: 1.5;
}

.legal-layout {
  display: grid;
  gap: 1rem;
}

.legal-card {
  display: grid;
  gap: 0.6rem;
  padding: 1.4rem;
  border-radius: 1.6rem;
  color: #fff3d0;
}

.legal-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
}

.legal-card p,
.legal-card li,
.legal-card th,
.legal-card td {
  margin: 0;
  font-family: var(--font-ui);
  line-height: 1.55;
}

.legal-card a {
  color: #ffe7b1;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(255, 232, 181, 0.14);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 900px) {
  .sky-slide {
    top: 5.8rem;
    width: min(84vw, 29rem);
  }

  .form-grid,
  .health-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .floating-cta {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 1rem;
    text-align: center;
  }

  body.is-footer-visible .floating-cta {
    bottom: calc(var(--footer-h, 6rem) + 0.75rem);
  }

  .sky-slide {
    top: 4.8rem;
    left: 50%;
    right: auto;
    width: min(88vw, 21rem);
    --slide-x: -50%;
    text-align: center;
  }

  .sky-slide__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .sky-slide__actions {
    gap: 0.7rem;
  }

  .sky-document-link {
    width: 100%;
  }

  .sky-contact-lines {
    justify-items: center;
  }

  .site-footer {
    padding: 0.95rem 1rem;
    font-size: 1rem;
  }

  .site-footer--static {
    margin: 0 1rem max(1rem, env(safe-area-inset-bottom));
  }

  .site-footer__meta,
  .site-footer__nav,
  .cookie-banner__actions,
  .cookie-option__head {
    align-items: flex-start;
  }

  .cookie-banner {
    width: auto;
  }

  .modal {
    padding: 0.45rem;
  }

  .modal__dialog {
    border-radius: 1.35rem;
    height: 75vh;
    height: 75dvh;
    max-height: 75vh;
    max-height: 75dvh;
  }

  .modal__header {
    padding: 1.1rem 3.3rem 0.9rem 1rem;
  }

  .modal__body--form {
    padding: 0.85rem;
  }

  .modal__body--document {
    padding: 0.85rem;
  }

  .form-section {
    padding: 1rem;
  }

  .birth-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legal-card {
    padding: 1.1rem;
  }

  .legal-table {
    min-width: 30rem;
  }
}

/* ── Teeny-spezifische Bild-Logos ─────────────────────────── */

.teeny-hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.teeny-logo-img {
  width: clamp(18rem, 55vw, 32rem);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
}

.teeny-title-img {
  width: clamp(14rem, 40vw, 24rem);
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.50));
}

.teeny-subtitle-img {
  width: clamp(16rem, 45vw, 28rem);
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.40));
}

.teeny-date-badge {
  margin-top: 0.6rem;
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  text-shadow: 0 3px 14px rgba(0,0,0,0.55);
}

/* Kreis-Illustrationen (1.png, 2.png) */
.circle-illus {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.8rem;
}

.circle-illus img {
  width: clamp(7rem, 18vw, 11rem);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
}

/* Kostenhinweis-Slide */
.cost-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: rgba(196, 135, 42, 0.22);
  border: 1.5px solid rgba(196, 135, 42, 0.5);
  font-family: var(--font-hand);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--accent-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

@media (max-width: 640px) {
  .teeny-logo-img  { width: clamp(14rem, 80vw, 20rem); }
  .teeny-title-img { width: clamp(10rem, 65vw, 16rem); }
  .teeny-subtitle-img { width: clamp(12rem, 72vw, 18rem); }
  .circle-illus img { width: clamp(6rem, 36vw, 9rem); }
}
