/* =============================================================================
   Mini Cafe · Fassung 2 · MiniClub (Konto) – nur eigene Bausteine dieser Seite.
   Nur Rollen-Variablen aus basis.css. Bausteine: .mitglied (Karte mit QR, Stempelkarte, Punkte),
   .k-block, .bel (Belohnung), .k-extra, .best (Bestellung), .gutschein (Papierkarte mit Stanzrand).
   ============================================================================= */

/* Kopf-Zeilen mit Abzeichen: am Handy untereinander, am Computer nebeneinander */
html[data-look] .abschnitt-kopf:has(> .abzeichen) { flex-direction: column; align-items: flex-start; gap: 12px; }
@media (min-width: 1024px) {
  html[data-look] .abschnitt-kopf:has(> .abzeichen) { flex-direction: row; align-items: flex-end; gap: 24px; }
}
.k-nav { margin-top: var(--a-6); }
.k-beispiel { align-self: flex-start; }
.k-spalten { margin-top: 20px; }
@media (min-width: 1024px) { .k-spalten { margin-top: 40px; } }

/* ---------- Mitgliedskarte (QR + Stempelkarte + Punkte) -------------------- */
.mitglied {
  --logo-farbe: var(--auf-haupt);
  --qr-grund: var(--flaeche); --qr-punkt: var(--text);
  position: relative; display: grid; gap: 28px; padding: 26px 24px 24px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "kopf" "links" "rechts";
  border-radius: var(--rund-gross); background: var(--haupt); color: var(--auf-haupt);
}
html[data-look="dunkel"] .mitglied {
  --logo-farbe: var(--text); --qr-grund: var(--text); --qr-punkt: var(--auf-haupt);
  background: var(--flaeche-tief); color: var(--text);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 50%, transparent);
}
.mitglied-kopf { grid-area: kopf; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mitglied-logo { width: 150px; }
.mitglied-art { font: var(--gewicht-chip) 14px/1 var(--schrift); opacity: .82; }
.mitglied-links { grid-area: links; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info punkte" "fort fort"; align-content: start; }
.mitglied-info { grid-area: info; align-self: end; min-width: 0; }
.mitglied-name { font: var(--gewicht-titel) 34px/1.05 var(--schrift-titel); letter-spacing: var(--sperrung-titel); overflow-wrap: anywhere; }
.mitglied-nr { white-space: nowrap; margin-top: 6px; font-size: 14px; opacity: .82; font-variant-numeric: tabular-nums; }
.mitglied-punkte { grid-area: punkte; align-self: end; display: flex; align-items: baseline; gap: 8px; }
.mitglied-zahl { font: var(--gewicht-titel) 76px/.9 var(--schrift-titel); letter-spacing: -0.03em; color: var(--akzent); font-variant-numeric: tabular-nums; }
.mitglied-einheit { font-size: 16px; font-weight: var(--gewicht-stark); }
.mitglied-fort { grid-area: fort; }
.fort-spur { height: 14px; border-radius: var(--rund-pille); background: color-mix(in srgb, currentColor 24%, transparent); overflow: hidden; }
.fort-fuellung { display: block; height: 100%; border-radius: var(--rund-pille); background: var(--akzent); transition: width 600ms ease; }
.fort-skala { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.fort-ziel { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--gewicht-stark); }
.fort-ziel .symbol { width: 18px; height: 18px; }
.fort-satz { margin-top: 10px; font-size: 17px; }

.mitglied-rechts { grid-area: rechts; display: grid; gap: 18px; align-content: start; }
.mitglied-qr { justify-self: center; width: min(100%, 236px); text-align: center; }
.qr-tafel { width: min(100%, 160px); margin-inline: auto; padding: 6px; border-radius: 20px; background: var(--qr-grund); color: var(--qr-punkt); }
.qr-tafel [data-qr] { display: block; }
.qr-tafel svg { display: block; width: 100%; height: auto; }
.qr-text { margin: 12px auto 0; max-width: 17em; font: var(--gewicht-stark) 16px/1.35 var(--schrift); }

/* Stempelkarte: direkt unter dem QR, derselbe Code */
.stempel { display: grid; gap: 14px; padding: 18px 16px 16px; border-radius: var(--rund-karte); background: color-mix(in srgb, currentColor 11%, transparent); }
.stempel-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stempel-kopf h3 { font: var(--gewicht-name) 18px/1.2 var(--schrift); }
.stempel-zahl { font: var(--gewicht-stark) 16px/1.2 var(--schrift); font-variant-numeric: tabular-nums; }
.stempel-feld { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stempel-loch { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 40%, transparent); }
.stempel-abdruck { position: absolute; inset: 0; border-radius: 50%; background: var(--akzent); opacity: 0; transform: rotate(var(--dreh, 0deg)) scale(.6); }
.stempel-abdruck::after { content: ""; position: absolute; inset: 20%; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--auf-akzent) 60%, transparent); }
.stempel-loch.ist .stempel-abdruck { opacity: 1; transform: rotate(var(--dreh, 0deg)); }
.stempel-preis { position: relative; display: grid; place-items: center; width: 100%; height: 100%; color: color-mix(in srgb, currentColor 75%, transparent); }
.stempel-preis .symbol { width: 46%; height: 46%; }
.stempel-loch.ist .stempel-preis { color: var(--auf-akzent); }
.stempel-satz { font-size: 15.5px; line-height: 1.4; }
.stempel-klaeren { justify-self: start; }
/* neue Stempel drücken sich ruhig ein; bei „weniger Bewegung“ (und auf Fotos) fehlt die Klasse html.bewegung */
html.bewegung .stempel-loch.neu .stempel-abdruck { animation: stempel-druck 560ms cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) both; }
html.bewegung .stempel-loch.neu::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: stempel-ring 800ms ease-out var(--d, 0ms) both; }
@keyframes stempel-druck {
  0% { opacity: 0; transform: rotate(var(--dreh, 0deg)) scale(1.4); }
  55% { opacity: 1; transform: rotate(var(--dreh, 0deg)) scale(.94); }
  100% { opacity: 1; transform: rotate(var(--dreh, 0deg)) scale(1); }
}
@keyframes stempel-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--akzent) 70%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

