/* DuoVerse Self-Hosted Web Fonts (DSGVO-konform, kein externer Request) */
@import url('/fonts/fonts.css');

:root {
  /* Warm botanical luxury palette (Mockups #1, #11, #13, #15, #18, #26) */
  --bg: #faf5ef;
  --bg-warm: #f6ede3;
  --sidebar-bg: #fdfaf7;
  --sidebar-border: #f0e5db;
  --card-bg: #ffffff;
  --card-border: #ede3da;
  --card-shadow: 0 4px 20px rgba(70, 45, 35, 0.04);
  --card-shadow-hover: 0 8px 30px rgba(70, 45, 35, 0.08);

  /* Typography colors */
  --text-main: #2b221b;
  --text-secondary: #5e4d41;
  --text-muted: #8e7c70;

  /* Accent terracotta & warm brown tones */
  --terracotta: #a96b5b;
  --terracotta-hover: #94594a;
  --terracotta-light: #eedfd7;
  --terracotta-soft: #fbf3ed;
  --rose-tag: #bb7e6e;

  /* Status chips (Mockups #15, #18, #26) */
  --chip-planned-bg: #f6ede6;
  --chip-planned-text: #6e4b3c;
  --chip-green-bg: #eaf5ec;
  --chip-green-text: #27673c;
  --chip-yellow-bg: #fdf5e8;
  --chip-yellow-text: #936a1c;
  --chip-red-bg: #fdeeed;
  --chip-red-text: #a73c38;
  --chip-blue-bg: #eaf1f8;
  --chip-blue-text: #2d5a88;

  /* Geometry & Touch sizes */
  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-card-sm: 14px;
  --radius-input: 12px;
  --touch-min: 44px;

  /* Legacy variables for backward compatibility */
  --cream: var(--bg);
  --paper: var(--card-bg);
  --brown: var(--text-main);
  --muted: var(--text-muted);
  --rose: var(--terracotta);
  --rose-hover: var(--terracotta-hover);
  --rose-light: var(--terracotta-light);
  --border: var(--card-border);
  --shadow: var(--card-shadow);
  --shadow-sm: 0 2px 8px rgba(70, 45, 35, 0.03);
  --radius: var(--radius-card);
  --radius-sm: var(--radius-card-sm);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================
   APP LAYOUT (SIDEBAR + MAIN CONTENT)
   ========================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* SIDEBAR (DESKTOP) */
.sidebar {
  width: 250px;
  min-width: 250px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 95;
  padding: 1.5rem 1.1rem;
  overflow-y: auto;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  margin-bottom: 2rem;
  padding: 0.25rem 0.5rem;
}

.brand-icon-svg {
  width: 32px;
  height: 32px;
  color: var(--terracotta);
  flex-shrink: 0;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-cursive {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  flex: 1;
}

.nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: var(--terracotta-soft);
  color: var(--text-main);
}

.nav-item.active {
  background: var(--terracotta-light);
  color: var(--text-main);
  font-weight: 600;
}

.nav-item-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: inherit;
}

.nav-badge {
  margin-left: auto;
  background: #ecd4c9;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.sidebar-divider {
  height: 1px;
  background: var(--sidebar-border);
  margin: 1.25rem 0.5rem;
}

/* Botanical illustration at bottom of sidebar (Mockup #1) */
.sidebar-footer-deco {
  margin-top: auto;
  padding: 1.25rem 0.5rem 0.5rem;
  opacity: 0.55;
  pointer-events: none;
  display: flex;
  justify-content: flex-start;
}

.sidebar-footer-deco svg {
  width: 105px;
  height: 155px;
  color: var(--terracotta);
}

