:root {
  --af26-red: #c23436;
  --af26-dark: rgba(0, 0, 0, .80);
  --af26-footer-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    linear-gradient(180deg,
      #123b5c 0%,
      #315d7e 17%,
      #8faec5 31%,
      #dbe7ef 58%,
      #e9f1f6 82%,
      #cbdff0 100%);
  color: #222;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

#af26-app {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* =========================================================
   PUBLIC CALENDAR
   ========================================================= */

#af26-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: calc(100vh - var(--af26-footer-h));
  overflow: hidden;
  background-color: #123b5c;
  background-image:
    linear-gradient(180deg, rgba(5,33,66,.10), rgba(226,241,255,.04)),
    url("../assets/hintergrund-live.webp?v=20261006-v27-edgeblend");
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  isolation: isolate;
}

/*
 * Ruhiger Blur-Hintergrund hinter dem Live-Haus:
 * Das winterliche Szenenbild bleibt sichtbar.
 * Darüber liegt eine stark weichgezeichnete Kopie des Hauses,
 * damit harte Übergänge zwischen den PNG-/WebP-Ebenen verschwinden.
 */
#af26-stage::before,
#af26-stage::after {
  content: none !important;
  display: none !important;
}

@supports (height: 100dvh) {
  #af26-stage { height: calc(100dvh - var(--af26-footer-h)); }
}

#af26-calendar {
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
  display: block;
  flex: 0 0 auto;
  width: min(100%, calc((100vh - 70px) * 1.33119));
  aspect-ratio: 1447 / 1087;
  background-color: transparent;
  /* Fallback bereits vor dem JavaScript-Start: das scharfe Haus bleibt sichtbar. */
  background-image: url("../assets/hintergrund-live-house.webp?v=20261006-v19");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: visible;
  isolation: isolate;
  container-type: inline-size;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
}

/*
 * V26 – Haus vollständig scharf:
 * Keine weichgezeichnete Hauskopie und keine Nebel-/Blur-Ebene mehr direkt
 * am Kalender. Der äußere Winterhintergrund bleibt separat bestehen.
 */
#af26-calendar::before,
#af26-calendar::after {
  content: none !important;
  display: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Live-Kalender: kein Haus-/Wandbild mehr. Nur Titel + interaktive Fenster. */
.af26-live-title {
  position: absolute !important;
  z-index: 15;
  left: 16%;
  top: 1.5%;
  width: 68%;
  text-align: center;
  color: #fff8ea;
  pointer-events: none;
  text-shadow:
    0 2px 3px rgba(3,25,54,.72),
    0 0 18px rgba(0,0,0,.22);
}
.af26-live-title-script {
  display: block;
  margin-bottom: -.08em;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(25px, 4.4cqw, 64px);
  font-weight: 700;
  line-height: .9;
  color: #fff7dd;
}
.af26-live-title strong {
  display: block;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(26px, 5.2cqw, 76px);
  line-height: .96;
  letter-spacing: .025em;
  color: #c5222d;
  -webkit-text-stroke: .018em rgba(255,255,255,.88);
  text-shadow:
    0 2px 0 rgba(110,0,6,.55),
    0 4px 12px rgba(0,0,0,.32);
}
.af26-live-title-place {
  display: block;
  margin-top: .20em;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(13px, 2.1cqw, 30px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .18em;
  color: #f8fbff;
}

/* Fenster und interaktive Elemente liegen frei auf dem Live-Winterhintergrund. */
#af26-calendar > * {
  position: absolute;
}
@supports (height: 100dvh) {
  #af26-calendar { width: min(100%, calc((100dvh - 70px) * 1.33119)); }
}

.af26-window {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: inherit;
  border-radius: 8px;
  z-index: 20;
}

.af26-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  image-rendering: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.10));
  will-change: transform, filter;
}

.af26-window-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  width: 96%;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(0,0,0,.80);
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.af26-window:hover .af26-window-text,
.af26-window:focus-visible .af26-window-text { opacity: 1; }

.af26-window-text strong {
  display: block;
  font-size: clamp(.48rem, .75vw, .95rem);
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.af26-window-text span {
  display: block;
  margin-top: 4px;
  font-size: clamp(.38rem, .55vw, .7rem);
  line-height: 1.12;
}

.af26-window.af26-today {
  z-index: 50;
}

.af26-window.af26-today img {
  animation: af26TodayGlow 1.2s ease-in-out infinite alternate;
}

@keyframes af26TodayGlow {
  from {
    filter:
      drop-shadow(0 0 3px rgba(190,0,0,.40))
      drop-shadow(0 0 6px rgba(255,40,40,.24));
    transform: scale(1);
  }
  to {
    filter:
      drop-shadow(0 0 6px rgba(205,0,0,.95))
      drop-shadow(0 0 12px rgba(255,35,35,.60))
      drop-shadow(0 0 20px rgba(255,80,80,.35));
    transform: scale(1.04);
  }
}

/* =========================================================
   DATE SIMULATOR
   ========================================================= */

#af26-date-simulator {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1600000;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  font-size: .8rem;
}

#af26-date-simulator label { font-weight: 700; }
#af26-test-date {
  padding: 5px 7px;
  border: 1px solid #aaa;
  border-radius: 5px;
  background: #fff;
}
#af26-reset-date {
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  background: var(--af26-red);
  color: #fff;
}
#af26-date-status {
  font-size: .72rem;
  font-weight: 700;
  color: #555;
  white-space: nowrap;
}
#af26-date-status.af26-simulation-active {
  color: #b30000;
  font-weight: 900;
}

/* =========================================================
   SEASON / SIGNUP POPUP
   ========================================================= */

#af26-season-banner {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0,0,0,.65);
}

#af26-season-banner.af26-active { display: flex; }

#af26-banner-content-wrap {
  position: relative;
  width: min(700px, 88vw);
  max-height: 82vh;
  overflow: auto;
  padding: 40px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139,0,0,.95), rgba(194,52,54,.95));
  color: #fff;
  text-align: center;
  line-height: 1.6;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}

