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

:root {
  --hintergrund-1: #13242b;
  --hintergrund-2: #07141a;
  --dunkel: #111c21;
  --dunkel-2: #18272d;
  --papier: #f2e7d5;
  --papier-2: #e8d8be;
  --gold: #c6a267;
  --blau: #9fc7d9;
  --text-hell: #f7f2e8;
  --text-dunkel: #10232c;
  --text-grau: #65737a;
}

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

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  color: var(--text-dunkel);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.82), transparent 29%),
    radial-gradient(circle at 86% 84%, rgba(166, 126, 72, 0.16), transparent 34%),
    linear-gradient(145deg, #f6eee3 0%, #eadbc5 54%, #dfc8a7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(90deg, rgba(84, 64, 39, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(84, 64, 39, 0.04) 1px, transparent 1px);
  background-size: 25px 25px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 44px;
}

button,
a[href] {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid #fff8ec;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #0b5566;
}

#app {
  width: min(94vw, 430px, calc(94dvh * 0.5625));
  aspect-ratio: 9 / 16;
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(16, 35, 44, 0.42);
  border-radius: 22px;
  background: rgba(11, 25, 31, 0.96);
  box-shadow: 0 24px 68px rgba(71, 48, 22, 0.28);
}

.app-kopf {
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  color: var(--text-hell);
  border-bottom: 1px solid rgba(242, 231, 213, 0.18);
  background: rgba(12, 25, 31, 0.98);
}

.marke {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.marke-symbol {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 50%;
  border: 1px solid rgba(242, 231, 213, 0.28);
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
}

.marke strong {
  display: block;
  font-size: 14px;
  line-height: 1.05;
}

.marke small {
  display: block;
  margin-top: 3px;
  color: var(--blau);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
}

.musik-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  margin-left: auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--dunkel);
  background: var(--gold);
}

.musik-button.spielt {
  animation: musikpuls 1.5s ease-in-out infinite;
}

@keyframes musikpuls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 162, 103, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(198, 162, 103, 0); }
}

.fenster {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--papier);
}

.seiten-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.seite {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 35, 44, 0.25) transparent;
}

.seite-start {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 124px;
  overflow: hidden;
  background: var(--dunkel);
}

.start-hero {
  min-height: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: 20px 20px 18px;
  color: var(--text-hell);
  background:
    linear-gradient(90deg, rgba(10, 20, 25, 0.88) 0%, rgba(10, 20, 25, 0.35) 62%, rgba(10, 20, 25, 0.7) 100%),
    radial-gradient(circle at 55% 40%, #3e4441 0%, #222c2e 45%, #101b20 100%);
  background-size: cover;
  background-position: center;
}

.start-verlauf {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 15, 18, 0.08), rgba(8, 15, 18, 0.76));
}

.foto-ersatz {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.42;
  filter: sepia(0.45) grayscale(0.45);
}

.kopf-reihe,
.koerper-reihe {
  position: absolute;
  left: 7%;
  right: 7%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 5% 50%, #bbb7aa 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 16% 44%, #bbb7aa 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 27% 52%, #bbb7aa 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 38% 42%, #bbb7aa 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 49% 51%, #bbb7aa 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 60% 43%, #bbb7aa 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 71% 51%, #bbb7aa 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 82% 44%, #bbb7aa 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 93% 50%, #bbb7aa 0 3.4%, transparent 3.6%);
}

.kopf-reihe-1 {
  top: 18%;
  height: 92px;
}

.kopf-reihe-2 {
  top: 31%;
  height: 92px;
  transform: translateX(3%);
}

.koerper-reihe {
  top: 32%;
  height: 43%;
  border-radius: 45% 45% 18% 18%;
  background: linear-gradient(180deg, rgba(190, 186, 174, 0.72), rgba(110, 109, 103, 0.24));
}

