/* hoi – Swiss, bunt, ruhig. Inter Tight, grosse Sprünge, linksbündig. */
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+25CB-25CF;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #111111;
  --paper: #FFFFFF;
  --muted: #444444;
  --soft: rgba(255,255,255,.72);
  --r-lg: 28px;
  --r-md: 22px;
  --danger: #B3261E;
  color-scheme: light;
}

.v-sunset { --mesh: radial-gradient(at 12% 8%, #FFB36B 0px, transparent 55%), radial-gradient(at 88% 18%, #FF6FB1 0px, transparent 50%), radial-gradient(at 70% 88%, #9C8CFF 0px, transparent 55%), radial-gradient(at 10% 80%, #FFD86B 0px, transparent 50%); }
.v-ozean  { --mesh: radial-gradient(at 15% 10%, #6BE3FF 0px, transparent 55%), radial-gradient(at 85% 25%, #8C9BFF 0px, transparent 50%), radial-gradient(at 75% 90%, #7DFFB8 0px, transparent 55%), radial-gradient(at 5% 85%, #B8F0FF 0px, transparent 50%); }
.v-bonbon { --mesh: radial-gradient(at 15% 12%, #FF9ED8 0px, transparent 55%), radial-gradient(at 85% 20%, #C7A6FF 0px, transparent 50%), radial-gradient(at 70% 90%, #8FD3FF 0px, transparent 55%), radial-gradient(at 8% 85%, #FFC7A6 0px, transparent 50%); }
.v-neon   { --mesh: radial-gradient(at 12% 10%, #D4FF5C 0px, transparent 55%), radial-gradient(at 90% 15%, #5CF2FF 0px, transparent 50%), radial-gradient(at 75% 88%, #FF7AD9 0px, transparent 55%), radial-gradient(at 5% 85%, #FFE25C 0px, transparent 50%); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink);
  font-family: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--paper); background-image: var(--mesh); background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
body.dark { background: var(--ink); color: var(--paper); }
.mesh { background-size: 220% 220%; animation: drift 18s ease-in-out infinite; }
@keyframes drift { 0% { background-position: 0% 0%; } 50% { background-position: 100% 60%; } 100% { background-position: 0% 0%; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.rise { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.pop { animation: pop .4s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .mesh, .rise, .pop { animation: none; } }

a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
body.dark :focus-visible, .card-dark :focus-visible { outline-color: var(--paper); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 14px calc(110px + env(safe-area-inset-bottom)); }

/* ---- Typo ---- */
.giant { margin: 0; font-size: clamp(56px, 17vw, 84px); line-height: .86; font-weight: 800; letter-spacing: -.05em; }
.huge { margin: 0; font-size: clamp(52px, 16vw, 80px); line-height: .86; font-weight: 800; letter-spacing: -.05em; overflow-wrap: anywhere; hyphens: auto; }
.lead { margin: 14px 0 0; font-size: 17px; line-height: 1.4; max-width: 34ch; }
.lead.strong { font-weight: 600; }
.eyebrow, .label { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.label { margin: 12px 6px 2px; text-transform: uppercase; }
.fine { margin: 0; font-size: 13px; line-height: 1.45; }
.muted { margin: 4px 0 0; font-size: 13px; opacity: .8; }
.mesh-text { background-image: var(--mesh); background-color: var(--paper); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 160% 160%; }

/* ---- Screens ---- */
.screen { min-height: 100dvh; padding: 22px 6px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack.tight { gap: 6px; }
.grow { flex: 1; }

/* ---- Buttons ---- */
.btn { min-height: 60px; border: 0; border-radius: 999px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 700; text-decoration: none; width: 100%; text-align: left; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-mesh { background-color: var(--paper); background-image: var(--mesh); color: var(--ink); font-weight: 800; }
.btn-tall { min-height: 84px; border-radius: var(--r-lg); }
.btn-ico { display: flex; align-items: center; gap: 14px; }
.btn-ico small { display: block; font-size: 13px; font-weight: 500; opacity: .75; }
.btn-hoi { font-size: 22px; font-weight: 800; }
.btn-hoi .small { font-size: 12px; font-weight: 500; }
.btn-link { min-height: 44px; border: 0; background: transparent; padding: 0 6px; font-size: 14px; text-decoration: underline; text-align: left; }
.btn-link.light { color: var(--paper); }
.btn-link.danger { color: var(--danger); font-weight: 700; text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: wait; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; text-decoration: none; border: 0; }
.pill-ghost { background: var(--soft); color: var(--ink); }
.dot { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background-image: var(--mesh); background-color: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.icon-btn { width: 44px; height: 44px; margin: -14px -8px -14px 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; }

/* ---- Karten ---- */
.card { margin: 0; padding: 18px; border-radius: var(--r-lg); background: var(--paper); display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.4; }
.card-dark { background: var(--ink); color: var(--paper); }
.card-title { margin: 0; font-size: 30px; line-height: .95; font-weight: 800; letter-spacing: -.03em; }
.card.error { background: var(--ink); color: var(--paper); font-weight: 600; }
.steps { margin: 0; padding-left: 20px; line-height: 1.6; }

/* ---- Seite ---- */
.site { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.site-head { padding: 10px 6px 6px; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.topline a { text-decoration: none; }
.badge { padding: 6px 11px; border-radius: 999px; background: var(--soft); text-decoration: none; white-space: nowrap; }
.hello { display: flex; align-items: flex-end; gap: 14px; margin-top: 26px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--paper); background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; flex-shrink: 0; }
.avatar.sm { width: 40px; height: 40px; border: 0; font-size: 16px; }
.owner-nav { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.owner-nav form { margin: 0; }
.feed { display: flex; flex-direction: column; gap: 14px; }
.post { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 20px; }
.post-meta { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; min-height: 20px; }
.post-meta form { margin: 0; display: contents; }
.photo { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.photo figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 999px; background: var(--paper); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-lg); background: var(--paper); text-decoration: none; }
.link-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.link-title { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.03em; overflow-wrap: anywhere; }
.link-domain { font-size: 12px; color: var(--muted); }
.link-text { font-size: 16px; line-height: 1.4; }
.quote { margin: 0; padding: 22px 8px 14px; }
.quote p { margin: 0; font-size: clamp(40px, 13vw, 56px); line-height: .9; font-weight: 800; letter-spacing: -.05em; overflow-wrap: anywhere; }
.quote footer { margin-top: 14px; font-size: 13px; font-weight: 600; }
.thought { margin: 0; padding: 18px; border-radius: var(--r-lg); background: var(--soft); font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; white-space: pre-line; }
.teaser .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.teaser .tiles span { height: 96px; border-radius: 16px; background-image: var(--mesh); background-color: #EEEEEE; background-size: 300% 300%; filter: blur(2px); }
.teaser .tiles span:nth-child(2) { background-position: 50% 80%; }
.teaser .tiles span:nth-child(3) { background-position: 100% 20%; }
.hoi-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.card .field input:not([type=radio]):not([type=file]) { background: #F1F1F1; }
.door { gap: 14px; }
.door-title { margin: 0; font-size: 84px; line-height: .84; font-weight: 800; letter-spacing: -.055em; }
.door p { margin: 0; }
.waiting .huge { font-size: 64px; }
.waiting p { margin: 0; }
.grow.btn { margin-top: 8px; }
.foot { margin-top: 24px; padding: 0 6px; font-size: 12px; }
.foot a { font-weight: 700; }

/* ---- Startseite ---- */
.door-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 0 20px; border-radius: var(--r-md); background: var(--soft); text-decoration: none; font-size: 17px; }
.door-row.own { background: var(--ink); color: var(--paper); }
.door-row span { font-size: 13px; }

/* ---- Freigabe ---- */
.choice { min-height: 76px; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); text-align: left; padding: 0 22px; display: flex; align-items: center; gap: 16px; width: 100%; }
.choice strong { display: block; font-size: 20px; }
.choice small { font-size: 13px; opacity: .75; }
.choice .sign { font-size: 26px; width: 28px; text-align: center; flex-shrink: 0; }
.choice-dark { background: var(--ink); color: var(--paper); }
.choice-ghost { background: rgba(255,255,255,.5); min-height: 64px; }
.approve form { margin: 0; }

/* ---- Leute ---- */
.stat { flex-direction: row; align-items: center; gap: 16px; }
.stat p { margin: 0; font-size: 14px; }
.stat strong { display: block; font-size: 16px; }
.stat-num { font-size: 64px !important; line-height: .8; font-weight: 800; letter-spacing: -.05em; }
.person { border-radius: var(--r-md); background: var(--soft); }
.person[open] { background: var(--paper); }
.person summary { list-style: none; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 14px; cursor: pointer; }
.person summary::-webkit-details-marker { display: none; }
.person summary strong { display: block; font-size: 17px; }
.person summary small { font-size: 12px; color: var(--muted); }
.person[open] summary svg { transform: rotate(90deg); }
.person-actions { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; margin: 0; }

/* ---- Chips ---- */
.chips { display: grid; gap: 6px; margin: 0; }
.chips.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, .chip-btn { min-height: 48px; border-radius: 999px; border: 0; background: #F1F1F1; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; white-space: nowrap; padding: 0 8px; cursor: pointer; }
.chip input:checked + span, .chip-btn.on { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip-btn.light { background: var(--paper); color: var(--ink); }
.chip-btn.outline { background: transparent; color: var(--paper); border: 1px solid #8A8A8A; }

/* ---- Formulare ---- */
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-size: 13px; font-weight: 600; padding: 0; }
.field > small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.field input:not([type=radio]):not([type=file]), .prefix-input { width: 100%; min-height: 58px; padding: 14px 18px; border: 0; border-radius: var(--r-md); background: var(--paper); font-size: 20px; font-weight: 700; outline: none; }
.field input:focus-visible, .prefix-input:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.prefix-input { display: flex; align-items: baseline; gap: 0; }
.prefix-input > span { color: #6B6B6B; font-weight: 700; }
.prefix-input input { flex: 1; min-width: 0; min-height: 0 !important; padding: 0 !important; border-radius: 0 !important; outline: none !important; font-weight: 800 !important; }
.handle-msg { font-weight: 600; }
.handle-msg.bad { color: var(--danger); }
.new-site { justify-content: flex-start; gap: 22px; }
.new-site .btn { margin-top: 8px; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.swatch { position: relative; height: 96px; border-radius: var(--r-md); background-color: var(--paper); background-image: var(--mesh); display: flex; align-items: flex-end; padding: 10px; border: 3px solid rgba(255,255,255,.9); cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { padding: 6px 12px; border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 700; }
.swatch:has(input:checked) { border-color: var(--ink); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---- Sheets ---- */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(17,17,17,.45); }
.sheet { width: 100%; max-width: 560px; margin: auto auto 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--paper); max-height: 94dvh; }
.sheet[open] { animation: up .35s cubic-bezier(.2,.8,.2,1) both; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.compose { padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.compose .field.big textarea { width: 100%; min-height: 140px; border: 0; outline: none; resize: none; padding: 0; font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; background: transparent; }
.compose .field input:not([type=radio]):not([type=file]) { background: #F1F1F1; }
.compose[data-type] .only-link, .compose[data-type] .only-image, .compose[data-type] .only-quote { display: none; }
.compose[data-type=link] .only-link, .compose[data-type=image] .only-image, .compose[data-type=quote] .only-quote { display: flex; }
.compose input[type=file] { font-size: 15px; }
.share-sheet { background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; }
.share-sheet::backdrop { background: var(--ink); }
.share-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.share-inner canvas { width: auto; height: min(62dvh, 560px); aspect-ratio: 9 / 16; border-radius: 22px; }
.share-inner .btn { max-width: 320px; justify-content: center; }

/* ---- Fab, Toast ---- */
.fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: calc(100% - 28px); max-width: 532px; height: 62px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 24px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 5; }
.fab-plus { width: 44px; height: 44px; border-radius: 50%; background-image: var(--mesh); background-color: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 500; }
.toast { position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); max-width: 536px; margin: 0 auto; padding: 14px 18px; border-radius: 20px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.4; z-index: 20; animation: pop .35s both; }
body.dark .toast { background: var(--paper); color: var(--ink); }

/* ---- Einladen ---- */
.invite-btn { margin-top: 10px; }
.fine.pad { padding: 0 8px; }
.sheet-title { margin: 4px 0 0; font-size: 40px; line-height: .92; font-weight: 800; letter-spacing: -.045em; }
.avatar.ghost { background: var(--paper); color: var(--ink); font-size: 18px; }
a.chip-btn { text-decoration: none; }
.invite-ready .muted { margin: 0; }
.invite-ready .chips { margin-top: 2px; }

/* ---- Einstellungen ---- */
.eyebrow.block { display: block; margin-top: 26px; }
.eyebrow.block + .giant { margin-top: 8px; }
.label.flush { margin: 0; }
.settings { gap: 16px; }
.settings .field input:not([type=radio]):not([type=file]) { background: #F1F1F1; }
.fixed { margin: 0; min-height: 58px; padding: 16px 18px; border-radius: var(--r-md); border: 2px dashed #D6D6D6; font-size: 20px; font-weight: 800; color: #555555; }
.keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.keys li { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 8px 0 16px; border-radius: var(--r-md); background: #F1F1F1; }
.keys strong { display: block; font-size: 17px; }
.keys small { font-size: 12px; color: var(--muted); }
.keys .only { padding-right: 10px; }
.keys form { margin: 0; }
.outline-btn { border: 2px solid var(--ink); }
.owner-nav a.pill-ghost { text-decoration: none; }

/* ---------- Neu seit dem letzten Besuch ---------- */
.door-row .fresh { padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.door-row.has-fresh { background: var(--paper); box-shadow: 0 8px 24px rgba(17,17,17,.08); }
.fresh-note { margin: 0; padding: 14px 20px; border-radius: var(--r-md); background: var(--ink); color: var(--paper); font-size: 15px; }
.new-pill { padding: 3px 8px; border-radius: 999px; background-color: var(--paper); background-image: var(--mesh); color: var(--ink); }
.seen-line { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .55; }
.seen-line::before, .seen-line::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .4; }

/* ---------- hoi aufs Handy ---------- */
.home-card { display: flex; flex-direction: column; gap: 14px; }
.home-card[hidden] { display: none; }
.home-card-head { display: flex; align-items: center; gap: 14px; }
.home-card-head img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 18px rgba(17,17,17,.15); flex: none; }
.home-card-head .card-title { margin: 0; }
.home-card p { margin: 0; }
.home-card .btn-link { align-self: flex-start; }
.inline-ico { vertical-align: -3px; margin-left: 2px; }
.home-card .only-ios, .home-card .only-other, .home-card .only-prompt { display: none; }
.home-card[data-mode="ios"] .only-ios, .home-card[data-mode="other"] .only-other { display: block; }
.home-card[data-mode="prompt"] .only-prompt { display: flex; }

/* ---------- Link-Vorschau ---------- */
.link-card.has-img { padding-top: 0; overflow: hidden; }
.link-img { display: block; width: calc(100% + 36px); margin: 0 -18px 8px; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--soft); }
.link-card.has-img .link-title { font-size: 24px; line-height: 1.05; }
.link-card.has-img .link-title { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