#af26-banner-content a { color: #ffd700; }

#af26-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.af26-signup-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 11px 18px;
  border-radius: 9px;
  background: #fff;
  color: #9f2023 !important;
  text-decoration: none;
  font-weight: 800;
}
.af26-signup-btn:hover { background: #fff3d4; }
.af26-signup-btn.af26-signup-disabled,
#af26-signup-link.af26-signup-disabled {
  cursor: default;
  pointer-events: none;
  background: #d8d8d8;
  color: #666 !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.af26-smartwerk-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 18px;
  color: rgba(255,255,255,.96);
  text-align: center;
}
.af26-smartwerk-line1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .78rem;
}
.af26-smartwerk-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.22);
}
.af26-smartwerk-brand img {
  display: block;
  width: auto;
  max-height: 28px;
}
.af26-smartwerk-line2 {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
}

#af26-calendar.af26-disabled {
  filter: grayscale(100%);
}
#af26-calendar.af26-disabled .af26-window {
  opacity: .58;
  pointer-events: none;
}

#af26-season-banner.af26-locked {
  cursor: default;
}
#af26-season-banner.af26-locked #af26-banner-close {
  display: none !important;
}

/* =========================================================
   WINDOW MODAL
   ========================================================= */

.af26-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1300000;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,245,225,.14), rgba(255,245,225,0) 32%),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.10), rgba(255,255,255,0) 18%),
    radial-gradient(circle at 80% 14%, rgba(255,255,255,.08), rgba(255,255,255,0) 20%),
    rgba(9, 12, 18, .76);
  backdrop-filter: blur(12px) saturate(1.05);
  cursor: pointer;
}
.af26-modal.af26-open { display: flex; }

#af26-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: min(92vw, 500px);
  padding: 8px 0 0;
  cursor: pointer;
}

#af26-modal-card::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: min(78vw, 360px);
  height: min(78vw, 360px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,110,82,.26) 0%, rgba(245,198,94,.16) 36%, rgba(255,110,82,0) 72%);
  filter: blur(16px);
  pointer-events: none;
}

#af26-modal-image {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: min(88vw, 460px);
  max-height: 68vh;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 26px 34px rgba(0,0,0,.42))
    drop-shadow(0 0 16px rgba(255,230,180,.10));
}

#af26-modal-info {
  position: relative;
  z-index: 2;
  width: min(82vw, 330px);
  margin-top: -20px;
  padding: 14px 15px 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,251,245,.95), rgba(246,239,230,.94));
  color: #1e2732;
  text-align: center;
  box-shadow:
    0 18px 55px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

#af26-modal-info::before {
  content: "✦ ✦ ✦";
  display: block;
  margin-bottom: 5px;
  color: #c2952f;
  font-size: .72rem;
  letter-spacing: .28em;
  text-indent: .28em;
}

#af26-modal-day.af26-modal-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(195,52,54,.12), rgba(195,52,54,.06));
  color: #9c2b2d;
  font-size: .70rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#af26-modal-name {
  position: relative;
  max-width: 100%;
  font-size: clamp(1.05rem, 2.4vw, 1.42rem);
  line-height: 1.12;
  font-weight: 900;
  color: #173323;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

#af26-modal-name::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: #b24e38;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#af26-modal-address {
  position: relative;
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(178, 78, 56, .10);
  font-size: .84rem;
  line-height: 1.38;
  color: #4e5967;
  text-wrap: balance;
}

#af26-modal-address::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 3px;
  color: #8b6a1b;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.af26-modal-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

#af26-route-link,
#af26-signup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 11px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #d8484a, #b92e30);
  color: #fff;
  font-weight: 800;
  font-size: .86rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(194,52,54,.26);
  cursor: pointer;
}

#af26-route-link::before {
  content: "➜";
  font-size: 1rem;
}

#af26-route-link:hover,
#af26-signup-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(194,52,54,.34);
}

#af26-signup-link.af26-signup-disabled {
  background: linear-gradient(180deg, #d9d9d9, #c4c4c4);
  color: #5d5d5d !important;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

#af26-modal-close {
  position: absolute;
  top: -2px;
  right: 6px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(12,15,20,.78);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.24);
  cursor: pointer;
}

#af26-modal-close:hover {
  background: rgba(12,15,20,.92);
}
/* =========================================================
   FOOTER
   ========================================================= */

#af26-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: var(--af26-footer-h);
  padding: 4px 12px 5px;
  background: #fff;
  color: #333;
  font-size: .76rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,.10);
}
.af26-footer-line1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
}
#af26-footer a { display: inline-flex; align-items: center; }
#af26-footer img {
  display: block;
  width: auto;
  max-width: min(220px, 43vw);
  max-height: 31px;
}
.af26-footer-line2 {
  max-width: 96vw;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.1;
  color: #555;
  text-align: center;
  white-space: nowrap;
}


@media (max-width: 620px) {
  #af26-footer {
    gap: 1px;
    padding: 3px 7px 4px;
    font-size: .66rem;
  }
  .af26-footer-line1 { gap: 5px; min-height: 30px; }
  #af26-footer img { max-width: 38vw; max-height: 28px; }
  .af26-footer-line2 { font-size: .62rem; white-space: normal; }
  .af26-smartwerk-line1 { gap: 5px; font-size: .68rem; }
  .af26-smartwerk-brand img { max-height: 24px; }
  .af26-smartwerk-line2 { font-size: .68rem; }
}

/*
 * Unsichtbarer Test-Hotspot für den Datumssimulator.
 * Er liegt optisch im rechten unteren Footer-Eck, befindet sich im HTML
 * aber außerhalb des Footer-Stacking-Contexts. Dadurch bleibt er auch
 * über dem gesperrten Saison-Popup anklickbar.
 */

/* =========================================================
   SETTINGS
   ========================================================= */

