:root {
  --bg: #f7f3ed;
  --card: #fffaf2;
  --ink: #2d241d;
  --muted: #76695c;
  --line: #e4d7c5;
  --accent: #9b4d24;
  --accent-dark: #733717;
  --ok: #287a4b;
  --warn: #9a6a05;
  --bad: #9a2f22;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: radial-gradient(circle at top left, #fff2da, var(--bg) 42rem); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: rgba(255, 250, 242, 0.92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand-mark { width: 2rem; height: 2rem; border-radius: .65rem; box-shadow: 0 6px 18px rgba(45, 36, 29, 0.12); }
.site-nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.site-nav a, .nav-user { border-radius: 999px; padding: .5rem .75rem; color: var(--ink); font-weight: 700; }
.site-nav a { display: inline-flex; align-items: center; gap: .4rem; }
.nav-icon, .menu-icon { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.menu-icon { width: 1.35rem; height: 1.35rem; }
.site-nav a:hover { background: #f1e3d1; text-decoration: none; }
.nav-user { color: var(--muted); }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: .55rem; border-radius: 14px; background: #eee1d2; color: var(--ink); }
.menu-toggle[aria-expanded="false"] { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); color: rgba(255,247,234,.78); box-shadow: none; }
.menu-toggle[aria-expanded="true"] { background: linear-gradient(135deg, var(--accent), #ffbd73); color: #1c120c; }
.menu-toggle span:not(.sr-only) { display: block; width: 1.35rem; height: 2px; margin: .23rem auto; border-radius: 999px; background: currentColor; }
.container { width: min(1100px, calc(100vw - 2rem)); margin: 2rem auto; }
.card { background: rgba(255, 250, 242, .95); border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem; box-shadow: 0 10px 30px rgba(45, 36, 29, 0.06); margin-bottom: 1rem; }
.narrow { max-width: 420px; margin: 4rem auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .85rem; margin-bottom: 1rem; }
.overview-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 900px) { .overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 1rem; box-shadow: 0 8px 24px rgba(45, 36, 29, 0.04); }
.stat-card span { color: var(--muted); display: block; font-size: .9rem; margin-bottom: .35rem; }
.stat-card strong { font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1; }
.stat-card small { display: block; color: var(--muted); margin-top: .45rem; }
.stat-card.highlight { background: #fff4d8; border-color: #e7c36b; }
.stat-card.highlight.organizer-highlight { background: linear-gradient(135deg, #3b2417, #8f4f1f); border-color: rgba(255, 190, 95, .55); color: #fff8ec; box-shadow: 0 18px 44px rgba(0, 0, 0, .22); }
.stat-card.highlight.rating-highlight { background: linear-gradient(135deg, #3b2417, #8f4f1f); border-color: rgba(255, 190, 95, .55); color: #fff8ec; box-shadow: 0 18px 44px rgba(0, 0, 0, .22); }
.stat-card.highlight.rating-highlight span, .stat-card.highlight.rating-highlight small { color: rgba(255, 248, 236, .82); }
.stat-card.highlight.rating-highlight strong { color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.stat-card.highlight.organizer-highlight span, .stat-card.highlight.organizer-highlight small { color: rgba(255, 248, 236, .82); }
.stat-card.highlight.organizer-highlight strong { color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.inline-card-link { display: inline-flex; margin-top: .85rem; color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: .18em; }
.organizer-summary-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.organizer-order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.organizer-order-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; padding: .9rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.05); }
.organizer-order-item.is-current { border-color: rgba(255, 190, 95, .75); background: rgba(255, 190, 95, .12); }
.organizer-order-item.is-next { border-color: rgba(108, 180, 129, .7); }
.organizer-order-rank { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: rgba(255,255,255,.11); font-weight: 900; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.actions, .hero-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: .9rem; }
.hero-actions { margin-top: 0; }
h1, h2 { margin-top: 0; line-height: 1.1; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 1rem; }
.sub-card { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: rgba(255,255,255,.55); }
.sub-card h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem; background: white; color: var(--ink); font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: .72rem 1rem; color: white; background: var(--accent); font-weight: 750; cursor: pointer; }
button:hover, .button:hover { background: var(--accent-dark); text-decoration: none; }
button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(155, 77, 36, .28); outline-offset: 2px; }
.danger { background: var(--bad); color: white; }
.danger:hover { background: #742016; }
.compact { padding: .5rem .75rem; font-size: .9rem; }
.secondary { background: #eee1d2; color: var(--ink); }
.secondary:hover { background: #dfcfbd; }
.inline { display: inline; }
.inline button { padding: .45rem .7rem; }
.messages { display: grid; gap: .5rem; margin-bottom: 1rem; }
.message { padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: white; }
.message.success { border-color: #b8dfc8; color: var(--ok); }
.message.error { border-color: #efc0b8; color: var(--bad); }
.attendance-form, .user-form, .payment-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; align-items: end; }
.payment-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.payment-form h3 { margin: 0; align-self: center; }
.reset-password-form { display: grid; grid-template-columns: minmax(9rem, 1fr) auto; gap: .5rem; margin-top: .5rem; }
.edit-user-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .5rem; align-items: end; }
.activity-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: .85rem; align-items: end; margin: .5rem 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: white; }
.chart-column { display: grid; gap: .35rem; align-items: end; min-height: 13rem; }
.chart-bars { display: flex; align-items: end; justify-content: center; gap: .25rem; height: 8rem; padding: .5rem .35rem 0; border-bottom: 1px solid var(--line); }
.chart-bar { display: inline-block; width: 1.1rem; min-height: .25rem; border-radius: 999px 999px 0 0; background: var(--accent); }
.chart-bar.events { background: #dfcfbd; }
.chart-bar.joined { background: var(--ok); }
.chart-column strong { font-size: .85rem; text-align: center; }
.chart-column small { color: var(--muted); text-align: center; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; }
.table { display: grid; gap: .5rem; }
.table-row { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 1rem; align-items: center; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.location-table .table-row, .member-table .table-row, .account-table .table-row { grid-template-columns: 2fr 1fr 1.4fr; }
.attendance-table .table-row { grid-template-columns: 1.5fr .8fr 1.5fr auto; }
.language-form { display: inline-flex; align-items: center; }
.language-form select { padding: .45rem .7rem; min-width: 7rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mini-list { display: grid; gap: .75rem; }
.mini-list > div { border: 1px solid var(--line); border-radius: 14px; background: white; padding: .8rem; }
.pill { display: inline-flex; border-radius: 999px; padding: .25rem .6rem; font-size: .82rem; font-weight: 800; background: #eee1d2; }
.pill.joined, .pill.admin { background: #d9f1e2; color: var(--ok); }
.pill.maybe { background: #fff0bd; color: var(--warn); }
.pill.declined { background: #f8d6d0; color: var(--bad); }
.chat-card { display: grid; gap: 1rem; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: end; padding-top: 1rem; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--card); }
.chat-form textarea { resize: vertical; min-height: 3.2rem; }
.chat-thread { display: flex; flex-direction: column; gap: .75rem; max-height: min(62vh, 42rem); overflow-y: auto; padding-right: .25rem; scroll-behavior: smooth; }
.chat-message { border: 1px solid var(--line); border-radius: 16px; background: white; padding: .9rem; }
.chat-message p { margin-bottom: 0; white-space: pre-wrap; }
.chat-meta { margin-bottom: .35rem; }
.empty-chat { min-height: 10rem; align-items: center; justify-content: center; text-align: center; }
.location-poll { display: grid; gap: .75rem; }
.poll-option { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; border: 1px solid var(--line); border-radius: 16px; background: white; padding: .9rem; }
.poll-option input { width: auto; margin-top: .25rem; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.photo-upload-form { display: grid; grid-template-columns: minmax(14rem, 1fr) auto; gap: .75rem; align-items: end; margin-bottom: 1rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.photo-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; box-shadow: 0 8px 24px rgba(45, 36, 29, 0.05); }
.photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee1d2; }
.photo-meta { display: grid; gap: .6rem; padding: .8rem; }
.empty { text-align: center; padding: 3rem 1rem; }
@media (max-width: 780px) {
  .topbar { align-items: center; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  .site-nav { display: none; width: 100%; align-items: stretch; flex-direction: column; padding-top: .5rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a, .nav-user, .language-form, .site-nav .inline, .site-nav button { width: 100%; justify-content: center; text-align: center; }
  .page-title { align-items: flex-start; flex-direction: column; }
  .actions, .actions .button, .actions button { width: 100%; }
  .table-row, .location-table .table-row, .member-table .table-row, .account-table .table-row, .attendance-table .table-row { grid-template-columns: 1fr; }
  .chat-form, .photo-upload-form, .reset-password-form { grid-template-columns: 1fr; }
}


/* IT isst refresh */
:root {
  --bg: #17120f;
  --card: rgba(39, 29, 23, .86);
  --ink: #fff7ea;
  --muted: #d6bc9d;
  --line: rgba(255, 214, 163, .18);
  --accent: #ff8a45;
  --accent-dark: #f06f3c;
  --ok: #6ee7a8;
  --warn: #ffd166;
  --bad: #ff7a70;
}
body { background: radial-gradient(circle at 12% 0%, rgba(255, 138, 69, .28), transparent 32rem), radial-gradient(circle at 85% 10%, rgba(255, 207, 122, .16), transparent 28rem), #17120f; color: var(--ink); }
a { color: #ffd08a; }
.topbar { border-color: var(--line); background: rgba(23, 18, 15, .78); box-shadow: 0 18px 48px rgba(0,0,0,.22); }
.brand, .site-nav a, .nav-user { color: var(--ink); }
.site-nav a:hover { background: rgba(255,255,255,.08); }
.card, .stat-card, .mini-list > div, .table-row, .chat-message, .poll-option, .activity-chart, .photo-card { background: var(--card); border-color: var(--line); box-shadow: 0 18px 48px rgba(0, 0, 0, .18); backdrop-filter: blur(16px); }
.sub-card { background: rgba(255,255,255,.05); border-color: var(--line); }
input, textarea, select { background: rgba(255,255,255,.08); border-color: var(--line); color: var(--ink); }
input::placeholder, textarea::placeholder { color: rgba(255, 247, 234, .45); }
button, .button { background: linear-gradient(135deg, var(--accent), #ffbd73); color: #1c120c; box-shadow: 0 10px 28px rgba(255, 138, 69, .22); }
button:hover, .button:hover { background: linear-gradient(135deg, var(--accent-dark), #ffcf7a); }
.secondary { background: rgba(255,255,255,.1); color: var(--ink); box-shadow: none; }
.secondary:hover { background: rgba(255,255,255,.16); }
.hero-card, .event-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: clamp(1.3rem, 5vw, 2.2rem); border-radius: 28px; background: linear-gradient(135deg, rgba(255,138,69,.22), rgba(255,255,255,.06)); border: 1px solid var(--line); margin-bottom: 1rem; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.hero-card h1, .event-hero h1 { font-size: clamp(2.1rem, 8vw, 4.8rem); letter-spacing: -.06em; margin: .25rem 0; }
.hero-card p { max-width: 52rem; font-size: 1.05rem; color: var(--muted); }
.eyebrow { display: inline-flex; gap: .35rem; color: #ffcf7a; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.event-card { position: relative; overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.event-card:hover { transform: translateY(-3px); border-color: rgba(255, 207, 122, .42); }
.event-date { color: #ffcf7a; font-weight: 800; }
.restaurant-line { font-size: 1.05rem; font-weight: 750; }
.event-metrics, .reaction-line, .emoji-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .75rem; }
.event-metrics span, .reaction-line span { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .6rem; background: rgba(255,255,255,.06); color: var(--muted); font-size: .9rem; }
.restaurant-card .event-metrics span, .restaurant-card .event-metrics .rating-chip { color: #fff8ec; background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.2); font-weight: 750; }
.restaurant-card .event-metrics .rating-chip { color: #ffcf7a; }
.event-number { color: #ffcf7a; font-weight: 900; }
.event-card .pill { margin-bottom: .85rem; }
.rules-text { white-space: pre-wrap; font-family: inherit; line-height: 1.65; margin: 0; }
.rules-text.compact { margin-top: .75rem; }
.suggestion-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.mini-restaurant-card, .suggestion-card, .restaurant-card { overflow: hidden; }
.mini-restaurant-card { display: grid; gap: .35rem; border: 1px solid var(--line); border-radius: 18px; padding: .8rem; background: rgba(255,255,255,.06); }
.mini-restaurant-card img, .restaurant-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: rgba(255,255,255,.08); margin-bottom: .75rem; }
.hero-photo { max-height: 22rem; }
.rating-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; align-items: end; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: .75rem; }
.pill { color: #22140c; background: #ffcf7a; }
.pill.joined, .pill.admin { background: #9af0c3; color: #062416; }
.pill.maybe { background: #ffd166; color: #2e2100; }
.pill.declined { background: #ff9a91; color: #2b0906; }
.message { background: rgba(255,255,255,.09); border-color: var(--line); }
.message.success { color: var(--ok); }
.message.error { color: var(--bad); }
@media (max-width: 780px) {
  .container { width: min(100% - 1rem, 1100px); margin: 1rem auto 5rem; }
  .hero-card, .event-hero { flex-direction: column; align-items: stretch; border-radius: 24px; }
  .hero-actions, .hero-actions .button, .search-form { width: 100%; grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { border-radius: 18px; padding: 1rem; }
  input, textarea, select, button, .button { min-height: 44px; }
}