/* Botanical brand & hand-drawn hearts */
.brand-heart,
.hand-drawn-heart {
  display: inline-block;
  vertical-align: middle;
  width: 1.15em;
  height: 1.15em;
  stroke: var(--terracotta);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(8deg);
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.hand-drawn-heart:hover,
.brand-heart:hover {
  transform: rotate(14deg) scale(1.1);
}

/* Nav SVG line icons */
.nav-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.icon-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

/* Sunlight Botanical Shadow Overlay (Mockup #1) */
.botanical-sunlight-overlay {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 520px;
  height: 460px;
  max-width: 55vw;
  max-height: 52vh;
  pointer-events: none;
  z-index: 1;
  color: #7b5843;
  opacity: 0.16;
  filter: blur(14px);
  mix-blend-mode: multiply;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .botanical-sunlight-overlay {
    width: 280px;
    height: 240px;
    opacity: 0.12;
    filter: blur(10px);
  }
}

/* Botanical card watermark (Mockup #1 & #15) */
.card-botanical-watermark {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 95px;
  height: 95px;
  opacity: 0.08;
  pointer-events: none;
  color: var(--terracotta);
  z-index: 1;
}

/* ==========================================
   MAIN WRAPPER & TOPBAR
   ========================================== */
.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.25rem;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  z-index: 80;
}

.mobile-menu-btn {
  display: none;
  min-height: 44px;
  min-width: 44px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-main);
}

.search-bar-pill {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar-pill input {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  background: #ffffff;
  padding: 0.65rem 1.25rem 0.65rem 2.6rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  box-shadow: 0 2px 8px rgba(70, 45, 35, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-bar-pill input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(155, 101, 85, 0.15);
}

.search-bar-pill .search-icon {
  position: absolute;
  left: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-circle-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1.1rem;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.15s ease;
}

.icon-circle-btn:hover {
  background: var(--terracotta-soft);
  border-color: var(--terracotta-light);
}

.unread-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  background: #c2410c;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--terracotta-light);
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: 1px solid rgba(155, 101, 85, 0.25);
  cursor: pointer;
  text-decoration: none;
}

/* ==========================================
   PAGE BODY & CONTAINERS
   ========================================= */
.page-content {
  padding: 0 2.25rem 3rem 2.25rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Eyebrow & Hero Header */
.dashboard-hero-header {
  margin-bottom: 1.75rem;
}

.eyebrow-text {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.35rem;
}

.hero-page-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.35rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.hero-page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.35rem;
}

/* ==========================================
   HERO CARD: "UNSER NÄCHSTES EVENT"
   ========================================== */
.next-event-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.next-event-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.next-event-media {
  position: relative;
  min-height: 260px;
  background-color: #2b221b;
  overflow: hidden;
}

.next-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.next-event-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.next-event-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.next-event-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.next-event-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.next-event-chips {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.next-event-action {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
}

.arrow-circle-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2d5cb;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.arrow-circle-btn:hover {
  background: var(--terracotta-soft);
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(169, 107, 91, 0.15);
}

/* ==========================================
   SECTION: "UNSERE EVENTS" & GRID
   ========================================== */
.events-section {
  margin-bottom: 2.75rem;
}

.events-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-main);
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-btn {
  min-height: 44px;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  background: var(--terracotta-soft);
  color: var(--text-main);
}

.pill-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(169, 107, 91, 0.25);
}

.pill-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  background: #eedfd7;
  color: var(--text-main);
}

.pill-btn.active .pill-count-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* BUTTONS (TOUCH-READY MIN 44px) */
.btn {
  min-height: 44px;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-card-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-terracotta, .btn-primary {
  background: var(--terracotta);
  color: #ffffff;
}

.btn-terracotta:hover, .btn-primary:hover {
  background: var(--terracotta-hover);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--terracotta-soft);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--text-main);
}

.btn-danger {
  background: var(--chip-red-bg);
  color: var(--chip-red-text);
  border: 1px solid rgba(167, 60, 56, 0.2);
}

.btn-danger:hover {
  background: #fbd5d3;
}