.af26-settings-page {
  min-height: 100vh;
  background: #f4f4f5;
}

.af26-settings-shell {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 26px 18px 60px;
}

.af26-settings-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.af26-settings-top img {
  display: block;
  width: auto;
  max-height: 48px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #444;
}
.af26-settings-top h1 { margin: 0; font-size: 2rem; }

.af26-panel {
  margin-bottom: 20px;
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 24px rgba(0,0,0,.09);
}
.af26-panel h2 { margin-top: 0; }

.af26-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 18px;
}

.af26-field { display: block; }
.af26-field > span,
.af26-editor-card label > span {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 700;
}

.af26-field input,
.af26-field select,
.af26-field textarea,
.af26-editor-card input[type="text"],
.af26-editor-card textarea,
.af26-login-card input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #fff;
}
.af26-field textarea,
.af26-editor-card textarea { min-height: 72px; resize: vertical; }

.af26-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.af26-settings-actions button,
.af26-login-card button,
.af26-password-actions button {
  border: 0;
  border-radius: 8px;
  padding: 10px 13px;
  background: var(--af26-red);
  color: #fff;
  font-weight: 700;
}
.af26-settings-actions .secondary { background: #666; }
.af26-settings-actions .green { background: #317a40; }
.af26-settings-actions button:disabled,
.af26-settings-actions button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .46;
  filter: grayscale(.25);
  box-shadow: none;
}
.af26-settings-actions button:disabled:hover,
.af26-settings-actions button[aria-disabled="true"]:hover {
  background: inherit;
}

.af26-note {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #e1cf87;
  border-radius: 9px;
  background: #fff5cf;
  line-height: 1.5;
}
.af26-hint { color: #666; line-height: 1.5; font-size: .92rem; }

.af26-login-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}
.af26-login-card {
  width: min(430px, 100%);
  padding: 26px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 36px rgba(0,0,0,.12);
}
.af26-login-card h2 { margin-top: 0; }

.af26-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eee;
}
.af26-message.error { background: #ffdede; color: #8b0000; }
.af26-message.success { background: #ddf3df; color: #15591d; }

#af26-password-output {
  width: 100%;
  min-height: 160px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #f6f6f6;
  font-family: Consolas, monospace;
}
.af26-password-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

#af26-window-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.af26-editor-card {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.af26-editor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.af26-editor-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.af26-editor-card label { display: block; margin-top: 10px; }
.af26-check-row {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 0 !important;
  font-size: .86rem;
  font-weight: 700;
}
.af26-editor-preview {
  display: block;
  width: auto;
  max-width: 82px;
  max-height: 104px;
  margin: 8px auto 12px;
}

#af26-settings-status {
  position: sticky;
  bottom: 10px;
  z-index: 100;
  margin-top: 20px;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(0,0,0,.82);
  color: #fff;
  text-align: center;
}

@keyframes af26TodayGlowMobile {
  from {
    filter:
      brightness(1)
      saturate(1.05)
      drop-shadow(0 0 4px rgba(180,0,0,.72))
      drop-shadow(0 0 8px rgba(255,35,35,.50));
    transform: scale(1);
  }
  to {
    filter:
      brightness(1.16)
      saturate(1.28)
      drop-shadow(0 0 8px rgba(215,0,0,1))
      drop-shadow(0 0 16px rgba(255,35,35,.92))
      drop-shadow(0 0 25px rgba(255,95,80,.65));
    transform: scale(1.09);
  }
}

@media (max-width: 700px) {
  /* Auf kleinen Displays deutlich sichtbarer: rotes Pulsieren folgt der transparenten Fensterkontur. */
  .af26-window.af26-today img {
    animation: af26TodayGlowMobile .82s ease-in-out infinite alternate;
    transform-origin: center center;
  }

  #af26-date-simulator { top: 5px; right: 5px; gap: 4px; padding: 5px 6px; }
  #af26-date-simulator label { display: none; }
  #af26-test-date { width: 135px; font-size: .7rem; }
  #af26-reset-date { font-size: .7rem; }
  #af26-date-status { display: none; }

  #af26-modal-card { width: min(94vw, 450px); padding-top: 6px; }
  #af26-modal-image { max-width: 90vw; max-height: 64vh; }
  #af26-modal-info { width: min(78vw, 300px); margin-top: -14px; padding: 12px 12px 12px; border-radius: 18px; }
  #af26-modal-info::before { margin-bottom: 3px; font-size: .60rem; }
  #af26-modal-day.af26-modal-kicker { margin-bottom: 5px; padding: 4px 8px; font-size: .62rem; }
  #af26-modal-name { font-size: 1.08rem; line-height: 1.12; }
  #af26-modal-name::before { margin-bottom: 3px; font-size: .56rem; }
  #af26-modal-address { margin-top: 7px; padding: 7px 9px; font-size: .76rem; line-height: 1.32; }
  #af26-modal-address::before { font-size: .55rem; }
  #af26-route-link, #af26-signup-link { margin-top: 9px; padding: 9px 12px; font-size: .78rem; border-radius: 11px; }
  #af26-modal-close { top: 0; right: 2px; }
  #af26-banner-content-wrap { padding: 34px 18px 24px; }

  .af26-settings-shell { padding: 15px 10px 45px; }
  .af26-settings-top h1 { font-size: 1.45rem; }
  .af26-panel { padding: 16px; }
}

/* =========================================================
   SETTINGS: VALIDIERUNG & ADRESS-AUTOCOMPLETE
   ========================================================= */

.af26-readiness {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  line-height: 1.4;
}
.af26-readiness span { display: block; font-size: .9rem; }
.af26-readiness.ready {
  background: #e7f6e9;
  color: #1d5f28;
  border-color: #a8d8ae;
}
.af26-readiness.not-ready {
  background: #fff0e6;
  color: #7a3510;
  border-color: #e7bd9e;
}

.af26-address-label { position: relative; }
.af26-address-wrap { position: relative; }
.af26-editor-card input[data-address-input="true"] { width: 100%; }

