/*
 * Becker Reisen – Adventskalender, Website (v6.100.4 / Komponentencode 6.103.0)
 * @copyright (C) jens-richter.com
 * @license   Proprietary
 *
 * Farben aus dem Becker-Auftritt: Braun #773E18 (dunkel #5c2e10), Gold #E2B13B, Creme #FAF8EC, Sand #E6E4D9.
 * Kontraste: Creme auf Braun 7,9 : 1 · Hellgold #F0CC6E auf Braun 5,5 : 1 · Braun auf Creme 7,9 : 1.
 * Zielgruppe 60+ und Handy: große Ziffern, große Klickflächen, drei Türchen je Zeile am Telefon.
 */
.br-adv {
  --adv-braun: var(--br-primary, #773E18);
  --adv-dunkel: var(--br-primary-dark, #5c2e10);
  --adv-gold: var(--br-gold, #E2B13B);
  --adv-creme: var(--br-warm-bg, #FAF8EC);
  --adv-sand: var(--br-surface, #E6E4D9);
  --adv-text: var(--br-text, #1f1a14);
  --adv-leise: var(--br-text-soft, #7a6a56);
  font-size: var(--br-font-base, 1.125rem);
  color: var(--adv-text);
  border-radius: var(--br-radius-lg, 16px);
  overflow: hidden;
  margin: 0 0 2rem;
}
.br-adv__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.br-adv__vorschau { margin: 0; padding: .7rem 1rem; background: var(--adv-gold); color: var(--adv-text); text-align: center; font-weight: 700; }

/* Kopf */
.br-adv__kopf { padding: 2.75rem 1.25rem 2rem; background: var(--adv-braun); color: var(--adv-creme); text-align: center; }
.br-adv__oben { margin: 0 0 .5rem; color: #F0CC6E; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; font-weight: 700; }
.br-adv__titel { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; font-weight: 800; color: var(--adv-creme) !important; }
.br-adv__lead { max-width: 60ch; margin: 0 auto; font-size: 1.15rem; line-height: 1.6; }
.br-adv__lead p { margin: 0 0 .75rem; color: var(--adv-creme); }
.br-adv__hinweis { display: inline-block; margin: 1rem 0 0; padding: .45rem 1.1rem; border: 2px solid var(--adv-gold); border-radius: 999px; font-size: 1.15rem; font-weight: 700; color: var(--adv-creme); }

/* Fläche mit goldenen Sternchen */
.br-adv__flaeche {
  padding: 2rem 1.25rem 2.75rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(226,177,59,.45) 0 1.5px, transparent 2px),
    radial-gradient(circle at 78% 42%, rgba(226,177,59,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(250,248,236,.25) 0 1px, transparent 1.5px),
    var(--adv-dunkel);
  background-size: 180px 180px, 240px 240px, 150px 150px, auto;
}
.br-adv__raster { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.br-adv__tuer { aspect-ratio: 1 / 1; position: relative; margin: 0; padding: 0; }

.br-adv__knopf, .br-adv__zu {
  position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; overflow: hidden; perspective: 600px;
  background: var(--adv-creme); color: var(--adv-braun);
  border: 2px solid rgba(226,177,59,.75);
  font: inherit; margin: 0;
}
.br-adv__zu { flex-direction: column; gap: .15rem; background: var(--adv-sand); }
.br-adv__knopf { cursor: pointer; padding: 0; transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.br-adv__knopf:hover, .br-adv__knopf:focus-visible { transform: translateY(-3px); outline: 3px solid var(--adv-gold); outline-offset: 2px; }
.br-adv__zahl { position: relative; z-index: 2; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; color: var(--adv-braun); }
.br-adv__wann { font-size: .85rem; color: var(--adv-leise); }
.br-adv__knopf { flex-direction: column; gap: .2rem; }
.br-adv__oeffnen { position: relative; z-index: 2; padding: .05rem .55rem; border-radius: 999px; background: var(--adv-braun); color: var(--adv-creme); font-size: .8rem; font-weight: 700; }
.br-adv__knopf.ist-offen .br-adv__oeffnen { display: none; }
.br-adv__tuer--gross .br-adv__knopf, .br-adv__tuer--gross .br-adv__zu { border: 4px solid var(--adv-gold); background: #fdf5e0; }

/* Klappe: geschlossen liegt sie über dem Bild; geöffnet schwingt sie zur Seite */
.br-adv__bild { position: absolute; inset: 0; background-size: cover; background-position: center; }
.br-adv__klappe { position: absolute; inset: 0; z-index: 1; background: var(--adv-creme); border-right: 2px dashed rgba(226,177,59,.7); transform-origin: left center; transition: transform .45s ease; }
.br-adv__tuer--gross .br-adv__klappe { background: #fdf5e0; }
.br-adv__knopf.ist-offen .br-adv__klappe { transform: rotateY(-78deg); box-shadow: 6px 0 12px rgba(0,0,0,.2); }
.br-adv__knopf.ist-offen .br-adv__zahl { align-self: flex-end; margin: 0 .45rem .45rem auto; padding: .1rem .5rem; font-size: 1.2rem; background: var(--adv-creme); border-radius: 6px; }

.br-adv__tuer--heute .br-adv__knopf:not(.ist-offen) { border-color: var(--adv-gold); box-shadow: 0 0 0 4px rgba(226,177,59,.45); animation: br-adv-leuchten 2.4s ease-in-out infinite; }
@keyframes br-adv-leuchten { 50% { box-shadow: 0 0 0 10px rgba(226,177,59,.15); } }
@media (prefers-reduced-motion: reduce) {
  .br-adv__tuer--heute .br-adv__knopf { animation: none; }
  .br-adv__klappe, .br-adv__knopf { transition: none; }
}

/* Inhalt eines Türchens */
.br-adv__dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 1.75rem 1.5rem 1.5rem; border: 0; border-radius: 14px; background: var(--adv-creme); color: var(--adv-text); box-shadow: 0 20px 60px rgba(0,0,0,.35); font-size: var(--br-font-base, 1.125rem); }
.br-adv__dialog::backdrop { background: rgba(40, 20, 6, .7); }
.br-adv__schliessen { position: absolute; top: .4rem; right: .4rem; margin: 0; }
.br-adv__schliessen button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 2rem; line-height: 1; color: var(--adv-leise); cursor: pointer; border-radius: 50%; }
.br-adv__schliessen button:hover, .br-adv__schliessen button:focus-visible { background: var(--adv-sand); color: var(--adv-braun); }
.br-adv__dtag { margin: 0 0 .3rem; color: var(--adv-braun); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; font-weight: 700; }
.br-adv__dtitel { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; margin: 0 2.75rem 1rem 0; color: var(--adv-braun); font-weight: 800; }
.br-adv__dbild { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: 10px; margin: 0 0 1rem; }
.br-adv__dtext { line-height: 1.65; }
.br-adv__dtext p { margin: 0 0 .8rem; }
.br-adv__audio { width: 100%; margin: .75rem 0; }
.br-adv__link { margin: 1rem 0 0; }
.br-adv__raetsel { margin: .75rem 0; padding: .9rem 1.1rem; background: var(--adv-sand); border-radius: 10px; }
.br-adv__raetsel summary { cursor: pointer; font-weight: 700; color: var(--adv-braun); min-height: 44px; display: flex; align-items: center; }
.br-adv__raetsel div { margin-top: .5rem; }
.br-adv__raetsel p { margin: 0 0 .5rem; }

/* Rabattcode */
.br-adv__code { display: flex; flex-direction: column; align-items: center; gap: .45rem; margin: 1.1rem 0 0; padding: 1.4rem 1rem; border: 3px dashed var(--adv-gold); border-radius: 12px; background: #fdf5e0; text-align: center; }
.br-adv__codelabel { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--adv-leise); font-weight: 700; }
.br-adv__codewert { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(1.6rem, 6vw, 2.1rem); letter-spacing: .08em; color: var(--adv-braun); background: none; padding: 0; font-weight: 700; word-break: break-all; }
.br-adv__codewas { font-weight: 700; }
.br-adv__codewie { color: var(--adv-leise); font-size: 1rem; }
.br-adv__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .4rem; }
.br-adv__code--vorbei .br-adv__codewert { text-decoration: line-through; opacity: .6; }

/* Karten: Reise, Termin, Gutschein verschenken */
.br-adv__karte { display: flex; gap: 1rem; align-items: center; margin: 1.1rem 0 0; padding: .9rem; border: 2px solid var(--adv-sand); border-radius: 12px; background: #fff; color: var(--adv-text) !important; text-decoration: none !important; }
.br-adv__karte:hover, .br-adv__karte:focus-visible { border-color: var(--adv-braun); }
.br-adv__kartebild { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; flex: none; }
.br-adv__kartesymbol { flex: none; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; background: #fdf5e0; border: 2px solid var(--adv-gold); border-radius: 10px; }
.br-adv__datum { flex: none; width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--adv-braun); color: var(--adv-creme); border-radius: 10px; font-weight: 700; }
.br-adv__datum strong { font-size: 1.9rem; line-height: 1; }
.br-adv__kartetext { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.br-adv__kartetext strong { font-size: 1.2rem; color: var(--adv-braun); }
.br-adv__preis { font-weight: 700; }
.br-adv__plaetze { color: var(--br-green, #2e6b3e); font-weight: 700; }
.br-adv__weiter { color: var(--adv-braun); font-weight: 800; }

/* ── v6.100.5: Wimmelbild — die Zahlen im Bild öffnen die Türchen ───────────── */
.br-adv__wimmel-rahmen { background: var(--adv-dunkel); padding: 1.25rem; }
.br-adv__wimmel { position: relative; max-width: 1100px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.br-adv__wimmelbild { display: block; width: 100%; height: auto; }
.br-adv__punkt {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  min-width: clamp(30px, 4.4vw, 52px); height: clamp(30px, 4.4vw, 52px); padding: 0 .25em; margin: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: clamp(.95rem, 2vw, 1.5rem); line-height: 1;
  color: var(--adv-creme); background: rgba(50, 25, 8, .55); border: 2px solid rgba(250,248,236,.55);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.br-adv__punkt--auf { cursor: pointer; background: rgba(119, 62, 24, .92); border: 3px solid var(--adv-gold); box-shadow: 0 0 0 3px rgba(226,177,59,.35), 0 3px 10px rgba(0,0,0,.4); -webkit-tap-highlight-color: transparent; }
.br-adv__punkt--auf:hover, .br-adv__punkt--auf:focus-visible { transform: translate(-50%, -50%) scale(1.12); outline: 3px solid var(--adv-creme); outline-offset: 2px; }
.br-adv__punkt--gross { border-color: var(--adv-gold); border-width: 3px; }
.br-adv__punkt--heute.br-adv__punkt--auf:not(.ist-offen) { animation: br-adv-punkt 2.2s ease-in-out infinite; }
@keyframes br-adv-punkt { 50% { box-shadow: 0 0 0 12px rgba(226,177,59,.25), 0 3px 10px rgba(0,0,0,.4); } }
.br-adv__punkt--auf.ist-offen { background: var(--adv-gold); color: var(--adv-text); text-shadow: none; border-color: var(--adv-creme); }
.br-adv__punkt--auf.ist-offen::after { content: "✓"; position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--adv-braun); color: var(--adv-creme); font-size: .75rem; display: flex; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .br-adv__punkt--heute { animation: none !important; } }
/* v6.100.10 (wie THK 0.65.x) — Hinweis, Stufen der Zahlen, Liste nur auf Wunsch, Prüfansicht fürs Büro */
.br-adv__suchen { margin: 0; padding: 1rem 1rem 0; background: var(--adv-dunkel); color: var(--adv-creme); text-align: center; font-weight: 700; font-size: 1.1rem; }
.br-adv__suchen-mobil { display: none; color: #F0CC6E; }
/* Stufe „dezent“: kleiner, halb durchsichtig */
.br-adv__wimmel--dezent .br-adv__punkt { min-width: clamp(24px, 3vw, 38px); height: clamp(24px, 3vw, 38px); font-size: clamp(.8rem, 1.4vw, 1.1rem);
  background: rgba(50, 25, 8, .35); border-width: 1px; box-shadow: none; opacity: .9; }
.br-adv__wimmel--dezent .br-adv__punkt:not(.br-adv__punkt--auf) { opacity: .45; }
.br-adv__wimmel--dezent .br-adv__punkt--auf { border-width: 2px; }
/* Stufe „richtig suchen“: nur die Ziffer, blass, ohne Kreis */
.br-adv__wimmel--versteckt .br-adv__punkt { min-width: 1.6em; height: 1.6em; font-size: clamp(.8rem, 1.2vw, 1rem); background: transparent; border-color: transparent;
  box-shadow: none; color: var(--adv-creme); text-shadow: 0 0 3px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.6); opacity: .8; animation: none !important; }
.br-adv__wimmel--versteckt .br-adv__punkt:not(.br-adv__punkt--auf) { opacity: .35; }
.br-adv__wimmel--versteckt .br-adv__punkt--auf.ist-offen { background: var(--adv-gold); color: var(--adv-text); text-shadow: none; opacity: 1; }
/* Prüfansicht (nur Büro-Vorschau): alle Zahlen deutlich; offene voll, geschlossene gestrichelt */
.br-adv__wimmel--pruefen .br-adv__punkt { min-width: 44px; height: 44px; font-size: 1.15rem; opacity: 1; text-shadow: none; animation: none !important;
  color: var(--adv-creme); background: rgba(119, 62, 24, .95); border: 3px solid var(--adv-gold); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.br-adv__wimmel--pruefen .br-adv__punkt:not(.br-adv__punkt--auf) { border-style: dashed; border-color: var(--adv-creme); background: rgba(50, 25, 8, .75); }
.br-adv__wimmel--pruefen .br-adv__punkt--auf.ist-offen { background: var(--adv-gold); color: var(--adv-text); }
.br-adv__vorschau-knopf { margin-left: .8rem; padding: .25rem .9rem; border: 2px solid var(--adv-text); border-radius: 999px; background: var(--adv-creme); color: var(--adv-text); font: inherit; font-size: .9rem; cursor: pointer; }
/* „Alle Türchen als Liste“ (nur wenn eingeschaltet) */
.br-adv__liste > summary { cursor: pointer; text-align: center; font-weight: 800; font-size: 1.15rem; color: #F0CC6E; padding: .6rem; list-style-position: inside; }
.br-adv__liste[open] > summary { margin-bottom: 1rem; }
/* Handy: Bild doppelt so breit, seitlich verschiebbar; Raster darunter */
@media (max-width: 700px) {
  .br-adv__wimmel-rahmen { padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: none; -webkit-overflow-scrolling: touch; }
  .br-adv__wimmel { width: 200%; max-width: none; border-radius: 0; box-shadow: none; }
  .br-adv__punkt { min-width: 40px; height: 40px; font-size: 1.15rem; }
  .br-adv__suchen-mobil { display: inline; }
}

@media (max-width: 900px) { .br-adv__raster { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) {
  .br-adv { border-radius: 0; margin-left: calc(-1 * var(--br-page-gutter, 0px)); margin-right: calc(-1 * var(--br-page-gutter, 0px)); }
  .br-adv__raster { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .br-adv__flaeche { padding: 1.25rem .9rem 2rem; }
  .br-adv__kopf { padding: 2rem 1rem 1.5rem; }
  .br-adv__dialog { padding: 1.5rem 1.1rem 1.25rem; }
  .br-adv__karte { flex-direction: column; align-items: flex-start; }
  .br-adv__kartebild { width: 100%; height: 160px; }
}
