/* ══ Zweig „Quellreyche" (bieristkultur.de) ═══════════════════════════
   Ergänzt main.css, ändert sie nicht. Farben und Abstände aus den
   UHU-CMS-Variablen, damit die Seite wie jede Reychsseite aussieht.
   REYCHS-INDIVIDUELLE FASSUNG – BEI FLOTTEN-UPDATES NICHT ÜBERSCHREIBEN */

/* Heldenbild: Figur und Uhu stehen rechts, Text links */
.quell-hero .hero-bg { background-position: 70% center; }
.quell-hero .hero-text h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: .01em; }
.quell-hero-unterzeile {
  color: var(--gold-light); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-size: clamp(.8rem, 1.6vw, 1rem); margin: .25rem 0 1rem;
}
@media (max-width: 700px) { .quell-hero .hero-bg { background-position: 78% center; } }

/* Karten */
.quell-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.quell-karte {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem; border-radius: 12px;
  background: #fff; border: 1px solid #e3e7f0; box-shadow: 0 2px 8px rgba(26,46,90,.06);
  color: var(--blue-dark); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.quell-karte:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,46,90,.12); border-color: var(--gold); color: var(--blue-dark); }
.quell-karte-name { font-weight: 700; font-size: 1.08rem; }
.quell-karte-ort { font-size: .88rem; color: #5a6480; }
.quell-karte-bier { font-size: .88rem; color: #3b4460; }
.quell-karte-text { font-size: .9rem; color: #3b4460; line-height: 1.5; }
.quell-karte-termin { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--gold-dark); }
.quell-karte-mehr { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--blue-light); }

.quell-nr {
  align-self: flex-start; display: inline-block; min-width: 2.4rem; text-align: center;
  padding: .15rem .55rem; border-radius: 999px; background: var(--blue-dark); color: var(--gold);
  font-weight: 700; font-size: .8rem; letter-spacing: .05em;
}
.quell-nr-gross { background: rgba(232,184,75,.18); border: 1px solid rgba(232,184,75,.6); font-size: .9rem; margin-bottom: .6rem; }
.quell-nr-klein { display: inline-block; min-width: 2rem; text-align: center; font-size: .72rem; font-weight: 700;
  color: var(--blue-dark); background: rgba(232,184,75,.35); border-radius: 999px; padding: .05rem .4rem; }

/* Breite Inhaltsseiten */
.page-content.quell-breit { max-width: 1100px; }
.page-content.quell-artikel, .page-content.quell-seite { max-width: 820px; }
.quell-artikel .lead, .quell-breit .lead, .quell-seite .lead { font-size: 1.12rem; color: #2e3650; }
.quell-artikel table, .quell-seite table, .quell-tabelle { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .93rem; }
.quell-artikel th, .quell-artikel td, .quell-seite th, .quell-seite td, .quell-tabelle th, .quell-tabelle td {
  text-align: left; padding: .55rem .7rem; border-bottom: 1px solid #e3e7f0; vertical-align: top; }
.quell-artikel thead th, .quell-seite thead th, .quell-tabelle thead th { background: var(--blue-dark); color: #fff; font-weight: 600; }
@media (max-width: 640px) {
  .quell-artikel table, .quell-seite table { display: block; overflow-x: auto; }
}

/* Kasten „Das Quell in Schlaraffia" */
.quell-kasten {
  margin: 2.5rem 0 1.5rem; padding: 1.3rem 1.5rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); color: #fff;
}
.quell-kasten h2 { color: var(--gold); font-size: 1.15rem; margin: 0 0 .5rem; }
.quell-kasten p { color: rgba(255,255,255,.9); margin: 0 0 .5rem; }
.quell-kasten a { color: var(--gold-light); font-weight: 600; }

/* Brauweg */
.brauweg ol { list-style: none; counter-reset: bw; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: .45rem; padding: 0; margin: 1.5rem 0 2rem; }
.brauweg li { counter-increment: bw; background: #f6f3ea; border-radius: 10px; padding: .7rem .6rem; text-align: center; }
.brauweg li::before { content: counter(bw); display: block; font-weight: 800; color: var(--gold-dark); font-size: 1.2rem; }
.brauweg strong { display: block; color: var(--blue-dark); }
.brauweg span { font-size: .8rem; color: #5a6480; }

/* Glossar */
dl.glossar { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .45rem 1rem; }
dl.glossar dt { font-weight: 700; color: var(--blue-dark); }
dl.glossar dd { margin: 0; }
@media (max-width: 600px) { dl.glossar { grid-template-columns: 1fr; } dl.glossar dd { margin-bottom: .6rem; } }

/* Blättern */
.quell-blaettern { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid #e3e7f0; font-size: .92rem; }

/* Termine */
.quell-monat { margin: 2rem 0 .75rem; font-size: 1.2rem; }
.quell-terminliste { display: flex; flex-direction: column; gap: .7rem; margin: 1rem 0 1.5rem; }
.quell-terminzeile {
  display: flex; gap: 1rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 10px;
  background: #fff; border: 1px solid #e3e7f0; text-decoration: none; color: var(--blue-dark);
}
.quell-terminzeile:hover { border-color: var(--gold); color: var(--blue-dark); }
.quell-kalender { flex-shrink: 0; min-width: 54px; text-align: center; background: var(--gold); color: var(--blue-dark); border-radius: 8px; padding: .35rem .5rem; font-weight: 800; line-height: 1.1; }
.quell-kalender .tag { display: block; font-size: 1.35rem; }
.quell-kalender .mon { display: block; font-size: .68rem; text-transform: uppercase; }
.quell-terminzeile-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.quell-terminzeile-ort { font-size: .82rem; font-weight: 600; color: #5a6480; }
.quell-terminzeile-thema { font-weight: 700; }
.quell-terminzeile-unter { font-size: .88rem; color: #3b4460; }
.quell-terminzeile-zeit { font-size: .82rem; color: var(--gold-dark); font-weight: 600; }
.quell-hinweis { font-size: .85rem; color: #5a6480; }

/* Reychsseite */
.quell-reych-hero p { margin-top: .3rem; }
.quell-reych-raster { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .quell-reych-raster { grid-template-columns: 1fr; } }
.page-content.quell-reych { max-width: 1100px; }
.quell-abschnitt { margin-bottom: 2rem; }
.quell-quellen { font-size: .82rem; color: #5a6480; }
.quell-steckbrief { position: sticky; top: 1rem; background: #f6f3ea; border-radius: 12px; padding: 1.2rem 1.3rem; border: 1px solid #eadfbf; }
.quell-steckbrief h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.quell-steckbrief dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: .35rem .7rem; font-size: .9rem; margin: 0 0 1rem; }
.quell-steckbrief dt { font-weight: 700; color: var(--blue-dark); }
.quell-steckbrief dd { margin: 0; }
.btn-block { display: block; width: 100%; text-align: center; }
.quell-termin { border-left: 4px solid var(--gold); padding: .4rem 0 .4rem 1rem; margin: .8rem 0; }
.quell-termin-datum { font-weight: 700; color: var(--gold-dark); }
.quell-termin-thema { font-weight: 700; font-size: 1.05rem; }
.quell-termin-unter { color: #3b4460; font-size: .93rem; }

/* Startseite */
.quell-einstieg { text-decoration: none; color: inherit; }
.quell-einstieg h2 { font-size: 1.15rem; margin: .4rem 0; }
.quell-einstieg:hover { border-color: var(--gold); }
.quell-reychgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; margin: 1.2rem 0; }
.quell-reychgitter a { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; padding: .55rem .7rem; border-radius: 8px; background: #fff; border: 1px solid #e3e7f0; color: var(--blue-dark); text-decoration: none; font-size: .9rem; }
.quell-reychgitter a span:last-child { color: #5a6480; font-size: .82rem; }
.quell-reychgitter a:hover { border-color: var(--gold); }

/* Formular */
.quell-formular { background: #f8f9fc; border: 1px solid #e3e7f0; border-radius: 12px; padding: 1.3rem; margin: 1rem 0 2rem; }
.quell-formular .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .quell-formular .form-row { grid-template-columns: 1fr; } }
.quell-formular .form-group { margin-bottom: .9rem; }
.quell-formular label { display: block; font-weight: 600; margin-bottom: .3rem; }
.quell-formular input, .quell-formular select, .quell-formular textarea { width: 100%; padding: .6rem .7rem; border: 1px solid #cfd5e3; border-radius: 8px; font: inherit; }
.quell-formular .form-check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .88rem; margin: .5rem 0 1rem; }
.quell-formular .form-check input { width: auto; margin-top: .25rem; }

/* Tafel-Menü: Quellreyche mit Nummer, Stadt und Reychsname */
.mega-grid > a .nav-qr-nr { display: inline-block; min-width: 2.1rem; font-size: .72rem; font-weight: 700; color: var(--gold); }
.mega-grid > a .nav-qr-name { font-size: .78rem; color: rgba(255,255,255,.65); margin-left: .15rem; }

.quell-steckbrief .btn-outline { color: var(--blue-dark); border-color: var(--blue-dark); background: transparent; }
.quell-steckbrief .btn-outline:hover { background: var(--blue-dark); color: #fff; }
.quell-reychgitter a { flex-direction: column; align-items: flex-start; gap: .1rem; }
.quell-reychgitter a .quell-nr-klein { margin-bottom: .2rem; }
.quell-karte-wissen, .quell-breit .quell-karte { height: 100%; }
.quell-terminzeile-kurz { font-size: .9rem; color: #3b4460; line-height: 1.45; margin-top: .15rem; }
.quell-termin-lang { margin-top: .6rem; color: #2e3650; }
.quell-termin-lang p { margin: 0 0 .7rem; }
.quell-querverweise { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 2rem 0 0; padding: 1.3rem 1.5rem; background: #f8f9fc; border: 1px solid #e3e7f0; border-radius: 12px; }
.quell-querverweise h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.quell-querverweise ul { margin: 0; padding-left: 1.1rem; }
.quell-querverweise li { margin: .25rem 0; }

/* ─── Titel- und Kartenbilder ─────────────────────────── */
.page-hero:has(+ .quell-titelbild) { padding-bottom: 7.5rem; }
.quell-titelbild { max-width: 1100px; margin: -6rem auto 0; padding: 0 1.25rem; position: relative; z-index: 1; }
.quell-titelbild picture, .quell-titelbild img { display: block; width: 100%; height: auto; }
.quell-titelbild img { aspect-ratio: 1672 / 941; object-fit: cover; border-radius: 14px; border: 3px solid #fff;
  outline: 1px solid rgba(232,184,75,.55); box-shadow: 0 18px 40px rgba(16,28,58,.28), 0 4px 10px rgba(16,28,58,.12); background: #1a2e5a; }
.quell-titelbild + .page-content { padding-top: 2.5rem; }
.quell-karte:has(.quell-karte-bild) { padding-top: 0; overflow: hidden; }
.quell-karte-bild { display: block; margin: 0 -1.2rem .6rem; aspect-ratio: 16 / 9; overflow: hidden; background: #1a2e5a; }
.quell-karte-bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.quell-karte:hover .quell-karte-bild img { transform: scale(1.04); }
.quell-karte:has(.quell-karte-bild) .quell-nr { margin-top: -1.9rem; position: relative; z-index: 1; box-shadow: 0 0 0 3px #fff; }
@media (max-width: 700px) {
  .page-hero:has(+ .quell-titelbild) { padding-bottom: 4.5rem; }
  .quell-titelbild { margin-top: -3.5rem; padding: 0 .75rem; }
  .quell-titelbild img { border-radius: 10px; border-width: 2px; }
}
@media (prefers-reduced-motion: reduce) { .quell-karte-bild img { transition: none; } .quell-karte:hover .quell-karte-bild img { transform: none; } }

/* Terminzeilen mit Reychsbild, Quellsippungs-Detailseite */
.quell-terminzeile { align-items: center; }
.quell-terminzeile-text { flex: 1 1 auto; }
.quell-terminbild { order: 3; flex: 0 0 150px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #1a2e5a; align-self: center; }
.quell-terminbild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.quell-terminzeile:hover .quell-terminbild img { transform: scale(1.05); }
@media (max-width: 640px) { .quell-terminbild { flex-basis: 92px; } }
@media (max-width: 420px) { .quell-terminbild { display: none; } }
.quell-termin-mehr { margin: .2rem 0 0; font-weight: 600; }
.quell-vorbei { padding: .7rem 1rem; border-radius: 8px; background: #fff6e0; border: 1px solid #f0d58f; }
.page-quellsippung .quell-termin-lang { margin-top: 0; }

/* Startseite: Abdunklung nur hinter dem Textblock (20 px rundum), Heldenbild bleibt frei sichtbar */
.quell-hero .hero-bg::after { display: none; }
.quell-hero .hero-text {
  justify-self: start; width: fit-content; max-width: 640px; padding: 20px; border-radius: 16px;
  background: rgba(13, 22, 50, .72); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.quell-hero .hero-text h1 { margin-bottom: .5rem; }
.quell-hero .hero-lead { margin-bottom: 1.25rem; }
@media (max-width: 700px) { .quell-hero .hero-text { width: auto; max-width: none; } }
