:root {
  --ink: #183b35;
  --ink-deep: #0d2925;
  --cream: #f7f0e4;
  --paper: #fffaf1;
  --sand: #d9b879;
  --gold: #e3a834;
  --coral: #c85f43;
  --sage: #9dbf9e;
  --muted: #647a72;
  --line: rgba(24, 59, 53, 0.16);
  --shadow: 0 24px 70px rgba(13, 41, 37, 0.16);
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; }

button, input { font: inherit; }

button { color: inherit; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  text-decoration: none;
}

.brand img {
  width: 150px;
  height: 48px;
  object-fit: contain;
}

.brand--light { color: white; }

.brand--on-image {
  align-self: flex-start;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(7, 27, 23, 0.16);
  backdrop-filter: blur(8px);
}

.brand--footer img {
  width: 145px;
  height: 44px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button:focus-visible,
.text-button:focus-visible,
.door:focus-visible,
.modal__close:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #f1bd4f;
  outline-offset: 4px;
}

.button--primary {
  width: 100%;
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 28px rgba(24, 59, 53, 0.2);
}

.button--primary:hover { background: var(--ink-deep); }

.button--purchase {
  min-height: 46px;
  flex: 0 0 auto;
  gap: 12px;
  padding: 0 20px;
  color: #34230a;
  background: #f0c66f;
  box-shadow: 0 10px 24px rgba(177, 122, 18, 0.18);
  font-size: 0.84rem;
}