.af26-address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 500;
  overflow: hidden;
  max-height: 290px;
  overflow-y: auto;
  border: 1px solid #bbb;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.af26-address-suggestion {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #222;
  text-align: left;
  cursor: pointer;
}
.af26-address-suggestion:hover,
.af26-address-suggestion:focus-visible { background: #f4f6f8; }
.af26-address-suggestion strong { display: block; font-size: .9rem; }
.af26-address-suggestion small { display: block; margin-top: 2px; color: #666; font-size: .76rem; }

.af26-address-empty,
.af26-address-attribution {
  padding: 8px 10px;
  font-size: .76rem;
  color: #666;
}
.af26-address-attribution {
  background: #f6f6f6;
  border-top: 1px solid #eee;
}

.af26-address-status {
  min-height: 20px;
  margin-top: 5px;
  font-size: .78rem;
  line-height: 1.35;
}
.af26-address-ok { color: #247033; font-weight: 700; }
.af26-address-warn { color: #9b6300; font-weight: 700; }
.af26-address-bad { color: #a01919; font-weight: 700; }

.af26-editor-card:has(.af26-address-bad) { outline: 1px solid rgba(178,30,30,.25); }


/* =========================================================
   SETTINGS: DATUMSLOGIK – EINGABEN BLEIBEN FREI, SPEICHERN WIRD GESPERRT
   ========================================================= */
.af26-date-logic-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .92rem;
  line-height: 1.45;
}
.af26-date-logic-hint.ok {
  background: #eef7ef;
  border: 1px solid #b8d9bd;
  color: #23552a;
}
.af26-date-logic-hint.warning {
  background: #fff5d9;
  border: 1px solid #e7c75e;
  color: #6f5200;
}
.af26-field.af26-date-warning > span {
  color: #9a5b00;
}
.af26-field.af26-date-warning input[type="date"] {
  border-color: #d39a17 !important;
  box-shadow: 0 0 0 2px rgba(211,154,23,.14);
}


/* =========================================================
   MOBILE PANORAMA V6 – MINIMAL / ORIGINAL-ASSETS
   Nur CSS-Layout. Keine Änderung an der bestehenden app.js.
   ========================================================= */
@media screen and (max-width: 760px) {
  #af26-stage {
    display: block !important;
    width: 100% !important;
    height: calc(100vh - var(--af26-footer-h)) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
    background:
      radial-gradient(circle at 50% 8%, rgba(234,244,252,.20) 0 12%, rgba(234,244,252,0) 38%),
      linear-gradient(180deg,
        #0b3556 0%,
        #24577d 18%,
        #c7d6dc 26%,
        #f0e9dc 33%,
        #f4eddf 76%,
        #eef5fa 90%,
        #d8e9f6 100%);
  }

  #af26-stage::-webkit-scrollbar {
    display: none;
  }

  /*
   * Dasselbe Kalenderdesign, nur größer.
   * Explizite Breite + Höhe: keine Abhängigkeit von aspect-ratio.
   */
  #af26-calendar {
    width: calc(145vw + 20px) !important;
    height: calc(108.93vw + 15.02px) !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    margin: 0 !important;
  }

  /*
   * Die vorhandenen ORIGINAL-Fensterbilder werden weiter benutzt.
   * Mobil nur den kleinen Hovertext ausblenden.
   */
  .af26-window-text {
    display: none !important;
  }

  /*
   * Nur der aktuelle Tag pulsiert kräftiger.
   * Keine Änderungen an den Bildpfaden oder Bilddateien.
   */
  .af26-window.af26-today img {
    animation: af26MobileTodayV6 1s ease-in-out infinite alternate !important;
    transform-origin: center center;
  }

  @keyframes af26MobileTodayV6 {
    from {
      filter:
        drop-shadow(0 0 5px rgba(190,0,0,.78))
        drop-shadow(0 0 11px rgba(255,40,40,.52));
      transform: scale(1.01);
    }
    to {
      filter:
        brightness(1.10)
        saturate(1.16)
        drop-shadow(0 0 9px rgba(220,0,0,.98))
        drop-shadow(0 0 20px rgba(255,55,55,.82))
        drop-shadow(0 0 30px rgba(255,100,80,.46));
      transform: scale(1.075);
    }
  }
}

/* Auf sehr schmalen Geräten leicht größer, damit die Fenster lesbar bleiben. */
@media screen and (max-width: 360px) {
  #af26-calendar {
    width: calc(150vw + 20px) !important;
    height: calc(112.68vw + 15.02px) !important;
  }
}


/* =========================================================
   MOBILE V10 – COMPOSITOR/FLACKER-FIX
   Ursache des unregelmäßigen Flackerns:
   24 transparente PNGs hatten gleichzeitig will-change für
   transform + filter. Mobile Browser/Simulatoren legen dafür
   viele GPU-Compositing-Layer an. Zusammen mit dem animierten
   Drop-Shadow kann das zu kurzen Tile-/Hintergrund-Flashes führen.

   Fix:
   - keine GPU-Layer für die 23 inaktiven Fenster
   - inaktive Fenster mobil ohne Filter
   - aktiver Tag animiert NUR den Kontur-Glow (kein Scale)
   - nur ein einziger animierter Filter-Layer
   ========================================================= */
@media screen and (max-width: 760px) {

  .af26-window:not(.af26-today) img {
    filter: none !important;
    will-change: auto !important;
    transform: none !important;
  }

  .af26-window.af26-today img {
    /*
     * Überschreibt die älteren Mobile-Glow-Regeln.
     * Kein transform/scale mehr – dadurch wird der Kalenderhintergrund
     * nicht bei jedem Frame neu zusammengesetzt.
     */
    animation: af26MobileTodayStableGlow 1.15s ease-in-out infinite alternate !important;
    will-change: filter !important;
    transform: none !important;
  }

  @keyframes af26MobileTodayStableGlow {
    from {
      filter:
        brightness(1.01)
        drop-shadow(0 0 4px rgba(190,0,0,.68))
        drop-shadow(0 0 9px rgba(255,45,45,.40));
    }
    to {
      filter:
        brightness(1.10)
        drop-shadow(0 0 8px rgba(220,0,0,.96))
        drop-shadow(0 0 17px rgba(255,60,55,.72));
    }
  }
}


/* =========================================================
   SETTINGS – COLLAPSIBLE PASSWORD + CMS TEXTS
   ========================================================= */
.af26-password-details {
  padding: 0;
  overflow: hidden;
}
.af26-password-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-size: 1.18rem;
  font-weight: 800;
  user-select: none;
}
.af26-password-details > summary::-webkit-details-marker { display: none; }
.af26-password-details > summary::after {
  content: "+";
  float: right;
  font-size: 1.35rem;
  line-height: 1;
}
.af26-password-details[open] > summary::after { content: "−"; }
.af26-password-details > .af26-password-details-body {
  padding: 0 20px 20px;
  border-top: 1px solid #eee;
}
.af26-cms-section-title {
  margin: 22px 0 10px;
  padding-top: 16px;
  border-top: 1px solid #e6e6e6;
  font-size: 1rem;
}
.af26-cms-section-title:first-of-type { margin-top: 8px; padding-top: 0; border-top: 0; }
.af26-cms-placeholder-help {
  margin: 8px 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef5ff;
  color: #37516a;
  font-size: .88rem;
  line-height: 1.45;
}