@media (min-width: 1024px) {
  .mitglied {
    padding: 36px; gap: 32px 44px; grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: "kopf kopf" "links rechts"; align-content: start;
  }
  .mitglied-logo { width: 190px; }
  .mitglied-links { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "punkte" "fort"; grid-template-rows: auto 1fr auto; gap: 22px; }
  .mitglied-name { font-size: 44px; }
  .mitglied-punkte { align-self: start; }
  .mitglied-zahl { font-size: 120px; }
  .mitglied-einheit { font-size: 18px; }
  .mitglied-qr { width: 100%; }
  .stempel { padding: 20px 20px 18px; }
}


/* ---------- Blöcke rechts (Regel, Wallet) --------------------------------- */
.k-block { display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: var(--rund-karte); background: var(--flaeche); }
.k-block-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.k-regel { font: var(--gewicht-titel) 22px/1.2 var(--schrift-titel); letter-spacing: var(--sperrung-klein); }
.k-schritte { counter-reset: schritt; display: grid; gap: 12px; }
.k-schritte li { counter-increment: schritt; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.k-schritte li::before {
  content: counter(schritt); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--flaeche-tief); font: var(--gewicht-stark) 15px/1 var(--schrift); font-variant-numeric: tabular-nums;
}
.k-schritte--gross li { align-items: center; font-size: var(--gr-text); }
.k-wallet .knopf { font-size: 16px; gap: 10px; padding: 0 20px; }
.k-wallet .symbol { width: 22px; height: 22px; }
.k-wallet .knopf .trenner { height: 18px; }