.btn-sm {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* EVENT CARDS GRID */
.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.event-card-media {
  position: relative;
  height: 180px;
  background-color: #3b2d24;
  overflow: hidden;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Frosted overlay chips */
.overlay-chip-date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.overlay-chip-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.event-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.event-card-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.event-card-arrow {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.event-card:hover .event-card-arrow {
  background: var(--terracotta);
  color: #ffffff;
}

/* ==========================================
   CHIPS & BADGES
   ========================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
}

.chip-planned, .badge-warn {
  background: var(--chip-planned-bg);
  color: var(--chip-planned-text);
}

.chip-green, .badge-green {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.chip-yellow {
  background: var(--chip-yellow-bg);
  color: var(--chip-yellow-text);
}

.chip-red, .badge-danger {
  background: var(--chip-red-bg);
  color: var(--chip-red-text);
}

.chip-blue, .badge-blue {
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
}

.badge-muted {
  background: #eeebe7;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================
   DASHBOARD BOTTOM TWO-COLUMN WIDGETS
   ========================================== */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.widget-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 1.5rem 1.75rem;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sidebar-border);
}

.widget-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-header-link {
  text-decoration: none;
  color: var(--terracotta);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.widget-header-link:hover {
  color: var(--terracotta-hover);
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-card-sm);
  transition: background 0.15s ease;
}

.task-item-compact:hover {
  background: var(--terracotta-soft);
}

.task-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Custom rounded checkbox */
.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #d4c2b5;
  background: #ffffff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  transition: all 0.15s ease;
}

.custom-checkbox:checked {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.custom-checkbox:checked::before {
  content: "✓";
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.upcoming-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-card-sm);
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.upcoming-item:hover {
  background: var(--terracotta-soft);
}

.date-square-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--terracotta-soft);
  border: 1px solid var(--terracotta-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.date-square-month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--terracotta);
}

.date-square-day {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.upcoming-info {
  flex: 1;
  min-width: 0;
}

.upcoming-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-countdown {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   EVENT DETAIL VIEW (MOCKUP 15, 18, 26)
   ========================================== */
.event-hero-banner {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--card-shadow);
  background-color: #2b221b;
}

.event-hero-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
}

.event-hero-content {
  position: relative;
  z-index: 2;
  padding: 2.25rem;
  color: #ffffff;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 15, 12, 0.75) 100%);
}

.event-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  margin: 0.5rem 0 0.65rem;
}

.event-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  flex-wrap: wrap;
}

/* HORIZONTAL DETAIL TABS */
.detail-tabs-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.detail-tabs-row::-webkit-scrollbar {
  display: none;
}

.detail-tab-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.detail-tab-btn:hover {
  background: var(--terracotta-soft);
  color: var(--text-main);
}

.detail-tab-btn.active {
  background: var(--terracotta-light);
  border-color: var(--terracotta-light);
  color: var(--text-main);
  font-weight: 600;
}

/* COUNTDOWN TILES */
.countdown-tiles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.countdown-tile {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card-sm);
  padding: 1.25rem 0.5rem;
  text-align: center;
}

.countdown-tile-number {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.countdown-tile-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* PROGRESS BAR */
.progress-bar-container {
  height: 8px;
  background: #eddcd4;
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--terracotta);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* AVATAR LIST */
.avatar-group-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.guest-avatar-bubble {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: #eddcd4;
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.95rem;
}

.guest-avatar-status-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  border: 2px solid #fff;
}

.guest-status-icon-check {
  background: #27673c;
  color: #fff;
}

.guest-status-icon-question {
  background: #d4a34b;
  color: #fff;
}

.guest-status-icon-offen {
  background: #8e7c70;
  color: #fff;
}

