/* BeerReal – dunkles Design mit Bier-Gold. Mobil zuerst, läuft in Chrome, Safari, Firefox. */
:root {
  --bg: #0b0b0d;
  --bg2: #121216;
  --flaeche: #17171c;
  --flaeche2: #202027;
  --rand: #2b2b33;
  --text: #f6f3ec;
  --leise: #9d998f;
  --gold: #ffc531;
  --gold2: #ffdb6e;
  --gold-dunkel: #c99410;
  --schaum: #fff6dc;
  --wein: #b3264e;
  --rot: #ff5d5d;
  --gruen: #4fd18b;
  --radius: 20px;
  --nav-h: 70px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --schatten: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font: 16px/1.42 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
input, textarea { font-size: 16px; } /* verhindert Zoom auf dem iPhone */
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-appearance: none; appearance: none; }
a { color: var(--gold); text-decoration: none; }
img { display: block; max-width: 100%; }
.versteckt { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- aufsteigende Bläschen im Hintergrund ---------- */
.blasen { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blasen i {
  position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95) 0 14%, rgba(255, 255, 255, 0) 16%),
    radial-gradient(circle, rgba(255, 197, 49, 0.05) 52%, rgba(255, 216, 120, 0.85) 66%, rgba(255, 197, 49, 0) 72%);
  opacity: 0; animation: aufsteigen var(--d) linear var(--v) infinite; will-change: transform, opacity;
}
@keyframes aufsteigen {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: var(--o); }
  50% { transform: translate3d(var(--w), -55vh, 0); }
  90% { opacity: var(--o); }
  100% { transform: translate3d(0, -110vh, 0); opacity: 0; }
}

/* ---------- Grundgerüst ---------- */
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; z-index: 1; }
.kopf {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + var(--safe-t)) 16px 12px;
  background: linear-gradient(var(--bg) 65%, rgba(11, 11, 13, 0));
}
.kopf h1 { font-size: 23px; margin: 0; flex: 1; letter-spacing: -0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo { font-weight: 850; letter-spacing: -0.045em; }
.logo b { color: var(--gold); }
.logo .punkt-logo { display: inline-block; color: var(--gold); animation: wippen 3.2s ease-in-out infinite; }
@keyframes wippen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.inhalt { padding: 0 16px calc(var(--nav-h) + var(--safe-b) + 28px); }
.inhalt > * { animation: einblenden 0.32s ease-out both; }
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } }
.zurueck { flex: none; font-size: 24px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche); color: var(--text); }

/* ---------- Navigation unten ---------- */
.nav {
  position: fixed; left: 0; right: 0; margin: 0 auto; bottom: 0; z-index: 30;
  width: 100%; max-width: 560px;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(11, 11, 13, 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--leise); font-size: 11px; font-weight: 600; position: relative; padding: 6px 0; }
.nav a .i { font-size: 22px; line-height: 1; filter: grayscale(1) brightness(1.5); opacity: 0.7; transition: transform 0.2s; }
.nav a.aktiv { color: var(--text); }
.nav a.aktiv .i { filter: none; opacity: 1; animation: hupf 0.4s ease-out; }
@keyframes hupf { 40% { transform: translateY(-4px) scale(1.12); } }
.nav .ausloeser {
  justify-self: center; width: 64px; height: 64px; border-radius: 50%; margin-top: -28px;
  background: radial-gradient(circle at 30% 25%, var(--gold2), var(--gold) 55%, #e9a90f);
  color: #1a1300; font-size: 28px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px var(--bg), 0 8px 26px rgba(255, 197, 49, 0.38);
  animation: leuchten 3.5s ease-in-out infinite;
}
.nav .ausloeser:active { transform: scale(0.94); }
@keyframes leuchten { 50% { box-shadow: 0 0 0 5px var(--bg), 0 8px 34px rgba(255, 197, 49, 0.6); } }
.punkt { position: absolute; top: 1px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rot); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; animation: plopp 0.35s ease-out; }
@keyframes plopp { from { transform: scale(0.3); } 70% { transform: scale(1.2); } }

