/* Claude-Bibliothek (seit 18.11.2026). Baut auf geschenk.css auf (gleicher Look wie die Geschenk-Seiten), immer hell. */
main{max-width:640px}
.bib-skip{position:absolute;left:12px;top:-60px;z-index:5;padding:10px 14px;border-radius:10px;background:var(--text);color:var(--bg);font-weight:700;text-decoration:none}
.bib-skip:focus{top:12px}

/* Kopf */
.bib-kopf h1{font-size:clamp(2rem,8.4vw,3.1rem);line-height:1.08;max-width:15ch}
.bib-kopf .gs-unter{max-width:38ch}
.bib-fakten{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.bib-fakten li{padding:7px 12px;border-radius:999px;background:var(--karte);border:1px solid var(--linie);font-size:.8125rem;color:var(--leise);line-height:1.2}
.bib-fakten b{color:var(--text);font-weight:800}

/* Formular */
.bib-form-t{font-size:1.5rem;letter-spacing:-.025em;margin-bottom:16px}
.bib-wahl{margin:0 0 18px;padding:0;border:0;min-width:0}
.bib-wahl legend{padding:0}
.bib-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bib-chips label{position:relative;cursor:pointer}
.bib-chips input{position:absolute;opacity:0;width:1px;height:1px}
.bib-chips span{display:flex;align-items:center;min-height:50px;height:100%;padding:10px 14px;border-radius:12px;border:1px solid var(--feld-rand);background:var(--feld);font-size:.9375rem;font-weight:600;line-height:1.25;
  transition:border-color .2s,background-color .2s,box-shadow .25s,transform .12s;-webkit-tap-highlight-color:transparent}
/* Punkt: Ring, beim Auswählen springt ein gefüllter Kreis mit Haken weich hinein */
.bib-chips span::before{content:"";flex:none;width:20px;height:20px;margin-right:10px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--feld-rand);background:var(--feld);
  transition:box-shadow .2s,background-color .2s,transform .3s cubic-bezier(.34,1.56,.64,1)}
.bib-chips input:checked+span{border-color:var(--rot);background:var(--hinweis);box-shadow:0 0 0 1px var(--rot),0 8px 20px -14px rgba(209,54,77,.9)}
.bib-chips input:checked+span::before{box-shadow:none;background-color:var(--rot);transform:scale(1.08)}
/* Haken im gefüllten Kreis (nur CSS, wegen der strengen CSP keine Bild-Daten) */
.bib-chips span{position:relative}
.bib-chips span::after{content:"";position:absolute;left:21px;top:50%;width:5px;height:9px;margin-top:-6px;border:solid #fff;border-width:0 2.4px 2.4px 0;
  transform:rotate(45deg) scale(.3);opacity:0;transition:opacity .15s,transform .3s cubic-bezier(.34,1.56,.64,1)}