.button--purchase:hover { background: #f4d184; }

.mobile-label { display: none; }

.button--light {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(7, 27, 23, 0.22);
}

/* Zugang */
.login-page {
  min-height: 100vh;
  background: var(--paper);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px clamp(34px, 6vw, 92px);
  color: white;
  background:
    linear-gradient(180deg, rgba(8, 37, 31, 0.28) 0%, rgba(8, 37, 31, 0.22) 30%, rgba(8, 37, 31, 0.88) 100%),
    url("../bilder/Hintergund%20bild.png") center / cover no-repeat;
}

.login-story::after {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 3px;
  content: "";
  pointer-events: none;
}

.login-story > * { position: relative; z-index: 1; }

.login-story__copy {
  max-width: 670px;
  padding: 80px 0 34px;
}

.login-story__copy .eyebrow { color: #f2c56c; }

.login-story h1 {
  max-width: 620px;
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.login-story__copy > p:last-child {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.image-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(28px, 6vw, 88px) 30px;
  background:
    radial-gradient(circle at 84% 14%, rgba(227, 168, 52, 0.17), transparent 28%),
    var(--paper);
}

.login-card { width: min(100%, 480px); }

.login-card h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.login-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.purchase-card {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 30px;
  border: 1px solid rgba(227, 168, 52, 0.32);
  border-radius: 14px;
  padding: 16px;
  background: rgba(240, 198, 111, 0.14);
}

.purchase-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.purchase-card strong { font-size: 0.88rem; }

.purchase-card > div span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.purchase-card .button--purchase { width: 100%; }

.login-form label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.login-form input[type="text"] {
  width: 100%;
  height: 62px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
  color: var(--ink);
  background: white;
  font-size: clamp(1.15rem, 2.5vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input[type="text"]:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(24, 59, 53, 0.1);
  outline: 0;
}

.field-help {
  display: block;
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 0.75rem;
}

.form-message {
  margin: 0 0 22px;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-message--error {
  border: 1px solid rgba(164, 56, 37, 0.25);
  color: #8a3021;
  background: #fff0eb;
}

.form-message--success {
  border: 1px solid rgba(44, 122, 79, 0.24);
  color: #21603f;
  background: #edf9f1;
}

.support-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.support-note a { font-weight: 700; }

.legal-nav {
  display: flex;
  width: min(100%, 480px);
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 64px;
  color: var(--muted);
  font-size: 0.75rem;
}

.legal-nav a { text-underline-offset: 3px; }

/* Kalenderseite */
.calendar-page { background: var(--cream); }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 18px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 8px 28px rgba(13, 41, 37, 0.06);
  backdrop-filter: blur(12px);
}

.site-header .brand { color: var(--ink); }

.text-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ink);
  background: white;
  font-size: 0.78rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions form { margin: 0; }

.admin-badge {
  border-radius: 999px;
  padding: 8px 13px;
  color: #173b34;
  background: #f0c66f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(840px, 92vh);
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero__image,
.hero__veil { position: absolute; inset: 0; }

.hero__image {
  transform: scale(1.01);
  background: url("../bilder/Kinder%20warten%20auf%20die%20essensausgabejpeg.jpeg") center 42% / cover no-repeat;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(7, 32, 27, 0.89) 0%, rgba(7, 32, 27, 0.62) 48%, rgba(7, 32, 27, 0.12) 78%),
    linear-gradient(0deg, rgba(7, 32, 27, 0.72) 0%, transparent 52%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(800px, 72vw);
  padding: 170px clamp(24px, 7vw, 112px) 96px;
}

.hero__content .eyebrow { color: #f2c56c; }

.hero h1 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero h1 em {
  color: #f0c66f;
  font-weight: 400;
}

.hero__lead {
  max-width: 610px;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.hero__fact {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 76px);
  bottom: 54px;
  display: flex;
  width: 260px;
  flex-direction: column;
  gap: 5px;
  border-left: 2px solid #f0c66f;
  padding-left: 18px;
}

.hero__fact strong {
  color: #f0c66f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.hero__fact span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  line-height: 1.5;
}

.calendar-section {
  position: relative;
  padding: 56px clamp(20px, 6vw, 96px) 128px;
  background:
    radial-gradient(circle at 6% 5%, rgba(227, 168, 52, 0.13), transparent 22%),
    linear-gradient(rgba(255,255,255,0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.34) 1px, transparent 1px),
    var(--cream);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.calendar-intro {
  display: grid;
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 40px;
  margin: 0 auto 64px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 42px;
}

.calendar-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -20px; }

.calendar-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.calendar-intro h1 em {
  color: var(--coral);
  font-weight: 400;
}

.calendar-intro > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  display: flex;
  max-width: 1240px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto 46px;
}

.section-heading h2,
.story-section h2,
.legal-content h1,
.legal-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.section-heading h2 { font-size: clamp(2.4rem, 4.5vw, 4.5rem); }

.section-heading__note {
  max-width: 340px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.calendar-grid {
  display: grid;
  max-width: 1240px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.door {
  position: relative;
  display: flex;
  aspect-ratio: 0.82;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  padding: 18px;
  text-align: left;
}

button.door {
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

button.door:hover {
  z-index: 2;
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 18px 40px rgba(13, 41, 37, 0.2);
  filter: saturate(1.08);
}

.door--1 { background: #245e50; color: white; }
.door--2 { background: #d6a23f; color: #2b382e; }
.door--3 { background: #b95940; color: white; }
.door--4 { background: #91b093; color: #183b35; }
.door--5 { background: #ece0c7; color: #183b35; }
.door--6 { background: #153e38; color: white; }

.door--locked {
  opacity: 0.63;
  filter: saturate(0.55);
}

.door--today {
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 7px var(--gold), 0 16px 38px rgba(13, 41, 37, 0.24);
}

.door::after {
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 116px;
  height: 116px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.18;
}

.door__topline {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.door__number {
  margin-top: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.3vw, 4.1rem);
  line-height: 0.9;
}

.door__rule {
  width: 34px;
  height: 1px;
  margin: 15px 0 10px;
  background: currentColor;
  opacity: 0.5;
}

.door__status {
  max-width: calc(100% - 28px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.door__icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.2rem;
  opacity: 0.76;
}

.door__icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.loading,
.calendar-error {
  grid-column: 1 / -1;
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.loading span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(24, 59, 53, 0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.calendar-error { flex-direction: column; }

.calendar-error button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  background: white;
  cursor: pointer;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--ink-deep);
  color: white;
}

.story-section__image { min-height: 650px; }

.story-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-section__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(38px, 7vw, 110px);
}

.story-section__copy .eyebrow { color: #f0c66f; }

.story-section h2 {
  max-width: 590px;
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.02;
}

.story-section__copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0 0 20px;
  color: rgba(255,255,255,0.76);
  line-height: 1.75;
}

.story-link {
  align-self: flex-start;
  margin-top: 18px;
  color: #f0c66f;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 40px;
  padding: 34px clamp(24px, 5vw, 76px);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer__links { display: flex; gap: 22px; }
.site-footer__links a { text-underline-offset: 3px; }
.site-footer p { margin: 0; }

/* Video-Dialog */
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.is-open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 27, 23, 0.88);
  backdrop-filter: blur(10px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
}

.modal__kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--coral);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.modal__header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.modal__close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.video-frame { background: #071c18; }

.video-frame video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.video-missing {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.video-missing > span {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 2rem;
}

.video-missing strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.video-missing p {
  max-width: 470px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Rechtliche Seiten */
.legal-page { background: var(--paper); }

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
}

.legal-header > a:last-child {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.legal-content {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 110px;
}

.legal-content h1 {
  margin-bottom: 42px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.legal-content h2 {
  margin: 44px 0 14px;
  font-size: 1.6rem;
}

.legal-content h3 {
  margin: 28px 0 9px;
  font-size: 1rem;
}

.legal-content p,
.legal-content li {
  color: #4e6860;
  line-height: 1.8;
}

.legal-content a { color: var(--ink); }

/* Spenden- und Bestellformular */
.order-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(227, 168, 52, 0.15), transparent 30%),
    var(--cream);
}

.order-header,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.94);
}

.back-link {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.order-shell {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: start;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 96px) 0;
}

.order-intro {
  position: sticky;
  top: 42px;
  padding-top: 18px;
}

.order-intro h1,
.order-success h1,
.admin-login-card h1,
.admin-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.order-intro h1 { font-size: clamp(2.8rem, 5.5vw, 5.5rem); }

.order-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.order-intro ul {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.order-intro li {
  position: relative;
  padding-left: 28px;
  line-height: 1.55;
}

.order-intro li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "✦";
}

.order-form-card,
.order-success,
.admin-login-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.order-form-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 800;
}

.order-form-card__heading strong {
  border-radius: 999px;
  padding: 8px 13px;
  color: #65430d;
  background: #f8dfaa;
  font-size: 0.78rem;
}

.order-form { display: grid; gap: 26px; }
.form-grid {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(180px, 1fr);
  gap: 18px;
}

.form-field { display: grid; gap: 8px; }
.form-field--wide { grid-column: 1 / -1; }
.form-field--quantity { grid-column: 1 / -1; width: min(230px, 100%); }

.form-field > span,
.choice-group legend,
.address-fields legend {
  font-size: 0.82rem;
  font-weight: 800;
}

.form-field input {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--ink);
  background: white;
}

.form-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(24, 59, 53, 0.09);
  outline: 0;
}

.form-field small,
.choice-card small,
.check-row small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.choice-group,
.address-fields {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.choice-group legend,
.address-fields legend { margin-bottom: 10px; padding: 0; }

.choice-card,
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: white;
  cursor: pointer;
}

.choice-card:has(input:checked),
.check-row:has(input:checked) {
  border-color: var(--ink);
  background: rgba(157, 191, 158, 0.12);
  box-shadow: 0 0 0 3px rgba(24, 59, 53, 0.06);
}

.choice-card input,
.check-row input,
.status-form input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.choice-card > span,
.check-row > span { display: grid; gap: 3px; }

.choice-card strong,
.check-row strong { font-size: 0.88rem; }

.payment-choices {
  grid-template-columns: 1fr 1fr;
}

.payment-choices legend { grid-column: 1 / -1; }
.choice-card--compact { height: 100%; }

.address-fields {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.address-fields[hidden] { display: none; }

.field-note {
  margin: -5px 0 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.check-row--privacy {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0.78rem;
  line-height: 1.55;
}

.check-row--privacy:has(input:checked) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.check-row--privacy a { font-weight: 800; }

.submit-note {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}

.order-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 24px 20px 38px;
  color: var(--muted);
  font-size: 0.75rem;
}

.order-footer a { text-underline-offset: 3px; }

.order-success {
  grid-column: 1 / -1;
  width: min(700px, 100%);
  margin: 0 auto;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 1.8rem;
}

.order-success h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }

.order-success > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.order-number {
  display: inline-block;
  margin: 8px 0 28px;
  border: 1px solid rgba(227, 168, 52, 0.4);
  border-radius: 10px;
  padding: 12px 18px;
  background: rgba(240, 198, 111, 0.16);
  font-size: clamp(1.3rem, 4vw, 2rem);
  letter-spacing: 0.08em;
}

.payment-box {
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: white;
  text-align: left;
}

.payment-box__title { margin: 0 0 16px; font-weight: 800; }
.payment-box > p { line-height: 1.65; }
.payment-box .button { width: 100%; margin-top: 8px; }
.payment-box dl { display: grid; gap: 9px; margin: 0; }
.payment-box dl div { display: grid; grid-template-columns: 145px 1fr; gap: 14px; }
.payment-box dt { color: var(--muted); font-size: 0.78rem; }
.payment-box dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.process-note { margin: 22px auto !important; max-width: 580px; }
.order-success__back { width: min(100%, 360px); }

/* Geschützte Bestelltabelle */
.admin-page { min-height: 100vh; background: var(--cream); }

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-login-card { width: min(460px, 100%); }
.admin-login-card > img { width: 150px; margin-bottom: 30px; }
.admin-login-card h1 { font-size: 3rem; }
.admin-login-card > p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); line-height: 1.6; }
.admin-login-card .login-form input[type="password"] {
  width: 100%;
  height: 58px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--ink);
  background: white;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.admin-header h1 { font-size: clamp(2.1rem, 4vw, 3.6rem); }
.admin-header .eyebrow { margin-bottom: 8px; }
.admin-header p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 0.78rem; }
.admin-actions { display: flex; gap: 10px; }

.admin-content {
  width: min(1500px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 90px;
}

.admin-empty {
  display: grid;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 54px;
  color: var(--muted);
  text-align: center;
}

.orders-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(13, 41, 37, 0.09);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.orders-table th {
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(24, 59, 53, 0.05);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.orders-table td {
  min-width: 140px;
  padding: 17px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.orders-table tr.is-complete td { background: rgba(157, 191, 158, 0.09); }
.orders-table td > strong,
.orders-table td > span,
.orders-table td > a { display: block; margin-bottom: 5px; }
.orders-table td > span { color: var(--muted); line-height: 1.45; }
.orders-table td > a { overflow-wrap: anywhere; color: var(--ink); }
.table-order-number { letter-spacing: 0.04em; }

.tag {
  display: inline-block !important;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  color: #65430d !important;
  background: #f8dfaa;
  font-size: 0.66rem;
  font-weight: 800;
}

.status-form { display: grid; gap: 8px; }
.status-form label { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.status-form input { width: 16px; height: 16px; margin: 0; }
.status-form button {
  width: fit-content;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: white;
  background: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .calendar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__fact { display: none; }
  .hero__content { width: min(860px, 90vw); }
  .order-shell { grid-template-columns: 1fr; }
  .order-intro { position: static; max-width: 760px; }
}

@media (max-width: 820px) {
  .order-header,
  .admin-header { align-items: flex-start; }

  .admin-header { flex-direction: column; }

  .orders-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .orders-table,
  .orders-table tbody,
  .orders-table tr,
  .orders-table td { display: block; width: 100%; }
  .orders-table thead { display: none; }
  .orders-table tbody { display: grid; gap: 16px; }
  .orders-table tr { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
  .orders-table td { display: grid; min-width: 0; grid-template-columns: 105px 1fr; border-top: 1px solid var(--line); }
  .orders-table td:first-child { border-top: 0; }
  .orders-table td::before { color: var(--muted); content: attr(data-label); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

  .login-page {
    min-height: 100vh;
    min-height: 100svh;
    background: var(--ink-deep);
  }

  .login-shell {
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(320px, 44svh) auto;
  }

  .login-story {
    grid-area: 1 / 1;
    min-height: 320px;
    justify-content: flex-start;
    padding: max(18px, env(safe-area-inset-top)) 18px 28px;
    background:
      linear-gradient(180deg, rgba(8, 37, 31, 0.2) 0%, rgba(8, 37, 31, 0.28) 40%, rgba(8, 37, 31, 0.92) 100%),
      url("../bilder/Hintergund%20bild.png") 54% center / cover no-repeat;
  }

  .login-story::after { inset: 10px; }

  .login-story .brand--on-image {
    padding: 6px 10px;
    border-radius: 7px;
  }

  .login-story__copy {
    max-width: 430px;
    padding: clamp(22px, 4vh, 38px) 16px 0;
  }

  .login-story__copy .eyebrow { margin-bottom: 10px; font-size: 0.66rem; }

  .login-story h1 {
    max-width: 390px;
    margin-bottom: 12px;
    font-size: clamp(2.15rem, 9.5vw, 3rem);
    line-height: 0.98;
  }

  .login-story__copy > p:last-child {
    max-width: 360px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .image-note { display: none; }

  .login-panel {
    grid-area: 2 / 1;
    min-height: 0;
    justify-content: flex-start;
    padding: 22px 16px max(18px, env(safe-area-inset-bottom));
    background: var(--paper);
  }

  .login-card {
    width: min(100%, 480px);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: white;
    box-shadow: 0 14px 38px rgba(5, 24, 20, 0.12);
  }

  .login-card > .eyebrow,
  .login-card > h2,
  .login-intro { display: none; }

  .purchase-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 9px 10px;
  }

  .purchase-card > div span { display: none; }
  .purchase-card strong { font-size: 0.78rem; line-height: 1.25; }
  .purchase-card .button--purchase { width: auto; min-height: 40px; padding: 0 14px; }

  .desktop-label { display: none; }
  .mobile-label { display: inline; }

  .login-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
  }

  .login-form label { grid-column: 1 / -1; margin: 0; font-size: 0.74rem; }

  .login-form input[type="text"] {
    height: 50px;
    padding: 0 12px;
    font-size: 1rem;
  }

  .login-form .field-help {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .login-form .button--primary {
    width: auto;
    min-height: 50px;
    gap: 8px;
    padding: 0 16px;
    box-shadow: none;
  }

  .form-message { margin-bottom: 10px; padding: 9px 11px; font-size: 0.76rem; }

  .support-note {
    margin: 10px 0 0;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .legal-nav {
    width: auto;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.66rem;
  }

  .calendar-intro { grid-template-columns: 1fr; gap: 20px; }
  .calendar-intro .eyebrow { margin-bottom: -4px; }
  .story-section { grid-template-columns: 1fr; }
  .story-section__image { min-height: 520px; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  .order-header { align-items: center; padding: 16px 18px; }
  .order-header .brand span { display: none; }
  .order-header .brand img { width: 120px; }
  .order-shell { width: min(100% - 28px, 680px); padding: 38px 0 56px; }
  .order-intro h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .order-form-card,
  .order-success { border-radius: 16px; padding: 22px 17px; }
  .form-grid,
  .payment-choices { grid-template-columns: 1fr; }
  .form-field--wide,
  .payment-choices legend { grid-column: 1; }
  .order-form-card__heading { align-items: flex-start; flex-direction: column; }
  .payment-box dl div { grid-template-columns: 1fr; gap: 2px; }
  .order-footer { flex-wrap: wrap; }
  .admin-content { width: min(100% - 24px, 700px); }
  .admin-actions { width: 100%; }
  .admin-actions form { flex: 1; }
  .admin-actions .text-button { width: 100%; }
  .orders-table td { grid-template-columns: 82px 1fr; gap: 10px; padding: 14px 12px; }

  .brand img { width: 126px; height: 40px; }
  .calendar-page .site-header {
    position: relative;
    height: 58px;
    min-height: 58px;
    padding: 8px 12px;
  }
  .site-header .brand img { width: 110px; height: 34px; }
  .site-header .brand span { display: none; }
  .site-header .text-button { padding: 7px 12px; font-size: 0.7rem; }
  .admin-badge { display: none; }
  .hero { min-height: 760px; }
  .hero__image { background-position: 58% center; }
  .hero__veil { background: linear-gradient(0deg, rgba(7,32,27,.94) 0%, rgba(7,32,27,.48) 72%, rgba(7,32,27,.24) 100%); }
  .hero__content { width: 100%; padding: 150px 22px 64px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .calendar-section {
    padding: 20px 10px 26px;
  }
  .calendar-intro { gap: 8px; margin-bottom: 16px; padding: 0 3px 16px; }
  .calendar-intro .eyebrow { margin: 0 0 2px; font-size: 0.62rem; }
  .calendar-intro h1 { font-size: clamp(1.85rem, 8.2vw, 2.35rem); line-height: 0.98; }
  .calendar-intro > p:last-child { max-width: 350px; font-size: 0.76rem; line-height: 1.35; }
  .section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 3px;
  }
  .section-heading .eyebrow { margin: 0; font-size: 0.58rem; }
  .section-heading h2 { display: none; }
  .section-heading__note {
    max-width: 220px;
    margin: 0 0 0 auto;
    font-size: 0.68rem;
    line-height: 1.3;
    text-align: right;
  }
  .calendar-grid {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .door {
    width: 100%;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 5px;
  }
  .door__topline { display: none; }
  .door__number { margin: auto 0; font-size: clamp(1.55rem, 8vw, 2.1rem); }
  .door__rule,
  .door__status { display: none; }
  .door__icon { top: 5px; right: 5px; font-size: 0.66rem; }
  .door__icon svg { width: 10px; }
  .story-section__image { min-height: 400px; }
  .story-section__copy { padding: 62px 24px; }
  .site-footer__links { flex-wrap: wrap; }
  .modal { padding: 8px; }
}

@media (max-width: 820px) and (max-height: 700px) {
  .login-story__copy { padding-top: 16px; }
  .login-story h1 { max-width: 350px; font-size: clamp(1.9rem, 8.5vw, 2.45rem); }
  .login-story__copy > p:last-child { max-width: 330px; font-size: 0.8rem; line-height: 1.35; }
  .login-card { padding: 10px 12px; }
  .purchase-card { margin-bottom: 8px; padding: 7px 9px; }
  .support-note { display: none; }
  .legal-nav { margin-top: 5px; }
}

/* Der eingebettete Kalender verwendet den iframe als Layoutfläche, nicht als Gerätehöhe. */
.is-embedded body {
  min-width: 0;
}

.is-embedded body.login-page {
  min-height: 0;
  background: var(--paper);
}

.is-embedded .story-section,
.is-embedded .site-footer {
  display: none;
}

@media (max-width: 820px) {
  .is-embedded .login-shell {
    min-height: 0;
    grid-template-rows: minmax(290px, 38vw) auto;
  }

  .is-embedded .login-story {
    min-height: 290px;
  }

  .is-embedded .login-panel {
    padding-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Fotos und Text erhalten eigene Flächen, damit Gesichter frei bleiben. */
.login-story {
  min-height: 0;
  justify-content: flex-start;
  padding: 0;
  background: var(--ink-deep);
}
.login-story::after { display: none; }
.is-embedded .login-shell { min-height: 0; }
.login-story .brand--on-image { margin: 24px; }
.login-story__photo { width: 100%; height: clamp(260px, 34vw, 440px); object-fit: contain; }
.login-story__copy { max-width: none; padding: 30px clamp(24px, 4vw, 60px) 12px; }
.login-story h1 { font-size: clamp(2rem, 3.6vw, 3.5rem); }
.login-story .image-note { position: static; margin: 0; padding: 12px clamp(24px, 4vw, 60px) 28px; }
.purchase-card .button--purchase { white-space: normal; text-align: center; padding: 12px 20px; }
.door { text-decoration: none; }
.door-content { width: min(960px, calc(100% - 40px)); margin: 32px auto 64px; }
.door-content > .eyebrow { margin-top: 36px; }
.door-content h1 { font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 4rem); font-weight: 400; line-height: 1.1; }
.door-video { overflow: hidden; border-radius: 18px; background: var(--ink-deep); }
.door-video video { display: block; width: 100%; max-height: 72vh; }
.door-description { max-width: 760px; margin: 32px 0; font-size: 1.1rem; line-height: 1.8; }
.door-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0; }
.door-pagination { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .login-shell, .is-embedded .login-shell { grid-template-rows: auto auto; }
  .purchase-card { display: flex; flex-direction: column; align-items: stretch; }
  .purchase-card .button--purchase { width: 100%; min-width: 0; }
  .login-story, .is-embedded .login-story { min-height: 0; }
  .login-story .brand--on-image { margin: 16px; }
  .login-story__photo { max-height: 320px; object-fit: contain; }
  .login-story__copy { padding: 24px 24px 12px; }
  .login-story h1 { max-width: none; font-size: 2.2rem; }
  .login-story__copy > p:last-child { max-width: none; }
}