/* ---------- Belohnungen --------------------------------------------------- */
.k-belohnungen { display: grid; gap: 10px; margin-top: 20px; }
.bel { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: var(--rund-karte); background: var(--flaeche); }
.bel-bild { width: 84px; height: 84px; border-radius: var(--rund-foto); overflow: hidden; background: var(--flaeche-tief); }
.bel-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bel-punkte { font: var(--gewicht-stark) 15px/1 var(--schrift); color: var(--text-neben); }
.bel-name { margin-top: 5px; font: var(--gewicht-name) 19px/1.2 var(--schrift); letter-spacing: -0.01em; }
.bel-spur { height: 8px; margin-top: 12px; border-radius: var(--rund-pille); background: var(--flaeche-tief); overflow: hidden; }
.bel-spur span { display: block; height: 100%; border-radius: var(--rund-pille); background: var(--haupt); transition: width 600ms ease; }
.bel-status { margin-top: 8px; font-size: 14.5px; color: var(--text-neben); }
@media (min-width: 1024px) {
  .k-belohnungen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
  .bel { grid-template-columns: 1fr; gap: 18px; padding: 14px 14px 26px; justify-items: start; }
  .bel-text { padding-inline: 14px; }
  .bel-bild { width: 100%; height: 190px; }
  .bel-text { width: 100%; }
  .bel-name { font-size: 22px; }
}

/* ---------- Extras -------------------------------------------------------- */
.k-extras { display: grid; gap: 12px; margin-top: 20px; align-items: start; }
.k-extra { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 24px; border-radius: var(--rund-karte); background: var(--flaeche); }
.k-extra p { max-width: 36em; }
.k-extra-symbol { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--flaeche-tief); }
.k-extra-symbol .symbol { width: 26px; height: 26px; }
.k-formular { display: grid; gap: 14px; width: 100%; margin-top: 6px; }
.k-formular .knopf { justify-self: start; }
.k-formular .feld-eingabe { max-width: 380px; }
#geburtstag .feld-eingabe { max-width: 240px; }
.k-formular .haekchen { padding: 4px 0; }
@media (min-width: 1024px) {
  .k-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
  .k-extra { padding: 36px; }
}

/* ---------- Letzte Bestellungen ------------------------------------------ */
.k-bestellungen { display: grid; gap: 12px; margin-top: 20px; }
.best { display: grid; gap: 8px; padding: 18px 20px 18px; border-radius: var(--rund-karte); background: var(--flaeche); }
.best-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.best-datum { font: var(--gewicht-stark) 17px/1.2 var(--schrift); }
.best-summe { font: var(--gewicht-preis) 17px/1.2 var(--schrift); }
.best-text { font-size: 15.5px; line-height: 1.45; color: var(--text-neben); }
.best-punkte { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--text-neben); }
.best-punkte .symbol { width: 20px; height: 20px; }
.best-aktion { display: grid; gap: 8px; justify-items: start; margin-top: 6px; }
.best-aktion .knopf { min-height: 52px; padding: 0 22px; font-size: 16px; gap: 10px; }
.best-aktion .knopf .symbol { width: 20px; height: 20px; }
.k-status { display: flex; align-items: flex-start; gap: 8px; font: 600 15px/1.4 var(--schrift); }
.k-status:empty { display: none; }
.k-status .symbol { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--link); }
@media (min-width: 1024px) {
  .k-bestellungen { margin-top: 32px; gap: 14px; }
  .best { grid-template-columns: 190px minmax(0, 1fr) 150px 230px; align-items: center; gap: 28px; padding: 24px 32px; }
  .best-kopf { display: block; }
  .best-summe { margin-top: 4px; color: var(--text-neben); }
  .best-aktion { margin: 0; justify-items: end; text-align: right; }
}

