/* Ideen-Board – Gestaltung wie eau-de-kosova.com: Weiß, Schwarz, Rot, Gold; Cormorant + Jost. Mobile first. */
@font-face { font-family: 'Cormorant Garamond'; src: url('/assets/fonts/cormorant-garamond.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/assets/fonts/cormorant-garamond-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/assets/fonts/jost.woff2') format('woff2'); font-weight: 300 600; font-display: swap; }
:root {
  --red: #90090E; --red-hover: #B5141B; --gold: #E9B758; --gold-ink: #8A6520; --black: #0D0B0A;
  --bg: #FFFFFF; --surface: #F6F3EE; --surface-2: #EFEAE2; --text: #0D0B0A; --muted: #6E655B;
  --line: rgba(138,101,32,.32); --line-soft: rgba(13,11,10,.1);
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif; --sans: 'Jost', 'Avenir Next', system-ui, sans-serif;
  --pad: clamp(16px, 5vw, 40px); --ease: cubic-bezier(.2,.7,.2,1); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
img, svg, video, audio, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(.8rem + env(safe-area-inset-top, 0px)) var(--pad) .8rem; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 30px; width: auto; }
.wordmark { font: 500 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.brand__sub { font: italic 400 1.15rem/1 var(--serif); color: var(--gold-ink); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.icon-btn:active { background: var(--surface); }

main { padding: 1.5rem var(--pad) calc(7rem + var(--safe-b)); max-width: 960px; margin: 0 auto; outline: none; }
.kicker { font: 400 .7rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .6rem; }
.display { font: 300 clamp(2.2rem, 9vw, 3.6rem)/1.02 var(--serif); letter-spacing: -.01em; margin: 0 0 .5rem; text-wrap: balance; }
.lead { color: var(--muted); margin: 0 0 1.5rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { border-bottom: 1px solid var(--line); }
.rule { width: 56px; height: 1px; background: var(--gold); margin: 1rem 0 1.5rem; border: 0; }

/* Buttons & Felder */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border: 1px solid var(--black);
  background: var(--black); color: #fff; font: 400 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; border-radius: 0; transition: background .2s var(--ease); }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--text); border-color: var(--gold-ink); }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 .9rem; font-size: .68rem; }
.btn:disabled { opacity: .5; pointer-events: none; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font: 400 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.input, textarea.input, select.input { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid var(--line); background: #fff; border-radius: 0; font-size: 16px; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(233,183,88,.25); }
.err { color: var(--red); font-size: .9rem; min-height: 1.3em; margin: .3rem 0 .8rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* Login */
.login { max-width: 420px; margin: 8vh auto 0; text-align: center; }
.login img { height: 92px; width: auto; margin: 0 auto 1.6rem; }
.login form { text-align: left; margin-top: 2rem; }

/* Karten-Liste */
.list { display: grid; gap: .8rem; margin: 1.2rem 0 2rem; }
@media (min-width: 680px) { .list { grid-template-columns: 1fr 1fr; } }
.card { display: block; padding: 1.2rem 1.2rem 1.1rem; background: var(--surface); border: 1px solid transparent; transition: border-color .2s var(--ease), transform .2s var(--ease); position: relative; }
.card:hover { border-color: var(--line); }
.card:active { transform: scale(.99); }
.card h3 { font: 400 1.6rem/1.1 var(--serif); margin: 0 0 .35rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .meta { margin-top: .8rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); margin: 1rem 0 2rem; }
.empty em { font: italic 400 1.4rem/1.3 var(--serif); display: block; color: var(--text); margin-bottom: .3rem; }

.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.section-h h2 { font: 400 1.6rem/1 var(--serif); margin: 0; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: .6rem 0 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; background: var(--surface); font-size: .85rem; border-radius: 999px; }
.chip button { border: 0; background: none; padding: 0 .1rem; cursor: pointer; color: var(--muted); font-size: 1.05rem; line-height: 1; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--black); color: var(--gold); font: 500 .7rem/1 var(--sans); flex: none; }

/* Board-Einträge */
.feed { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 760px) { .feed { grid-template-columns: 1fr 1fr; align-items: start; } }
.item { background: #fff; border: 1px solid var(--line-soft); }
.item--pinned { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.item__body { padding: 1rem 1rem .6rem; }
.item__media img { width: 100%; height: auto; background: var(--surface); cursor: zoom-in; }
.item__media audio { width: 100%; margin: .2rem 0 .4rem; }
.item__text { white-space: pre-wrap; word-wrap: break-word; margin: 0; }
.item__text--note { font: 400 1.25rem/1.4 var(--serif); }
.item__link { display: flex; gap: .8rem; align-items: center; padding: .8rem; background: var(--surface); margin-bottom: .5rem; }
.item__link b { font-weight: 400; display: block; word-break: break-all; }
.item__link small { color: var(--muted); }
.item__file { display: flex; align-items: center; gap: .6rem; padding: .8rem; background: var(--surface); margin-bottom: .5rem; }
.item__foot { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem .6rem 1rem; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--muted); }
.item__foot .tag { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.mini { border: 0; background: none; min-width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); border-radius: 50%; }
.mini:hover, .mini:active { background: var(--surface); color: var(--text); }
.mini.on { color: var(--gold-ink); }

/* Aktionsleiste unten */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: .55rem .6rem calc(.55rem + var(--safe-b)); background: var(--black); color: #fff;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .2rem; }
.dock button { border: 0; background: none; color: #fff; display: grid; justify-items: center; gap: .25rem; padding: .45rem 0; cursor: pointer; border-radius: 10px; }
.dock button:active { background: rgba(255,255,255,.08); }
.dock svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.dock span { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
@media (min-width: 760px) { .dock { left: 50%; right: auto; transform: translateX(-50%); bottom: 1rem; width: min(640px, 92vw); border-radius: 18px; } }
.fab { position: fixed; right: var(--pad); bottom: calc(1.2rem + var(--safe-b)); z-index: 25; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--black); color: var(--gold);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(13,11,10,.25); cursor: pointer; }
.fab:hover { background: var(--red); color: #fff; }

/* Sheet (Bottom-Sheet auf Mobil, Dialog auf Desktop) */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(13,11,10,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s var(--ease); }
.sheet__panel { background: #fff; width: 100%; max-height: 92dvh; overflow: auto; padding: 1.2rem var(--pad) calc(1.4rem + var(--safe-b)); animation: up .28s var(--ease); }
.sheet__panel h2 { font: 400 1.8rem/1.1 var(--serif); margin: .2rem 0 1rem; }
.sheet__grip { width: 40px; height: 4px; background: var(--line-soft); border-radius: 4px; margin: 0 auto 1rem; }
@media (min-width: 760px) { .sheet { align-items: center; } .sheet__panel { width: min(560px, 92vw); } .sheet__grip { display: none; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet--full .sheet__panel { max-height: 100dvh; height: 100dvh; padding: 0; display: flex; flex-direction: column; }
@media (min-width: 760px) { .sheet--full .sheet__panel { width: min(900px, 96vw); height: 92dvh; } }

/* Zeichnen */
.draw__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .7rem; padding-top: calc(.6rem + env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.draw__stage { flex: 1; position: relative; background: var(--surface); touch-action: none; overflow: hidden; }
.draw__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; background: #fff; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--black); }
.size { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 50%; padding: 0; }
.size.on { border-color: var(--black); }
.size i { display: block; background: var(--black); border-radius: 50%; }
.draw__foot { display: flex; gap: .6rem; padding: .7rem; padding-bottom: calc(.7rem + var(--safe-b)); border-top: 1px solid var(--line-soft); }
.draw__foot .btn { flex: 1; }

/* Aufnahme */
.rec { text-align: center; padding: 1rem 0 .5rem; }
.rec__time { font: 300 3.4rem/1 var(--serif); margin: .5rem 0 1.2rem; font-variant-numeric: tabular-nums; }
.rec__btn { width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; margin: 0 auto 1rem; cursor: pointer; }
.rec__btn i { width: 34px; height: 34px; border-radius: 50%; background: var(--red); transition: all .2s var(--ease); }
.rec__btn.on i { border-radius: 6px; width: 30px; height: 30px; }
.rec__btn.on { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(144,9,14,.12); } }
.meter { height: 3px; background: var(--surface-2); margin: 0 auto 1rem; max-width: 240px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .08s; }

.preview-img { width: 100%; max-height: 50dvh; object-fit: contain; background: var(--surface); margin-bottom: 1rem; }
.comments { margin: 0 0 1rem; display: grid; gap: .7rem; }
.comment { background: var(--surface); padding: .7rem .8rem; }
.comment b { font-weight: 500; font-size: .85rem; }
.comment small { color: var(--muted); margin-left: .4rem; }
.comment p { margin: .2rem 0 0; white-space: pre-wrap; }
.secret { font: 500 1.3rem/1.2 ui-monospace, Menlo, monospace; background: var(--surface); padding: .9rem; text-align: center; letter-spacing: .05em; user-select: all; word-break: break-all; margin: .6rem 0 1rem; }
.table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.table td { padding: .7rem .3rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table td small { display: block; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(13,11,10,.94); display: grid; place-items: center; padding: 1rem; cursor: zoom-out; }
.lightbox img { max-height: 92dvh; width: auto; }
.toast { position: fixed; left: 50%; bottom: calc(6.5rem + var(--safe-b)); transform: translate(-50%, 20px); background: var(--black); color: #fff; padding: .7rem 1.1rem; font-size: .9rem; z-index: 70;
  opacity: 0; pointer-events: none; transition: all .25s var(--ease); max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.drop-hint { position: fixed; inset: 0; z-index: 40; background: rgba(233,183,88,.15); border: 2px dashed var(--gold-ink); display: grid; place-items: center; font: italic 2rem var(--serif); pointer-events: none; }