.start-inhalt {
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.kicker {
  margin-bottom: 7px;
  color: var(--blau);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.start-inhalt h1 {
  max-width: 340px;
  font-size: clamp(34px, 10vw, 43px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.start-text {
  max-width: 35ch;
  margin: 11px 0 14px;
  color: rgba(247, 242, 232, 0.92);
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.46;
}

.hauptbutton {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  color: var(--text-dunkel);
  background: var(--papier-2);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.notizzettel {
  display: none;
}

.start-info {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  color: var(--text-dunkel);
  background: var(--papier);
}

.start-info .mini-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 6px;
  text-align: center;
  border-right: 1px solid rgba(16, 35, 44, 0.14);
  border-bottom: 1px solid rgba(16, 35, 44, 0.12);
}

.start-info .mini-info:nth-child(-n+3) {
  grid-column: span 2;
}

.start-info .mini-info:nth-child(n+4) {
  grid-column: span 3;
  border-bottom: 0;
}

.start-info .mini-info:nth-child(3),
.start-info .mini-info:nth-child(5) {
  border-right: 0;
}

.mini-info-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 50%;
  color: var(--text-dunkel);
  background: #fff;
  border: 1px solid rgba(16, 35, 44, 0.12);
  font-size: 10px;
}

.mini-info strong {
  display: block;
  margin-bottom: 2px;
  color: #17506a;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-info > span:last-child {
  display: block;
  font-size: 9px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.seite-infos,
.seite-programm,
.seite-rsvp {
  padding: 20px 17px;
  color: var(--text-dunkel);
  background: var(--papier);
}

.seitenkopf {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #22566e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.seitenkopf span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 50%;
  color: var(--text-dunkel);
  background: #fff;
  border: 1px solid rgba(16, 35, 44, 0.14);
  font-size: 8px;
}

.seitenkopf-hell {
  color: var(--blau);
}

.seite h2 {
  margin-bottom: 12px;
  font-size: clamp(23px, 7vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.info-karten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.info-karte {
  min-height: 0;
  padding: 10px;
  border-radius: 12px;
  background: #fffaf1;
  border: 1px solid rgba(16, 35, 44, 0.13);
  box-shadow: 0 5px 14px rgba(16, 35, 44, 0.05);
}

.info-karte:last-child {
  grid-column: 1 / -1;
}

.info-karte-icon {
  font-size: 17px;
}

.info-karte h3 {
  margin: 5px 0 3px;
  color: #22566e;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-karte p {
  font-size: 12px;
  line-height: 1.38;
}

.seite-erinnerungen {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px 17px;
  color: var(--text-hell);
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(180deg, var(--dunkel-2), var(--dunkel));
}

.erinnerung-textblock p:not(.handschrift) {
  max-width: 100%;
  color: rgba(247, 242, 232, 0.82);
  font-size: 12px;
  line-height: 1.48;
}

.handschrift {
  margin-top: 7px;
  color: var(--gold);
  font-size: 16px;
  font-style: italic;
}

.foto-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-items: center;
}

.polaroid {
  min-width: 0;
  padding: 5px 5px 9px;
  color: var(--text-dunkel);
  background: var(--papier);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  transform: rotate(-1deg);
}

.polaroid:nth-child(2) { transform: rotate(1deg); }
.polaroid:nth-child(3) { transform: rotate(-0.3deg); }

.polaroid-bild {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 5px;
  text-align: center;
  color: rgba(247, 242, 232, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent),
    linear-gradient(135deg, #515754, #252d2d);
  background-size: cover;
  background-position: center;
  filter: sepia(0.35) grayscale(0.2);
  font-size: 9px;
  line-height: 1.2;
}

.polaroid figcaption {
  margin-top: 5px;
  text-align: center;
  font-size: 9px;
  line-height: 1.2;
}

.programm-liste {
  display: grid;
  gap: 8px;
  list-style: none;
}

.programm-punkt {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 12px;
  background: #fffaf1;
  border: 1px solid rgba(16, 35, 44, 0.12);
  font-size: 12px;
  line-height: 1.3;
}

.programm-zeit {
  color: #22566e;
  font-weight: 700;
}

.programm-hinweis {
  margin-top: 10px;
  color: var(--text-grau);
  font-size: 10px;
  line-height: 1.4;
}

.rsvp-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.rsvp-kopf > div:first-child {
  min-width: 0;
}

.rsvp-kopf h2 {
  margin-bottom: 5px;
}

.rsvp-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 50%;
  color: #22566e;
  background: #fff;
  border: 1px solid rgba(16, 35, 44, 0.13);
  font-size: 17px;
}

.seiten-intro {
  color: var(--text-grau);
  font-size: 11px;
  line-height: 1.4;
}

.formular-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.formulargruppe {
  min-width: 0;
  margin-bottom: 12px;
}

.formulargruppe.kompakt {
  margin-bottom: 9px;
}

.formulargruppe label,
.formulargruppe legend {
  display: block;
  margin-bottom: 5px;
  color: var(--text-dunkel);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.formulargruppe input,
.formulargruppe textarea {
  width: 100%;
  padding: 9px 10px;
  color: var(--text-dunkel);
  background: #fffaf1;
  border: 1px solid rgba(16, 35, 44, 0.25);
  border-radius: 9px;
  outline: none;
  font-size: 12px;
}

.formulargruppe input {
  height: 42px;
}

.formulargruppe textarea {
  min-height: 76px;
  resize: vertical;
}

.formulargruppe input:focus,
.formulargruppe textarea:focus {
  border-color: #22566e;
  box-shadow: 0 0 0 3px rgba(34, 86, 110, 0.14);
}

fieldset {
  border: 0;
}

.auswahl-grid {
  display: grid;
  gap: 7px;
}

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

.auswahl-grid-vier {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auswahl-option {
  min-width: 0;
  position: relative;
  cursor: pointer;
}

.auswahl-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auswahl-option span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 7px 5px;
  text-align: center;
  border-radius: 999px;
  color: var(--text-grau);
  background: #fffaf1;
  border: 1px solid rgba(16, 35, 44, 0.2);
  font-size: 10px;
  line-height: 1.15;
}

.auswahl-option input:checked + span {
  color: var(--text-hell);
  background: #22566e;
  border-color: #22566e;
  box-shadow: 0 4px 10px rgba(34, 86, 110, 0.18);
}

.auswahl-option input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.antwort-formular {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.whatsapp-hinweis {
  margin: -2px 0 9px;
  color: var(--text-grau);
  font-size: 10px;
  line-height: 1.4;
}

.formular-fehler {
  margin-bottom: 9px;
  padding: 9px 10px;
  border: 1px solid #a33a32;
  border-radius: 9px;
  color: #7f211b;
  background: #fff0ee;
  font-size: 11px;
  line-height: 1.35;
}

.senden-button {
  width: 100%;
  color: var(--papier);
  background: #22566e;
}

.seite-bestaetigung {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px;
  text-align: center;
  color: var(--text-hell);
  background: linear-gradient(180deg, var(--dunkel-2), var(--dunkel));
}

.haken {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 27px;
}

.seite-bestaetigung h2 {
  margin-bottom: 10px;
}

.seite-bestaetigung p:not(.kicker) {
  max-width: 34ch;
  color: rgba(247, 242, 232, 0.84);
  font-size: 13px;
  line-height: 1.5;
}

.sekundaerbutton {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--dunkel);
  background: var(--papier-2);
  border: 1px solid var(--papier-2);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.sekundaerbutton-leise {
  margin-top: 9px;
  color: var(--text-hell);
  background: transparent;
  border-color: rgba(247, 242, 232, 0.4);
}

.app-fuss {
  flex: 0 0 50px;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: var(--text-hell);
  border-top: 1px solid rgba(242, 231, 213, 0.16);
  background: rgba(12, 25, 31, 0.99);
}

.nav-button {
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--text-hell);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(247, 242, 232, 0.24);
  font-size: 10px;
}

.nav-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.nav-button-weiter {
  color: var(--text-dunkel);
  background: var(--papier-2);
  border-color: var(--papier-2);
  font-weight: 700;
}

.seitenpunkte {
  display: flex;
  justify-content: center;
  gap: 0;
}

.seitenpunkt {
  width: 24px;
  height: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.seitenpunkt::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(247, 242, 232, 0.3);
}

.seitenpunkt.aktiv::before {
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(198, 162, 103, 0.14);
}

.copyright {
  flex: 0 0 18px;
  padding: 4px 8px 5px;
  color: rgba(247, 242, 232, 0.58);
  background: rgba(12, 25, 31, 0.99);
  text-align: center;
  font-size: 7px;
  letter-spacing: 0.03em;
}

noscript {
  position: fixed;
  inset: auto 10px 10px;
  padding: 12px;
  color: #111;
  background: #fff;
}

@media (max-height: 690px) {
  #app {
    width: min(96vw, calc(96dvh * 0.5625));
    max-height: 96dvh;
  }

  .app-kopf {
    flex-basis: 46px;
    padding-block: 4px;
  }

  .marke-symbol {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .marke strong {
    font-size: 12px;
  }

  .seite-start {
    grid-template-rows: minmax(0, 1fr) 112px;
  }

  .start-hero {
    padding: 14px 15px 13px;
  }

  .start-inhalt h1 {
    font-size: 30px;
  }

  .start-text {
    margin: 7px 0 9px;
    font-size: 11px;
    line-height: 1.38;
  }

  .hauptbutton {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 10px;
  }

  .mini-info-icon {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .mini-info strong {
    font-size: 6.5px;
  }

  .mini-info > span:last-child {
    font-size: 7.8px;
  }

  .seite-infos,
  .seite-programm,
  .seite-rsvp,
  .seite-erinnerungen {
    padding: 14px 13px;
  }

  .seite h2 {
    margin-bottom: 8px;
    font-size: 21px;
  }

  .seitenkopf {
    margin-bottom: 6px;
  }

  .info-karten,
  .programm-liste {
    gap: 6px;
  }

  .info-karte {
    padding: 7px 8px;
  }

  .info-karte p,
  .programm-punkt {
    font-size: 10px;
  }

  .programm-punkt {
    padding: 7px 9px;
  }

  .formulargruppe {
    margin-bottom: 8px;
  }

  .formulargruppe input {
    height: 38px;
  }

  .formulargruppe textarea {
    min-height: 62px;
  }

  .auswahl-option span {
    min-height: 38px;
    font-size: 9px;
  }

  .whatsapp-hinweis {
    font-size: 9px;
  }

  .app-fuss {
    flex-basis: 46px;
  }

  .nav-button {
    min-height: 36px;
  }

  .copyright {
    flex-basis: 15px;
    font-size: 6px;
  }
}

@media (max-width: 340px) {
  .formular-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auswahl-grid-drei {
    grid-template-columns: 1fr;
  }

  .seite-rsvp[data-seite="4"] .auswahl-option span {
    min-height: 36px;
  }

  .seitenpunkte {
    transform: scale(0.9);
  }
}

@media (min-width: 900px) and (min-height: 700px) {
  body {
    padding: 24px;
  }

  #app {
    width: min(92vw, 1040px);
    height: min(88dvh, 740px);
    max-height: none;
    aspect-ratio: auto;
    border-radius: 24px;
  }

  .app-kopf {
    flex-basis: 66px;
    padding: 10px 18px;
  }

  .marke-symbol {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .marke strong {
    font-size: 15px;
  }

  .marke small {
    font-size: 8px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
  }

  .desktop-nav button {
    min-height: 40px;
    padding: 7px 2px;
    color: rgba(247, 242, 232, 0.82);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: 12px;
  }

  .desktop-nav button:hover,
  .desktop-nav button:focus-visible,
  .desktop-nav button.aktiv {
    color: var(--text-hell);
    border-bottom-color: var(--gold);
  }

  .musik-button {
    margin-left: 4px;
  }

  .seite-start {
    grid-template-rows: minmax(0, 1fr) 132px;
  }

  .start-hero {
    align-items: center;
    padding: 42px 54px;
  }

  .start-inhalt {
    max-width: 620px;
  }

  .start-inhalt h1 {
    max-width: 620px;
    font-size: 46px;
  }

  .start-text {
    max-width: 560px;
    margin: 13px 0 17px;
    font-size: 17px;
    line-height: 1.5;
  }

  .hauptbutton {
    font-size: 14px;
  }

  .notizzettel {
    display: block;
    position: absolute;
    right: 50px;
    bottom: 44px;
    width: 180px;
    padding: 14px 16px;
    color: #3c3126;
    background: #e6d1aa;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    transform: rotate(-2deg);
    font-size: 12px;
    line-height: 1.4;
  }

  .start-info {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
  }

  .start-info .mini-info,
  .start-info .mini-info:nth-child(-n+3),
  .start-info .mini-info:nth-child(n+4) {
    grid-column: auto;
    padding: 13px 10px;
    border-right: 1px solid rgba(16, 35, 44, 0.14);
    border-bottom: 0;
  }

  .start-info .mini-info:last-child {
    border-right: 0;
  }

  .mini-info-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    font-size: 12px;
  }

  .mini-info strong {
    font-size: 10px;
  }

  .mini-info > span:last-child {
    font-size: 13px;
    line-height: 1.35;
  }

  .seite-infos,
  .seite-programm,
  .seite-rsvp {
    padding: 38px 48px;
  }

  .seite h2 {
    margin-bottom: 18px;
    font-size: 32px;
  }

  .seitenkopf {
    margin-bottom: 11px;
    font-size: 11px;
  }

  .seitenkopf span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .info-karten {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .info-karte,
  .info-karte:last-child {
    grid-column: auto;
    padding: 17px;
    border-radius: 14px;
  }

  .info-karte-icon {
    font-size: 20px;
  }

  .info-karte h3 {
    font-size: 11px;
  }

  .info-karte p {
    font-size: 16px;
    line-height: 1.45;
  }

  .seite-erinnerungen {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 34px;
    align-items: center;
    padding: 42px 48px;
  }

  .erinnerung-textblock p:not(.handschrift) {
    max-width: 420px;
    font-size: 16px;
    line-height: 1.58;
  }

  .handschrift {
    margin-top: 12px;
    font-size: 18px;
  }

  .foto-grid {
    gap: 14px;
  }

  .polaroid {
    padding: 8px 8px 13px;
  }

  .polaroid-bild,
  .polaroid figcaption {
    font-size: 12px;
  }

  .programm-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .programm-punkt {
    min-height: 64px;
    grid-template-columns: 68px 1fr;
    padding: 13px 15px;
    font-size: 16px;
  }

  .programm-hinweis {
    margin-top: 16px;
    font-size: 13px;
  }

  .rsvp-kopf {
    margin-bottom: 18px;
  }

  .seiten-intro {
    max-width: 680px;
    font-size: 15px;
  }

  .rsvp-symbol {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 19px;
  }

  .formular-grid {
    gap: 14px;
  }

  .formulargruppe {
    margin-bottom: 14px;
  }

  .formulargruppe label,
  .formulargruppe legend {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .formulargruppe input,
  .formulargruppe textarea {
    padding: 10px 11px;
    font-size: 15px;
  }

  .formulargruppe input {
    height: 44px;
  }

  .auswahl-grid {
    gap: 8px;
  }

  .auswahl-grid-vier {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .auswahl-option span {
    min-height: 44px;
    font-size: 13px;
  }

  .seite-antwort .antwort-formular {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto auto 1fr;
    gap: 14px 22px;
  }

  .seite-antwort #begleitung-bereich,
  .seite-antwort .whatsapp-hinweis,
  .seite-antwort .formular-fehler {
    grid-column: 1 / -1;
  }

  .seite-antwort .formulargruppe:nth-of-type(2) {
    grid-column: 1;
  }

  .seite-antwort .formulargruppe:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2 / 4;
  }

  .seite-antwort .formulargruppe textarea {
    min-height: 120px;
    height: 120px;
  }

  .seite-antwort .whatsapp-hinweis {
    margin: 0;
    font-size: 12px;
  }

  .senden-button {
    max-width: 320px;
    align-self: end;
  }

  .seite-bestaetigung p:not(.kicker) {
    font-size: 17px;
  }

  .app-fuss {
    flex-basis: 54px;
    grid-template-columns: 96px 1fr 96px;
    padding: 7px 12px;
  }

  .nav-button {
    min-height: 40px;
    font-size: 13px;
  }

  .copyright {
    flex-basis: 20px;
    font-size: 9px;
  }
}

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

  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.seite h1:focus,
.seite h2:focus {
  outline: none;
}

/* ============================================================
   BARRIEREFREIHEIT - LESBARKEIT, KONTRAST UND ZOOM
   ============================================================ */

:root {
  --text-grau: #4f5d64;
}

.marke .markenname {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.marke small {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.kicker {
  font-size: 12px;
  line-height: 1.3;
}

.mini-info-titel {
  display: block;
  margin-bottom: 2px;
  color: #17506a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-info > span:last-child {
  font-size: 11px;
  line-height: 1.3;
}

.seitenkopf {
  font-size: 11px;
  line-height: 1.3;
}

.seitenkopf span {
  font-size: 11px;
}

.info-karte h3 {
  font-size: 12px;
  line-height: 1.3;
}

.polaroid-bild,
.polaroid figcaption {
  font-size: 11px;
  line-height: 1.35;
}

.programm-hinweis,
.whatsapp-hinweis {
  color: var(--text-grau);
  font-size: 12px;
  line-height: 1.5;
}

.seiten-intro {
  color: var(--text-grau);
  font-size: 13px;
  line-height: 1.5;
}

.formulargruppe label,
.formulargruppe legend {
  font-size: 12px;
  line-height: 1.3;
}

.formulargruppe input,
.formulargruppe textarea {
  font-size: 16px;
  line-height: 1.4;
}

.auswahl-option span {
  min-height: 44px;
  font-size: 12px;
  line-height: 1.25;
}

.formular-fehler {
  font-size: 13px;
  line-height: 1.45;
}

.sekundaerbutton,
.nav-button {
  font-size: 12px;
}

.copyright {
  flex-basis: 24px;
  padding-block: 5px;
  color: #aeb6b7;
  font-size: 11px;
  line-height: 1.2;
}

.nav-button:disabled {
  color: #98aab2;
  background: transparent;
  border-color: #53656d;
  opacity: 1;
}

.musik-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex-basis: 44px;
}

.formulargruppe input[aria-invalid="true"],
.formulargruppe textarea[aria-invalid="true"] {
  border-color: #8c251f;
  box-shadow: 0 0 0 3px rgba(140, 37, 31, 0.18);
}

.auswahl-option input[aria-invalid="true"] + span {
  border-color: #8c251f;
  box-shadow: 0 0 0 3px rgba(140, 37, 31, 0.18);
}

.javascript-hinweis {
  position: fixed;
  z-index: 1000;
  inset: auto 12px 12px;
  max-width: 42rem;
  margin: 0 auto;
  padding: 14px 16px;
  color: #10232c;
  background: #fffaf1;
  border: 2px solid #8c251f;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.5;
}

@media (min-width: 900px) and (min-height: 700px) {
  .marke .markenname {
    font-size: 15px;
  }

  .marke small,
  .kicker,
  .mini-info-titel,
  .seitenkopf,
  .seitenkopf span,
  .info-karte h3,
  .polaroid-bild,
  .polaroid figcaption,
  .copyright {
    font-size: 12px;
  }

  .desktop-nav button,
  .nav-button {
    min-height: 44px;
  }
}

/* Reflow bei starker Vergrößerung und im Querformat */
@media (max-height: 500px) {
  body {
    display: block;
    padding: 8px;
  }

  #app {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
  }

  .seite-start {
    display: block;
    overflow-y: auto;
  }

  .start-hero {
    min-height: 360px;
  }

  .start-info {
    min-height: 260px;
  }
}

/* Keine Schrift kleiner als 12 Pixel in der bedienbaren Oberfläche */
.marke small,
.kicker,
.start-text,
.hauptbutton,
.mini-info-icon,
.mini-info-titel,
.mini-info > span:last-child,
.seitenkopf,
.seitenkopf span,
.info-karte h3,
.info-karte p,
.erinnerung-textblock p:not(.handschrift),
.polaroid-bild,
.polaroid figcaption,
.programm-punkt,
.programm-hinweis,
.seiten-intro,
.formulargruppe label,
.formulargruppe legend,
.auswahl-option span,
.whatsapp-hinweis,
.formular-fehler,
.sekundaerbutton,
.nav-button,
.copyright {
  font-size: 12px;
}

.start-text,
.info-karte p,
.erinnerung-textblock p:not(.handschrift),
.programm-punkt,
.seiten-intro,
.formular-fehler {
  line-height: 1.5;
}

.info-karte,
.info-karte h3,
.info-karte p,
.mini-info,
.mini-info-titel {
  min-width: 0;
  overflow-wrap: anywhere;
}

.formulargruppe input,
.formulargruppe textarea,
.auswahl-option span {
  border-color: #5f6f76;
}

.seitenpunkt::before {
  background: #839196;
}

@media (min-width: 900px) and (min-height: 700px) {
  .mini-info > span:last-child {
    font-size: 13px;
  }
}

.formulargruppe label,
.formulargruppe legend,
.auswahl-option span {
  overflow-wrap: anywhere;
}

@media (max-height: 690px) and (min-height: 501px) {
  .seite-start {
    grid-template-rows: minmax(0, 1fr) 142px;
  }
}

/* Verhindert seitliches Verschieben beim Fokussieren von Formularfeldern */
#app,
.fenster {
  overflow: clip;
}

/* Feste Grundfarben helfen Prüfwerkzeugen bei Verlaufshintergründen */
.seite-erinnerungen,
.seite-bestaetigung {
  background-color: var(--dunkel);
}
