/* =========================================================
   Familie Doan Bendix — Mit Baby Kong durch die Welt
   Codename: DB · Mission 193
   Weiß & elegant: klares Weiß, starkes Pink, präzise Typografie
   ========================================================= */

:root {
  --bg:         #FFFFFF;   /* Seite */
  --bg-soft:    #FBFAFC;   /* zarte Fläche */
  --ink:        #17111D;   /* fast Schwarz mit Hauch Pflaume */
  --ink-soft:   #4E4458;
  --muted:      #8A8093;
  --line:       #ECE8F0;   /* Haarlinien */
  --line-soft:  #F4F1F7;

  --pink:       #E3126F;   /* starkes Pink — der Akzent */
  --pink-deep:  #B50E58;
  --pink-soft:  #F6A8CC;
  --pink-tint:  #FDEFF6;   /* zarte Pink-Fläche */
  --pink-glow:  rgba(227, 18, 111, 0.20);

  --shadow-card: 0 1px 2px rgba(23, 17, 29, 0.04), 0 10px 30px rgba(23, 17, 29, 0.06);
  --shadow-lift: 0 2px 6px rgba(23, 17, 29, 0.06), 0 18px 44px rgba(181, 14, 88, 0.12);

  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ein einziges, sehr zartes Licht hinter dem Hero — sonst reines Weiß */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 420px at 50% -6%, rgba(227, 18, 111, 0.05), transparent 65%),
    var(--bg);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
}

a { color: var(--pink-deep); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pink);
}

.serif-lead {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* =========================================================
   GATE (Vorschaltseite)
   ========================================================= */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.gate-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 52px 44px 42px;
  box-shadow: var(--shadow-lift);
  text-align: center;
  transition: opacity .45s ease, transform .45s ease;
}
.gate-card.open { opacity: 0; transform: scale(1.03); }

.gate-bk {
  height: 130px; width: auto;
  margin: 0 auto 18px;
  display: block;
  transform-origin: 50% 92%;
  animation: bkWinken 4.5s ease-in-out infinite;
}
@keyframes bkWinken {
  0%, 100% { transform: rotate(-2.2deg); }
  50%      { transform: rotate(2.2deg); }
}

.gate h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin-bottom: 10px;
}
.gate-code {
  font-size: clamp(3.2rem, 10vw, 4.4rem) !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pink);
  margin-bottom: 30px !important;
  line-height: 1;
}

.gate .sub {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0 0 30px;
}