/* =========================================================
   V12 – BEWERBUNGSZEITRAUM / ÖFFENTLICHE SEITE
   ========================================================= */
#af26-application-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050000;
  width: min(980px, calc(100vw - 28px));
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(151, 20, 22, .96), rgba(194, 52, 54, .95));
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.24);
}
#af26-application-banner strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.55rem);
  letter-spacing: .035em;
  text-transform: uppercase;
}
#af26-application-banner span {
  display: block;
  margin-top: 4px;
  font-size: clamp(.76rem, 1.25vw, .95rem);
  line-height: 1.35;
  color: rgba(255,255,255,.94);
}

.af26-window.af26-reserved img {
  filter: grayscale(1) opacity(.42) !important;
}
.af26-window.af26-reserved::after {
  content: "reserviert";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  z-index: 70;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(40,40,40,.82);
  color: #fff;
  font-size: clamp(.42rem, .58vw, .68rem);
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
}
.af26-window.af26-application-available img {
  filter: drop-shadow(0 0 5px rgba(194,52,54,.16));
}

.af26-application-form {
  width: 100%;
  margin-top: 10px;
  text-align: left;
}
.af26-application-form label {
  display: block;
  margin-top: 9px;
}
.af26-application-form label > span {
  display: block;
  margin-bottom: 4px;
  color: #374655;
  font-size: .76rem;
  font-weight: 800;
}
.af26-application-form input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #c7ccd1;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  color: #1f2b36;
}
.af26-application-intro,
.af26-application-privacy {
  margin: 7px 0;
  color: #52616f;
  font-size: .76rem;
  line-height: 1.4;
}
.af26-application-privacy { font-size: .69rem; }
#af26-application-submit {
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #d8484a, #b72d30);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 9px 20px rgba(194,52,54,.24);
}
#af26-application-submit:disabled { opacity: .6; cursor: wait; }
.af26-application-message {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: .78rem;
  line-height: 1.35;
}
.af26-application-message.success { background: #e5f5e7; color: #1b6228; }
.af26-application-message.error { background: #ffe0e0; color: #8a1717; }
.af26-application-honeypot {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =========================================================
   V12 – SETTINGS NAVIGATION / BEWERBER-ADMIN
   ========================================================= */
.af26-settings-heading-wrap { min-width: 0; }
.af26-settings-heading-wrap h1 { margin-bottom: 7px; }
.af26-settings-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.af26-settings-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid #d3d7dc;
  background: #fff;
  color: #354a5f;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
}
.af26-settings-nav a.active {
  background: #c23436;
  border-color: #c23436;
  color: #fff;
}
.af26-check-field input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 5px;
}

.af26-applicant-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.af26-applicant-toolbar h2 { margin: 0 0 5px; }
.af26-applicant-toolbar-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.af26-year-field { min-width: 100px; }
.af26-year-field select { min-width: 95px; }
.af26-applicant-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.af26-applicant-summary > div {
  padding: 13px 14px;
  border-radius: 12px;
  background: #f5f7f9;
  text-align: center;
}
.af26-applicant-summary strong {
  display: block;
  font-size: 1.55rem;
  color: #243a4e;
}
.af26-applicant-summary span {
  display: block;
  margin-top: 2px;
  color: #697785;
  font-size: .8rem;
}
.af26-applicant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 13px;
}
.af26-applicant-card {
  padding: 14px;
  border: 1px solid #e0e3e6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
}
.af26-applicant-card.assigned {
  background: #eceeef;
  color: #5b6268;
  filter: grayscale(.45);
}
.af26-applicant-card.free {
  background: #fafafa;
  color: #777;
}
.af26-applicant-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.af26-applicant-card h3 { margin: 0; font-size: 1rem; }
.af26-applicant-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.af26-applicant-badge.free { background: #edf0f2; color: #5f6971; }
.af26-applicant-badge.reserved { background: #fff0ca; color: #765500; }
.af26-applicant-badge.assigned { background: #d9e9dc; color: #315b39; }
.af26-applicant-data {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 5px 8px;
  margin: 12px 0;
  font-size: .82rem;
}
.af26-applicant-data dt { font-weight: 800; color: #65727e; }
.af26-applicant-data dd { margin: 0; overflow-wrap: anywhere; }
.af26-applicant-data a { color: #275f91; }
.af26-applicant-card-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.af26-applicant-card-actions button { flex: 1 1 150px; }
#af26-applicant-status {
  position: sticky;
  bottom: 10px;
  z-index: 100;
  margin-top: 20px;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(0,0,0,.82);
  color: #fff;
  text-align: center;
}

@media (max-width: 760px) {
  #af26-application-banner {
    top: 7px;
    width: calc(100vw - 16px);
    padding: 9px 10px;
    border-radius: 11px;
  }
  #af26-application-banner strong { font-size: .85rem; }
  #af26-application-banner span { font-size: .66rem; }
  .af26-window.af26-reserved::after { display: none; }
  .af26-application-form input { padding: 9px; }
  .af26-applicant-summary { grid-template-columns: repeat(3, 1fr); }
  .af26-applicant-toolbar-actions { width: 100%; }
  .af26-applicant-toolbar-actions button { flex: 1 1 140px; }
  .af26-settings-nav { margin-top: 4px; }
}


/* =========================================================
   V13 – Bewerberverwaltung zentral
   ========================================================= */
.af26-applicant-imported {
  margin: -2px 0 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(52, 111, 73, .08);
  color: #3d694e;
  font-size: .78rem;
  font-weight: 700;
}

.af26-applicant-edit {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
}

.af26-applicant-edit[hidden] {
  display: none !important;
}


/* =========================================================
   V15 – Bewerbungen: Tagesboxen, Kontakt & lokales Adressfeld
   ========================================================= */

.af26-applicant-card-clickable {
  cursor: pointer;
}
.af26-applicant-card-clickable:hover {
  border-color: rgba(40, 112, 67, .35);
  box-shadow: 0 9px 24px rgba(0,0,0,.08);
}
.af26-applicant-free-hint {
  margin: 8px 0 0;
  color: #52616f;
  font-size: .84rem;
  line-height: 1.4;
}
.af26-applicant-create {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,0,0,.08);
  cursor: default;
}
.af26-applicant-create[hidden] {
  display: none !important;
}
.af26-applicant-create .af26-form-grid,
.af26-applicant-edit .af26-form-grid {
  align-items: start;
}
.af26-applicant-create input,
.af26-applicant-edit input,
.af26-applicant-edit select {
  width: 100%;
}
.af26-application-contact-hint {
  margin: 8px 0 0;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(36,112,51,.08);
  color: #355c3d;
  font-size: .70rem;
  line-height: 1.35;
  font-weight: 700;
}

/*
 * Bewerbungsmodal: darf niemals oben/unten abgeschnitten werden.
 * Der Modal-Overlay selbst scrollt, falls das Display sehr niedrig ist.
 */
.af26-modal.af26-open {
  overflow-y: auto;
  align-items: flex-start;
}
#af26-modal-card {
  margin-block: auto;
}
#af26-modal-card.af26-application-mode {
  width: min(94vw, 540px);
  padding-bottom: 12px;
}
#af26-modal-card.af26-application-mode #af26-modal-image {
  max-width: min(48vw, 210px);
  max-height: 25vh;
}
#af26-modal-card.af26-application-mode #af26-modal-info {
  width: min(90vw, 390px);
  margin-top: -10px;
  overflow: visible;
}
#af26-modal-card.af26-application-mode #af26-modal-info::before {
  margin-bottom: 2px;
}
#af26-modal-card.af26-application-mode .af26-application-form label {
  margin-top: 7px;
}
#af26-modal-card.af26-application-mode .af26-application-form input {
  padding: 8px 9px;
}
#af26-modal-card.af26-application-mode .af26-application-intro,
#af26-modal-card.af26-application-mode .af26-application-privacy {
  margin: 5px 0;
}
#af26-modal-card.af26-application-mode .af26-address-suggestions {
  z-index: 1600000;
}