/* ---------- Gutschein: Papierkarte mit Goldlinie und Stanzrand -------------- */
.k-gutschein { margin-top: 20px; }
.k-betrag { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.k-betrag legend { padding: 0; margin-bottom: 10px; }
.k-eigen .feld-eingabe { max-width: 240px; }
.k-vorschau { order: -1; display: grid; gap: 22px; align-content: start; }
.gutschein-rahmen { filter: drop-shadow(0 14px 18px rgba(14, 40, 30, .20)) drop-shadow(0 2px 3px rgba(14, 40, 30, .12)); }
html[data-look="dunkel"] .gutschein-rahmen { filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45)); }
.gutschein {
  --g-papier: var(--flaeche); --g-tinte: var(--haupt); --g-linie: var(--akzent);
  --g-leise: color-mix(in srgb, var(--g-tinte) 68%, transparent);
  --g-feder: color-mix(in srgb, var(--g-tinte) 34%, transparent);
  --abriss: 58px; --kerbe: 10px;
  --logo-farbe: var(--g-tinte);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--abriss);
  min-height: 262px; border-radius: 22px; color: var(--g-tinte);
  /* Papierton + ganz feine Körnung */
  background: var(--g-papier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .26 0 0 0 0 .18 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  /* Stanzrand: oben und unten je ein Halbkreis an der Abrisslinie */
  -webkit-mask: radial-gradient(circle var(--kerbe) at calc(100% - var(--abriss)) 0, #0000 calc(var(--kerbe) - .5px), #000 var(--kerbe)) top / 100% 51% no-repeat,
                radial-gradient(circle var(--kerbe) at calc(100% - var(--abriss)) 100%, #0000 calc(var(--kerbe) - .5px), #000 var(--kerbe)) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--kerbe) at calc(100% - var(--abriss)) 0, #0000 calc(var(--kerbe) - .5px), #000 var(--kerbe)) top / 100% 51% no-repeat,
                radial-gradient(circle var(--kerbe) at calc(100% - var(--abriss)) 100%, #0000 calc(var(--kerbe) - .5px), #000 var(--kerbe)) bottom / 100% 51% no-repeat;
}
html[data-look="dunkel"] .gutschein { --g-papier: var(--text); --g-tinte: var(--grund); }
.gs-haupt, .gs-abriss { position: relative; }
/* feine Goldlinie als Rahmen innen (zwei Teile, damit der Stanzrand sie nicht schneidet) */
.gs-haupt::before, .gs-abriss::before { content: ""; position: absolute; top: 12px; bottom: 12px; border: 1.5px solid var(--g-linie); pointer-events: none; }
.gs-haupt::before { left: 12px; right: 12px; border-radius: 14px; }
.gs-abriss::before { left: 0; right: 12px; border-left: 0; border-radius: 0 14px 14px 0; }
.gs-haupt { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo art" "betrag betrag" "namen namen" "text text"; align-content: space-between; gap: 6px 12px; padding: 28px 28px 26px 30px; min-width: 0; }
.gs-logo { grid-area: logo; width: 118px; }
.gs-art { grid-area: art; justify-self: end; align-self: center; font: var(--gewicht-stark) 15px/1 var(--schrift); color: var(--g-leise); }
.gs-betrag { grid-area: betrag; align-self: center; margin: 14px 0 10px; font: var(--gewicht-titel) 76px/1 var(--schrift-titel); letter-spacing: -0.03em; color: var(--g-tinte); font-variant-numeric: tabular-nums; }
.gs-namen { grid-area: namen; display: grid; gap: 10px; }
.gs-zeile { display: flex; align-items: baseline; gap: 12px; }
.gs-label { flex: none; min-width: 2.2em; font-size: 15px; color: var(--g-leise); }
.gs-wert { flex: 1; min-width: 0; min-height: 1.5em; padding-bottom: 2px; border-bottom: 1px solid var(--g-feder); font: var(--gewicht-stark) 19px/1.3 var(--schrift); overflow-wrap: anywhere; }
.gs-text { grid-area: text; margin-top: 4px; font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs-text:empty { display: none; }
.gs-abriss { display: grid; place-items: center; }
.gs-abriss::after { content: ""; position: absolute; left: 0; top: calc(var(--kerbe) + 6px); bottom: calc(var(--kerbe) + 6px); border-left: 2px dotted var(--g-feder); }
.gs-abriss-text { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font: var(--gewicht-stark) 13.5px/1 var(--schrift); letter-spacing: .05em; color: var(--g-leise); }
@media (min-width: 1024px) {
  .k-gutschein { margin-top: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .k-vorschau { order: 0; position: sticky; top: calc(var(--kopf-klebt) + 24px); }
  .gutschein { --abriss: 76px; --kerbe: 12px; min-height: 330px; border-radius: 26px; }
  .gs-haupt { padding: 38px 40px 34px 42px; }
  .gs-logo { width: 150px; }
  .gs-art { font-size: 17px; }
  .gs-betrag { font-size: 112px; margin: 18px 0 14px; }
  .gs-wert { font-size: 21px; }
  .gs-label { font-size: 16px; }
  .gs-text { font-size: 17px; }
  .gs-abriss-text { font-size: 15px; }
}
@media (max-width: 380px) { .mitglied-zahl { font-size: 64px; } .gs-betrag { font-size: 60px; } .gs-logo { width: 100px; } }


/* ---------- Online-Stempelkarte (Stufe 1, Testmodus) ------------------------ */
.g-zustand { margin-top: 20px; }
.g-form { max-width: 520px; }
.g-form .feld-eingabe { max-width: none; }
.g-form .knopf { justify-self: stretch; }
.g-test {
  margin-top: 18px; display: grid; gap: 12px; max-width: 520px; padding: 18px; border-radius: var(--rund-karte);
  background: var(--flaeche); box-shadow: inset 0 0 0 3px var(--klaeren);
}
.g-test-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: var(--gewicht-stark) 17px/1.3 var(--schrift); }
.g-test-marke { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--rund-pille); background: var(--klaeren); color: var(--auf-klaeren); font: 800 15px/1 var(--schrift); letter-spacing: .08em; }
.g-test-marke--klein { height: 22px; padding: 0 8px; font-size: 12px; }
.g-link-text { font-size: 13px; line-height: 1.35; color: var(--text-neben); overflow-wrap: anywhere; word-break: break-all; }

.g-karte { grid-template-areas: "kopf" "name" "qr" "stempel"; gap: 22px; }
.g-name-block { grid-area: name; min-width: 0; }
.g-testkarte { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; opacity: .85; }
.g-qr-block { grid-area: qr; display: grid; gap: 12px; justify-items: center; }
.g-karte .mitglied-qr { width: min(100%, 280px); }
.g-karte .g-stempel { grid-area: stempel; }
.g-qr-block [hidden] { display: none !important; }
.g-code-label { margin-top: 14px; font-size: 14px; opacity: .85; }
.g-code { margin-top: 2px; font: 700 clamp(17px, 5.4vw, 22px)/1.25 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.g-karte .qr-text { margin-top: 10px; }
.qr-tafel.g-aus { opacity: .25; filter: grayscale(1); }
.g-gesperrt { padding: 12px 14px; border-radius: var(--rund-karte); background: var(--klaeren); color: var(--auf-klaeren); font: 600 15.5px/1.4 var(--schrift); text-align: left; }
.g-praemie { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--rund-karte); background: var(--akzent); color: var(--auf-akzent); font: 600 16px/1.35 var(--schrift); }
.g-praemie .symbol { flex: none; width: 26px; height: 26px; }
.g-unten { margin-top: 18px; gap: 14px; }
.g-hilfe summary { cursor: pointer; font: var(--gewicht-name) 17px/1.3 var(--schrift); min-height: 44px; display: flex; align-items: center; }
.g-hilfe[open] summary { margin-bottom: 8px; }
.g-hilfe p + p { margin-top: 8px; }
.g-abmelden { justify-self: start; }
.g-karten-wrap { max-width: 640px; }
@media (min-width: 1024px) {
  .g-karte { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "kopf kopf" "name qr" "stempel qr"; align-content: start; }
  .g-karten-wrap { max-width: 980px; }
}

/* sichtbar markierte Platzhalter/Hinweise (eigener Name, weil paket.css die Klassen abzeichen--klaeren/--platzhalter auf der Paket-Seite ausblendet) */
.g-marke { background: var(--klaeren); color: var(--auf-klaeren); font-weight: 600; font-size: 13px; height: auto; min-height: 26px; padding: 4px 11px 4px 8px; line-height: 1.3; }
.stempel .g-marke { display: inline-flex; align-items: flex-start; }
.g-hilfe summary { list-style: none; }
.g-hilfe summary::-webkit-details-marker { display: none; }
.g-hilfe summary::after { content: "+"; margin-left: auto; font-size: 24px; line-height: 1; }
.g-hilfe[open] summary::after { content: "−"; }

/* Reparatur 06.11.: bei mehrzeiligem Regel-Band wurde das Fragezeichen-Symbol zusammengedrückt und überdeckte den Textanfang */
.g-marke > [data-symbol] { flex: none; display: inline-flex; margin-top: 1px; }
.g-marke > [data-symbol] .symbol { flex: none; width: 15px; height: 15px; }
.g-marke { white-space: normal; }


/* =============================================================================
   MiniClub im Stil der Seite (Etappe B5, 07.11.2026): Bilderband mit echten Fotos + hervorgehobener Startbildschirm-Kasten
   ============================================================================= */
/* ---------- Bilderband unter dem Seitenkopf (wie das Catering-Band der Startseite) ---------- */
.k-band {
  list-style: none; display: flex; gap: 10px; height: 150px; margin: var(--a-5) 0 0; padding: 0 var(--rand);
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--rand); scrollbar-width: none; overscroll-behavior-x: contain;
}
.k-band::-webkit-scrollbar { display: none; }
.k-band-bild { flex: 0 0 auto; height: 100%; aspect-ratio: var(--seiten, .8); border-radius: var(--rund-foto); overflow: hidden; background: var(--flaeche-tief); scroll-snap-align: start; }
.k-band-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .k-band { height: 240px; margin-top: var(--a-8); overflow: visible; gap: 14px; }
  .k-band-bild { flex: var(--seiten, .8) 1 0; min-width: 0; aspect-ratio: auto; }
}

/* ---------- Startbildschirm-Kasten: ruhig, aber klar das Wichtigste dieser Seite (W22) ---------- */
.k-start {
  display: grid; gap: 22px; padding: 24px 20px 22px; border-radius: var(--rund-gross); background: var(--flaeche);
  box-shadow: inset 0 0 0 3px var(--akzent);
}
.k-start-kopf { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; }
.k-start-bild { display: block; width: 64px; padding: 6px; border-radius: 16px; background: var(--haupt); color: var(--auf-haupt); }
.k-start-bild svg { display: block; width: 100%; height: auto; }
.k-start-bild .ph-rahmen { fill: none; stroke: currentColor; stroke-width: 5; }
.k-start-bild .ph-kerbe { fill: currentColor; opacity: .85; }
.k-start-bild .ph-kachel rect { fill: currentColor; opacity: .3; }
.k-start-bild .ph-club { fill: var(--akzent); }
.k-start-bild .ph-stempel { fill: none; stroke: var(--haupt); stroke-width: 2.5; }
.k-start-bild .ph-pfeil { stroke: var(--akzent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.k-start-text { min-width: 0; }
.k-start-tipp {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--rund-pille);
  background: var(--akzent); color: var(--auf-akzent); font: 800 13px/1 var(--schrift); letter-spacing: .08em; text-transform: uppercase;
}
.k-start h2 { margin-top: 10px; font-size: 24px; line-height: 1.15; }
.k-start-text p { margin-top: 8px; font-size: 16px; line-height: 1.4; max-width: 34em; }
.k-start-wege { display: grid; gap: 12px; }
.k-start-weg { display: grid; gap: 14px; align-content: start; padding: 18px 18px 20px; border-radius: var(--rund-karte); background: var(--flaeche-tief); }
.k-start-weg h3 { display: flex; align-items: baseline; gap: 10px; font: var(--gewicht-name) 20px/1.2 var(--schrift); }
.k-start-weg h3 small { font: var(--gewicht-stark) 14px/1 var(--schrift); color: var(--text-neben); }
.k-schritt-text { min-width: 0; }
.k-start-weg .k-schritte li { align-items: center; font-size: 16px; line-height: 1.35; }
.k-start-weg .k-schritte li::before { background: var(--haupt); color: var(--auf-haupt); }
@media (min-width: 1024px) {
  .k-start { gap: 28px; padding: 36px 40px 40px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .k-start-kopf { grid-template-columns: 96px minmax(0, 1fr); gap: 24px; }
  .k-start-bild { width: 96px; padding: 8px; border-radius: 22px; }
  .k-start h2 { font-size: 32px; }
  .k-start-text p { font-size: 18px; }
  .k-start-wege { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .k-start-weg { padding: 22px 22px 24px; }
}
.k-start .nb { white-space: nowrap; }

/* ---------- QR kleiner (W19, Etappe B6): die Tafel ist nur so gross wie noetig, der Text darunter bleibt breit ---------- */
.qr-texte { display: grid; gap: 6px; margin-top: 12px; }
.qr-texte .qr-text { margin: 0 auto; }
.qr-text--online { font-weight: var(--gewicht-chip); font-size: 15px; opacity: .88; }
@media (min-width: 1024px) {
  .qr-tafel { width: min(100%, 200px); }
}

/* ---------- Papier-Stempelkarte bleibt gueltig (W21, Etappe B6) ---------- */
.k-papier { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px 20px; border-radius: var(--rund-gross); background: var(--flaeche); }
.k-papier-bild { display: block; width: 72px; padding: 6px; border-radius: 16px; background: var(--flaeche-tief); color: var(--text); }
.k-papier-bild svg { display: block; width: 100%; height: auto; }
.k-papier-bild .pp-karte { fill: none; stroke: currentColor; stroke-width: 4; }
.k-papier-bild .pp-feld circle { fill: none; stroke: currentColor; stroke-width: 2; opacity: .45; }
.k-papier-bild .pp-stempel circle { fill: var(--akzent); }
.k-papier-text { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.k-papier h2 { font-size: 22px; line-height: 1.15; }
.k-papier-text p { font-size: 16px; line-height: 1.4; max-width: 38em; }
@media (min-width: 1024px) {
  .k-papier { grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px 36px; }
  .k-papier-bild { width: 120px; padding: 8px; border-radius: 22px; }
  .k-papier h2 { font-size: 28px; }
  .k-papier-text p { font-size: 18px; }
}

/* =============================================================================
   MiniClub kommt bald (Wartungsmodus, 08.11.2026)
   Schalter: gemeinsam/miniclub-schalter.js (MINICLUB_BALD). Der Schalter setzt html[data-miniclub="bald"].
   Ist er aus, bleibt .k-bald verborgen und die Seite ist wie vorher. Zum Abbauen: diesen Block löschen.
   ============================================================================= */
.k-bald { display: none; }
html[data-miniclub="bald"] main > :not(.k-bald):not(.k-band) { display: none !important; }
html[data-miniclub="bald"] .k-bald { display: grid; gap: 32px; padding: var(--a-3) var(--rand) 0; }
html[data-miniclub="bald"] .k-band { margin-top: var(--a-8); }

.k-bald-text { display: grid; gap: 16px; justify-items: start; align-content: start; }
.k-bald-text h1 { margin: 0; }
.k-bald-lead { font-size: var(--gr-lead); max-width: 30em; }
.k-bald-liste { display: grid; gap: 10px; margin-top: 4px; }
.k-bald-liste li { display: flex; align-items: center; gap: 12px; font: 600 16px/1.35 var(--schrift); }
.k-bald-liste .symbol { flex: none; width: 22px; height: 22px; color: var(--haupt); }
html[data-look="dunkel"] .k-bald-liste .symbol { color: var(--akzent); }
.k-bald-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.k-bald-buehne { display: grid; gap: 14px; align-content: start; }
.k-bald-karte {
  --logo-farbe: var(--auf-haupt);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 24px 22px 26px;
  border-radius: var(--rund-gross); background: var(--haupt); color: var(--auf-haupt);
}
html[data-look="dunkel"] .k-bald-karte {
  --logo-farbe: var(--text); background: var(--flaeche-tief); color: var(--text);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 50%, transparent);
}
.k-bald-karte .mitglied-kopf { grid-area: auto; }
.k-bald-feld { position: relative; }
.k-bald-feld .stempel-feld { gap: 9px; }

/* der große Stempel „Bald da“ liegt schräg über den leeren Feldern */
.k-bald-siegel {
  position: absolute; left: 50%; top: 64%; z-index: 2; translate: -50% -50%; rotate: -8deg;
  display: grid; justify-items: center; gap: 4px; padding: 10px 18px 11px; min-width: 62%; white-space: nowrap;
  border-radius: 14px; color: var(--akzent);
  background: color-mix(in srgb, var(--haupt) 55%, transparent);
  box-shadow: inset 0 0 0 3px var(--akzent), inset 0 0 0 6px color-mix(in srgb, var(--haupt) 55%, transparent), inset 0 0 0 7.5px var(--akzent);
  text-transform: uppercase; text-align: center; pointer-events: none;
}
html[data-look="dunkel"] .k-bald-siegel { background: color-mix(in srgb, var(--flaeche-tief) 60%, transparent); box-shadow: inset 0 0 0 3px var(--akzent), inset 0 0 0 6px color-mix(in srgb, var(--flaeche-tief) 60%, transparent), inset 0 0 0 7.5px var(--akzent); }
.k-bald-siegel-gross { font: 900 clamp(26px, 7.4vw, 36px)/1 var(--schrift-titel); letter-spacing: .06em; }
.k-bald-siegel-klein { font: 700 12.5px/1 var(--schrift); letter-spacing: .24em; opacity: .9; }
.k-bald-note { font: 500 14px/1.4 var(--schrift); color: var(--text-neben); }

/* Stempel „drückt sich ein“ (nur mit Bewegung; bei „weniger Bewegung“ und auf Fotos liegt er einfach da) */
html.bewegung .k-bald-siegel { animation: k-siegel 620ms cubic-bezier(.2, .8, .2, 1) 1250ms both; }
@keyframes k-siegel {
  0% { opacity: 0; scale: 1.7; }
  55% { opacity: 1; scale: .93; }
  100% { opacity: 1; scale: 1; }
}
html.bewegung .k-bald-karte { animation: k-karte-wumms 360ms ease-out 1480ms both; }
@keyframes k-karte-wumms { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(2px); } }

@media (min-width: 1024px) {
  html[data-miniclub="bald"] .k-bald { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; padding-top: var(--a-6); }
  .k-bald-text { gap: 22px; }
  .k-bald-lead { font-size: 21px; }
  .k-bald-liste li { font-size: 17px; }
  .k-bald-karte { padding: 32px 32px 36px; gap: 34px; }
  .k-bald-feld .stempel-feld { gap: 12px; }
  .k-bald-siegel { padding: 12px 34px 13px; }
  .k-bald-siegel-gross { font-size: 46px; }
}

/* ===== Stufe 2b (10.11.2026): Mini Club für Gäste – zwei Karten, PIN-Formular ===== */
.g-karten { display: grid; gap: 22px; align-content: start; }
.g-karte-eine { display: grid; gap: 10px; }
.g-karte-eine + .g-karte-eine { padding-top: 22px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.g-klein { font-size: 14.5px; line-height: 1.4; color: var(--text-neben); }
.g-form .feld-eingabe[type="password"] { letter-spacing: .3em; font-size: 20px; }
.g-unten .feld-eingabe[type="password"] { letter-spacing: .3em; }
.g-form, .g-unten .k-block { display: grid; gap: 14px; }
