/* Lebenskarten – mobil gedacht, auf dem Desktop als schmale Spalte */
:root {
  --bg: #fbf6ee;
  --ink: #3b3a45;
  --muted: #918d99;
  --line: #ece4d6;
  --coral: #e8735a;
  --tab-h: 64px;
  --shadow: 0 8px 24px rgba(120, 90, 50, .10), 0 2px 6px rgba(120, 90, 50, .06);
  --shadow-lg: 0 22px 50px rgba(120, 90, 50, .20), 0 6px 14px rgba(120, 90, 50, .10);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.shell {
  position: relative; max-width: 440px; min-height: 100dvh; margin: 0 auto;
  background:
    radial-gradient(120% 60% at 0% 0%, #ffe6da 0, transparent 60%),
    radial-gradient(100% 50% at 100% 100%, #e2eefb 0, transparent 60%),
    var(--bg);
}
/* Auf großen Bildschirmen wie ein Handy in der Mitte */
@media (min-width: 600px) {
  body { background: #efe7da; }
  .shell { box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 30px 80px rgba(120, 90, 50, .18); }
}
.app { min-height: 100dvh; padding: calc(18px + env(safe-area-inset-top)) 20px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.app.no-tabs { padding-bottom: 24px; }

/* Untere Leiste */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; z-index: 20;
  display: flex; justify-content: space-around; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding: 6px 8px env(safe-area-inset-bottom);
  background: rgba(255, 253, 249, .94); border-top: 1px solid var(--line);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700; position: relative; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--coral); }
.tabbar .dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px #fff; }

/* Text */
.date { color: var(--muted); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
h1 { font-size: 26px; line-height: 1.15; margin: 2px 0 0; letter-spacing: -.02em; }
h2 { font-size: 21px; margin: 0 0 14px; letter-spacing: -.01em; }
.hint { color: var(--muted); font-size: 14px; text-align: center; margin: 14px 0 0; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 0; cursor: pointer; border-radius: 18px; padding: 16px 20px; font-weight: 800; font-size: 17px;
  background: linear-gradient(135deg, #f08b70, var(--coral)); color: #fff; box-shadow: 0 10px 24px rgba(232, 115, 90, .30);
  transition: transform .12s;
}
.btn:active { transform: scale(.98); }
.btn.light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn.danger { background: #fff; color: #c2453a; box-shadow: var(--shadow); }
.btn:disabled { opacity: .5; }
.link { background: none; border: 0; color: var(--muted); font-weight: 700; padding: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; width: 100%; }
.share-ico { width: 22px; height: 22px; flex: none; }
.icon-btn.share { color: var(--coral); }
.share-menu { display: grid; gap: 10px; margin-bottom: 12px; }
.share-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; cursor: pointer; }
.share-opt:active { background: #fff4ef; border-color: var(--coral); }
.share-opt .em { font-size: 26px; }
.share-opt b { display: block; font-size: 17px; }
.share-opt small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.share-preview { color: var(--muted); font-size: 14px; text-align: center; margin: 4px 0 0; }
.shared { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.shared-intro { margin: 10px 0 0; font-weight: 700; color: #625f6b; }
.shared-text { text-align: center; margin: 0; line-height: 1.45; }
.shared .hint { margin: 0 0 8px; }
.shared .btn { text-decoration: none; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-pair .btn { font-size: 16px; padding: 15px 10px; white-space: nowrap; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; font-size: 20px; flex: none; }

/* Formulare */
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #625f6b; }
.input { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; outline: none; font-size: 16px; }
.input:focus { border-color: #9cc3e8; box-shadow: 0 0 0 4px rgba(91, 155, 213, .14); }
textarea.input { resize: none; min-height: 84px; }
.error { color: #c2453a; font-weight: 650; min-height: 20px; margin: 2px 0 10px; font-size: 14px; }

/* ---------- Karte ---------- */
.card3d { position: relative; aspect-ratio: var(--ar, 3 / 4); width: var(--cw, 100%); perspective: 1600px; cursor: pointer; }
.card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.card3d.flipped .card-inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.card-front { transform: rotateY(180deg); }
.card-front img { width: 100%; height: 100%; object-fit: cover; }
.card-back {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 22% 20%, rgba(242, 193, 78, .28) 0 9%, transparent 10%),
    radial-gradient(circle at 80% 28%, rgba(91, 155, 213, .24) 0 8%, transparent 9%),
    radial-gradient(circle at 28% 80%, rgba(123, 182, 97, .24) 0 10%, transparent 11%),
    radial-gradient(circle at 78% 78%, rgba(232, 115, 90, .24) 0 9%, transparent 10%),
    #fffaf1;
}
.card-back::before { content: ""; position: absolute; inset: 9px; border-radius: 11px; border: 2px dashed rgba(232, 115, 90, .35); }
.card-back svg { width: 42%; max-width: 130px; position: relative; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Heute */
.today { flex: 1; display: flex; flex-direction: column; }
.stage { flex: 1; display: grid; place-items: center; position: relative; padding: 18px 0; }
.actions { display: grid; gap: 4px; }
.enter { animation: enter .65s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes enter { from { transform: translateY(40px) scale(.75) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.later { animation: fade .6s ease both; animation-delay: 1.2s; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.deck { position: relative; width: min(64vw, 250px); aspect-ratio: 3 / 4; cursor: pointer; }
.deck .card3d { position: absolute; inset: 0; width: 100%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.deck .card3d:nth-child(1) { transform: rotate(-8deg) translate(-12px, 6px); }
.deck .card3d:nth-child(2) { transform: rotate(6deg) translate(12px, 4px); }
.deck .card3d:nth-child(3) { transform: rotate(-2deg); }
.deck:active .card3d:nth-child(3) { transform: translateY(-10px) rotate(-2deg); }
.deck.shuffling .card3d:nth-child(odd) { animation: shA .45s ease-in-out infinite; }
.deck.shuffling .card3d:nth-child(even) { animation: shB .45s ease-in-out infinite; }
@keyframes shA { 50% { transform: translateX(-46px) rotate(-12deg); } }
@keyframes shB { 50% { transform: translateX(46px) rotate(12deg); } }
.deck.leaving { animation: leave .4s ease-in forwards; }
@keyframes leave { to { transform: scale(.85) translateY(30px); opacity: 0; } }

.sparkle { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; animation: burst 1.1s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }

.card-bar { display: flex; align-items: center; gap: 12px; }
.card-bar p { flex: 1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

.gift-banner { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 0; border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); margin-top: 14px; text-align: left; cursor: pointer; }
.gift-banner .em { font-size: 26px; }
.gift-banner b { display: block; }
.gift-banner small { color: var(--muted); }

/* Meine Karten */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 16px; }
.tile { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.tile .img { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #f4ede2; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .cap { margin-top: 7px; font-size: 13px; font-weight: 700; }
.tile .cap small { display: block; font-weight: 600; color: var(--muted); }
.empty { text-align: center; color: var(--muted); margin: auto 0; padding: 40px 10px; }
.empty .big { font-size: 44px; margin-bottom: 8px; }

/* Ich */
.panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px; margin-top: 16px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; font-weight: 700; }
.toggle input { display: none; }
.toggle .sw { width: 50px; height: 30px; border-radius: 99px; background: #e4ddd0; position: relative; transition: background .2s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle input:checked + .sw { background: #7bb661; }
.toggle input:checked + .sw::after { transform: translateX(20px); }
.stack { display: grid; gap: 12px; margin-top: 16px; }

/* Anmeldung */
.auth { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.brand img { width: 38px; height: 38px; }
.fan { position: relative; height: 230px; margin: 14px 0 8px; }
.fan .card3d { position: absolute; left: 50%; top: 50%; width: 120px; cursor: default; }
.seg { display: flex; background: #f1e9dc; border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 11px; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* Bottom-Sheet */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(59, 58, 69, .38); display: flex; align-items: flex-end; justify-content: center; animation: fadeBg .2s; }
@keyframes fadeBg { from { opacity: 0; } }
.sheet-box { width: 100%; max-width: 440px; max-height: 92dvh; overflow: auto; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(100%); } }
.grab { width: 42px; height: 5px; border-radius: 99px; background: #dcd3c4; margin: 0 auto 14px; }
.sheet.full { align-items: stretch; background: var(--bg); }
.sheet.full .sheet-box { max-height: none; height: 100dvh; border-radius: 0; display: flex; flex-direction: column; padding-top: calc(14px + env(safe-area-inset-top)); animation: fadeBg .25s; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; }
.viewer-stage { flex: 1; display: grid; place-items: center; padding: 16px 0; }
.close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 18px; cursor: pointer; }

.numgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.numgrid button { aspect-ratio: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; font-weight: 800; font-size: 17px; cursor: pointer; }
.numgrid button:active { background: #fff1ec; border-color: var(--coral); }

.people { display: grid; gap: 8px; margin-bottom: 14px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; cursor: pointer; text-align: left; width: 100%; }
.person.sel { border-color: var(--coral); background: #fff4ef; }
.person:disabled { opacity: .45; cursor: default; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.person small { display: block; color: var(--muted); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 700; box-shadow: var(--shadow-lg); max-width: 90vw; width: max-content; text-align: center; animation: fade .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Geschenk: Briefumschlag ---------- */
.envelope { position: relative; width: min(78vw, 300px); aspect-ratio: 4 / 3; border: 0; padding: 0; background: none; cursor: pointer; perspective: 900px; animation: bob 2.6s ease-in-out infinite; }
.envelope.open { animation: none; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1deg); } }
.env-back, .env-front, .env-flap, .env-card, .env-seal { position: absolute; }
.env-back { inset: 0; border-radius: 16px; background: #eebfa8; box-shadow: var(--shadow-lg); }
.env-card { left: 9%; right: 9%; top: 6%; height: 86%; z-index: 1; transition: transform .7s cubic-bezier(.2, .8, .2, 1) .35s; }
.env-card .card3d { width: 100%; height: 100%; aspect-ratio: auto; }
.env-card .card-face { box-shadow: 0 2px 8px rgba(0, 0, 0, .12); border-radius: 10px; }
.env-front {
  inset: 0; z-index: 2; border-radius: 16px; background: linear-gradient(160deg, #fde9de, #f7d2c0);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 16px; gap: 2px;
}
.env-front b { font-size: 19px; color: #8a4b33; }
.env-front small { font-size: 13px; color: #b0775d; font-weight: 600; }
.env-flap { left: 0; right: 0; top: 0; height: 58%; z-index: 3; background: #f2c6b0; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .5s ease, z-index 0s .25s; border-radius: 16px 16px 0 0; }
.env-seal { z-index: 4; left: 50%; top: 58%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: 0 3px 8px rgba(232, 115, 90, .45); transition: opacity .25s, transform .25s; }
.envelope.open .env-seal { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 0; }
.envelope.open .env-card { transform: translateY(-62%); }

.gift-info { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; pointer-events: none; }
.gift-info.show { opacity: 1; transform: none; pointer-events: auto; }
.gift-from { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gift-from b { display: block; font-size: 17px; }
.gift-from small { color: var(--muted); font-size: 13px; }
.gift-note { margin: 0 0 14px; font-size: 17px; line-height: 1.45; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.tile .new { color: var(--coral); }

/* ---------- Anmeldung: Hinweise ---------- */
.auth .link { display: block; text-align: center; padding: 8px; }
.notice { text-align: center; padding: 10px 0; }
.notice .big { font-size: 48px; margin-bottom: 6px; }
.notice h1 { margin-bottom: 10px; }
.notice p { line-height: 1.5; margin: 0 0 12px; }
.notice .btn { margin-top: 8px; text-decoration: none; }
.muted, .sheet-text { color: var(--muted); }
.sheet-text { margin: 0 0 16px; line-height: 1.5; }
.inline-link { background: none; border: 0; padding: 0; color: var(--coral); font-weight: 800; text-decoration: underline; cursor: pointer; }

/* ---------- Kopfzeile Heute ---------- */
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* ---------- Infoseite ---------- */
.info { padding-bottom: 10px; }
.back { display: inline-block; text-decoration: none; font-weight: 700; color: var(--muted); padding: 4px 0 8px; }
.info-fan { display: flex; justify-content: center; margin: 4px 0 18px; height: 120px; }
.info-fan img { width: 84px; height: 112px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-lg); margin: 0 -10px; border: 3px solid #fff; }
.info-fan img:nth-child(1) { transform: rotate(-10deg) translateY(8px); }
.info-fan img:nth-child(2) { z-index: 1; }
.info-fan img:nth-child(3) { transform: rotate(10deg) translateY(8px); }
.lead { font-size: 18px; line-height: 1.5; margin: 10px 0 18px; }
.info-box { display: flex; gap: 14px; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.info-box .em { font-size: 28px; line-height: 1; }
.info-box h2 { font-size: 17px; margin: 2px 0 4px; }
.info-box p { margin: 0; line-height: 1.45; color: #55525e; }
.info-h { margin: 24px 0 10px; }
.steps { margin: 0 0 18px; padding-left: 22px; line-height: 1.5; }
.steps li { margin-bottom: 8px; }
.info-note { background: #f1e9dc; border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #625f6b; margin: 0 0 18px; }
.info .btn { text-decoration: none; }
.info-legal { display: block; text-align: center; }
.legal h2 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { line-height: 1.5; color: #55525e; overflow-wrap: anywhere; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: inherit; }
.legal mark { background: #fbe3a6; border-radius: 4px; padding: 0 4px; }
.legal-date { margin-top: 24px !important; font-size: 14px; color: var(--muted) !important; }
.legal-note { margin: 12px 0 0; font-size: 14px; line-height: 1.4; text-align: center; color: var(--muted); }
.legal-note a { color: inherit; }

/* ---------- Freunde ---------- */
.sub { color: var(--muted); margin: 6px 0 14px; line-height: 1.45; }
.search { position: sticky; top: 0; z-index: 2; padding: 4px 0 8px; background: var(--bg); }
.search .input { border-radius: 99px; padding-left: 18px; }
h2.sec { font-size: 16px; margin: 20px 0 8px; display: flex; align-items: center; gap: 8px; }
.count { background: var(--coral); color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 8px; }
.list { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.list.results { margin-bottom: 6px; }
.frow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.fname { flex: 1; min-width: 0; }
.fname b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fname small { display: block; color: var(--muted); font-size: 12.5px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; font-weight: 800; font-size: 14px; cursor: pointer; flex: none; }
.chip.ok { background: var(--coral); border-color: var(--coral); color: #fff; }
.chip.gift { padding: 6px 12px; font-size: 18px; }
.chip.more { padding: 6px 12px; color: var(--muted); }
.chip:disabled { opacity: .4; cursor: default; }
.tag { font-size: 13px; font-weight: 700; color: var(--muted); }
.empty.small { padding: 16px; margin: 0; font-size: 14px; }
.list .empty.small { text-align: left; }

/* ---------- Ich ---------- */
.panel.rows { padding: 0; overflow: hidden; }
.prow { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; text-align: left; cursor: pointer; text-decoration: none; }
.prow:last-child { border-bottom: 0; }
.prow span { flex: 1; }
.prow small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-word; }
.prow i { font-style: normal; color: var(--muted); font-size: 22px; }

/* ---------- Rückseite mit Satz ---------- */
/* Größe richtet sich nach der Karte – auch bei Karten im Querformat passt der Satz */
.card3d { container-type: size; }
.card-back.has-text { padding: 8%; }
.back-text { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: min(4cqw, 4cqh); text-align: center; height: 100%; }
.card-back.has-text svg { width: min(16cqw, 18cqh); max-width: 70px; flex: none; animation: none; }
.back-text p { margin: 0; font-size: clamp(12px, min(6.2cqw, 7.5cqh), 26px); line-height: 1.35; font-weight: 750; color: #5a4a3f; text-wrap: balance; }
.back-text small { font-size: clamp(10px, 3.4cqw, 14px); font-weight: 800; color: #c2563f; letter-spacing: .06em; opacity: .7; }

/* ---------- Karte von heute für Freunde ---------- */
.toggle small { display: block; font-weight: 600; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 14px -18px; }
.mini-card { flex: none; width: 38px; height: 50px; padding: 0; border: 2px solid #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; background: #f4ede2; transform: rotate(-4deg); transition: transform .15s; }
.mini-card:active { transform: rotate(0) scale(1.08); }
.mini-card img { width: 100%; height: 100%; object-fit: cover; }
.fname.tappable { cursor: pointer; }
/* Wischen zum Umdrehen: waagerecht gehört der Karte, senkrecht scrollt die Seite */
.card3d[data-flip] { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.card3d[data-flip] img { -webkit-user-drag: none; pointer-events: none; }

/* ---------- Kopfzeile mit Profil-Knopf ---------- */
.profile-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; flex: none; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(120, 90, 50, .18); }
.appbar {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: calc(-18px - env(safe-area-inset-top)) -20px 12px; padding: env(safe-area-inset-top) 16px 0 20px;
  height: calc(56px + env(safe-area-inset-top));
  background: rgba(251, 246, 238, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(220, 208, 190, .55);
}
.appbar-home { display: grid; place-items: center; margin-left: -2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.appbar-logo { width: 34px; height: 34px; flex: none; }
.appbar-back { font-size: 32px; line-height: 1; text-decoration: none; color: var(--coral); padding: 0 8px 4px 0; margin-left: -4px; }
.search { top: calc(56px + env(safe-area-inset-top)); }
.greet { margin: 2px 0 2px; }
.greet h1 { font-size: 26px; }
.draw-title { text-align: center; margin: 12px 0 0; }
.draw-cta { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; cursor: pointer; text-align: left; color: #fff; background: linear-gradient(135deg, #f08b70, var(--coral)); border-radius: 20px; padding: 12px 16px 12px 12px; box-shadow: 0 10px 24px rgba(232, 115, 90, .30); }
.draw-cta .deck-mini { width: 48px; height: 64px; border-radius: 9px; background: #fffaf1; display: grid; place-items: center; flex: none; transform: rotate(-5deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .15); }
.draw-cta .deck-mini svg { width: 32px; }
.draw-cta > span:nth-child(2) { flex: 1; }
.draw-cta b { display: block; font-size: 17px; }
.draw-cta small { opacity: .9; font-weight: 600; }
.draw-cta i { font-style: normal; font-size: 24px; }
.today-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 20px; padding: 10px 10px 10px 10px; box-shadow: var(--shadow); }
.today-main { flex: 1; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; min-width: 0; }
.today-main img { width: 48px; height: 64px; object-fit: cover; border-radius: 9px; flex: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.today-main small { display: block; color: var(--coral); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.today-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.3; }
.today-row .icon-btn { width: 42px; height: 42px; box-shadow: none; background: #fff4ef; }
button.back { border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; color: var(--muted); padding: 4px 0 8px; text-align: left; }
.me-head { display: flex; align-items: center; gap: 14px; }
.me-head .avatar { width: 54px; height: 54px; font-size: 24px; }

/* ---------- Start ---------- */
.dash { flex: 1; display: flex; flex-direction: column; }
.dash-h { font-size: 17px; margin: 0; }
.dash-h-row { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
.dash-h-row a { color: var(--coral); font-weight: 800; text-decoration: none; font-size: 14px; }
.dash-alert { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); margin-top: 12px; text-decoration: none; }
.dash-alert .em { font-size: 24px; }
.dash-alert span:nth-child(2) { flex: 1; }
.dash-alert b { display: block; }
.dash-alert small { color: var(--muted); }
.dash-alert i, .ex-row i { font-style: normal; color: var(--muted); font-size: 22px; }
.mind-tile { display: flex; align-items: center; gap: 12px; margin-top: 16px; background: linear-gradient(135deg, #fff, #fff4ef); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); text-decoration: none; }
.mind-tile .em { font-size: 30px; }
.mt-main { flex: 1; min-width: 0; }
.mt-main small { display: block; color: var(--coral); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.mt-main b { display: block; font-size: 16px; }
.mt-stat { text-align: right; flex: none; max-width: 92px; line-height: 1.2; }
.mt-stat b { display: block; font-size: 15px; color: #5f9a47; }
.mt-stat small { color: var(--muted); font-size: 12px; }
.gift-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.gthumb { width: 34px; height: 44px; object-fit: cover; border-radius: 7px; flex: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.gift-row .fname small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-row .new { display: inline; color: var(--coral); }

/* ---------- Karten ---------- */
.filters { display: flex; gap: 6px; margin: 14px -20px 0; padding: 0 20px 2px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; }
.fchip { text-decoration: none; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 11px; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.fchip small { color: var(--muted); font-weight: 700; margin-left: 2px; }
.fchip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.active small { color: rgba(255, 255, 255, .7); }
.empty a { color: var(--coral); font-weight: 800; }

/* ---------- Achtsamkeit ---------- */
.tip-card { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #fff, #fff4ef); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); text-decoration: none; }
.tip-card .em { font-size: 40px; }
.tip-card small { display: block; color: var(--coral); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tip-card b { display: block; font-size: 19px; margin: 2px 0; }
.tip-card span span { color: var(--muted); font-size: 14px; }
.ex-row { text-decoration: none; }
.ex-em { width: 38px; height: 38px; border-radius: 12px; background: #f6f0e6; display: grid; place-items: center; font-size: 20px; flex: none; }
.ex-row .fname small { white-space: normal; }
.mindful-note { margin-top: 18px; }
.ex-head { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.ex-big { font-size: 40px; }
.exercise .lead { font-size: 17px; }
.ex-steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.ex-steps li { counter-increment: st; display: flex; gap: 12px; line-height: 1.45; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.ex-steps li::before { content: counter(st); flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fde3d9; color: #c2563f; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.timer-setup { margin: 0 0 16px; }
.ts-label { font-weight: 800; margin-bottom: 10px; }
.timer-setup .seg { margin-bottom: 14px; }
.timer-setup .seg button { padding: 10px 4px; }

/* Laufende Übung */
.session { flex: 1; display: flex; flex-direction: column; }
.session-top { text-align: center; font-weight: 800; color: var(--muted); padding: 6px 0; }
.session-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 300px; }
.session-stage > * { grid-area: 1 / 1; }
.breath { width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 182, 97, .35), rgba(91, 155, 213, .18) 65%, transparent 70%); animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.75); opacity: .7; } 50% { transform: scale(1.25); opacity: 1; } }
.ring { width: min(72vw, 270px); height: auto; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: #ece4d6; }
.ring-fg { stroke: #7bb661; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.session-time { font-size: 44px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: #55525e; }
.session-step { min-height: 96px; text-align: center; font-size: 18px; line-height: 1.5; margin: 6px 4px 18px; color: #4a4754; }
.session-step.show { animation: fade 1.2s ease both; }
.session.done { justify-content: center; }

/* ---------- Karten aussuchen ---------- */
.pickgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pickgrid button { position: relative; border: 0; padding: 0; background: #f4ede2; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; box-shadow: var(--shadow); }
.pickgrid img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pickgrid span { position: absolute; left: 6px; top: 6px; min-width: 24px; padding: 2px 6px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 800; }
.pickgrid button:active { transform: scale(.97); }
.back-btn { border: 0; background: #fff; box-shadow: var(--shadow); border-radius: 99px; padding: 10px 16px; font-weight: 800; cursor: pointer; }
.carousel-wrap { position: relative; flex: 1; display: flex; min-height: 0; margin: 10px -20px 0; }
.carousel { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 8px 20px; min-height: 0; }
.slide img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 250px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 16px; box-shadow: var(--shadow-lg); background: #f4ede2; user-select: none; -webkit-user-select: none; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.car-nav.prev { left: 6px; }
.car-nav.next { right: 6px; }
@media (hover: none) { .car-nav { display: none; } }
.car-cap { text-align: center; margin: 4px 0 14px; line-height: 1.4; min-height: 42px; }
.send-preview { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 8px 12px 8px 8px; box-shadow: var(--shadow); margin-bottom: 14px; font-size: 14px; line-height: 1.35; }
.send-preview img { width: 46px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.send-preview b { display: block; }

/* ---------- Als App installieren ---------- */
.install { text-align: center; }
.install-icon img { width: 76px; height: 76px; border-radius: 18px; margin: 4px auto 12px; box-shadow: var(--shadow-lg); }
.install .seg { margin: 4px 0 14px; }
.install-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; text-align: left; }
.install-steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); animation: fade .4s ease both; }
.istep-ico { width: 40px; height: 40px; border-radius: 12px; background: #eaf2fb; color: #2f7bd8; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 18px; }
.istep-ico svg { width: 22px; height: 22px; }
.istep-n { display: block; font-size: 12px; color: var(--coral); text-transform: uppercase; letter-spacing: .05em; }
.istep-t { display: block; font-size: 16px; margin: 1px 0 2px; }
.istep-t b { display: inline; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: inherit; }
.install-steps small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.install-foot { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 4px 0 0; }
.install .stack { margin-top: 12px; }

a.btn { text-decoration: none; }