@media (max-width: 760px), (max-height: 760px) {
  .af26-modal {
    padding: 8px 8px;
  }
  #af26-modal-card.af26-application-mode {
    width: min(96vw, 500px);
  }
  #af26-modal-card.af26-application-mode #af26-modal-image {
    max-height: 17vh;
    max-width: min(38vw, 150px);
  }
  #af26-modal-card.af26-application-mode #af26-modal-info {
    width: min(94vw, 390px);
    padding: 10px 11px;
    border-radius: 16px;
  }
  #af26-modal-card.af26-application-mode #af26-modal-day.af26-modal-kicker {
    margin-bottom: 3px;
    padding: 3px 7px;
    font-size: .58rem;
  }
  #af26-modal-card.af26-application-mode .af26-application-form {
    margin-top: 5px;
  }
  #af26-modal-card.af26-application-mode .af26-application-form label {
    margin-top: 5px;
  }
  #af26-modal-card.af26-application-mode .af26-application-form label > span {
    margin-bottom: 2px;
    font-size: .68rem;
  }
  #af26-modal-card.af26-application-mode .af26-application-form input {
    padding: 7px 8px;
    font-size: .86rem;
  }
  #af26-modal-card.af26-application-mode #af26-application-submit {
    margin-top: 7px;
    padding: 9px 11px;
  }
  #af26-modal-card.af26-application-mode .af26-application-contact-hint,
  #af26-modal-card.af26-application-mode .af26-application-privacy {
    font-size: .62rem;
    line-height: 1.25;
  }
}


/* =========================================================
   V16 – Tagesboxen: Felder exakt auf Boxbreite
   ========================================================= */
.af26-applicant-card,
.af26-applicant-create,
.af26-applicant-edit {
  min-width: 0;
}

.af26-applicant-create .af26-form-grid,
.af26-applicant-edit .af26-form-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  max-width: 100%;
}

.af26-applicant-create .af26-field,
.af26-applicant-edit .af26-field,
.af26-applicant-create .af26-address-wrap,
.af26-applicant-edit .af26-address-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.af26-applicant-create input,
.af26-applicant-create select,
.af26-applicant-create textarea,
.af26-applicant-edit input,
.af26-applicant-edit select,
.af26-applicant-edit textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.af26-applicant-create .af26-address-suggestions,
.af26-applicant-edit .af26-address-suggestions {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/*
 * Im öffentlichen Bewerbungsmodal bleiben Interaktionen innerhalb
 * des Formulars sichtbar und klickbar; Vorschläge dürfen über den
 * Feldrand hinaus erscheinen, ohne das Modal zu schließen.
 */
#af26-modal-card.af26-application-mode .af26-application-form {
  position: relative;
  z-index: 4;
}


