/* ================================================================
   Bodensee Events – main.css
   Portiert aus der Single-Page HTML-App
   ================================================================ */

:root {
  --ink: #12100e;
  --cream: #f5f0e8;
  --gold: #c8860a;
  --gold-light: #e8a820;
  --gold-pale: #fdf3e0;
  --rust: #a83820;
  --lake: #1a4a6a;
  --lake-light: #2a6a9a;
  --sage: #3d5c35;
  --paper: #ede7d8;
  --paper-mid: #ddd5c0;
  --paper-dark: #c8bca8;
  --shadow-sm: 0 2px 8px rgba(18,16,14,.1);
  --shadow-md: 0 6px 24px rgba(18,16,14,.15);
  --shadow-lg: 0 16px 48px rgba(18,16,14,.2);
  --radius: 3px;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  --primary: #c8860a;
  --primary-light: #e8a820;
  --accent: #a83820;
  --bg: #f5f0e8;
  --surface: #ffffff;
}

[data-theme="dark"] {
  --cream: #1a1510; --paper: #221e18; --paper-mid: #2e2820;
  --paper-dark: #3a3228; --ink: #f0ebe0; --bg: #1a1510; --surface: #221e18;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3); --shadow-md: 0 6px 24px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .84rem; font-weight: 500;
  cursor: pointer; border: none; transition: all .2s; line-height: 1;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(255,255,255,.2); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-outline { background: transparent; border: 1.5px solid var(--paper-dark); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--rust); color: #fff; }
.btn-danger:hover { background: #8a2818; }
.btn-success { background: var(--sage); color: #fff; }
.btn-success:hover { background: #2d4428; }
.btn-sm { padding: .35rem .75rem; font-size: .76rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* HEADER */
#siteHeader {
  background: var(--ink); color: var(--cream);
  padding: 0 2rem; position: sticky; top: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; border-bottom: 3px solid var(--primary);
}
.site-logo {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  letter-spacing: -.3px; cursor: pointer; line-height: 1;
}
.site-logo em { color: var(--gold-light); font-style: italic; }
.header-nav { display: flex; gap: .65rem; align-items: center; }
.admin-pill {
  background: var(--rust); color: #fff; font-size: .6rem;
  padding: 2px 7px; border-radius: 999px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600; margin-left: 4px;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: transparent; border: none;
}
.hamburger span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: all .3s; display: block; }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--ink);
  z-index: 400; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu .btn { font-size: 1.1rem; padding: .85rem 2rem; width: 220px; justify-content: center; }
.mobile-menu-close { position: absolute; top: 1.5rem; right: 1.5rem; background: transparent; border: none; color: var(--cream); font-size: 1.5rem; cursor: pointer; }
@media(max-width: 600px) {
  .hamburger { display: flex; }
  .header-nav .btn-ghost { display: none; }
}

/* FEATURED STRIP */
.featured-strip {
  background: var(--ink); color: var(--cream); padding: 1rem 2rem;
  display: flex; align-items: center; gap: 2rem;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 2px solid var(--primary); position: relative; z-index: 1;
}
.featured-strip::-webkit-scrollbar { display: none; }
.featured-label {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--gold-light); white-space: nowrap; font-weight: 600;
  border-right: 1px solid #2a2218; padding-right: 2rem; flex-shrink: 0;
}
.featured-item {
  display: flex; align-items: center; gap: .65rem; white-space: nowrap;
  flex-shrink: 0; opacity: .82; transition: opacity .2s; cursor: pointer;
}
.featured-item:hover { opacity: 1; }
.featured-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.featured-name { font-family: var(--font-display); font-size: .95rem; font-style: italic; }
.featured-date { font-size: .7rem; color: #7a7060; }

/* HERO */
.hero {
  background: var(--ink); color: var(--cream);
  padding: 5.5rem 2rem 4.5rem; text-align: center;
  position: relative; overflow: hidden; z-index: 1;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,134,10,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(26,74,106,.12) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--rust), var(--primary), var(--gold-light), var(--primary), var(--rust));
  pointer-events: none; z-index: 0;
}
.hero-eyebrow {
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.25rem; opacity: .9; position: relative; z-index: 2;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.02; margin-bottom: 1.25rem; position: relative; z-index: 2;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: 1.05rem; color: #b8ae9a; max-width: 500px;
  margin: 0 auto 2.5rem; font-weight: 300; line-height: 1.65; position: relative; z-index: 2;
}
.search-wrap {
  display: flex; max-width: 580px; margin: 0 auto 1rem;
  border: 2px solid var(--primary); background: rgba(255,255,255,.05);
  border-radius: var(--radius); overflow: hidden; position: relative; z-index: 2;
}
.search-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--cream); font-family: var(--font-body); font-size: .95rem; padding: .8rem 1rem;
}
.search-wrap input::placeholder { color: #6a6050; }
.search-wrap button {
  background: var(--primary); border: none; color: #fff;
  padding: 0 1.25rem; cursor: pointer; font-size: 1.1rem; transition: background .2s;
}
.search-wrap button:hover { background: var(--gold-light); }
.city-filter-row {
  display: flex; gap: .5rem; justify-content: center;
  flex-wrap: wrap; margin-top: .5rem; position: relative; z-index: 2;
}
.city-chip {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #c8bfad; padding: .3rem .85rem; border-radius: 999px;
  font-size: .76rem; cursor: pointer; transition: all .2s;
}
.city-chip:hover, .city-chip.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* FILTERS BAR */
.filters-bar {
  display: flex; gap: .45rem; padding: 1.25rem 2rem;
  overflow-x: auto; background: var(--paper);
  border-bottom: 1px solid var(--paper-mid); scrollbar-width: none;
  align-items: center; position: relative; z-index: 1;
}
.filters-bar::-webkit-scrollbar { display: none; }
.filter-tag {
  background: transparent; border: 1.5px solid var(--paper-dark);
  color: var(--ink); padding: .38rem .95rem; border-radius: 999px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all .2s;
}
.filter-tag:hover, .filter-tag.active {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}

/* MAIN LAYOUT */
.main-wrap {
  max-width: 1220px; margin: 0 auto; padding: 2.5rem 2rem;
  display: grid; grid-template-columns: 1fr 310px; gap: 2.5rem;
  position: relative; z-index: 1;
}
@media(max-width: 920px) { .main-wrap { grid-template-columns: 1fr; } .sidebar { order: -1; } }
@media(max-width: 600px) { .main-wrap { padding: 1.5rem 1rem; } .hero { padding: 3.5rem 1rem 3rem; } }

.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.section-head .count { font-size: .76rem; color: #8a7f6e; letter-spacing: .05em; text-transform: uppercase; }

/* EVENT CARDS */
.events-grid { display: grid; gap: 1.1rem; }
.event-card {
  background: var(--surface); border: 1px solid var(--paper-mid);
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 92px 1fr;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  cursor: pointer; animation: cardIn .35s ease both; position: relative;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-card.featured-card { border-left: 3px solid var(--primary); }
.event-date-col {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: .85rem .4rem;
  background: var(--ink); color: var(--cream); text-align: center;
}
.date-day { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--gold-light); }
.date-mon { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 1px; opacity: .8; }
.date-time { font-size: .62rem; color: #907c68; margin-top: 5px; line-height: 1.5; }
.event-body { padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.ev-cat { font-size: .62rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; color: var(--rust); }
.ev-title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.ev-loc { font-size: .76rem; color: #7a7060; }
.ev-desc { font-size: .79rem; color: #5a5040; line-height: 1.55; margin-top: 3px; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; flex-wrap: wrap; gap: 3px; }
.ev-org { font-size: .7rem; color: #8a7f6e; }
.badges { display: flex; gap: 3px; flex-wrap: wrap; }
.badge { font-size: .6rem; padding: 2px 7px; border-radius: 999px; font-weight: 600; letter-spacing: .04em; }
.badge-city { background: #e4ede0; color: var(--sage); }
.badge-org { background: #dce8f0; color: var(--lake); }
.badge-private { background: var(--gold-pale); color: var(--gold); }
.badge-free { background: #e8ece4; color: #3d5c35; }
.badge-paid { background: #f8ece8; color: var(--rust); }
.badge-verified { background: var(--lake); color: #fff; }
.today-tag {
  position: absolute; top: 8px; right: 8px;
  background: var(--rust); color: #fff; font-size: .58rem;
  padding: 2px 6px; border-radius: 999px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}

/* PAGINATION */
.pagination { display: flex; align-items: center; justify-content: center; gap: .65rem; margin-top: 1.5rem; flex-wrap: wrap; }
.page-btn {
  background: transparent; border: 1.5px solid var(--paper-dark); color: var(--ink);
  padding: .4rem .9rem; border-radius: var(--radius); cursor: pointer;
  font-size: .82rem; transition: all .2s; font-family: var(--font-body);
}
.page-btn:hover, .page-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: #8a7f6e; display: none; }
.empty-state.show, .empty-state[style*="display:block"] { display: block; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .5rem; color: var(--ink); }

/* SIDEBAR */
.sidebar-widget {
  background: var(--surface); border: 1px solid var(--paper-mid);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.wid-head { background: var(--ink); color: var(--cream); padding: .7rem 1.2rem; font-family: var(--font-display); font-size: .98rem; font-weight: 600; }
.wid-body { padding: 1.1rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1.4rem; }
.stat-box { background: var(--surface); border: 1px solid var(--paper-mid); border-radius: var(--radius); padding: .9rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-lbl { font-size: .65rem; color: #8a7f6e; text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }

/* MINI CALENDAR */
.mini-cal { width: 100%; border-collapse: collapse; }
.mini-cal th { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: #8a7f6e; padding: 3px; text-align: center; }
.mini-cal td { text-align: center; padding: 4px 2px; font-size: .8rem; cursor: pointer; border-radius: 2px; transition: background .15s; position: relative; }
.mini-cal td:hover { background: var(--paper); }
.mini-cal td.cal-today { background: var(--primary); color: #fff; font-weight: 700; }
.mini-cal td.cal-has::after { content: ''; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--rust); }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: .65rem; }
.cal-nav button { background: none; border: none; cursor: pointer; color: var(--ink); font-size: 1rem; padding: 2px 6px; border-radius: 2px; transition: background .15s; }
.cal-nav button:hover { background: var(--paper); }
.cal-nav span { font-size: .82rem; font-weight: 500; }

/* CAT BARS */
.cat-bar-row { margin-bottom: .5rem; }
.cat-bar-label { display: flex; justify-content: space-between; font-size: .75rem; margin-bottom: 3px; }
.cat-bar-track { height: 4px; background: var(--paper-mid); border-radius: 2px; overflow: hidden; }
.cat-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width .4s; }

/* NEWSLETTER */
.nl-form { display: flex; gap: .5rem; margin-top: .75rem; }
.nl-form input {
  flex: 1; border: 1.5px solid var(--paper-dark); background: var(--surface);
  border-radius: var(--radius); padding: .55rem .75rem;
  font-family: var(--font-body); font-size: .84rem; color: var(--ink); outline: none; transition: border-color .2s;
}
.nl-form input:focus { border-color: var(--primary); }
.nl-form button {
  background: var(--primary); color: #fff; border: none;
  padding: .55rem 1rem; border-radius: var(--radius); cursor: pointer;
  font-size: .82rem; font-weight: 500; white-space: nowrap; transition: background .2s;
}
.nl-form button:hover { background: var(--gold-light); }

/* DONATION */
.donation-widget {
  background: linear-gradient(135deg, #1a1208 0%, #2a1c0a 100%);
  border: 1px solid var(--primary); border-radius: var(--radius);
  padding: 1.1rem; margin-bottom: 1.4rem;
}
.donation-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--cream); margin-bottom: .3rem; font-weight: 600; }
.donation-sub { font-size: .76rem; color: #8a7f6e; margin-bottom: .75rem; line-height: 1.5; }
.donation-amounts { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .65rem; }
.donation-btn { background: transparent; border: 1.5px solid #3a3028; color: #b8ae9a; padding: .35rem .75rem; border-radius: var(--radius); cursor: pointer; font-size: .8rem; transition: all .2s; }
.donation-btn:hover, .donation-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* SPONSOR */
.sponsor-banner {
  background: var(--paper); border: 1px solid var(--paper-mid);
  border-radius: var(--radius); padding: .85rem 1.1rem;
  text-align: center; font-size: .78rem; color: #8a7f6e;
  margin-bottom: 1.4rem; cursor: pointer; transition: all .2s;
}
.sponsor-banner:hover { border-color: var(--primary); color: var(--primary); }

/* ARCHIVE */
.archive-card {
  background: var(--surface); border: 1px solid var(--paper-mid);
  border-radius: var(--radius); padding: .85rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .5rem; opacity: .7; transition: opacity .2s;
}
.archive-card:hover { opacity: 1; }

/* MODALS */
.overlay {
  position: fixed; inset: 0; background: rgba(18,16,14,.8);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg); border-radius: var(--radius); width: 100%;
  max-width: 600px; max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); transform: translateY(18px);
  transition: transform .25s; border-top: 4px solid var(--primary);
}
.overlay.open .modal { transform: translateY(0); }
.modal-hd {
  padding: 1.4rem 1.65rem .9rem; border-bottom: 1px solid var(--paper-mid);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-hd h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: #8a7f6e; line-height: 1; padding: 2px 6px; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 1.4rem 1.65rem; }
.modal-lg { max-width: 760px; }
@media(max-width: 600px) { .modal-body, .modal-hd { padding: 1rem 1.1rem; } }

/* FORMS */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #6a6050; margin-bottom: 4px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; border: 1.5px solid var(--paper-dark); background: var(--surface);
  border-radius: var(--radius); padding: .58rem .75rem;
  font-family: var(--font-body); font-size: .88rem; color: var(--ink);
  outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media(max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: .7rem; color: #9a8f7e; margin-top: 3px; }
.type-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.type-btn {
  flex: 1; min-width: 90px; padding: .48rem .4rem;
  border: 1.5px solid var(--paper-dark); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; font-family: var(--font-body);
  font-size: .76rem; font-weight: 500; transition: all .2s; text-align: center; color: var(--ink);
}
.type-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.notice-box {
  background: var(--paper); border: 1px solid var(--paper-mid);
  border-radius: var(--radius); padding: .9rem 1.1rem;
  font-size: .8rem; color: #6a6050; margin-bottom: 1.1rem; line-height: 1.55;
}
.notice-box strong { color: var(--ink); }
.img-preview { width: 100%; height: 140px; border-radius: var(--radius); border: 1.5px solid var(--paper-dark); margin-top: .5rem; object-fit: cover; display: none; background: var(--paper); }
.img-preview.show { display: block; }

/* DETAIL MODAL */
.detail-hero { background: var(--ink); color: var(--cream); padding: 2rem 1.65rem 1.5rem; position: relative; }
.detail-cat { font-size: .65rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-light); margin-bottom: .5rem; font-weight: 600; }
.detail-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.1; margin-bottom: .75rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .82rem; color: #b8ae9a; }
.detail-img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.detail-body { padding: 1.4rem 1.65rem; }
.detail-desc { font-size: .9rem; line-height: 1.7; color: #4a4030; margin-bottom: 1.25rem; }
.detail-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.share-row { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.share-btn { padding: .4rem .9rem; border-radius: var(--radius); border: 1.5px solid var(--paper-dark); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 500; transition: all .2s; color: var(--ink); }
.share-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.social-links { display: flex; gap: .5rem; margin-top: .65rem; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--paper-dark); font-size: .76rem; color: var(--ink); text-decoration: none; transition: all .2s; }
.social-link:hover { border-color: var(--primary); color: var(--primary); }
.rating-row { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.65rem; background: var(--paper); border-top: 1px solid var(--paper-mid); flex-wrap: wrap; }
.rate-btn { background: transparent; border: 1.5px solid var(--paper-dark); padding: .3rem .75rem; border-radius: var(--radius); cursor: pointer; font-size: .85rem; transition: all .2s; font-family: var(--font-body); }
.rate-btn:hover { background: var(--paper-mid); }

/* TOAST */
#toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--sage); color: #fff;
  padding: .85rem 1.4rem; border-radius: var(--radius);
  font-size: .88rem; font-weight: 500; z-index: 900;
  transform: translateY(80px); opacity: 0; transition: all .3s;
  box-shadow: var(--shadow-md); max-width: 320px; pointer-events: none;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.err { background: var(--rust); }
#toast.info { background: var(--lake); }

/* COOKIE */
#cookieBanner {
  position: fixed; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  max-width: 520px; background: var(--ink); color: var(--cream);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg); z-index: 800;
  border-top: 3px solid var(--primary); display: none;
  animation: slideUp .35s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#cookieBanner.show { display: block; }
.cookie-text { font-size: .82rem; line-height: 1.6; color: #c8bfad; margin-bottom: 1rem; }
.cookie-btns { display: flex; gap: .65rem; }

/* LEGAL */
.legal-content { font-size: .84rem; line-height: 1.75; color: #4a4030; }
.legal-content h4 { font-family: var(--font-display); font-size: 1.1rem; margin: 1.25rem 0 .4rem; color: var(--ink); }

/* FOOTER */
.site-footer { background: var(--ink); color: #8a7f6e; padding: 2.5rem 2rem; margin-top: 4rem; border-top: 3px solid var(--primary); }
.footer-inner { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
@media(max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); margin-bottom: .5rem; font-weight: 700; }
.footer-logo em { color: var(--gold-light); font-style: italic; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #8a7f6e; text-decoration: none; font-size: .82rem; transition: color .2s; cursor: pointer; }
.footer-links a:hover { color: var(--gold-light); }
.footer-col-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gold-light); margin-bottom: .75rem; font-weight: 600; }

/* LOGIN */
#loginScreen {
  position: fixed; inset: 0; background: var(--ink); z-index: 700;
  align-items: center; justify-content: center; flex-direction: column; display: none;
}
#loginScreen.open { display: flex; }
.login-box {
  background: #1e1810; border: 1px solid #2a2218; border-top: 4px solid var(--primary);
  border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 380px;
}
.login-box h2 { font-family: var(--font-display); font-size: 1.7rem; color: var(--cream); margin-bottom: .2rem; font-weight: 700; }
.login-box p { font-size: .8rem; color: #6a6050; margin-bottom: 1.75rem; }
.login-box label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #8a7f6e; margin-bottom: 4px; font-weight: 600; }
.login-box input {
  width: 100%; background: #141008; border: 1.5px solid #2a2218;
  border-radius: var(--radius); padding: .65rem .85rem; color: var(--cream);
  font-family: var(--font-body); font-size: .9rem; outline: none; margin-bottom: 1rem; transition: border-color .2s;
}
.login-box input:focus { border-color: var(--primary); }
.security-notice { background: #1a1008; border: 1px solid #3a2808; border-radius: var(--radius); padding: .65rem .9rem; font-size: .74rem; color: #7a6040; margin-top: .75rem; line-height: 1.5; }
.emergency-link { font-size: .75rem; color: #6a6050; text-align: center; margin-top: .75rem; cursor: pointer; transition: color .2s; }
.emergency-link:hover { color: var(--gold-light); }

/* ADMIN */
#adminPanel {
  display: none; position: fixed; inset: 0; z-index: 600;
  background: #0e0c09; overflow: hidden; flex-direction: column;
}
#adminPanel.open { display: flex; }
.adm-hd { background: #1a1510; border-bottom: 2px solid var(--primary); padding: 0 2rem; height: 58px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.adm-tabs { display: flex; border-bottom: 1px solid #2a2218; flex-shrink: 0; background: #141008; overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab { background: transparent; border: none; color: #7a7060; padding: .8rem 1.35rem; font-family: var(--font-body); font-size: .82rem; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s; white-space: nowrap; }
.adm-tab:hover { color: var(--cream); }
.adm-tab.active { color: var(--gold-light); border-bottom-color: var(--primary); }
.adm-badge { background: var(--rust); color: #fff; font-size: .58rem; padding: 1px 5px; border-radius: 999px; margin-left: 5px; font-weight: 700; }
.adm-content { flex: 1; overflow-y: auto; padding: 2rem; }
@media(max-width: 600px) { .adm-content { padding: 1rem; } }
.adm-section { display: none; }
.adm-section.active { display: block; }
.adm-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); margin-bottom: 1.4rem; font-weight: 700; }
.adm-title span { color: var(--gold-light); font-style: italic; }
.adm-card { background: #1e1810; border: 1px solid #2a2218; border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.25rem; }
.adm-form label { color: #9a8f7e; }
.adm-form input, .adm-form textarea, .adm-form select { background: #141008; border-color: #2a2218; color: var(--cream); }
.adm-form input:focus, .adm-form textarea:focus, .adm-form select:focus { border-color: var(--primary); }
.adm-form .type-btn { background: #141008; color: #7a7060; border-color: #2a2218; }
.adm-form .type-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* REQUEST CARDS */
.req-card { background: #1e1810; border: 1px solid #2a2218; border-radius: var(--radius); padding: 1.2rem; border-left: 3px solid #3a3028; margin-bottom: .85rem; }
.req-card.pending { border-left-color: var(--gold); }
.req-card.approved { border-left-color: var(--sage); }
.req-card.rejected { border-left-color: var(--rust); }
.req-status { font-size: .62rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; margin-bottom: .4rem; }
.req-status.pending { color: var(--gold-light); }
.req-status.approved { color: #7dba6e; }
.req-status.rejected { color: #e07070; }
.req-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--cream); margin-bottom: .25rem; font-weight: 600; }
.req-meta { font-size: .76rem; color: #7a7060; margin-bottom: .4rem; line-height: 1.6; }
.req-desc { font-size: .79rem; color: #a09080; line-height: 1.55; margin-bottom: .9rem; }
.req-actions { display: flex; gap: .45rem; flex-wrap: wrap; }

/* ADMIN EVENTS LIST */
.adm-ev-row { background: #1e1810; border: 1px solid #2a2218; border-radius: var(--radius); padding: .9rem 1.1rem; display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.adm-ev-info { flex: 1; min-width: 0; }
.adm-ev-title { font-family: var(--font-display); color: var(--cream); font-size: .98rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-ev-sub { font-size: .72rem; color: #7a7060; margin-top: 2px; }
.adm-ev-actions { display: flex; gap: .4rem; flex-shrink: 0; flex-wrap: wrap; }

/* MAINTENANCE */
#maintenanceOverlay {
  position: fixed; inset: 0; background: var(--ink); z-index: 999;
  display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem; text-align: center;
}
#maintenanceOverlay.show { display: flex; }