/* OVERVIEW 3-COLUMN GRID (MOCKUP #15) */
.detail-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.detail-overview-bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (max-width: 1080px) {
  .detail-overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-overview-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .detail-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* PRIORITY BADGES (MOCKUP #18) */
.prio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.prio-badge-high {
  background: #fdeeed;
  color: #a73c38;
  border: 1px solid #f9d8d6;
}

.prio-badge-normal {
  background: #fef6e7;
  color: #936a1c;
  border: 1px solid #fae8cc;
}

.prio-badge-low {
  background: #f4ece6;
  color: #6e5d50;
  border: 1px solid #e8ded6;
}

/* GUEST TABLE & ROWS (MOCKUP #26) */
.guest-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-card-sm);
  border: 1px solid var(--card-border);
  background: #ffffff;
}

.guest-table-header {
  display: grid;
  grid-template-columns: 44px 1.5fr 80px 130px 1.5fr 50px;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
  background: #faf5f0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guest-table-row {
  display: grid;
  grid-template-columns: 44px 1.5fr 80px 130px 1.5fr 50px;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.92rem;
  transition: background 0.15s ease;
}

.guest-table-row:last-child {
  border-bottom: none;
}

.guest-table-row:hover {
  background: var(--terracotta-soft);
}

@media (max-width: 768px) {
  .guest-table-header {
    display: none;
  }
  .guest-table-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }
}

/* STEPPER CONTROL (MOCKUP #26) */
.stepper-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stepper-btn:hover {
  background: var(--terracotta-soft);
  border-color: var(--terracotta);
}

.stepper-input {
  width: 44px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}

/* REMOVABLE TAG CHIPS (MOCKUP #11, #13) */
.tag-chip-removable {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--chip-planned-bg);
  color: var(--chip-planned-text);
  border: 1px solid var(--card-border);
  font-size: 0.85rem;
  font-weight: 600;
}

.tag-chip-remove-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.tag-chip-remove-btn:hover {
  opacity: 1;
}

.guest-avatar-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #27673c;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* FORM / MODAL STYLES (MOCKUP 11, 13) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 20, 15, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 48px rgba(45, 30, 20, 0.15);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2.25rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.form-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.form-header-icon {
  font-size: 1.5rem;
  color: var(--terracotta);
}

.form-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.image-upload-preview-box {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-card-sm);
  background-color: #eee4dc;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.image-upload-preview-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-picker-btn {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* FORM FIELDS */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--card-border);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(155, 101, 85, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* TOGGLE SWITCH */
.toggle-switch-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #d8c7b8;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--terracotta);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* FORMATTING MINI TOOLBAR */
.formatting-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  background: #faf5f0;
  border: 1px solid var(--card-border);
  border-bottom: none;
  border-radius: var(--radius-input) var(--radius-input) 0 0;
}

.format-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-secondary);
}

.format-tool-btn:hover {
  background: #ede2d8;
}

.formatting-textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* TOAST */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
}

.toast-success {
  background: #27673c;
  color: #ffffff;
}

.toast-error {
  background: #a73c38;
  color: #ffffff;
}

/* GENERAL CARDS & GRIDS */
.card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 1.5rem 1.75rem;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ==========================================
   MOBILE & RESPONSIVE BREAKPOINTS (<= 768px, <= 480px)
   ========================================== */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -270px;
    top: 0;
    bottom: 0;
    height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
  }

  .sidebar.mobile-open {
    transform: translateX(270px);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 20, 15, 0.4);
    z-index: 90;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .topbar {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .page-content {
    padding: 0 1rem 2rem 1rem;
  }

  .next-event-card {
    grid-template-columns: 1fr;
  }

  .next-event-media {
    min-height: 200px;
  }

  .next-event-body {
    padding: 1.5rem;
  }

  .next-event-action {
    position: static;
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
  }

  .events-cards-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-page-title {
    font-size: 1.85rem;
  }

  .modal-sheet {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .search-bar-pill {
    max-width: none;
  }

  .hero-page-title {
    font-size: 1.6rem;
  }

  .events-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-pills-row {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    flex-wrap: nowrap;
  }

  .pill-btn {
    white-space: nowrap;
  }
}