/* ===== V17 Export-JPEG ===== */
#af26-applicant-export-jpeg {
  white-space: nowrap;
}

.af26-applicant-toolbar-actions {
  flex-wrap: wrap;
}


/* V21: Klick auf die Jahreszahl öffnet die Straßenkarte */
#af26-map-hotspot{position:absolute;z-index:90;left:60%;top:15%;width:13%;height:7%;border-radius:12px;cursor:pointer;background:transparent;outline:none}
#af26-map-hotspot:hover,#af26-map-hotspot:focus-visible{background:rgba(255,255,255,.07);box-shadow:0 0 0 2px rgba(190,20,28,.25),0 0 18px rgba(255,215,100,.25)}

/* =========================================================
   V30 – Kartenbutton direkt IM Adventskalender
   ========================================================= */
.af26-map-button {
  position: absolute;
  left: 50%;
  top: calc(90.1% + 10px);
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43%;
  height: 5.45%;
  min-height: 34px;
  padding: .25em 1.25em;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0) 36%),
    linear-gradient(180deg, #dc3a44 0%, #c91425 48%, #9f0715 100%);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: clamp(.66rem, 1.55vw, 1.38rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: .005em;
  text-shadow: 0 1px 2px rgba(76,0,5,.45);
  box-shadow:
    0 8px 16px rgba(112,5,16,.28),
    0 2px 5px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -2px 4px rgba(101,0,11,.18);
  transform: translateX(-50%);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
  overflow: hidden;
}

.af26-map-button:hover,
.af26-map-button:focus-visible {
  color: #fff;
  transform: translateX(-50%) translateY(-2px) scale(1.015);
  box-shadow:
    0 11px 22px rgba(112,5,16,.34),
    0 3px 7px rgba(0,0,0,.22),
    0 0 0 3px rgba(255,220,118,.25),
    inset 0 1px 0 rgba(255,255,255,.4);
  filter: brightness(1.05);
  outline: none;
}

.af26-map-button:active {
  transform: translateX(-50%) translateY(0) scale(.99);
}

/*
 * Auf schmalen Displays bleibt der Button an derselben Position im
 * Kalenderbild. Nur die Mindesthöhe wird reduziert, damit er nicht
 * über die Schneekante hinausragt.
 */
@media (max-width: 620px) {
  .af26-map-button {
    min-height: 30px;
    width: 45%;
    font-size: clamp(.61rem, 2.7vw, .86rem);
    padding-inline: .8em;
  }
}


/* V31 – vereinfachte Datumslogik */
.af26-derived-date{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:10px 12px;border:1px solid rgba(23,53,74,.14);border-radius:12px;background:rgba(239,247,242,.78);min-height:58px;box-sizing:border-box}
.af26-derived-date strong{font-size:.96rem;color:#176232}
.af26-derived-date small{font-size:.72rem;color:#687986;line-height:1.3}
.af26-fallback-date-field[hidden]{display:none!important}


/* V32 – Bewerbungsmodal: bewusst Speichern oder Abbrechen */
.af26-application-submit-row {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.35fr);
  gap: 8px;
  margin-top: 10px;
}
#af26-application-submit,
#af26-application-cancel {
  width: 100%;
  margin-top: 0;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 900;
}
#af26-application-cancel {
  border: 1px solid #c5cbd0;
  background: #fff;
  color: #344655;
  box-shadow: none;
}
#af26-application-cancel:hover { background: #f1f3f5; }
@media (max-width: 480px) {
  .af26-application-submit-row { grid-template-columns: 1fr 1.25fr; }
  #af26-application-submit, #af26-application-cancel { padding: 9px 8px; font-size: .8rem; }
}