/* ---------- Bausteine ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border-radius: 15px;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1300; font-weight: 750;
  box-shadow: 0 4px 16px rgba(255, 197, 49, 0.18); transition: transform 0.12s, opacity 0.2s;
}
.knopf:active { transform: scale(0.97); }
.knopf:disabled { opacity: 0.45; cursor: default; transform: none; }
.knopf.zweit { background: var(--flaeche2); color: var(--text); font-weight: 650; box-shadow: none; }
.knopf.klein { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.knopf.gefahr { background: transparent; color: var(--rot); border: 1px solid #4a2626; box-shadow: none; }
.knopf.voll { width: 100%; }
.knopf + .knopf.voll { margin-top: 8px; }
.textknopf { color: var(--gold); font-weight: 650; font-size: 14px; padding: 6px 2px; }
.feld { display: block; margin: 0 0 12px; }
.feld > span { display: block; font-size: 13px; color: var(--leise); margin: 0 0 6px 2px; }
.feld input, .feld textarea, input.eingabe, textarea.eingabe {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px;
  background: var(--flaeche); border: 1px solid var(--rand); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s, background 0.2s;
}
.feld input:focus, .eingabe:focus, .feld textarea:focus { border-color: var(--gold-dunkel); background: #1b1a17; }
input[type="date"] { min-height: 50px; display: block; }
.haken { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; font-size: 14px; color: #d8d4ca; }
.haken input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; margin: 0; }
.karte { background: var(--flaeche); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; }
.leise { color: var(--leise); }
.klein { font-size: 13px; }
.fehler { color: #ff8a8a; font-size: 14px; min-height: 1em; margin: 6px 0; }
.titel2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--leise); margin: 22px 4px 10px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.titel2 .rechts { margin-left: auto; text-transform: none; letter-spacing: 0; }
.leer { text-align: center; color: var(--leise); padding: 40px 20px; }
.leer .gross { font-size: 48px; margin-bottom: 8px; display: inline-block; animation: wippen 3s ease-in-out infinite; }

.reiter { display: flex; gap: 4px; background: var(--flaeche); padding: 4px; border-radius: 15px; margin: 0 0 14px; position: relative; }
.reiter button { flex: 1; min-height: 40px; border-radius: 11px; color: var(--leise); font-weight: 650; font-size: 15px; transition: background 0.2s, color 0.2s; }
.reiter button.an { background: var(--flaeche2); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }

/* Avatar mit Profilbild (Initialen darunter als Ersatz) */
.avatar {
  --c: #c99410; position: relative; overflow: hidden; width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--c); color: #111; font-weight: 850; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.gross { width: 96px; height: 96px; font-size: 34px; }
.avatar.mittel { width: 56px; height: 56px; font-size: 19px; }
.avatar.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); animation: ringglut 2.8s ease-in-out infinite; }
@keyframes ringglut { 50% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #ff9a3d, 0 0 14px rgba(255, 170, 60, 0.45); } }

.zeile { display: flex; align-items: center; gap: 12px; padding: 10px 4px; width: 100%; text-align: left; color: inherit; }
.zeile + .zeile { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.zeile .mitte { flex: 1; min-width: 0; }
.zeile .name { font-weight: 650; }
.zeile .unter { font-size: 13px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liste { padding: 6px 12px; }

/* ---------- Schalter ---------- */
.schalter { position: relative; width: 52px; height: 32px; flex: none; }
.schalter input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.schalter span { position: absolute; inset: 0; border-radius: 16px; background: var(--rand); transition: background 0.2s; }
.schalter span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.schalter input:checked + span { background: var(--gold); }
.schalter input:checked + span::after { transform: translateX(20px); }
.segment { display: flex; gap: 4px; background: var(--bg2); padding: 4px; border-radius: 13px; }
.segment button { flex: 1; min-height: 38px; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--leise); }
.segment button.an { background: var(--flaeche2); color: var(--text); }

/* ---------- Gerade am Trinken ---------- */
.jetzt { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jetzt::-webkit-scrollbar { display: none; }
.jetzt a { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--text); font-size: 12px; width: 62px; flex: none; }
.jetzt .avatar { width: 56px; height: 56px; font-size: 19px; }
.jetzt .emo { position: absolute; right: -6px; bottom: -6px; font-size: 17px; background: var(--bg); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.jetzt span.nm { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Post ---------- */
.post { margin: 0 0 24px; animation: einblenden 0.35s ease-out both; animation-delay: calc(var(--i, 0) * 45ms); }
.post-kopf { display: flex; align-items: center; gap: 10px; padding: 0 2px 10px; }
.post-kopf .mitte { flex: 1; min-width: 0; }
.post-kopf .name { font-weight: 750; color: var(--text); }
.post-kopf .unter { font-size: 13px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doppel { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #1d1a12, #15151a); box-shadow: var(--schatten); }
.doppel > img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.doppel .klein-bild {
  position: absolute; top: 12px; left: 12px; width: 31%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  border: 2px solid #000; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); background: #222; padding: 0; transition: transform 0.2s;
}
.doppel .klein-bild:active { transform: scale(0.95); }
.doppel .klein-bild img { width: 100%; height: 100%; object-fit: cover; }
.doppel .marke { position: absolute; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 82%; }
/* Kondenstropfen am Bildrand – ganz dezent */
.doppel .tau { position: absolute; top: 0; right: 18%; width: 7px; height: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), rgba(255, 220, 150, 0.25) 55%, transparent 70%); opacity: 0; animation: tau 9s ease-in var(--tv, 2s) infinite; pointer-events: none; }
@keyframes tau { 0% { opacity: 0; transform: translateY(-4px); } 8% { opacity: 0.8; } 70% { opacity: 0.7; transform: translateY(60px); } 100% { opacity: 0; transform: translateY(110px) scaleY(1.4); } }
.chip {
  color: var(--text); display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 17px;
  background: rgba(14, 14, 17, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 650; border: 1px solid rgba(255, 255, 255, 0.09); white-space: nowrap;
}
.post-text { margin: 10px 4px 0; overflow-wrap: anywhere; }
.post-fuss { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.prost { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 21px; background: var(--flaeche); font-weight: 700; transition: background 0.2s, color 0.2s, transform 0.1s; }
.prost:active { transform: scale(0.95); }
.prost.an { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1300; }
.prost .glaeser { font-size: 19px; display: inline-block; }
.prost.klirr .glaeser { animation: klirr 0.5s ease-out; }
@keyframes klirr { 30% { transform: rotate(-22deg) scale(1.3); } 60% { transform: rotate(12deg) scale(1.15); } }
.tropfen { position: absolute; left: 22px; top: 50%; width: 8px; height: 11px; margin: -5px 0 0 -4px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--tf, var(--gold)); pointer-events: none; animation: spritzen 0.75s cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
@keyframes spritzen { from { transform: translate(0, 0) scale(0.6); opacity: 1; } to { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 0; } }
.runde { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--flaeche); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text); }
.neu-pille { position: -webkit-sticky; position: sticky; top: 70px; z-index: 15; display: block; margin: 0 auto 12px; background: var(--gold); color: #1a1300; font-weight: 750; padding: 9px 18px; border-radius: 20px; box-shadow: var(--schatten); animation: plopp 0.35s; }
.aufruf { display: flex; align-items: center; gap: 14px; color: inherit; background: linear-gradient(135deg, #2b2108, #17171c 70%); border: 1px solid #3d300c; position: relative; overflow: hidden; }
.aufruf .glas-klein { flex: none; }

/* Bierglas, das sich füllt (Ladeanzeige & Deko) */
.glas { position: relative; width: 34px; height: 44px; border: 3px solid rgba(255, 246, 220, 0.85); border-top: 0; border-radius: 0 0 9px 9px; overflow: hidden; display: inline-block; }
.glas::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(var(--gold2), var(--gold)); animation: fuellen 2.2s ease-in-out infinite; }
.glas::after { content: ""; position: absolute; left: -2px; right: -2px; height: 9px; bottom: 0; background: var(--schaum); border-radius: 5px; animation: schaum 2.2s ease-in-out infinite; }
@keyframes fuellen { 0% { height: 0; } 70%, 100% { height: 82%; } }
@keyframes schaum { 0% { bottom: -9px; } 70%, 100% { bottom: 76%; } }
.lade { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 50px 0; color: var(--leise); font-size: 14px; }
.skelett { border-radius: var(--radius); background: linear-gradient(90deg, var(--flaeche) 25%, var(--flaeche2) 50%, var(--flaeche) 75%); background-size: 200% 100%; animation: schimmer 1.4s infinite; }
@keyframes schimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Kamera ---------- */
.kamera { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; }
.kamera .bild-bereich { position: relative; flex: 1; overflow: hidden; }
.kamera video, .kamera .vorschau { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kamera video.spiegel { transform: scaleX(-1); }
.kamera .oben { position: absolute; top: 0; left: 0; right: 0; padding: calc(14px + var(--safe-t)) 16px 18px; display: flex; align-items: center; gap: 10px; background: linear-gradient(rgba(0, 0, 0, 0.65), transparent); z-index: 3; }
.kamera .schritt { flex: 1; text-align: center; font-weight: 750; }
.kamera .schritt small { display: block; font-weight: 500; color: #ddd; font-size: 13px; }
.kamera .x { width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); font-size: 20px; display: flex; align-items: center; justify-content: center; color: #fff; }
.kamera .unten { padding: 18px 16px calc(22px + var(--safe-b)); display: flex; align-items: center; justify-content: space-around; background: #000; }
.kamera .shutter { width: 80px; height: 80px; border-radius: 50%; border: 5px solid #fff; background: transparent; display: flex; align-items: center; justify-content: center; }
.kamera .shutter::after { content: ""; width: 62px; height: 62px; border-radius: 50%; background: #fff; transition: transform 0.12s, background 0.2s; }
.kamera .shutter:active::after { transform: scale(0.86); background: var(--gold); }
.kamera .seiten { width: 56px; height: 56px; border-radius: 50%; background: #1d1d22; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; line-height: 1.05; text-align: center; }
.kamera .mini { position: absolute; top: calc(74px + var(--safe-t)); left: 14px; width: 28%; aspect-ratio: 3 / 4; border-radius: 13px; overflow: hidden; border: 2px solid #000; z-index: 2; animation: reinfliegen 0.4s ease-out; }
@keyframes reinfliegen { from { transform: scale(2.4) translate(30%, 30%); opacity: 0.4; } }
.kamera .mini img { width: 100%; height: 100%; object-fit: cover; }
.kamera .countdown { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 130px; font-weight: 850; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); pointer-events: none; z-index: 4; }
.kamera .countdown span { animation: zahl 0.9s ease-out; }
@keyframes zahl { from { transform: scale(1.6); opacity: 0; } 30% { opacity: 1; } to { transform: scale(0.9); opacity: 0.2; } }
.kamera .blitz { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; }
.kamera .blitz.los { animation: blitz 0.35s ease-out; }
@keyframes blitz { from { opacity: 0.9; } to { opacity: 0; } }
.kamera .problem { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; color: #ddd; }

/* ---------- Posten (Details) ---------- */
.posten { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.posten .innen { max-width: 560px; margin: 0 auto; padding: 0 16px calc(120px + var(--safe-b)); }
.posten .doppel { width: 54%; margin: 0 auto 4px; }
.posten-fuss { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 14px 16px calc(12px + var(--safe-b)); background: linear-gradient(rgba(11, 11, 13, 0), var(--bg) 35%); }
.posten-fuss .innen2 { max-width: 528px; margin: 0 auto; }
.abschnitt { background: var(--flaeche); border-radius: var(--radius); padding: 14px; margin: 12px 0; border: 1px solid rgba(255, 255, 255, 0.05); }
.abschnitt h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.abschnitt h3 .rechts { margin-left: auto; font-weight: 600; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl .chip { background: var(--flaeche2); -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform 0.12s, background 0.2s; }
.wahl .chip:active { transform: scale(0.94); }
.wahl .chip.an { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1300; border-color: var(--gold); animation: plopp 0.3s; }
.wahl .chip.ki { border-color: #6a5414; background: #241e0d; }
.wahl .chip.neu { border-style: dashed; color: var(--gold); background: transparent; }
.wahl .chip .weg { margin-left: 2px; opacity: 0.65; }
.leiste { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.leiste::-webkit-scrollbar { display: none; }
.leiste .chip { flex: none; background: var(--flaeche2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.leiste .chip.an { background: var(--schaum); color: #1a1300; }
.suchfeld { position: relative; margin: 10px 0; }
.suchfeld input { width: 100%; min-height: 44px; padding: 10px 40px 10px 38px; border-radius: 13px; background: var(--bg2); border: 1px solid var(--rand); outline: none; -webkit-appearance: none; appearance: none; }
.suchfeld input:focus { border-color: var(--gold-dunkel); }
.suchfeld::before { content: "🔎"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: 0.7; pointer-events: none; }
.suchfeld .leeren { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; color: var(--leise); font-size: 16px; }
.kat-panel { margin-top: 10px; padding: 10px; border-radius: 14px; background: var(--bg2); animation: aufklappen 0.25s ease-out; }
@keyframes aufklappen { from { opacity: 0; transform: translateY(-6px); } }
.kat-panel .wahl .chip { font-size: 13.5px; min-height: 32px; }
.sicht { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sicht button { min-height: 62px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--rand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 650; transition: border-color 0.2s, background 0.2s; }
.sicht button .e { font-size: 20px; }
.sicht button.an { border-color: var(--gold); background: #2a2108; }
.ortzeile { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.ortzeile.ok { color: var(--gruen); }
.ortzeile .mitte { flex: 1; min-width: 0; }
.ortknoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hilfe { font-size: 13px; color: #ffc9c9; background: #2a1515; border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; line-height: 1.45; }
.orte { margin-top: 8px; }
.orte button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--bg2); margin-top: 6px; }
.orte button b { display: block; font-weight: 650; }
.orte button span { font-size: 12.5px; color: var(--leise); }
.empf { max-height: 270px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.empf label { display: flex; align-items: center; gap: 12px; padding: 8px 2px; }
.empf input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; }
.ki-lade { display: inline-flex; align-items: center; gap: 8px; color: var(--leise); font-size: 14px; }
.drehen { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rand); border-top-color: var(--gold); animation: drehen 0.8s linear infinite; display: inline-block; flex: none; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* Erfolg nach dem Posten */
.prost-gross { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(11, 11, 13, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: weg 1.5s ease-in forwards; pointer-events: none; }
.prost-gross .e { font-size: 96px; animation: anstossen 0.9s ease-out; }
.prost-gross b { font-size: 30px; margin-top: 8px; letter-spacing: -0.02em; }
.prost-gross i { position: absolute; bottom: 30%; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 220, 140, 0.6); animation: hochblubbern 1.2s ease-out var(--v) forwards; opacity: 0; }
@keyframes hochblubbern { 10% { opacity: 1; } to { transform: translateY(-50vh); opacity: 0; } }
@keyframes anstossen { 0% { transform: scale(0.3) rotate(-20deg); } 50% { transform: scale(1.2) rotate(10deg); } 100% { transform: scale(1); } }
@keyframes weg { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; gap: 6px; padding-bottom: 90px; }
.blase { max-width: 78%; padding: 9px 13px; border-radius: 19px; background: var(--flaeche2); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-wrap; animation: einblenden 0.25s ease-out; color: var(--text); }
.blase.ich { align-self: flex-end; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1300; }
.blase .z { display: block; font-size: 11px; opacity: 0.6; margin-top: 3px; text-align: right; }
.blase.foto { padding: 6px; width: 66%; display: block; }
.blase.foto .doppel { border-radius: 14px; box-shadow: none; }
.blase.foto .gl { font-size: 13px; padding: 6px 4px 0; font-weight: 650; }
.tag-trenner { text-align: center; font-size: 12px; color: var(--leise); margin: 12px 0 4px; }
.schreiben {
  position: fixed; left: 0; right: 0; margin: 0 auto; bottom: 0; width: 100%; max-width: 560px; z-index: 30;
  display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + var(--safe-b)); background: rgba(11, 11, 13, 0.96); border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.schreiben textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; border-radius: 23px; padding: 12px 16px; background: var(--flaeche); border: 1px solid var(--rand); outline: none; -webkit-appearance: none; appearance: none; }
.schreiben button { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #1a1300; font-size: 20px; flex: none; }

/* ---------- Profil ---------- */
.profil-kopf { text-align: center; padding: 10px 0 6px; }
.profil-kopf .avatar { margin: 0 auto 12px; }
.profil-kopf h2 { margin: 0; font-size: 23px; letter-spacing: -0.02em; }
.avatar-knopf { position: relative; display: inline-block; }
.avatar-knopf .stift { position: absolute; right: -2px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #1a1300; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 0 0 3px var(--bg); }
.zahlen { display: flex; justify-content: center; gap: 30px; margin: 14px 0; }
.zahlen div { text-align: center; }
.zahlen b { display: block; font-size: 21px; }
.zahlen span { font-size: 12px; color: var(--leise); }
.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.raster a { aspect-ratio: 3 / 4; border-radius: 11px; overflow: hidden; background: var(--flaeche2); position: relative; animation: einblenden 0.3s ease-out both; animation-delay: calc(var(--i, 0) * 30ms); }
.raster img { width: 100%; height: 100%; object-fit: cover; }
.raster .e { position: absolute; right: 4px; bottom: 4px; font-size: 13px; background: rgba(0, 0, 0, 0.6); border-radius: 10px; padding: 1px 6px; }
.top3 { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.einst { display: flex; align-items: center; gap: 12px; padding: 12px 2px; }
.einst + .einst { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.einst .mitte { flex: 1; min-width: 0; }
.einst .mitte small { display: block; color: var(--leise); font-size: 12.5px; margin-top: 2px; }

/* Zuschneiden fürs Profilbild */
.zuschnitt { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 8px auto 14px; border-radius: 50%; overflow: hidden; background: #000; touch-action: none; cursor: grab; box-shadow: 0 0 0 3px var(--gold); }
.zuschnitt img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center; user-select: none; -webkit-user-select: none; pointer-events: none; }
input[type="range"] { width: 100%; accent-color: var(--gold); }

/* ---------- Start & Bestätigen ---------- */
.start { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(30px + var(--safe-t)) 20px calc(30px + var(--safe-b)); }
.start .held { text-align: center; margin-bottom: 24px; }
.start .held .logo { font-size: 48px; }
.start .held p { color: var(--leise); margin: 6px 0 0; font-size: 17px; }
.start .glas { width: 54px; height: 70px; border-width: 4px; border-radius: 0 0 13px 13px; margin-bottom: 10px; }
.start .glas::after { height: 13px; }
.codefeld { text-align: center; font-size: 34px !important; letter-spacing: 0.45em; font-weight: 800; padding-left: 0.45em !important; font-family: ui-monospace, Menlo, Consolas, monospace; }
.status { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px 14px; border-radius: 14px; background: var(--flaeche); margin: 12px 0; }
.status.ok { color: #bfeed3; }
.status.schlecht { color: #ffc9c9; background: #2a1515; }

/* ---------- Toast & Blatt ---------- */
.toast { position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translate(-50%, calc(-100% - 40px)); visibility: hidden; z-index: 130; background: var(--schaum); color: #1a1300; padding: 12px 18px; border-radius: 16px; font-weight: 650; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), visibility 0.35s; max-width: calc(100% - 32px); text-align: center; }
.toast.zeigen { transform: translate(-50%, 0); visibility: visible; }
.toast.fehler-t { background: var(--rot); color: #fff; }
.schleier { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; justify-content: center; animation: abdunkeln 0.2s ease-out; }
@keyframes abdunkeln { from { background: rgba(0, 0, 0, 0); } }
.blatt { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--flaeche); border-radius: 24px 24px 0 0; padding: 10px 18px calc(20px + var(--safe-b)); animation: hoch 0.26s cubic-bezier(0.2, 0.9, 0.3, 1); }
.blatt::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--rand); margin: 0 auto 14px; }
.blatt h3 { margin: 0 0 6px; }
.blatt .knopf { margin-top: 8px; }
@keyframes hoch { from { transform: translateY(100%); } }

@media (min-width: 700px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #1f1806, var(--bg)); }
  #app { border-left: 1px solid #18181d; border-right: 1px solid #18181d; background: var(--bg); }
  .kamera, .posten { max-width: 560px; margin: 0 auto; }
  .schleier { align-items: center; }
  .blatt { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .blasen { display: none; }
}