.field { text-align: left; margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Selektor typ-unabhängig: das Feld wechselt zwischen text (sichtbar)
   und password (ausgeblendet) — das Styling muss in beiden Fällen greifen. */
.pw-wrap { position: relative; }
.gate .field input {
  width: 100%;
  padding: 13px 46px 13px 16px;   /* rechts Platz für den Auge-Toggle */
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.gate .field input:hover { border-color: #DDD5E4; }
.gate .field input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-glow);
}

/* Auge-Toggle im Passwortfeld */
.pw-toggle {
  position: absolute;
  top: 50%; right: 7px;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  padding: 0;
  border: none; background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.pw-toggle:hover { color: var(--pink-deep); background: var(--pink-tint); }
.pw-toggle:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.pw-toggle .pw-slash { display: none; }          /* sichtbar (Klartext): offenes Auge */
.pw-toggle.is-hidden .pw-slash { display: block; } /* ausgeblendet: Auge mit Strich */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--pink);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px var(--pink-glow);
}
.btn:hover { background: var(--pink-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.gate .hint {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.error-msg {
  color: #C81E4A;
  font-size: 0.86rem;
  min-height: 1.2em;
  margin: 4px 0 2px;
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }

/* =========================================================
   AUFSCHLIESS-MOMENT — Baby Kong winkt, erster Stempel „Wumms“
   ========================================================= */
.unlock {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
.unlock.show { opacity: 1; visibility: visible; }
.unlock-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 260px;
  text-align: center;
}

/* Baby Kong (aus dem Gate übernommen) — winkt */
.unlock-bk {
  height: 132px; width: auto;
  transform-origin: 50% 92%;
}
.unlock.show .unlock-bk { animation: bkWinken 1s ease-in-out .1s 2 both; }
@keyframes bkWinken {
  0%, 100% { transform: rotate(-3deg); }
  25% { transform: rotate(-12deg); }
  50% { transform: rotate(9deg); }
  75% { transform: rotate(-7deg); }
}
.unlock.stamp-drop .unlock-bk { opacity: .35; transition: opacity .3s ease; }

/* Gruß */
.unlock-hallo {
  order: -1;
  font-family: var(--display);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  color: var(--ink);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
}
.unlock.show .unlock-hallo { animation: fadeUp .5s ease .28s both; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.unlock.stamp-drop .unlock-hallo { opacity: .4; transition: opacity .3s ease; }

/* Der fallende Stempel */
.unlock-stamp {
  position: absolute;
  top: 52%; left: 50%;
  width: 168px;
  background: var(--bg);
  border: 1px solid var(--pink);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 0 34px var(--pink-glow), 0 20px 44px rgba(23,17,29,.22);
  transform: translate(-50%, -50%) translateY(-300px) scale(1.55) rotate(-15deg);
  opacity: 0;
}
.unlock.stamp-drop .unlock-stamp { animation: stampDrop .5s cubic-bezier(.34,1.4,.5,1) forwards; }
@keyframes stampDrop {
  0%   { transform: translate(-50%, -50%) translateY(-300px) scale(1.55) rotate(-15deg); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) translateY(0) scale(1) rotate(-6deg); opacity: 1; }
}
.us-inner {
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 1.5px dashed rgba(227,18,111,.5);
  border-radius: 12px;
  padding: 20px 24px 16px;
}
.us-flag { font-size: 1.9rem; }
.us-land { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.us-nr { font-size: 0.66rem; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }

/* Wumms — Ruck + Impact-Ring */
.unlock.stamped .unlock-inner { animation: wumms .34s ease; }
@keyframes wumms {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(0, 5px); }
  55% { transform: translate(-3px, -2px); }
  80% { transform: translate(2px, 1px); }
}
.unlock-ring {
  position: absolute;
  top: 52%; left: 50%;
  width: 168px; height: 132px;
  border: 2px solid var(--pink);
  border-radius: 18px;
  transform: translate(-50%, -50%) scale(.75);
  opacity: 0;
  pointer-events: none;
}
.unlock.stamped .unlock-ring { animation: impactRing .55s ease-out forwards; }
@keyframes impactRing {
  0%   { opacity: .55; transform: translate(-50%, -50%) scale(.75); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@media (prefers-reduced-motion: reduce) {
  .unlock, .unlock * { animation: none !important; }
}

/* =========================================================
   HAUPTSEITE
   ========================================================= */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-soft);
  padding-top: env(safe-area-inset-top);   /* Inhalt unter Notch/Statusleiste */
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); }
.brand .dot {
  width: 31px; height: 31px; border-radius: 50%;
  border: 1.4px solid var(--pink); color: var(--pink);
  display: grid; place-items: center; font-size: 0.82rem; letter-spacing: .04em;
}
.brand strong { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.topbar nav { display: flex; gap: 26px; }
.topbar nav a {
  font-family: var(--sans); font-size: 0.84rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; letter-spacing: .01em;
}
.topbar nav a:hover { color: var(--pink); }
.logout {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--muted);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.logout:hover { color: var(--ink); border-color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; position: relative; overflow: hidden; }
.bk-wasserzeichen {
  position: absolute;
  right: -34px; top: 34px;
  height: 330px; width: auto;
  opacity: 0.055;
  pointer-events: none;
}
.hero .eyebrow { margin-bottom: 20px; display: inline-block; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: italic;
  color: var(--pink);
}
.hero .lead { max-width: 600px; margin: 0 auto; }

/* Verdichteter Hero: zwei Spalten — Medaille links, Sammlung rechts */
.hero-split {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: 44px;
  text-align: center;
}
.hero-medaille { display: grid; justify-items: center; }
.hero-sammlung { min-width: 0; }

/* Medaillen-Zähler */
#medaille svg { height: clamp(200px, 22vw, 250px); width: auto; }
.md-arc {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  fill: var(--pink-deep);
}
.md-zahl {
  font-family: var(--display);
  font-weight: 700;
  fill: var(--pink);
}
.counter-line {
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* Reise-Bilanz */
.bilanz {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3vw, 40px);
  margin-top: 24px;
}
.bilanz .posten { display: grid; gap: 2px; justify-items: center; }
.bilanz .wert {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.bilanz .label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   SAMMLUNG — zwei Zonen: Besucht (Karten) + Bald (Mini-Kacheln)
   ========================================================= */
.sammlung-karte {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
  display: grid;
  gap: 24px;
}
.zone-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.zone-count { color: var(--pink); margin-left: 4px; }

.besucht-reihe { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.bald-reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }

/* dezenter Platzhalter in der Besucht-Zone */
.stamp-ghost {
  width: 172px;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
}
.stamp-ghost .ghost-plus { font-family: var(--display); font-size: 1.6rem; color: var(--pink-soft); }
.stamp-ghost .ghost-txt { font-family: var(--display); font-style: italic; font-size: 0.92rem; opacity: .7; }

/* kompakte Kachel für geplante Reisen */
.stamp-mini {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 8px 11px;
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}
.stamp-mini .land-svg { height: 42px; width: auto; max-width: 60px; margin-bottom: 4px; }
.stamp-mini .land-svg path { fill: #EFEAF3; stroke: #B8AEC6; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.stamp-mini .mini-icons { font-size: 0.9rem; line-height: 1.1; }
.stamp-mini .mini-name { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.stamp-mini .mini-jahr { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.stamp-mini .mini-count { font-size: 0.8rem; font-weight: 600; color: var(--pink); margin-top: 1px; }
.stamp-mini .mini-count.jetzt { color: var(--pink-deep); }
.stamp-mini .mini-count.vorbei { color: var(--muted); font-weight: 500; }
.stamp-mini .mini-datum { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.stamp {
  font-family: inherit;
  width: 172px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 16px 18px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 4px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: stampIn .6s cubic-bezier(.2,1.2,.4,1) both;
}
.stamp:hover {
  transform: translateY(-4px);
  border-color: var(--pink-soft);
  box-shadow: var(--shadow-lift);
}
@keyframes stampIn {
  0%   { opacity: 0; transform: translateY(14px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.land-svg { height: 118px; width: auto; max-width: 160px; margin-bottom: 8px; }
.stamp .land-svg path {
  fill: var(--pink-tint);
  stroke: var(--pink);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.stamp-icons { font-size: 1.15rem; letter-spacing: 0.35em; line-height: 1.2; }
.stamp-land {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.stamp-meta {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.stamp-oeffnen {
  margin-top: 6px;
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pink);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s ease;
}
.stamp:hover .stamp-oeffnen { gap: 9px; }
.stamp-notiz {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Geplante Reisen — ausgegraut mit „Bald“-Chip */
.stamp.geplant {
  cursor: default;
  position: relative;
  background: var(--bg-soft);
  animation: none;
}
.stamp.geplant:hover { transform: none; box-shadow: none; border-color: var(--line); }
.stamp.geplant .land-svg path {
  fill: #F3F0F6;
  stroke: #C0B7CA;
  stroke-width: 3;
}
.stamp.geplant .stamp-land { color: var(--ink-soft); }
.stamp.geplant .stamp-icons { filter: saturate(0.2); opacity: 0.75; }
.bald-tag {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
  background: var(--pink-tint);
  border: 1px solid var(--pink-soft);
  border-radius: 999px;
  padding: 4px 12px;
}

.slot {
  flex: 1 1 190px;
  max-width: 240px;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  min-height: 200px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
}
.slot .slot-nr { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; opacity: .8; }
.slot .slot-txt { font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); opacity: .6; }

.wand-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* Sektionen + Section Banding: abwechselnd Weiß und zartes Rosé */
section.block { padding: 56px 0; }
.band-rosa {
  background: linear-gradient(180deg, #FCF3F8 0%, #FAEFF5 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head { max-width: 680px; margin-bottom: 38px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* =========================================================
   REISEBUCH — Regal · aufschlagen · Doppelseite blättern
   ========================================================= */
/* Regal: Kopfzeile + Cover-Raster */
.buch-regal-kopf {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.buch-regal-kopf .zaehler {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.buch-regal-kopf .zaehler em { color: var(--pink); font-style: normal; }
.buch-regal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 16px;
}
.rb-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 12px 8px;
  cursor: pointer; text-align: center;
  font-family: inherit; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
button.rb-cover { -webkit-appearance: none; appearance: none; }
.rb-cover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.rb-cover .land-svg { height: 58px; width: auto; max-width: 72px; margin: 0; }
.rb-cover .land-svg path {
  fill: var(--pink-tint); stroke: var(--pink); stroke-width: 1.4;
  vector-effect: non-scaling-stroke; stroke-linejoin: round;
}
.rb-cover-fl { font-size: 1.15rem; line-height: 1; }
.rb-cover-nm { font-size: 0.82rem; font-weight: 600; }
.rb-cover-yr { font-size: 0.62rem; color: var(--muted); letter-spacing: 0.04em; }
/* Countdown auf geplanten Covern */
.rb-count { font-size: 0.66rem; font-weight: 700; color: var(--pink); line-height: 1.25; }
.rb-count.jetzt { color: var(--pink-deep); }
.rb-count.vorbei { color: var(--muted); font-weight: 600; }
.rb-datum { font-size: 0.54rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
/* Titeldeckel */
.rb-cover-titel { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: var(--shadow-lift); }
.rb-cover-titel .bk { font-size: 1.4rem; }
.rb-cover-titel .rb-titel-h { font-family: var(--display); font-size: 1rem; line-height: 1.1; }
.rb-cover-titel .rb-titel-sub { font-family: var(--display); font-style: italic; font-size: 0.68rem; opacity: .9; }
/* Geplante Cover: gedämpft, nicht aufschlagbar */
.rb-cover-bald { cursor: default; box-shadow: none; background: var(--bg-soft); }
.rb-cover-bald .rb-cover-fl { opacity: .5; }
.rb-cover-bald .rb-cover-nm { color: var(--muted); font-weight: 500; }
.rb-cover-bald .land-svg path { fill: #EFEAF3; stroke: #B8AEC6; }
.rb-cover-bald:hover { transform: none; box-shadow: none; }
/* Platzhalter „+" */
.rb-cover-plus {
  cursor: default; box-shadow: none; color: var(--muted); font-size: 1.6rem;
  border-style: dashed; background: transparent;
}
.rb-cover-plus:hover { transform: none; box-shadow: none; }
/* Lesezeichen-Marke „zuletzt gelesen" (links, damit sie nicht mit dem Badge kollidiert) */
.rb-cover .zuletzt {
  position: absolute; top: -8px; left: -6px;
  font-size: 0.55rem; font-weight: 600; color: #fff; background: var(--pink-deep);
  border-radius: 999px; padding: 2px 8px; box-shadow: var(--shadow-card);
}

/* Klick-Affordance: Hinweiszeile + dauerhaftes „öffnen"-Badge */
.buch-regal-hinweis {
  margin: -2px 0 20px; font-size: 0.86rem; color: var(--pink-deep); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink-tint); border: 1px solid var(--pink-soft);
  padding: 8px 15px; border-radius: 999px;
}
.buch-regal-hinweis .pin { color: var(--pink); font-weight: 700; }
.rb-cover .rb-badge {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: grid; place-items: center;
  font-size: 0.95rem; line-height: 1; font-weight: 600;
  box-shadow: 0 2px 8px var(--pink-glow);
  transition: transform .2s ease;
}
.rb-cover-titel .rb-badge { background: #fff; color: var(--pink); box-shadow: none; }
.rb-cover:hover .rb-badge { transform: scale(1.14); }
/* Nicht-klickbare Cover tragen kein Badge */
.rb-cover-bald .rb-badge, .rb-cover-plus .rb-badge { display: none; }

/* Klick-Affordance: pinker Rahmen + immer sichtbare „öffnen"-Pille */
.rb-cover-reise { border-color: var(--pink-soft); }
.rb-oeffnen {
  margin-top: 4px;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1;
  color: var(--pink-deep); background: var(--pink-tint);
  border: 1px solid var(--pink-soft); padding: 4px 10px; border-radius: 999px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.rb-cover:hover .rb-oeffnen { background: var(--pink); color: #fff; border-color: var(--pink); }
.rb-cover-titel .rb-oeffnen.hell { background: rgba(255,255,255,0.92); color: var(--pink-deep); border-color: transparent; }
.rb-cover-titel:hover .rb-oeffnen.hell { background: #fff; }

/* Aufgeschlagenes Buch */
.buch {
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg); box-shadow: var(--shadow-lift); overflow: hidden;
}
.buch[hidden], .buch-regal[hidden] { display: none; }
.buch-leiste {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.buch-zu {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft);
  border-radius: 999px; padding: 6px 14px; font-size: 0.78rem; font-weight: 500;
  cursor: pointer; font-family: inherit; flex: 0 0 auto;
}
.buch-zu:hover { border-color: var(--pink-soft); color: var(--pink-deep); }
.buch-register { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.buch-register::-webkit-scrollbar { display: none; }
.buch-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 10px; padding: 5px 10px; font-size: 1rem; cursor: pointer; line-height: 1;
  filter: grayscale(0.3); opacity: .7; transition: all .15s ease;
}
.buch-tab:hover { opacity: 1; filter: none; }
.buch-tab.on { background: var(--pink); border-color: var(--pink); filter: none; opacity: 1; box-shadow: 0 4px 12px var(--pink-glow); }

/* --- Kultur-Chip: direkter Absprung vom aktiven Kapitel in die Kultur-Detailseite ---
   Mobile-first (Hauptansicht): eigene, volle Zeile unter „‹ Regal + Reiter",
   großes Touch-Target. Am Desktop rückt der Chip rechts in die Leiste (s. u.). */
.buch-kultur {
  flex: 1 0 100%; order: 3;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; box-sizing: border-box;
  padding: 8px 14px;
  border: 1px solid var(--pink-soft); background: var(--pink-tint);
  border-radius: 14px;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.buch-kultur[hidden] { display: none; }
.buch-kultur:hover { border-color: var(--pink); background: #FDE7F1; }
.buch-kultur:active { transform: scale(0.995); }
.buch-kultur:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.bk-icon { flex: 0 0 auto; font-size: 1.15rem; line-height: 1; }
.bk-txt {
  flex: 1 1 auto; min-width: 0;
  display: grid; grid-template-columns: auto 1fr;
  grid-template-areas: "lbl fg" "nm nm";
  align-items: center; column-gap: 8px; row-gap: 1px;
}
.bk-lbl { grid-area: lbl; font-size: 0.72rem; font-weight: 500; color: var(--pink-deep); }
.bk-fg  { grid-area: fg; justify-self: start; }
.bk-nm  {
  grid-area: nm; min-width: 0;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bk-chev { flex: 0 0 auto; color: var(--pink-deep); font-size: 1.05rem; line-height: 1; }
/* Mini-Fremdheitsbalken im Chip (kompakter als in der Detailansicht) */
.bk-fg .fg-seg { width: 7px; height: 4px; border-radius: 2px; }

@media (min-width: 720px) {
  .buch-kultur {
    flex: 0 0 auto; order: 0; margin-left: auto;
    min-height: 0; padding: 6px 14px; border-radius: 999px;
  }
  .buch-kultur .bk-txt {
    display: flex; align-items: center; gap: 8px;
  }
  .buch-kultur .bk-nm { font-size: 0.82rem; }
}

.buch-flaeche { display: flex; align-items: stretch; gap: 10px; padding: 22px; }
.buch-pfeil {
  flex: 0 0 auto; align-self: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: none; background: var(--pink); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: all .15s ease;
  box-shadow: 0 4px 14px var(--pink-glow);
}
.buch-pfeil:hover { background: var(--pink-deep); transform: scale(1.08); box-shadow: var(--shadow-lift); }
.buch-pfeil:active { transform: scale(0.96); }
.buch-pfeil:disabled { background: var(--pink-tint); color: var(--pink-soft); box-shadow: none; cursor: default; transform: none; }

.buch-seiten {
  flex: 1 1 auto; display: grid; gap: 0; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg);
}
.buch-seiten.doppelseite { grid-template-columns: 1fr 1fr; }
.buch-seiten.handy { grid-template-columns: 1fr; }
.buch-seite { padding: 22px 24px; min-height: 320px; position: relative; }
.buch-seite-karte {
  border-right: 1px solid var(--line);
  background: linear-gradient(100deg, var(--bg-soft), var(--bg) 70%);
  display: flex; flex-direction: column;
}
.buch-seiten.handy .buch-seite-karte { border-right: none; }
.buch-kaptitel {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-family: var(--display); font-size: 1.3rem; margin-bottom: 8px;
}
.buch-kaptitel .zeit {
  margin-left: auto; font-family: var(--sans);
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--pink);
}
.buch-karte { text-align: center; flex: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.buch-karte svg { height: 190px; width: auto; max-width: 100%; display: block; margin: 0 auto; transition: transform .18s ease; }
.buch-karte:hover svg { transform: scale(1.04); }
.buch-karte .rk-name { display: none; }   /* Stationen stehen unten als Text */
.buch-seite-karte .route-mini { text-align: center; }
.buch-seite-karte .intro {
  font-family: var(--display); font-style: italic;
  color: var(--ink-soft); font-size: 0.92rem; margin: 14px 0 0;
}
.buch-seite-fotos .galerie { grid-template-columns: repeat(2, 1fr); }

/* Option 2: eine Fotoseite = EIN großes Foto; Navigation per Wischen / ‹ › */
.buch-seite-foto { display: flex; flex-direction: column; }
.foto-pos {
  text-align: center; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-deep);
  margin-bottom: 10px;
}
.foto-gross { margin: 0; position: relative; cursor: zoom-in; }
.foto-rahmen {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
/* Standard Hochformat 3:4 (die meisten Handyfotos sind hochkant) — groß wie in der Heimatkarte.
   Querformat-Fotos (f.quer -> .quer) bleiben im 4:3-Querformat, damit nichts falsch beschnitten wird. */
.foto-rahmen img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.foto-rahmen.quer img { aspect-ratio: 4 / 3; }
.foto-gross figcaption {
  font-family: var(--display); font-style: italic; font-size: 0.92rem;
  color: var(--ink-soft); text-align: center; margin-top: 12px;
}
.foto-rahmen .bild.fehlt {
  aspect-ratio: 3 / 4; display: grid; place-items: center; align-content: center; gap: 4px;
  color: var(--muted); text-align: center;
}
.foto-rahmen.quer .bild.fehlt { aspect-ratio: 4 / 3; }
.foto-rahmen .bild.fehlt code { font-size: 0.6rem; color: var(--pink-deep); word-break: break-all; }
.foto-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.foto-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--pink-soft);
  opacity: 0.55; transition: width .2s ease, opacity .2s ease;
}
.foto-dot.an { width: 18px; opacity: 1; background: var(--pink); }

/* Kartenseite: schlichter, NICHT-klickbarer Foto-Zähler (kein Button-Look) */
.foto-info { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 14px 0 0; }
.buch-seite-karte .foto-info { margin-top: auto; padding-top: 14px; }

/* Auftakt (nur Handy): großes Zufalls-Foto oben, darunter Kapitel/Route/Intro.
   Aufbau wie die Heimatkarte — Bild zuerst, Titel direkt darunter. */
.buch-seite-auftakt { display: flex; flex-direction: column; }
.buch-hero { margin: 0 0 16px; cursor: zoom-in; }
.buch-seite-auftakt .buch-karte { flex: none; margin-top: 4px; }
.buch-seite-auftakt .foto-info { margin-top: 12px; }

.buch-eselsohr {
  position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; cursor: pointer;
  background: linear-gradient(135deg, transparent 50%, var(--pink-tint) 50%);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transition: width .15s ease, height .15s ease;
}
.buch-eselsohr:hover { width: 44px; height: 44px; }

.buch-fuss {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg-soft);
  font-size: 0.78rem; color: var(--ink-soft);
}
.buch-fuss .kap { font-family: var(--display); }
.buch-fuss .von { color: var(--muted); letter-spacing: 0.04em; }

/* Blätter-Animation (sanfter Slide) */
.buch-seiten.blaettern-r { animation: buchBlaetternR .32s ease; }
.buch-seiten.blaettern-l { animation: buchBlaetternL .32s ease; }
@keyframes buchBlaetternR { from { opacity: .3; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes buchBlaetternL { from { opacity: .3; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.route-mini {
  font-size: 0.74rem; color: var(--ink-soft); line-height: 1.55;
  margin: 12px 0 0;
}

/* SVG-Innenleben der Routen-Karte */
.rk-land { fill: var(--pink-tint); stroke: var(--pink-soft); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rk-route { fill: none; stroke: var(--pink); stroke-width: 2.2; stroke-dasharray: 1 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rk-dot { fill: var(--pink); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rk-dot.start { fill: var(--pink-deep); }
.rk-name { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--ink); }

/* Kompakte Galerie: quadratische Vorschau (etwa Kartengröße), Klick → Lightbox */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.foto-mini {
  position: relative;
  margin: 0;
  cursor: zoom-in;
  border-radius: 9px;
}
.foto-mini img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  transition: transform .25s ease;
}
.foto-mini:hover img { transform: scale(1.05); }
.foto-mini .bild.fehlt {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center; align-content: center; gap: 4px;
  border: 1px dashed var(--line); border-radius: 9px;
  color: var(--muted); font-size: 1rem; text-align: center;
}
.foto-mini .bild.fehlt code { font-size: 0.55rem; color: var(--pink-deep); word-break: break-all; }
.bk-mini {
  position: absolute;
  top: 5px; left: 5px;
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.04em;
  color: #fff; background: var(--pink);
  border-radius: 999px; padding: 2px 7px;
  box-shadow: 0 2px 8px rgba(23, 17, 29, 0.3);
  pointer-events: none;
}
.mehr {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(23, 17, 29, 0.55);
  color: #fff; font-size: 1.1rem; font-weight: 600;
  border-radius: 9px;
  pointer-events: none;
}

/* =========================================================
   ALS NÄCHSTES
   ========================================================= */
.next-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  padding: 34px 32px;
}
.next-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.next-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 18px; }
.wish { display: flex; flex-wrap: wrap; gap: 9px; }
.wish span {
  font-size: 0.82rem; color: var(--muted);
  border: 1.5px dashed var(--line);
  border-radius: 999px; padding: 6px 16px;
  font-family: var(--display); font-style: italic;
}
.wish span.fest {
  font-family: var(--sans); font-style: normal; font-weight: 500;
  color: var(--pink-deep);
  border: 1px solid var(--pink-soft);
  background: var(--pink-tint);
}

footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 60px;
  text-align: center;
  color: var(--muted);
  font-size: 0.83rem;
  letter-spacing: 0.03em;
}
footer .heart { color: var(--pink); }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 34px; margin-top: 34px; }
}
@media (max-width: 760px) {
  .topbar nav { display: none; }
  .hero { padding: 52px 0 34px; }
  .sammlung-karte { padding: 22px 18px; }
  .besucht-reihe { justify-content: center; }
  .stamp, .stamp-ghost { width: 100%; max-width: 280px; }
  .buch-regal-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 12px; }
  /* Handy: Fotos groß wie in der Heimatkarte. Geblättert wird per Wischen
     (Hinweis „zum Blättern wischen" steht im Auftakt) sowie über die Flaggen-Reiter;
     die Seiten-Pfeile entfallen, damit das Hochformat-Foto die volle Breite bekommt. */
  .buch-flaeche { padding: 12px 6px; gap: 0; }
  .buch-seiten.handy { width: 100%; }
  .buch-seite { padding: 14px 12px; min-height: 300px; }
  .buch-karte svg { height: 168px; }
  .buch-pfeil { display: none; }
  .buch-fuss { flex-direction: column; gap: 4px; align-items: flex-start; }
}

/* =========================================================
   FOTO-LIGHTBOX
   ========================================================= */
.foto img { cursor: zoom-in; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(23, 17, 29, 0.94);
  display: none;
  place-items: center;
  padding: 48px 72px;
}
.lb.offen { display: grid; }
.lb figure { margin: 0; text-align: center; max-width: 100%; }
.lb img {
  max-width: min(88vw, 1100px);
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lb figcaption {
  color: #EFE8F2;
  font-size: 0.92rem;
  margin-top: 16px;
}
.lb figcaption::before { content: "♥ "; color: var(--pink-soft); font-size: 0.8rem; }
.lb button {
  position: fixed;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease;
}
.lb button:hover { background: rgba(255, 255, 255, 0.18); }
.lb .lb-x    { top: max(22px, env(safe-area-inset-top)); right: 22px; }
.lb .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 760px) {
  .lb { padding: 60px 12px 24px; }
  .lb .lb-prev { left: 8px; }
  .lb .lb-next { right: 8px; }
  .bk-wasserzeichen { height: 210px; right: -50px; top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stamp { animation: none; }
  .gate-bk { animation: none; }
  .buch-seiten.blaettern-r, .buch-seiten.blaettern-l { animation: none; }
  .buch-eselsohr, .rb-cover, .buch-pfeil { transition: none; }
  .xp-fill, .k-kultur { transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Hero-Leiste — Rang, XP-Balken, Fortschritt, vier Kacheln
   ========================================================= */
.hero-leiste {
  max-width: 640px; margin: 26px auto 0; text-align: left;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-card);
}
.leiste-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
/* Rang-Anzeige — klickbar: öffnet die Rang-Übersicht (alle Status).
   Pink signalisiert die Klickbarkeit (Rot = klickbar). */
.rang-pille {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
  font-size: 0.95rem; font-weight: 600; color: var(--pink-deep);
  background: var(--pink-tint); border: 1px solid var(--pink-soft);
  padding: 7px 16px; border-radius: 22px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.rang-pille:hover { background: #FBE0EE; border-color: var(--pink); transform: translateY(-1px); }
.rang-pille:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.rang-pille-mehr { color: var(--pink); font-weight: 700; }
.xp-gesamt { margin-left: auto; font-size: 0.95rem; color: var(--ink-soft); }
.xp-gesamt b { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.xp-bar { height: 14px; background: var(--pink-tint); border-radius: 20px; overflow: hidden; }
.xp-fill { height: 100%; background: var(--pink); border-radius: 20px; transition: width 0.8s cubic-bezier(0.34, 1.2, 0.5, 1); }
.xp-unter { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 11px 2px 0; font-size: 0.95rem; }
.rang-jetzt { color: var(--muted); }
.rang-ziel { color: var(--ink-soft); text-align: right; }
/* Ziel-Zeile: darf fett sein, aber nicht rot (Rot = klickbar) */
.rang-ziel b { color: var(--ink); font-weight: 700; }
.rang-ziel .ziel { color: var(--ink); font-weight: 700; }
.stat-kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.kachel {
  background: var(--bg-soft); border: none; border-radius: 14px;
  padding: 16px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; font-family: inherit;
}
/* Statische KPI (Kontinent, Land): neutrale Zahl — Pink bleibt den
   klickbaren Kacheln vorbehalten (Rot = klickbar). */
.kachel-wert { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--ink); line-height: 1.05; }
.kachel-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Klickbare KPI (Punkte, Kultur): als Button hervorgehoben —
   Pink-Rahmen + Erhebung + pinke Zahl + gefüllte CTA-Pille. */
.k-kultur, .k-punkte {
  background: var(--pink-tint); cursor: pointer; position: relative;
  border: 1.5px solid var(--pink-soft); box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.k-kultur .kachel-wert, .k-punkte .kachel-wert { color: var(--pink); }
.k-kultur .kachel-label, .k-punkte .kachel-label { color: var(--pink-deep); }
.k-kultur:hover, .k-punkte:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--pink);
}
.k-kultur:focus-visible, .k-punkte:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* CTA-Pille im Kachelfuß — macht die Klickbarkeit unmissverständlich */
.kachel-mehr {
  align-self: center; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.64rem; font-weight: 700; white-space: nowrap;
  color: #fff; background: var(--pink);
  padding: 4px 11px; border-radius: 999px;
  transition: background 0.15s ease, gap 0.15s ease;
}
.k-kultur:hover .kachel-mehr, .k-punkte:hover .kachel-mehr { background: var(--pink-deep); gap: 7px; }
.leiste-fuss { text-align: center; font-style: italic; color: var(--muted); font-size: 0.85rem; margin: 16px 0 0; }

.hero-sammlung { max-width: 640px; margin: 28px auto 0; text-align: left; }

/* =========================================================
   Kultur-Karte — Overlay mit Übersicht + Detailseite
   ========================================================= */
.kultur-ov {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(23, 17, 29, 0.5); backdrop-filter: blur(3px);
  /* oberer Abstand liegt als Panel-Margin vor, nicht als Overlay-Padding —
     so kann die Persona-Sticky-Leiste bündig oben kleben (top: 0).
     Safe-Area: der Sticky-Anker landet unter Notch/Statusleiste. */
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom); overflow-y: auto;
}
.kultur-ov.offen { display: block; }
.kultur-panel {
  position: relative; max-width: 600px; margin: 40px auto;
  background: var(--bg); border-radius: 20px; box-shadow: var(--shadow-lift); padding: 26px 24px 30px;
}
.kultur-x {
  /* sticky statt absolute: bleibt beim Scrollen sichtbar (mobil gibt es
     kein Escape) — negative margin, damit er keinen Platz einnimmt */
  position: sticky; top: 12px; z-index: 10;
  display: block; margin: 0 0 -34px auto;
  width: 34px; height: 34px;
  border: none; background: var(--bg-soft); border-radius: 50%; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--ink-soft);
  box-shadow: 0 1px 6px rgba(23, 17, 29, 0.12);
}
.kultur-x:hover { background: var(--pink-tint); color: var(--pink-deep); }
.ku-head { text-align: center; margin-bottom: 4px; }
.ku-eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pink); font-weight: 600; }
.ku-titel { font-size: 1.7rem; margin: 2px 0; }
.ku-sub { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.ku-sub b { color: var(--pink-deep); }
.ku-suche { position: relative; margin: 16px 0; }
.ku-suche input {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--bg-soft);
  /* mind. 16px, sonst zoomt iOS Safari beim Fokussieren in die Seite */
  font-family: inherit; font-size: 1rem; color: var(--ink);
}
.ku-suche input:focus { outline: none; border-color: var(--pink-soft); box-shadow: 0 0 0 3px var(--pink-glow); }
.ku-liste { display: flex; flex-direction: column; gap: 8px; }
.ku-gruppe-lbl { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 14px 2px 2px; }
.ku-gruppe-lbl.ent { color: var(--pink-deep); }
.ku-zeile {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; cursor: pointer; font-family: inherit; transition: border-color 0.15s, background 0.15s;
}
.ku-zeile:hover { border-color: var(--pink-soft); background: #FFFCFD; }
.ku-zeile.ent { border: 1.5px solid var(--pink-soft); background: var(--pink-tint); }
.ku-star { color: var(--pink); letter-spacing: 1px; white-space: nowrap; font-size: 0.85rem; }
.ku-star .o { color: #F0D3DF; }
.ku-zeile-txt { flex: 1; min-width: 0; }
.ku-zeile-nm { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.ku-zeile.ent .ku-zeile-nm { font-family: var(--display); font-weight: 700; }
.ku-ref { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.ku-zeile-sub { font-size: 0.82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ku-zeile-sub.ent { color: var(--pink-deep); }
.ku-chev { color: var(--pink-soft); font-size: 1.2rem; }
.ku-zeile.ent .ku-chev { color: var(--pink); }
.ku-leer { color: var(--muted); text-align: center; padding: 20px; }

.ku-zurueck { border: none; background: none; color: var(--muted); font-family: inherit; font-size: 0.9rem; cursor: pointer; padding: 0; margin-bottom: 10px; }
.ku-zurueck:hover { color: var(--pink-deep); }

/* Persona-Sticky-Leiste (Variante B): zurück zur Übersicht + Persona-Switcher.
   Klebt am Overlay-Scrollrand (rechts Platz für den Schließen-X). */
.pe-bar {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 44px 9px 0; margin: 0 0 16px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.pe-back {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--pink-deep); background: var(--pink-tint);
  border: 1px solid var(--pink-soft); border-radius: 999px;
  padding: 5px 13px 5px 11px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pe-back:hover { background: #FBE0EE; border-color: var(--pink); }
.pe-back:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.pe-switch { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.pe-arw {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--pink-soft); background: var(--bg);
  color: var(--pink-deep); font-size: 1.15rem; line-height: 1; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, transform .12s;
}
.pe-arw:hover { background: var(--pink-tint); border-color: var(--pink); }
.pe-arw:active { transform: scale(0.94); }
.pe-arw:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.pe-switch-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pe-switch-ava { font-size: 1.1rem; flex: none; }
.pe-switch-nm { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   P1 — Touch-Ziele ≥ 44px: unsichtbarer Hit-Slop per ::before.
   Die sichtbare Größe der Buttons bleibt exakt gleich.
   ========================================================= */
.pe-arw, .pe-back, .rang-pille, .logout { position: relative; }
.pe-arw::before    { content: ""; position: absolute; inset: -6px; }
.pe-back::before   { content: ""; position: absolute; inset: -8px -4px; }
.rang-pille::before { content: ""; position: absolute; inset: -5px 0; }
.logout::before    { content: ""; position: absolute; inset: -7px -6px; }
.kultur-x::before  { content: ""; position: absolute; inset: -5px; }
.pk-x::before      { content: ""; position: absolute; inset: -3px; }
.pw-toggle::before { content: ""; position: absolute; inset: -5px; }
.kd-titel { font-size: 1.5rem; margin: 0 0 14px; }
.kd-kacheln { display: flex; gap: 10px; }
.kd-kachel { flex: 1; background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.kd-kachel.ent { background: var(--pink-tint); }
.kd-k-lbl { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kd-kachel.ent .kd-k-lbl { color: var(--pink-deep); }
.kd-k-wert { display: block; margin-top: 3px; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.kd-kachel.ent .kd-k-wert { color: var(--pink-deep); }
/* Wertzeile als eigene Zeile unter den Balken — verhindert den
   unschönen Umbruch „5 / 5 ·“ am Zeilenende auf schmalen Screens */
.kd-k-wert em { display: block; margin-top: 3px; font-style: normal; color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.kd-abschnitt-lbl { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 18px 0 6px; }
/* Prominente Überschrift für den Personas-Block */
.ps-titel { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--ink); line-height: 1.15; margin: 28px 0 16px; }
.kd-text { color: var(--ink-soft); margin: 0; }
.kd-beispiele { font-size: 0.9rem; color: var(--muted); margin: 10px 0 0; }
.kd-beispiele b { color: var(--ink-soft); font-weight: 600; }
.kd-hinweis { font-style: italic; }
.kd-warum { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); }
.kd-warum b { color: var(--pink-deep); }

/* Blätter-Leiste unter der Kultur-Detailansicht (vor/zurück + Position) */
.kd-nav {
  display: flex; align-items: stretch; gap: 10px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
}
.kd-nav-btn {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; font-family: inherit; color: var(--ink-soft);
  min-width: 0; transition: background 0.15s ease, border-color 0.15s ease;
}
.kd-nav-btn:hover { background: var(--pink-tint); border-color: var(--pink-soft); color: var(--pink-deep); }
.kd-nav-btn.next { justify-content: flex-end; text-align: right; }
.kd-nav-pfeil { font-size: 1.3rem; line-height: 1; color: var(--pink); flex: none; }
.kd-nav-txt { display: flex; flex-direction: column; min-width: 0; }
.kd-nav-lbl { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kd-nav-nm { font-size: 0.9rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-nav-btn:hover .kd-nav-nm { color: var(--pink-deep); }
.kd-nav-pos { align-self: center; flex: none; font-size: 0.78rem; font-weight: 600; color: var(--muted); }

/* Auf schmalen Screens die vier KPI-Kacheln zweispaltig stapeln
   (klickbare oben, statische unten) — sonst quetschen sich die
   CTA-Pillen und werden mehrzeilig. */
@media (max-width: 600px) {
  .stat-kacheln { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 520px) {
  .hero-leiste { padding: 18px 16px; }
  .kachel { padding: 14px 8px; }
  .kachel-wert { font-size: 1.5rem; }
  .kultur-panel { padding: 22px 16px 26px; }
}

/* =========================================================
   Reisepunkte — Aufschlüsselungs-Modal
   (Die klickbare Optik der Punkte-Kachel steckt oben bei .k-punkte)
   ========================================================= */
/* Modal-Overlay */
.pk {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(23, 17, 29, 0.55); backdrop-filter: blur(3px);
  display: none; place-items: center;
  padding: max(32px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}
.pk.offen { display: grid; }
.pk-karte {
  position: relative; width: min(560px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lift);
  padding: 30px clamp(20px, 4vw, 36px) 34px;
}
.pk-x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  color: var(--ink-soft); font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.15s ease;
}
.pk-x:hover { background: var(--line-soft); }

.pk-kopf { text-align: center; margin-bottom: 22px; }
.pk-eyebrow {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--pink);
}
.pk-kopf h3 { margin: 6px 0 4px; font-size: 1.5rem; }
.pk-gesamt { margin: 0; font-family: var(--display); font-style: italic; color: var(--pink-deep); }
.pk-hinweis { margin: 8px 0 0; font-size: 0.76rem; color: var(--muted); }

.pk-system { margin-bottom: 24px; }
.pk-system h4, .pk-reisen h4 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.pk-regeln { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pk-regeln li {
  font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5;
  padding-left: 22px; position: relative;
}
.pk-regeln strong { color: var(--ink); }

.pk-punkt { width: 10px; height: 10px; border-radius: 50%; }
.pk-regeln .pk-punkt { position: absolute; left: 0; top: 0.45em; }
.pk-k { background: var(--pink); }
.pk-l { background: #C1946A; }
.pk-s { background: #7BB0A8; }

.pk-reise {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; margin-bottom: 12px; background: var(--bg-soft);
}
.pk-reise-kopf {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.pk-flagge { font-size: 1.2rem; }
.pk-reise-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.pk-reise-zeit { font-size: 0.78rem; color: var(--muted); }
.pk-reise-summe {
  margin-left: auto; font-family: var(--display); font-weight: 700;
  color: var(--pink-deep); font-size: 1.1rem;
}
.pk-zeile { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.88rem; }
.pk-zeile .pk-punkt { flex: none; }
.pk-z-text { color: var(--ink-soft); }
.pk-z-wert {
  margin-left: auto; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}
.pk-tag {
  display: inline-block; font-size: 0.68rem; color: var(--muted);
  background: var(--line-soft); border-radius: 999px; padding: 1px 7px; margin-left: 4px;
}

/* „Voraussichtlich" — geplante Reisen, klar als Schätzung erkennbar */
.pk-vorschau { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.pk-vorschau h4 { color: var(--pink-deep); }
.pk-vorschau-hinweis { font-size: 0.82rem; color: var(--muted); font-style: italic; margin: -6px 0 14px; }
.pk-reise-plan { background: var(--bg); border-style: dashed; }
.pk-reise-plan .pk-reise-name { color: var(--ink-soft); }
.pk-reise-plan .pk-reise-summe { color: var(--muted); font-weight: 600; font-size: 1rem; }
.pk-zeile-offen .pk-z-text, .pk-zeile-offen .pk-z-wert { color: var(--muted); }

/* Ränge-Liste im Rang-Modal */
.rg-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rg-rang {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-soft);
}
.rg-stufe {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 0.8rem; font-weight: 700;
  color: var(--muted); background: var(--bg); border: 1px solid var(--line);
}
.rg-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.rg-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); min-width: 0; overflow-wrap: break-word; }
.rg-ab { font-size: 0.78rem; color: var(--muted); }
/* Gamification: geschätzter Anteil der Paare — neutral gehalten,
   Pink bleibt klickbaren Elementen vorbehalten. */
.rg-anteil { font-size: 0.76rem; color: var(--ink-soft); margin-top: 3px; }
.rg-anteil b { color: var(--ink); font-weight: 700; }
.rg-anteil-start { font-style: italic; color: var(--muted); }
.rg-badge {
  margin-left: auto; flex: none; white-space: nowrap;
  font-size: 0.7rem; font-weight: 600;
  color: var(--muted); background: var(--line-soft);
  border-radius: 999px; padding: 3px 10px;
}

/* bereits erreichte Ränge */
.rg-rang.is-done .rg-stufe { color: var(--pink-deep); background: var(--pink-tint); border-color: var(--pink-soft); }
.rg-badge.rg-ok { color: var(--pink-deep); background: var(--pink-tint); }

/* aktueller Rang — hervorgehoben */
.rg-rang.is-current { border-color: var(--pink); background: var(--pink-tint); box-shadow: inset 0 0 0 1px var(--pink-soft); }
.rg-rang.is-current .rg-stufe { color: #fff; background: var(--pink); border-color: var(--pink); }
.rg-badge.rg-now { color: #fff; background: var(--pink); }

/* noch nicht erreichte Ränge */
.rg-rang.is-locked .rg-name { color: var(--ink-soft); }

/* Schmale Screens: Badge unter den Namen legen, damit lange
   Rangnamen (z. B. „Kulturbotschafterin") ganz und ohne
   hässlichen Wortumbruch in eine Zeile passen. */
@media (max-width: 560px) {
  .rg-rang {
    display: grid; align-items: center; column-gap: 12px; row-gap: 6px;
    grid-template-columns: auto 1fr;
    grid-template-areas: "stufe text" "stufe badge";
  }
  .rg-stufe { grid-area: stufe; }
  .rg-text  { grid-area: text; }
  .rg-badge { grid-area: badge; margin-left: 0; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .k-punkte, .rang-pille { transition: none; }
}

/* =========================================================
   Top 3 Reiseziele (Kultur-Detail) — Brücke Kultur → Land
   ========================================================= */
.t3-eyebrow { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); margin: 30px 0 6px; }
.t3-titel { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.15; color: var(--ink); margin: 0 0 4px; }
.t3-sub { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.t3-list { display: flex; flex-direction: column; gap: 12px; }
.t3-card { display: flex; gap: 14px; align-items: stretch; text-align: left; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); padding: 15px 16px; cursor: pointer; font-family: var(--sans); transition: border-color .15s, box-shadow .15s, transform .1s; }
.t3-card:hover { border-color: var(--pink-soft); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.t3-card.top { border-color: var(--pink-soft); background: linear-gradient(180deg, var(--pink-tint), var(--bg) 60%); }
.t3-left { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.t3-flag { font-size: 2.1rem; line-height: 1; }
.t3-body { flex: 1; min-width: 0; }
.t3-row1 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.t3-nm { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.t3-schip { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; }
.t3-schip.gruen { background: #E8F6EF; color: #0F7A4E; border: 1px solid #AEE0C6; }
.t3-schip.rosa { background: var(--pink-tint); color: var(--pink-deep); border: 1px solid var(--pink-soft); }
.t3-schip.offen { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.t3-schip.zuhause { background: #F6F1DF; color: #7A6A2F; border: 1px solid #E4D9A8; }
.t3-teaser { font-family: var(--sans); font-size: .92rem; color: var(--ink-soft); line-height: 1.55; margin: 7px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t3-foot { display: flex; align-items: center; justify-content: flex-end; margin: 11px 0 0; }
.t3-go { font-size: .82rem; font-weight: 600; color: var(--pink-deep); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