/* V34 – globales Demodatum nur in den Settings */
.af26-demo-date-box {
  margin: 18px 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(24, 83, 119, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(235,246,252,.96), rgba(255,255,255,.98));
  box-shadow: 0 8px 22px rgba(23,53,74,.06);
}
.af26-demo-date-copy { display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.af26-demo-date-copy strong { font-size:1.05rem; color:#17354a; }
.af26-demo-date-copy span { font-size:.84rem; color:#5a6c78; line-height:1.45; }
.af26-demo-date-controls { display:flex; gap:12px; align-items:end; flex-wrap:wrap; }
.af26-demo-date-controls .af26-field { min-width:220px; margin:0; }
#af26-end-demo-date { min-height:42px; }
#af26-end-demo-date:disabled { opacity:.45; cursor:not-allowed; }
.af26-demo-date-status { margin-top:10px; padding:9px 11px; border-radius:10px; background:rgba(23,53,74,.06); color:#536673; font-size:.82rem; }
.af26-demo-date-status.active { background:rgba(181,31,41,.09); color:#8e1620; }
@media (max-width:600px) {
  .af26-demo-date-controls { align-items:stretch; }
  .af26-demo-date-controls .af26-field, #af26-end-demo-date { width:100%; }
}


/* V37 – Kartenbutton erst ab Scharfschaltung aktiv */
#af26-map-hotspot.af26-map-locked {
  pointer-events: none !important;
  cursor: default !important;
}

.af26-map-button.af26-map-button-disabled {
  pointer-events: none !important;
  cursor: not-allowed !important;
  filter: grayscale(.65) brightness(.78) !important;
  opacity: .58;
  box-shadow:
    0 4px 9px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -2px 4px rgba(0,0,0,.12);
  transform: translateX(-50%) !important;
}

.af26-map-button.af26-map-button-disabled:hover,
.af26-map-button.af26-map-button-disabled:focus-visible,
.af26-map-button.af26-map-button-disabled:active {
  transform: translateX(-50%) !important;
  filter: grayscale(.65) brightness(.78) !important;
  outline: none;
}


/* =========================================================
   V52 – einheitliche Unterzeile + SEO-Inhalt
   ========================================================= */
.af26-calendar-subtitle {
  position: absolute !important;
  z-index: 12;
  left: 35.2%;
  top: 20.15%;
  width: 29.8%;
  height: 4.1%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: .20em;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(254,251,246,.99), rgba(251,248,241,.99));
  box-shadow: 0 0 10px 8px rgba(252,249,242,.92);
  color: #08365d;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(14px, 2.03vw, 30px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .205em;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

@supports (font-size: 1cqw) {
  .af26-calendar-subtitle { font-size: 2.08cqw; }
}

.af26-seo-info {
  width: min(960px, calc(100% - 28px));
  margin: 28px auto 40px;
  padding: 22px 24px;
  border: 1px solid rgba(8,54,93,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 32px rgba(20,58,88,.10);
  color: #243947;
}
.af26-seo-info h1 {
  margin: 0 0 9px;
  color: #08365d;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.15;
}
.af26-seo-info p {
  margin: 7px 0;
  font-size: .96rem;
  line-height: 1.6;
}
.af26-seo-info a { color: #a8111f; font-weight: 800; }

@media screen and (max-width: 760px) {
  .af26-calendar-subtitle {
    font-size: 2.08cqw;
    box-shadow: 0 0 6px 5px rgba(252,249,242,.92);
  }
  .af26-seo-info {
    margin-top: 18px;
    padding: 18px;
    border-radius: 14px;
  }
}

/* V54 – alte, bildgebundene Unterzeile auf der Live-Seite nicht mehr verwenden. */
.af26-calendar-subtitle { display: none !important; }

/* V5: Titel ist Bestandteil der Live-Hausgrafik; alte HTML-Titelinstanz sicher ausblenden. */
.af26-live-title { display: none !important; }

/* V10 – Zusatzfeld für die A4/JPEG-Beschriftung */
.af26-field-hint,
.af26-field small {
  display: block;
  margin-top: 5px;
  color: #6a7480;
  font-size: .76rem;
  line-height: 1.35;
}


/* =========================================================
   V24 – Live-Positionen + robuster Modal-Fix
   ========================================================= */
/* V25: Alle 24 Live-Fenster inklusive ihrer Texte 15px höher als in V24. */
#af26-calendar .af26-window {
  transform: translateY(15px);
}

/* V25: Auch der Kartenbutton 15px höher als in V24. */
#af26-calendar .af26-map-button {
  top: calc(90.1% - 25px);
}

/* X muss garantiert über Bild und Infokarte liegen und anklickbar bleiben. */
#af26-modal-close {
  z-index: 999 !important;
  pointer-events: auto !important;
}


/* =========================================================
   V30 – Lange Namen vollständig anzeigen, niemals mit … kürzen
   ========================================================= */
.af26-window-text,
.af26-window-text strong,
#af26-modal-name {
  text-overflow: clip !important;
  overflow: visible !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

.af26-window-text strong,
#af26-modal-name {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto;
}

.af26-window-text {
  height: auto !important;
}


/* =========================================================
   V35 – Öffentlicher A4-JPEG-Download auf der Live-Seite
   ========================================================= */
#af26-calendar .af26-jpeg-download-button {
  position: absolute;
  right: 3.4%;
  top: calc(90.1% - 25px);
  z-index: 86;
  width: 22.5%;
  height: 5.45%;
  min-height: 34px;
  padding: .25em .75em;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.19), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #285f8f 0%, #174b78 50%, #0b355d 100%);
  color: #fff;
  font: inherit;
  font-size: clamp(.58rem, 1.1vw, 1rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,20,42,.55);
  box-shadow:
    0 7px 15px rgba(10,45,78,.28),
    0 2px 5px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.34);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
#af26-calendar .af26-jpeg-download-button:hover,
#af26-calendar .af26-jpeg-download-button:focus-visible {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.08);
  outline: none;
  box-shadow:
    0 10px 20px rgba(10,45,78,.34),
    0 0 0 3px rgba(210,235,255,.22),
    inset 0 1px 0 rgba(255,255,255,.4);
}
#af26-calendar .af26-jpeg-download-button:active {
  transform: translateY(0) scale(.99);
}
#af26-calendar .af26-jpeg-download-button:disabled,
#af26-calendar .af26-jpeg-download-button.af26-jpeg-download-disabled {
  opacity: .42;
  filter: grayscale(.7);
  cursor: default;
  box-shadow: none;
}
#af26-calendar .af26-jpeg-download-button.af26-jpeg-download-working {
  cursor: progress;
}
@media (max-width: 620px) {
  #af26-calendar .af26-jpeg-download-button {
    right: 2.7%;
    width: 24.5%;
    min-height: 30px;
    font-size: clamp(.48rem, 2.05vw, .72rem);
    padding-inline: .45em;
  }
}

/* V47 – Heiligabend in der Bewerbungsphase: kein buchbares Fenster. */
#af26-calendar .af26-window.af26-application-christmas {
  cursor: not-allowed;
}
#af26-calendar .af26-window.af26-application-christmas img {
  filter: grayscale(1) brightness(.68) opacity(.48) !important;
  animation: none !important;
}
#af26-calendar .af26-window.af26-application-christmas:hover img {
  filter: grayscale(1) brightness(.68) opacity(.48) !important;
  transform: none;
}


/* V51 – Mobil: beide Aktionsbuttons unterhalb der letzten Fensterreihe.
   Desktop bleibt unveraendert; die bisherige V25-Verschiebung gilt nur dort. */
@media screen and (max-width: 760px) {
  #af26-calendar .af26-map-button,
  #af26-calendar .af26-jpeg-download-button {
    top: calc(90.1% + 10px);
  }
}
