/* Halfmann Adventskalender – eigenständig gestaltet und auf .hfa-calendar begrenzt. */
.hfa-calendar {
  --hfa-ink: #163a32;
  --hfa-deep: #0c2d29;
  --hfa-gold: #e5c384;
  --hfa-gold-dark: #a37b42;
  --hfa-cream: #fff8e9;
  --hfa-bordeaux: #792c3e;
  --hfa-soft: #ebd9b9;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: clamp(42px, 7vw, 94px) clamp(14px, 3.8vw, 55px) clamp(30px, 5vw, 58px);
  border-radius: clamp(12px, 1.7vw, 24px);
  background: radial-gradient(ellipse 57% 25% at 48% -10%, #396b59 0, transparent 100%),
    radial-gradient(ellipse 40% 35% at -14% 70%, #245344 0, transparent 100%),
    linear-gradient(165deg, #123e35 0%, #10372f 52%, #082820 100%);
  color: var(--hfa-cream);
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 20px 56px #101e1b26;
}
.hfa-calendar *, .hfa-calendar *::before, .hfa-calendar *::after { box-sizing: border-box; }
.hfa-calendar .hfa-content { max-width: 1090px; margin: 0 auto; position: relative; z-index: 1; }
.hfa-calendar button, .hfa-calendar a { -webkit-tap-highlight-color: transparent; }
.hfa-calendar button { font-family: inherit; }
.hfa-calendar p { padding: 0; }
.hfa-orbit { position: absolute; z-index: 0; color: #b1d1a513; pointer-events: none; line-height: 1; font-size: clamp(190px, 32vw, 420px); }
.hfa-orbit-left { top: 5px; left: -130px; transform: rotate(-18deg); }
.hfa-orbit-right { bottom: 90px; right: -120px; transform: rotate(22deg); }

/* Kopfbereich */
.hfa-hero { position: relative; text-align: center; margin: 0 auto clamp(31px, 4.3vw, 57px); }
.hfa-brand { display: inline-flex; align-items: center; gap: 10px; color: #e9d5ab; font-size: 11px; letter-spacing: .25em; font-weight: 800; line-height: 1.5; }
.hfa-brand-symbol { color: var(--hfa-gold); font-size: 24px; line-height: 1; }
.hfa-brand-sep { padding: 0 5px; opacity: .5; }
.hfa-holiday-detail { margin: 29px 0 13px; color: #e8cb8b; font-size: 16px; letter-spacing: 13px; }
.hfa-holiday-detail span { font-size: 23px; }
.hfa-eyebrow { margin: 0 0 12px !important; color: #e6cb94 !important; text-transform: uppercase; letter-spacing: .20em; font-size: 11px; line-height: 1.65; font-weight: 800; }
.hfa-calendar .hfa-heading { max-width: 900px; margin: 0 auto 21px !important; padding: 0; color: #fff9eb !important; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(37px, 5.8vw, 72px) !important; font-weight: 400 !important; letter-spacing: -.045em; line-height: 1.1 !important; text-transform: none !important; }
.hfa-heading em { color: #e9c88a; font-style: italic; font-weight: 400; }
.hfa-subtitle { max-width: 650px; margin: 0 auto 25px !important; color: #e6e7d9 !important; font-size: clamp(14px, 1.8vw, 16px); line-height: 1.8; }
.hfa-hero-pills { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.hfa-hero-pills span { display: inline-block; border: 1px solid #d8c29c50; border-radius: 40px; padding: 9px 16px; color: #faeacb; font-size: 11px; letter-spacing: .04em; background: #ffffff06; }
.hfa-preview { max-width: 600px; border: 1px solid #f3d89c7f; background: #5e3825; color: white !important; border-radius: 10px; padding: 11px 16px !important; margin: 18px auto 0 !important; font-size: 13px; }

/* Kalender-Rahmen */
.hfa-board { position: relative; overflow: visible; border: 1px solid #d7b474; border-radius: clamp(13px, 2vw, 22px); padding: clamp(15px, 2.5vw, 29px); background: linear-gradient(128deg, #8b3448 0%, #672638 51%, #742d3c 100%); box-shadow: 0 7px 0 #0c241fd9, 0 20px 60px #021b1875, inset 0 0 0 5px #e7c3841c; }
.hfa-board::before, .hfa-board::after { content: '✣'; position: absolute; color: var(--hfa-gold); font-size: 18px; z-index: 2; pointer-events: none; }
.hfa-board::before { top: -11px; left: 24px; }
.hfa-board::after { bottom: -12px; right: 24px; }
.hfa-board-head { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 15px; margin: 0 3px 22px; color: #fff3dd; }
.hfa-board-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hfa-board-asterisk { flex: none; font-size: 35px; line-height: 1; color: var(--hfa-gold); }
.hfa-board-overline { display: block; color: #e6c693; font-weight: 800; font-size: 10px; letter-spacing: .18em; margin-bottom: 4px; }
.hfa-board-heading strong { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(16px, 2.1vw, 22px); font-weight: 400; line-height: 1.28; }
.hfa-live-status { display: inline-flex; align-items: center; max-width: 320px; gap: 8px; text-align: right; color: #f6e1c3; font-size: 12px; line-height: 1.5; }
.hfa-live-dot { flex: none; height: 7px; width: 7px; border-radius: 50%; background: #e4c583; box-shadow: 0 0 0 4px #e4c58320; }

/* Türchen mit mechanischer Klapp-Animation */
.hfa-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 17px); isolation: isolate; }
.hfa-door { --hfa-door-a: #1c6652; --hfa-door-b: #103f36; appearance: none; display: block; position: relative; min-width: 0; aspect-ratio: 1 / 1.08; padding: 0; border: 0; border-radius: 10px; background: #183b32; color: #f9e5bc; cursor: default; text-align: center; perspective: 700px; box-shadow: 0 5px 0 #321d25a8, 0 8px 12px #291a1a55; transition: transform .25s ease, box-shadow .25s ease; }
.hfa-door:nth-child(4n + 2) { --hfa-door-a: #93394b; --hfa-door-b: #622638; }
.hfa-door:nth-child(4n + 3) { --hfa-door-a: #426954; --hfa-door-b: #214a3e; }
.hfa-door:nth-child(7n) { --hfa-door-a: #9d7543; --hfa-door-b: #715232; }
.hfa-door[data-day="24"] { --hfa-door-a: #d5a965; --hfa-door-b: #a7773f; }
.hfa-door-face { display: flex; position: absolute; z-index: 2; inset: 0; overflow: hidden; flex-direction: column; justify-content: center; align-items: center; border: 1px solid #f1d89e8a; border-radius: 10px; background: radial-gradient(ellipse at 22% 15%, #ffffff13 0, transparent 58%), linear-gradient(145deg, var(--hfa-door-a), var(--hfa-door-b)); color: #f8e7c2; backface-visibility: hidden; transform-origin: 1px 50%; transition: transform .8s cubic-bezier(.26,.84,.19,1), box-shadow .3s ease; box-shadow: inset 0 0 0 5px #ffffff0f, inset 0 0 25px #00000018; }
.hfa-door-face::before { content: ''; display: block; position: absolute; inset: 9px; border: 1px solid #f2d5a65e; border-radius: 4px; pointer-events: none; }
.hfa-door-face::after { content: ''; display: block; position: absolute; inset: 15px 50% 15px auto; border-left: 1px solid #f1dfb913; pointer-events: none; }
.hfa-door-corner { position: absolute; font-size: 10px; color: #e4c385d1; line-height: 1; }
.hfa-corner-top { top: 14px; left: 16px; }
.hfa-corner-bottom { bottom: 14px; right: 16px; }
.hfa-door-number { display: block; position: relative; z-index: 1; color: inherit; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 5.5vw, 61px); font-weight: 400; letter-spacing: -.05em; line-height: 1; text-shadow: 0 2px 2px #10272130; }
.hfa-door-month { margin-top: 10px; color: #f1dcb0; font-size: clamp(8px, 1vw, 10px); letter-spacing: .16em; font-weight: 800; }
.hfa-door-knob { position: absolute; z-index: 2; top: 50%; right: 7px; width: 6px; height: 6px; transform: translateY(-50%); border-radius: 50%; background: #f2d38d; box-shadow: 0 0 0 2px #4e38227d; }
.hfa-door[data-day="24"] .hfa-door-number, .hfa-door[data-day="24"] .hfa-door-month { color: #302c1e; text-shadow: none; }
.hfa-door[data-day="24"] .hfa-door-face::before { border-color: #fff1cc; }
.hfa-door[data-day="24"] .hfa-door-corner { color: #fff0c1; }
.hfa-door[data-day="24"] .hfa-door-knob { background: #f9efd8; }
.hfa-door-reveal { display: flex; flex-direction: column; position: absolute; inset: 0; border: 1px solid #ecce8e; border-radius: 10px; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 38%, #336951 0%, #13382f 64%, #0a2b26 100%); color: #e2bd7f; overflow: hidden; }
.hfa-door-reveal-star { position: absolute; font-size: 85px; opacity: .13; }
.hfa-door-reveal-gift { position: relative; font-size: clamp(33px, 5vw, 54px); line-height: 1; }
.hfa-door-reveal-word { position: relative; margin-top: 8px; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.hfa-door[data-state="open"] { cursor: pointer; box-shadow: 0 5px 0 #321d25a8, 0 8px 17px #150b0b7d, 0 0 0 2px #f0ca8270; }
.hfa-door[data-state="open"]:hover:not(.is-opening), .hfa-door[data-state="open"]:focus-visible { transform: translateY(-4px); box-shadow: 0 8px 0 #321d25a8, 0 14px 25px #150b0b94, 0 0 0 2px #ffe7a5; }
.hfa-door:focus-visible { outline: 3px solid #fff9dd; outline-offset: 4px; }
.hfa-door[data-state="locked"] .hfa-door-face { filter: saturate(.85); }
.hfa-door[data-state="closed"] .hfa-door-face { filter: grayscale(.55) brightness(.71); }
.hfa-door[data-state="empty"] .hfa-door-face { filter: grayscale(.65) brightness(.7); }
.hfa-door[data-state="loading"] .hfa-door-face { filter: saturate(.5); }
.hfa-door.is-opening, .hfa-door.is-opened { z-index: 5; }
.hfa-door.is-opening .hfa-door-face, .hfa-door.is-opened .hfa-door-face { transform: rotateY(-106deg); }
.hfa-door.is-opened .hfa-door-reveal { color: #fae8b9; }
.hfa-door-today { display: none; position: absolute; z-index: 5; top: -8px; right: -5px; background: #fff6df; color: #5e2632; border-radius: 4px; box-shadow: 0 3px 8px #120e0e66; padding: 4px 7px; font-size: 9px; line-height: 1; letter-spacing: .08em; font-weight: 900; pointer-events: none; }
.hfa-door[data-today="true"][data-state="open"] .hfa-door-today { display: block; }
.hfa-board-foot { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 22px 3px 0; }
.hfa-calendar .hfa-status { color: #fae9d5 !important; font-size: 12px; line-height: 1.55; margin: 0 !important; text-align: left; }
.hfa-board-foot-mark { white-space: nowrap; color: #e2c38c; letter-spacing: 5px; }
.hfa-underneath { margin: 27px 0 0 !important; color: #d9e7d9 !important; font-family: Georgia, 'Times New Roman', serif; font-size: 14px; font-style: italic; }
.hfa-underneath span { color: var(--hfa-gold); }

/* Geschenk-Dialog */
.hfa-calendar .hfa-dialog { box-sizing: border-box; width: min(94vw, 645px); max-height: min(92vh, 860px); overflow: auto; margin: auto; padding: 0; border: 1px solid #b99762; border-radius: 19px; background: #fff9ed; color: #1e3c34; text-align: left; font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; box-shadow: 0 30px 110px #0d1113d1; }
.hfa-dialog::backdrop { background: #061d1bd1; backdrop-filter: blur(5px); }
.hfa-dialog::before { content: '✦  ✧  ✦'; display: block; width: 100%; padding: 20px 30px 14px; color: #e3c38b; font-size: 19px; text-align: center; letter-spacing: 14px; background: linear-gradient(145deg, #174939, #10352d); }
.hfa-dialog-content { padding: clamp(18px, 3.9vw, 37px); }
.hfa-calendar .hfa-close { position: absolute; z-index: 2; top: 12px; right: 15px; width: 34px; height: 34px; border: 1px solid #fff4dc8c; border-radius: 50%; background: #153b34; color: #fff4dc; font-size: 27px; font-weight: 400; line-height: 30px; cursor: pointer; }
.hfa-calendar .hfa-close:hover, .hfa-calendar .hfa-close:focus-visible { background: #2e6452; outline: 2px solid #e8c78e; outline-offset: 1px; }
.hfa-dialog-eyebrow { display: block; color: #9c713f; text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 800; margin: 0 0 9px !important; }
.hfa-calendar .hfa-dialog-title { color: #6b293b !important; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(29px, 4.8vw, 41px) !important; font-weight: 400; line-height: 1.18 !important; letter-spacing: -.025em; padding: 0; margin: 0 0 14px !important; }
.hfa-dialog-line { display: block; width: 58px; height: 2px; margin-bottom: 21px; background: #bb925a; }
.hfa-gift-image { display: block; width: 100%; max-height: 290px; object-fit: contain; margin-bottom: 20px; border-radius: 10px; background: #f2ebdf; }
.hfa-description { color: #354d42; font-size: 15px; line-height: 1.75; }
.hfa-description p { margin: 0 0 12px; }
.hfa-description a { color: #1b6650; text-decoration: underline; }
.hfa-sponsor { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid #e6d8c1; border-radius: 12px; margin: 24px 0 16px; background: #f5f0e6; }
.hfa-sponsor-logo { flex: none; width: 100px; height: 76px; padding: 7px; object-fit: contain; border: 1px solid #eae5dc; border-radius: 8px; background: #fff; }
.hfa-sponsor-text { min-width: 0; flex: 1; }
.hfa-sponsor-label { display: block; color: #926e4e; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; font-weight: 800; }
.hfa-sponsor-text strong { display: block; color: #244d3c; font-size: 16px; }
.hfa-sponsor-text p { margin: 6px 0 0; color: #556459; font-size: 13px; line-height: 1.55; }
.hfa-coupon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; margin-top: 22px; padding: 17px; border: 1.5px dashed #b48d50; border-radius: 11px; background: #fcf1d9; }
.hfa-coupon-info { min-width: 0; }
.hfa-coupon-label { display: block; color: #805d38; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hfa-coupon-code { display: block; margin-top: 4px; color: #603044; font-size: 21px; letter-spacing: .06em; overflow-wrap: anywhere; }
.hfa-calendar .hfa-copy { flex: none; padding: 10px 13px; border: 1px solid #7d5e46; border-radius: 8px; color: #5d4537; background: #fff9ec; cursor: pointer; font-size: 12px; font-weight: 800; }
.hfa-calendar .hfa-copy:hover { background: #f5dfb5; }
.hfa-calendar .hfa-cta { display: block !important; width: 100%; margin-top: 22px; padding: 14px 18px; border-radius: 9px; border: 1px solid #184c3c; background: #205d49 !important; color: #fff !important; font-weight: 800; font-size: 14px; text-decoration: none !important; text-align: center; transition: background .2s; }
.hfa-calendar .hfa-cta:hover { background: #133e30 !important; }
.hfa-expired { margin-top: 20px !important; padding: 13px 16px; border-radius: 9px; background: #f4e8df; color: #743747; font-size: 13px; font-weight: 700; }
.hfa-calendar .hfa-dialog-note { margin: 18px 0 0; color: #7b6a55; font-size: 12px; line-height: 1.55; text-align: center; }

@media (max-width: 820px) {
  .hfa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hfa-door-number { font-size: clamp(37px, 6.7vw, 64px); }
  .hfa-board-head { align-items: flex-start; }
  .hfa-live-status { max-width: 180px; }
}
@media (max-width: 530px) {
  .hfa-calendar { padding: 36px 11px 28px; border-radius: 13px; }
  .hfa-brand { font-size: 9px; letter-spacing: .13em; }
  .hfa-brand-symbol { font-size: 20px; }
  .hfa-holiday-detail { margin-top: 24px; }
  .hfa-calendar .hfa-heading { font-size: clamp(33px, 8vw, 45px) !important; }
  .hfa-subtitle { padding: 0 6px !important; }
  .hfa-hero-pills span { font-size: 10px; padding: 7px 10px; }
  .hfa-board { padding: 13px 10px 16px; }
  .hfa-board-head { flex-direction: column; gap: 10px; margin: 2px 2px 17px; }
  .hfa-board-asterisk { font-size: 27px; }
  .hfa-board-heading strong { font-size: 18px; }
  .hfa-live-status { max-width: none; text-align: left; padding-left: 3px; }
  .hfa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .hfa-door { border-radius: 7px; }
  .hfa-door-face, .hfa-door-reveal { border-radius: 7px; }
  .hfa-door-face::before { inset: 6px; border-radius: 3px; }
  .hfa-door-number { font-size: clamp(34px, 10vw, 52px); }
  .hfa-door-month { font-size: 8px; letter-spacing: .09em; margin-top: 5px; }
  .hfa-corner-top { top: 9px; left: 11px; }
  .hfa-corner-bottom { bottom: 9px; right: 11px; }
  .hfa-board-foot { margin-top: 18px; }
  .hfa-board-foot-mark { letter-spacing: 1px; font-size: 12px; }
  .hfa-sponsor { align-items: flex-start; }
  .hfa-sponsor-logo { width: 74px; height: 64px; }
  .hfa-coupon { align-items: stretch; }
  .hfa-calendar .hfa-copy { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hfa-door, .hfa-door-face, .hfa-calendar .hfa-cta { transition: none !important; }
}

/* v0.9: freiwillige Kontaktaktionen, unabhängig vom Öffnen des Geschenks. */
.hfa-calendar .hfa-lead-global{max-width:980px;margin:26px auto 0;padding:24px 20px;border-radius:16px;background:rgba(255,250,236,.96);border:1px solid rgba(181,147,79,.55);color:#234e3e;text-align:center;box-shadow:0 12px 28px rgba(13,35,29,.12)}
.hfa-calendar .hfa-lead-global h3{margin:0 0 7px;color:#234e3e;font-size:21px;line-height:1.35}
.hfa-calendar .hfa-lead-global p{color:#526458;margin:0 0 17px;font-size:13px}
.hfa-calendar .hfa-lead-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:9px}
.hfa-calendar .hfa-lead-action{border:1px solid #c7ae80;background:#fff9eb;color:#244e3e;cursor:pointer;border-radius:9px;padding:11px 15px;font-weight:750;font-size:13px;line-height:1.35;text-align:center;transition:transform .15s,background .15s}
.hfa-calendar .hfa-lead-action:hover,.hfa-calendar .hfa-lead-action:focus-visible{background:#f4e3be;transform:translateY(-1px)}
.hfa-calendar .hfa-lead-in-gift{margin:25px 0 0;padding:20px 12px;border-top:1px solid #ddded3;text-align:center}
.hfa-calendar .hfa-lead-in-gift h4{margin:0 0 8px;color:#244e3e;font-size:18px}
.hfa-calendar .hfa-lead-in-gift p{color:#687366;font-size:13px;line-height:1.45;margin:0 0 14px}
.hfa-calendar .hfa-lead-form-bank{display:none}
.hfa-calendar .hfa-lead-dialog{width:min(94vw,570px);max-height:90vh;overflow-y:auto;border:0;border-radius:16px;box-shadow:0 28px 85px rgba(0,0,0,.32);padding:0;background:#fffaf1;color:#263e36}
.hfa-calendar .hfa-lead-dialog::backdrop{background:rgba(10,24,23,.7)}
.hfa-calendar .hfa-lead-dialog-inner{padding:32px 30px 28px}
.hfa-calendar .hfa-lead-dialog-heading{font-size:23px;color:#244e3e;margin:4px 34px 10px 0;line-height:1.25}
.hfa-calendar .hfa-lead-dialog-description{font-size:14px;color:#687366;line-height:1.55;margin:0 0 20px}
.hfa-calendar .hfa-lead-close{position:absolute;top:10px;right:12px;border:0;background:transparent;color:#5e6b65;font-size:29px;line-height:1;padding:6px 10px;cursor:pointer}
.hfa-calendar .hfa-lead-test-note{padding:18px;color:#6c4537;background:#f2e7d3;border-radius:9px}
.hfa-calendar .hfa-lead-form-slot{min-width:0}
@media(max-width:530px){.hfa-calendar .hfa-lead-global{padding:20px 13px;margin:19px 4px 0}.hfa-calendar .hfa-lead-global h3{font-size:19px}.hfa-calendar .hfa-lead-buttons{flex-direction:column}.hfa-calendar .hfa-lead-action{width:100%}.hfa-calendar .hfa-lead-dialog-inner{padding:29px 19px 22px}}

/* Eigenes, freiwilliges Kontaktformular – unabhängig von Fluent Forms. */
.hfa-calendar .hfa-native-form { display: grid; gap: 13px; margin: 15px 0 0; }
.hfa-calendar .hfa-native-field { display: grid; gap: 6px; color: #29483f; font-size: 14px; font-weight: 650; }
.hfa-calendar .hfa-native-field input { width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #c5bea9; border-radius: 7px; background: #fff; color: #1d3d34; font: inherit; }
.hfa-calendar .hfa-native-consent, .hfa-calendar .hfa-native-option { display: flex; gap: 10px; align-items: start; font-size: 13px; line-height: 1.55; color: #2b5145; }
.hfa-calendar .hfa-native-consent input, .hfa-calendar .hfa-native-option input { margin-top: 4px; flex: none; }
.hfa-calendar .hfa-native-interests { border: 1px solid #e4d9c4; border-radius: 9px; padding: 13px; display: grid; gap: 8px; }
.hfa-calendar .hfa-native-interests legend { color: #344d42; font-weight: 700; font-size: 13px; }
.hfa-calendar .hfa-native-privacy { margin: 0 !important; font-size: 12px; }
.hfa-calendar .hfa-native-privacy a { color: #155845; text-decoration: underline; }
.hfa-calendar .hfa-native-result { margin: 0 !important; color: #1c5c48; font-size: 13px; line-height: 1.5; }
.hfa-calendar .hfa-native-form button[type=submit] { width: 100%; min-height: 43px; }
.hfa-calendar .hfa-native-form button:disabled { opacity: .65; cursor: wait; }
.hfa-contact-action-panel { max-width: 650px; margin: 40px auto; padding: 30px; border: 1px solid #cba76c; border-radius: 16px; background: #fff9ed; color: #25483c; }
.hfa-contact-action-panel h2 { color: #76283e; }
.hfa-contact-action-panel button { border: 0; border-radius: 7px; padding: 13px 18px; cursor: pointer; background: #174a3c; color: white; }

/* Optionales, bereits vor der Türchenöffnung sichtbares Partnerlogo. */
.hfa-calendar .hfa-door-brand-logo { position: relative; z-index: 3; display: block; width: auto; max-width: 74%; max-height: clamp(22px, 3.4vw, 44px); min-height: 0; margin: 9px auto 0; padding: 3px 6px; object-fit: contain; background: #fffffff0; border-radius: 5px; box-shadow: 0 2px 6px #0002; }
.hfa-calendar .hfa-door[data-has-logo="1"] .hfa-door-number { font-size: clamp(26px, 4vw, 48px); }
.hfa-calendar .hfa-door[data-has-logo="1"] .hfa-door-month { margin-top: 4px; }
@media(max-width:650px) { .hfa-calendar .hfa-door-brand-logo { max-height: 30px; max-width: 78%; margin-top: 5px; padding: 2px 4px; } .hfa-calendar .hfa-door[data-has-logo="1"] .hfa-door-number { font-size: clamp(27px, 7vw, 42px); } }

/* v0.14: Logo und Firmenname sind echte Werbeflächen – auch auf Mobilgeräten lesbar. */
.hfa-calendar .hfa-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.hfa-calendar .hfa-door[data-has-logo="1"] .hfa-door-face { justify-content:flex-start; gap:0; }
.hfa-calendar .hfa-door[data-has-logo="1"] .hfa-door-number { font-size:clamp(27px,3.4vw,49px); margin-top:9%; line-height:1; }
.hfa-calendar .hfa-door[data-has-logo="1"] .hfa-door-month { margin-top:0; font-size:9px; }
.hfa-calendar .hfa-door-brand-block { display:flex;position:relative;z-index:3;flex-direction:column;align-items:center;justify-content:center;gap:3px;box-sizing:border-box;width:calc(100% - 18px);min-height:0;flex:1;max-height:58%;margin:5px 9px 12px;padding:6px 7px;border-radius:9px;background:#fffef2;color:#193d35;box-shadow:0 3px 10px #0005; }
.hfa-calendar .hfa-door-brand-block .hfa-door-brand-logo { display:block;position:static;z-index:auto;width:100%;max-width:100%;max-height:70%;min-height:0;height:auto;flex:1;object-fit:contain;margin:0;padding:0;background:transparent;border-radius:0;box-shadow:none; }
.hfa-calendar .hfa-door-brand-name { display:-webkit-box;position:relative;z-index:4;flex:none;max-width:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;font:800 clamp(10px,1.2vw,15px)/1.17 system-ui,sans-serif;text-align:center;color:#14382e;overflow-wrap:anywhere; }
.hfa-calendar .hfa-door-brand-name[hidden] { display:none; }
@media(max-width:850px) { .hfa-calendar .hfa-grid {grid-template-columns:repeat(3,minmax(0,1fr));} .hfa-calendar .hfa-door-brand-name {font-size:clamp(10px,1.8vw,14px);} }
@media(max-width:600px) { .hfa-calendar .hfa-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;} .hfa-calendar .hfa-door-brand-block {width:calc(100% - 14px);margin:4px 7px 9px;padding:4px 5px;max-height:61%;} .hfa-calendar .hfa-door-brand-name {font-size:clamp(10px,2.9vw,13px);} .hfa-calendar .hfa-door[data-has-logo="1"] .hfa-door-number {font-size:clamp(29px,8vw,41px);margin-top:7%;} }
/* Modal zur verpflichtenden Bestätigung der Nutzungsbedingungen. */
.hfa-calendar .hfa-terms-dialog {box-sizing:border-box;width:min(93vw,690px);max-height:90vh;border:1px solid #d6b981;border-radius:15px;padding:0;box-shadow:0 25px 100px #071c1bc7;color:#1a3b32;background:#fffaf1;font-family:system-ui,sans-serif;}
.hfa-terms-dialog::backdrop {background:#081e1ace;}
.hfa-terms-inner {padding:clamp(18px,4vw,30px);}
.hfa-terms-inner h3 {margin:0 0 9px!important;font-size:clamp(21px,4vw,27px)!important;color:#633043!important;}
.hfa-calendar .hfa-terms-close {float:right;background:transparent;border:0;font-size:29px;cursor:pointer;color:#442738;}
.hfa-terms-scroll {height:min(38vh,300px);padding:15px;overflow:auto;overscroll-behavior:contain;border:1px solid #ddc9ac;border-radius:8px;background:white;white-space:normal;font-size:13px;line-height:1.55;}
.hfa-terms-scroll p {margin:0 0 10px;}
.hfa-calendar .hfa-terms-check {display:flex;align-items:flex-start;gap:10px;margin:14px 0 12px;line-height:1.5;font-weight:650;}
.hfa-calendar .hfa-terms-check input {width:18px;height:18px;flex:none;margin-top:3px;}
.hfa-calendar .hfa-terms-submit {border:0;border-radius:8px;padding:12px 20px;background:#195a46;color:#fff;font-weight:800;cursor:pointer;}
.hfa-calendar .hfa-terms-submit:disabled {opacity:.5;cursor:not-allowed;}
.hfa-calendar .hfa-legal-link {margin:15px auto 0;text-align:center;font-size:13px;}
.hfa-calendar .hfa-legal-link a {color:var(--hfa-gold,#e1ba7f)!important;text-decoration:underline;}

.hfa-calendar .hfa-raffle-public-prizes {margin:16px 0;padding:14px 17px;background:#f4eee3;border-radius:10px;border:1px solid #decca5;color:#204536;}
.hfa-calendar .hfa-raffle-public-prizes strong {display:block;margin-bottom:6px;}
.hfa-calendar .hfa-raffle-public-prizes ol {margin:5px 0 5px 22px;}
.hfa-calendar .hfa-raffle-public-prizes li {margin:4px 0;}

/* v0.15: kostenlose Downloads im geöffneten Türchen */
.hfa-download-group{margin:20px 0;padding:17px;border:1px solid rgba(127,119,100,.24);border-radius:14px;background:rgba(246,241,228,.75);color:#233d34}
.hfa-download-group h4{margin:0 0 8px;font-size:1.08rem}
.hfa-download-license{font-size:.84rem;line-height:1.45;margin:0 0 12px}
.hfa-download-entry{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid rgba(127,119,100,.16)}
.hfa-download-details{min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.hfa-download-details span{font-size:.78rem;opacity:.8}
.hfa-download-button{background:#325b4a;color:#fff!important;border:0;text-decoration:none!important;cursor:pointer;padding:10px 12px;border-radius:8px;font-weight:650;font-size:.88rem;white-space:nowrap}
.hfa-download-pending{font-size:.8rem;color:#755b31}
@media(max-width:480px){.hfa-download-entry{align-items:flex-start;flex-direction:column}.hfa-download-button{white-space:normal}}

/* v0.16 – eigener Video-Auftakt, ohne externe Player oder zusätzliche Bibliotheken. */
.hfa-video-stage{margin:18px 0 22px;display:flex;flex-direction:column;gap:12px}
.hfa-gift-video{display:block;width:100%;max-height:480px;aspect-ratio:16/9;object-fit:contain;background:#131d25;border-radius:12px}
.hfa-video-hint{font-size:13px;opacity:.78;margin:0}
.hfa-video-next{border:0;border-radius:8px;background:#925943;color:white;padding:12px 17px;align-self:flex-start;cursor:pointer;font-size:15px;font-weight:650}
.hfa-video-next:hover{filter:brightness(1.12)}
.hfa-combo-note{border-left:3px solid #b39355;padding:10px 13px;background:rgba(180,155,98,.13);line-height:1.5}
.hfa-offer-body[hidden]{display:none!important}

/* v0.17 – eigenständiges Angebot nach der Verlosung, für alle Besucher. */
.hfa-followup-offer{margin:18px 0;padding:18px;border:1px solid rgba(128,113,79,.35);border-radius:12px;background:rgba(173,149,91,.1)}.hfa-followup-offer h4{margin:7px 0 12px;font-size:1.17em}.hfa-followup-eyebrow{font-size:.83em;text-transform:uppercase;letter-spacing:.05em;font-weight:700}.hfa-followup-valid{font-size:.9em;opacity:.85}.hfa-followup-offer .hfa-coupon{margin:12px 0}.hfa-followup-offer .hfa-cta{display:inline-flex;margin-top:10px}
