/* Adventkalender „24 Lichtfäden“ – Anmeldeseite /advent/ und Kalenderseite /advent/kalender/
   Farben und Formen aus neu.css (Palette „Licht am See“). */

/* ---------- Kopfbild mit Tanne ---------- */
.advent-kopf {
  position: relative;
  background: var(--jeans-hell) url('/assets/neu/img/advent/tanne-breit.jpg') center 30% / cover no-repeat;
  min-height: clamp(260px, 38vw, 440px);
  display: flex;
  align-items: flex-end;
}
.advent-kopf__text {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--rand-x) clamp(24px, 4vw, 48px);
}
.advent-kopf__karte {
  background: rgba(251, 248, 244, .92);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 32px) clamp(22px, 3.4vw, 40px);
  max-width: 640px;
  display: grid;
  gap: 10px;
}
.advent-kopf h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; font-weight: 500; }

/* ---------- Anmeldeseite ---------- */
.advent-anmelden { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 860px) { .advent-anmelden { grid-template-columns: 1fr; } }
.advent-formular { display: flex; justify-content: center; overflow: hidden; }
.advent-formular iframe { max-width: 100%; }
@media (max-width: 560px) { .advent-formular iframe { width: 100%; } }
.advent-was { display: grid; gap: 18px; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .advent-was { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .advent-was { grid-template-columns: 1fr; } }
.advent-was__karte { background: var(--weiss); border-radius: var(--radius-md); padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.advent-was__karte h3 { font-size: 21px; font-weight: 500; line-height: 1.3; }
.advent-was__punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--koralle); }

.advent-blick { background: var(--weiss); border-radius: var(--radius-md); overflow: hidden; display: grid; grid-template-columns: 300px 1fr; }
@media (max-width: 760px) { .advent-blick { grid-template-columns: 1fr; } .advent-blick img { max-height: 340px; } }
.advent-blick img { width: 100%; height: 100%; object-fit: cover; }
.advent-blick__text { padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 14px; align-content: center; }

.advent-julia { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 760px) { .advent-julia { grid-template-columns: 1fr; } .advent-julia img { max-width: 420px; } }
.advent-julia img { width: 100%; height: auto; border-radius: 999px 999px var(--radius-md) var(--radius-md); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }

/* ---------- Kalender ---------- */
.advent-banner {
  background: var(--tiefblau);
  color: var(--morgenlicht);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.advent-banner p { color: var(--dunkel-text); }
.advent-banner[hidden] { display: none; }

.advent-gitter-buehne { position: relative; }
.advent-faeden { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.advent-faeden polyline { fill: none; stroke: var(--jeansblau); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.advent-faeden circle { fill: var(--koralle); }

.advent-gitter { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.6vw, 20px); }
@media (max-width: 900px) { .advent-gitter { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .advent-gitter { grid-template-columns: repeat(3, 1fr); } }

.advent-tuer {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  border: 1px solid var(--linie-mittel);
  background: var(--weiss);
  color: var(--tiefblau);
  font-family: var(--serif);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.advent-tuer:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31, 45, 82, .10); }
.advent-tuer:focus-visible { outline: 2px solid var(--koralle-tief); outline-offset: 3px; }
.advent-tuer__nr { position: relative; z-index: 1; font-size: clamp(28px, 4vw, 46px); font-weight: 500; line-height: 1; }
.advent-tuer--sonntag { background: var(--tiefblau); color: var(--sandton); border-color: var(--tiefblau); }
.advent-tuer--heilig { background: var(--rosenholz); border-color: var(--rosenholz); }
.advent-tuer--zu .advent-tuer__nr { opacity: .9; }
.advent-tuer--zu::after {
  content: ''; position: absolute; inset: 8px; border-radius: calc(var(--radius-md) - 6px);
  border: 1px dashed currentColor; opacity: .25;
}
.advent-tuer--offen { border-color: transparent; }
.advent-tuer--offen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.advent-tuer--offen::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(31, 45, 82, .55), rgba(31, 45, 82, 0) 55%);
}
.advent-tuer--offen .advent-tuer__nr { color: var(--morgenlicht); align-self: flex-end; margin-bottom: 14px; font-size: clamp(24px, 3vw, 36px); z-index: 2; }
.advent-tuer--heute::after {
  content: ''; position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--koralle); box-shadow: 0 0 0 4px rgba(224, 80, 63, .2); z-index: 3;
}

/* ---------- Türchen geöffnet (Dialog) ---------- */
.advent-dialog { border: 0; padding: 0; border-radius: var(--radius-md); width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--morgenlicht); color: var(--tiefblau); }
.advent-dialog::backdrop { background: rgba(31, 45, 82, .55); }
.advent-dialog { overflow: hidden; }
.advent-dialog__innen { display: grid; grid-template-columns: 380px 1fr; height: min(760px, calc(100vh - 90px)); }
@media (max-width: 760px) { .advent-dialog__innen { grid-template-columns: 1fr; grid-template-rows: 38vh 1fr; } }
.advent-dialog__bild { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 20%; }
.advent-dialog__text { padding: clamp(24px, 4vw, 48px); display: grid; gap: 16px; align-content: start; overflow-y: auto; min-height: 0; }
.advent-dialog__text h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.15; }
.advent-dialog__text p { font-size: 17px; }
.advent-frage { font-size: 21px !important; font-style: italic; color: var(--tiefblau); padding: 6px 0 6px 18px; border-left: 3px solid var(--koralle); }
.advent-ja { background: var(--jeans-hell); border-radius: var(--radius-sm); padding: 12px 16px; font-style: italic; }
.advent-ja[hidden] { display: none; }
.advent-karte { margin: 0; display: grid; gap: 8px; justify-items: center; background: var(--weiss); border-radius: var(--radius-sm); padding: 16px; }
.advent-karte img { max-height: 320px; width: auto; max-width: 100%; border-radius: 6px; }
.advent-karte figcaption { font-size: 15px; font-style: italic; color: var(--text-weich); text-align: center; }
.advent-gruss { color: var(--text-weich); }
.advent-platzhalter { background: var(--sandton); border-radius: var(--radius-sm); padding: 10px 14px; font-style: italic; color: var(--text-weich); }
.advent-platzhalter::before { content: 'Folgt: '; font-weight: 600; font-style: normal; }
.advent-kasten { background: var(--weiss); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; gap: 6px; margin-top: 6px; border: 1px solid var(--linie); }
.advent-kasten strong { font-weight: 500; font-size: 18px; }
.advent-kasten a { color: var(--koralle-tief); }
.advent-dialog__leiste { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px clamp(20px, 3vw, 28px); border-top: 1px solid var(--linie); }
.advent-dialog__leiste button { background: none; border: 0; font: inherit; color: var(--tiefblau); cursor: pointer; padding: 8px 4px; }
.advent-dialog__leiste button[disabled] { opacity: .3; cursor: default; }
.advent-dialog__zu { position: absolute; top: 10px; right: 14px; background: rgba(251, 248, 244, .9); border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 24px; line-height: 1; cursor: pointer; color: var(--tiefblau); z-index: 2; }

.advent-hinweis { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--tiefblau); color: var(--morgenlicht); padding: 14px 22px; border-radius: 999px; z-index: 50; max-width: calc(100vw - 32px); text-align: center; font-style: italic; }
.advent-hinweis[hidden] { display: none; }