.bib-chips input:checked+span::after{opacity:1;transform:rotate(45deg) scale(1)}
.bib-chips input:focus{outline:none}
.bib-chips input:focus-visible+span{box-shadow:0 0 0 3px rgba(209,54,77,.28)}
.bib-chips input:checked:focus-visible+span{box-shadow:0 0 0 1px var(--rot),0 0 0 4px rgba(209,54,77,.22)}
@media (hover:hover){.bib-chips label:hover input:not(:checked)+span{border-color:#bdb8b4;box-shadow:0 6px 16px -14px rgba(13,13,15,.6)}}
.bib-chips label:active span{transform:scale(.98)}
.bib-wahl[aria-invalid=true] .bib-chips span{border-color:var(--fehler)}
.bib-mail{flex:1;min-width:0;height:54px;padding:0 16px;border-radius:12px;border:1px solid var(--feld-rand);background:var(--feld);color:var(--text);font:inherit;font-size:1rem}
.bib-mail::placeholder{color:var(--dim)}
.bib-mail:focus{outline:2px solid var(--rot);outline-offset:1px;border-color:transparent}
.bib-mail[aria-invalid=true]{border-color:var(--rot)}
.bib-sicher{margin:14px 0 0;font-size:.8125rem;color:var(--leise)}

/* Frei */
.bib-frei{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;align-items:center}
.bib-frei:focus{outline:none}
.bib-frei h2{font-size:clamp(1.5rem,6vw,1.9rem)}
.bib-frei .gs-leise{margin-top:6px}
.bib-frei .gs-bestaetigen{grid-column:1/-1;margin-top:10px}

/* Liste */
.bib-liste{margin-top:46px}
.bib-liste-t{font-size:clamp(1.6rem,6.5vw,2rem)}
.bib-liste-unter{margin-top:8px}
.bib-eintraege{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:14px}
.bib-eintrag{display:grid;grid-template-columns:112px 1fr;gap:18px;padding:16px;background:var(--feld);border:1px solid var(--linie);border-radius:16px;box-shadow:0 12px 30px -24px rgba(13,13,15,.5)}
.bib-bild{display:block;width:100%;height:auto;aspect-ratio:210/297;object-fit:cover;object-position:top;border-radius:6px;box-shadow:0 0 0 1px var(--linie),0 10px 20px -14px rgba(13,13,15,.6)}
.bib-eintrag:not(.frei) .bib-bild{filter:saturate(.85)}
.bib-text{min-width:0;display:flex;flex-direction:column}
.bib-meta{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:.75rem;color:var(--leise)}
.bib-art{font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--rot)}
.bib-neu{padding:2px 8px;border-radius:999px;background:var(--verlauf);color:#fff;font-weight:800;letter-spacing:.04em}
.bib-titel{margin:8px 0 0;font-size:1.25rem;font-weight:800;letter-spacing:-.025em;line-height:1.15}
.bib-unter{margin:8px 0 0;font-size:.9375rem;line-height:1.45;color:var(--leise)}
.bib-aktion{margin-top:auto;padding-top:14px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.bib-zu{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:10px;border:1px dashed var(--feld-rand);color:var(--leise);font-size:.875rem;font-weight:600;text-decoration:none}
.bib-zu:hover{border-color:var(--rot);color:var(--text)}
.bib-zu svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bib-knopf{height:46px;padding:0 18px;font-size:.9375rem}
.bib-knopf::after{animation:none!important}
.bib-online{font-size:.875rem;font-weight:600;color:var(--rot);text-underline-offset:3px}
.bib-bald{margin:0;font-size:.875rem;color:var(--dim)}
.bib-anderes{margin:18px 0 0;text-align:center}

@media (max-width:520px){
  .bib-chips{grid-template-columns:1fr;gap:7px}
  .bib-chips span{min-height:46px;padding:8px 12px;font-size:.9375rem}
  .bib-chips span::before{width:18px;height:18px;margin-right:8px}
  .bib-chips span::after{left:18px}
    .bib-kopf .gs-kick{margin-top:24px}
  .bib-eintrag{grid-template-columns:84px 1fr;gap:14px;padding:14px}
  .bib-titel{font-size:1.125rem}
  .bib-unter{font-size:.875rem}
  .bib-knopf{width:100%}
}
@media (max-width:420px){
  .bib-mail{flex:none;width:100%}
}
@media (max-width:360px){
  .bib-eintrag{grid-template-columns:1fr}
  .bib-bild{width:96px}
}

/* Absende-Knopf: drückt sich ein, zeigt beim Laden einen Kreis und beim Erfolg einen Haken (seit 18.11.2026) */
.gs-knopf{transition:transform .12s ease,filter .2s,box-shadow .2s}
.gs-knopf:active:not(:disabled){transform:scale(.97);box-shadow:0 4px 14px -8px rgba(209,54,77,.9)}
.bib-senden{min-width:156px}
.bib-senden .bib-pfeil{transition:transform .2s}
@media (hover:hover){.bib-senden:hover .bib-pfeil{transform:translateX(3px)}}
.bib-kreis{display:none;width:18px;height:18px;border-radius:50%;border:2.4px solid rgba(255,255,255,.35);border-top-color:#fff}
.bib-senden.laedt,.bib-senden.fertig{opacity:1;cursor:default}
.bib-senden.laedt .bib-pfeil{display:none}
.bib-senden.laedt .bib-kreis{display:block;animation:bib-dreh .7s linear infinite}
.bib-senden.laedt::after,.bib-senden.fertig::after{animation:none}
.bib-senden.fertig{background:linear-gradient(100deg,#2fa565,#13804b);box-shadow:0 10px 30px -10px rgba(19,128,75,.8)}
.bib-senden.fertig .bib-pfeil{display:none}
.bib-senden.fertig .bib-kreis{display:block;width:7px;height:13px;border:solid #fff;border-width:0 2.6px 2.6px 0;border-radius:0;transform:rotate(45deg) translate(-1px,-2px)}
@keyframes bib-dreh{to{transform:rotate(360deg)}}
.bib-haken{margin-top:14px}

/* Einträge gehen nach dem Freischalten nacheinander auf */
@media (prefers-reduced-motion:no-preference){
  .bib-eintrag.aufgehen{animation:bib-auf .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--n,0) * 90ms)}
  .bib-frei:not([hidden]){animation:bib-auf .45s cubic-bezier(.2,.8,.2,1) both}
  .bib-frei .gs-haken{animation:bib-plopp .5s cubic-bezier(.34,1.56,.64,1) .1s both}
}
@keyframes bib-auf{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes bib-plopp{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
/* Häkchen und Datenschutz-Link grün (Marcel 18.11.2026) */
.bib .gs-haekchen input{accent-color:var(--gruen,#13804b)}
.bib .gs-haekchen input:focus-visible{outline:2px solid var(--gruen,#13804b);outline-offset:2px}
.bib .gs-haekchen a{color:var(--gruen,#13804b);text-decoration-color:currentColor}
.bib .gs-haekchen a:hover{opacity:.85}
