:root {
  --koenigsblau: #0047AB;
  --koenigsblau-strong: #003380;
  --koenigsblau-akzent: #0091FF;
  --hintergrund: #F4F6F9;
  --card: #FFFFFF;
  --card-soft: #F9FAFC;
  --text-primar: #1C1C1E;
  --text-sekundaer: #505055;
  --kontur: #E1E6EB;
  --gold: #FFD700;
  --shadow: 0 4px 16px rgba(0, 71, 171, 0.08);
}

body.dark-mode {
  --hintergrund: #0A0F17;
  --card: #131C28;
  --card-soft: #1A2534;
  --text-primar: #F2F2F7;
  --text-sekundaer: #B0B0B5;
  --kontur: #243244;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Roboto", "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* UNSICHTBARE SCROLLBALKEN & DEAKTIVIERUNG DES NATIVEN BROWSER-PAGE-RELOADS FÜR SAFARI & CHROME */
html, body, .main-container, .modal, .modal-body, .modal-content {
  overscroll-behavior: none !important;
  overscroll-behavior-y: contain !important;
}

html, body, *, .modal-body, .region-list, .entries-list {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE / Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

select, input:not([type="checkbox"]):not([type="radio"]), button, textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}

/* KLARES, GUT SICHTBARES PFEIL-SYMBOL FÜR ALLE DROPDOWN-AUSWAHLFELDER (KATEGORIE, REGION, STADT) */
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230091FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  padding-right: 38px !important;
}

/* DEUTLICH SICHTBARE CHECKBOXEN (PROFIL, LOGIN & KONTAKT) */
input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer;
  accent-color: var(--koenigsblau-akzent);
  flex-shrink: 0;
}

/* SAFARI & IOS SAFE AREA & MOMENTUM SCROLLING FIXES */
@supports (padding-top: env(safe-area-inset-top)) {
  .topbar {
    padding-top: env(safe-area-inset-top);
  }
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
  .btn-scroll-top {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

/* VERHINDERT AUTOMATISCHES IOS SAFARI DISPLAY-ZOOMEN BEI EINGABEFELDERN */
@media (max-width: 768px) {
  .field input, .field select, .field textarea, .search-input {
    font-size: 16px !important;
  }
}

.modal-body, .region-list, .event-filter-chips {
  -webkit-overflow-scrolling: touch;
}

body {
  background-color: var(--hintergrund);
  color: var(--text-primar);
  line-height: 1.5;
  padding-bottom: 70px;
}

/* FLOATING SCROLL TO TOP BUTTON (PFEIL NACH OBEN PARAGUAYWEIT - OPTIMIERT FÜR SMARTPHONES) */
.btn-scroll-top {
  position: fixed;
  bottom: 85px;
  right: 32px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--koenigsblau);
  color: white;
  border: 2px solid #FFFFFF;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

@media (max-width: 600px) {
  .btn-scroll-top {
    right: 32px;
    bottom: 85px;
    width: 48px;
    height: 48px;
  }
}

.btn-scroll-top:active {
  transform: scale(0.9);
}

/* TOPBAR (EXAKTER AUFBAU & KÖNIGSBLAUE AKZENTLINIEN WIE IN DER APP - CROSS-PLATFORM DISPLAY OPTIMIERT) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--card);
  border-bottom: 1px solid var(--kontur);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
}

body.dark-mode .topbar {
  background-color: #0E1722;
}

.topbar-accent-line {
  height: 3px;
  background-color: #0091FF;
  width: 100%;
}

.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  gap: 4px;
  min-height: 50px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.topbar-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar__lang-select {
  background: var(--card-soft);
  border: 1px solid var(--kontur);
  color: var(--text-primar);
  padding: 3px 4px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.topbar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 0 2px;
}

.topbar-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-primar);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.topbar-region-btn {
  background: none;
  border: none;
  color: #0091FF;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}

.topbar-region-btn:hover {
  background: var(--card-soft);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-right: 6px;
  padding-right: 2px;
}

.topbar-btn {
  background: none;
  border: none;
  color: var(--text-primar);
  font-size: 17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}

.topbar-btn:hover, .topbar-btn:active {
  background: var(--card-soft);
}

.status-dot {
  font-size: 9px;
  margin-left: 2px;
  flex-shrink: 0;
}

/* NAVIGATION TABS (VOLLSTÄNDIG DISPLAY-OPTIMIERT OHNE ABSCHNEIDEN) */
.navtabs {
  display: flex;
  background: var(--card);
  border-bottom: 1px solid var(--kontur);
  position: sticky;
  top: 56px;
  z-index: 99;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  width: 100%;
  max-width: 100vw;
}

.navtabs::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
}

.navtab {
  flex: 1 0 auto;
  padding: 10px 6px;
  border: none;
  background: none;
  color: var(--text-sekundaer);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .topbar-container {
    padding: 4px 6px;
    gap: 3px;
  }
  .topbar-right {
    gap: 5px;
    margin-right: 4px;
  }
  .topbar-title {
    font-size: 14px;
  }
  .topbar-region-btn {
    font-size: 10.5px;
  }
  .topbar-btn {
    width: 31px;
    height: 31px;
    font-size: 16px;
  }
  .navtabs {
    display: flex;
    width: 100%;
    overflow-x: hidden;
  }
  .navtab {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 8px 1px !important;
    font-size: 10px !important;
    letter-spacing: -0.2px;
    gap: 1px !important;
  }
}
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
}

.navtabs::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
}

.navtab {
  flex: 1 0 auto;
  padding: 10px 8px;
  border: none;
  background: none;
  color: var(--text-sekundaer);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.navtab.active {
  color: var(--koenigsblau);
  border-bottom-color: var(--koenigsblau);
  background: rgba(0, 71, 171, 0.04);
}

body.dark-mode .navtab.active {
  color: var(--koenigsblau-akzent);
  border-bottom-color: var(--koenigsblau-akzent);
}

/* REGION BAR */
.region-bar {
  background: var(--card-soft);
  border-bottom: 1px solid var(--kontur);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-region-display {
  background: var(--card);
  border: 1.5px solid var(--koenigsblau);
  color: var(--koenigsblau-strong);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 71, 171, 0.1);
}

/* REGION MODAL LIST */
.region-step {
  display: none;
}

.region-step.active {
  display: block;
}

.region-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 350px;
  overflow-y: auto;
}

.region-item-btn {
  background: var(--card-soft);
  border: 1px solid var(--kontur);
  color: var(--text-primar);
  padding: 12px 16px;
  border-radius: 10px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.region-item-btn:hover {
  background: rgba(0, 71, 171, 0.08);
}

/* SAFARI / IOS HINT BANNER */
.ios-hint-banner {
  background: #0047AB;
  color: white;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.4;
}

.ios-hint-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ios-hint-close {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* MAIN CONTAINER & VIEWS */
.main-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
  min-height: 70vh;
}

.content-view {
  display: none;
}

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

/* HINT CHIP BUTTONS (EXAKTE IDENTISCHE GRÖSSE UND BRUSTBREITE WIE IN DER APP) */
.start-hints-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
}

.create-hint-card, .latest-hint-card {
  flex: 1 1 0px;
  width: 50%;
  box-sizing: border-box;
  background: var(--card-soft);
  border: 1.5px solid var(--koenigsblau-akzent);
  color: var(--koenigsblau-strong);
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 71, 171, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

body.dark-mode .create-hint-card, body.dark-mode .latest-hint-card {
  background: var(--card-soft);
  color: var(--koenigsblau-akzent);
  border-color: var(--koenigsblau-akzent);
}

.create-hint-card:active, .latest-hint-card:active {
  transform: scale(0.98);
}

.start-views-banner {
  background: var(--card-soft);
  border: 1px solid var(--kontur);
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--shadow);
}

.views-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.views-col span {
  font-size: 11px;
  color: var(--text-sekundaer);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.views-col strong {
  font-size: 16px;
  font-weight: 900;
  color: #0091FF;
}

.views-divider {
  width: 1px;
  height: 24px;
  background-color: var(--kontur);
  margin: 0 10px;
}

body.dark-mode .start-views-banner {
  background: var(--card-soft);
}

.divider {
  border: 0;
  border-top: 1px solid var(--kontur);
  margin: 20px 0;
}

/* EVENT FILTER CHIPS */
.event-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.event-chip {
  background: var(--card-soft);
  border: 1px solid var(--kontur);
  color: var(--text-primar);
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.event-chip.active {
  background: var(--koenigsblau);
  color: white;
  border-color: var(--koenigsblau);
}

/* EVENT KALENDER STYLES & BUTTON (HOCHLESBAR IN HELL & DUNKELMODUS) */
#btn-open-event-kalender {
  background-color: var(--koenigsblau) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 71, 171, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

body.dark-mode #btn-open-event-kalender {
  background-color: #0080FF !important;
  color: #FFFFFF !important;
}

.event-cal-card {
  background: var(--card);
  border: 1px solid var(--kontur);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.event-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.event-cal-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primar);
}

.cal-nav-btn {
  background: var(--card-soft);
  border: 1px solid var(--kontur);
  color: var(--text-primar);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.cal-nav-btn:hover {
  background: var(--kontur);
}

.cal-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--text-sekundaer);
  margin-bottom: 8px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: var(--card-soft);
  color: var(--text-primar);
  border: 1px solid var(--kontur);
  position: relative;
  transition: all 0.15s ease;
}

.cal-day-cell.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.cal-day-cell.today {
  border: 2px solid var(--koenigsblau-akzent);
  font-weight: 900;
  color: var(--koenigsblau-akzent);
  background: rgba(0, 145, 255, 0.08);
}

body.dark-mode .cal-day-cell.today {
  border-color: var(--koenigsblau-akzent);
  color: var(--koenigsblau-akzent);
  background: rgba(0, 145, 255, 0.15);
}

.cal-day-cell.selected {
  background: var(--koenigsblau) !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  border-color: var(--koenigsblau-strong) !important;
  box-shadow: 0 3px 10px rgba(0, 71, 171, 0.35);
}

body.dark-mode .cal-day-cell.selected {
  background: #0066FF !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  border-color: #0091FF !important;
  box-shadow: 0 3px 10px rgba(0, 145, 255, 0.45);
}

.cal-day-cell.has-event::after {
  content: "•";
  position: absolute;
  bottom: 1px;
  font-size: 20px;
  line-height: 1;
  color: #D32F2F;
}

body.dark-mode .cal-day-cell.has-event::after {
  color: #FFD700 !important;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.9);
}

.cal-day-events-wrap {
  margin-top: 16px;
}

.cal-day-events-wrap h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primar);
}

/* SEARCH BOX */
.search-box {
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--kontur);
  background: var(--card);
  color: var(--text-primar);
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--koenigsblau);
}

/* SUCH-HIGHLIGHTING */
mark.search-highlight {
  background-color: rgba(0, 71, 171, 0.18);
  color: var(--koenigsblau-strong);
  font-weight: 900;
  padding: 0 3px;
  border-radius: 4px;
}

body.dark-mode mark.search-highlight {
  background-color: rgba(255, 214, 0, 0.3);
  color: #FFD600;
  font-weight: 900;
  padding: 0 3px;
  border-radius: 4px;
}

/* ANKÜNDIGUNGEN BANNER (EXAKT WIE IN DER APP) */
.ankuendigung-banner {
  background: var(--card-soft);
  border: 1.5px solid var(--koenigsblau-akzent);
  color: var(--koenigsblau-strong);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  box-shadow: var(--shadow);
  word-wrap: break-word;
}

body.dark-mode .ankuendigung-banner {
  color: #0091FF;
  border-color: #0091FF;
}

/* PULL TO REFRESH INDICATOR */
.pull-refresh-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card-soft);
  border: 1.5px solid var(--koenigsblau-akzent);
  color: var(--koenigsblau-strong);
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease-in-out;
}

body.dark-mode .pull-refresh-indicator {
  color: #0091FF;
  border-color: #0091FF;
}

/* ENTRIES LIST & CARDS (VOLLSTÄNDIGES QUADRATBILD OHNE BESCHNEIDUNG) */
.entries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-card {
  background: var(--card);
  border: 1px solid var(--kontur);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.entry-card:active {
  transform: scale(0.99);
}

.entry-card.premium-partner {
  border: 2.5px solid var(--gold);
  background: linear-gradient(180deg, var(--card) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.entry-card__thumb {
  width: 86px;
  height: 86px;
  min-width: 86px;
  min-height: 86px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  align-self: flex-start;
  background: var(--card-soft);
  border: 1px solid var(--kontur);
  cursor: zoom-in;
}

.entry-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.entry-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--type {
  background: rgba(0, 71, 171, 0.1);
  color: var(--koenigsblau-strong);
}

body.dark-mode .badge--type {
  background: rgba(0, 145, 255, 0.2);
  color: var(--koenigsblau-akzent);
}

.badge--partner {
  background: #FFF8E1;
  color: #B78103;
  border: 1px solid #FFE082;
}

.btn-card-fav {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  margin-left: auto;
  transition: transform 0.15s ease;
}

.btn-card-fav:active {
  transform: scale(1.3);
}

.btn-card-fav.is-fav {
  filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.8));
}

.entry-card__title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primar);
  line-height: 1.3;
}

.entry-card__desc {
  font-size: 13px;
  color: var(--text-sekundaer);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.entry-card__meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sekundaer);
  margin-top: auto;
}

/* DETAIL MODAL & ANBIETER INFOBOX (BREITES UND VOLLSTÄNDIGES FENSTER PARAGUAYWEIT OPTIMIERT FÜR IOS, FIREFOX & CHROME) */
.detail-img-wrap {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--card-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kontur);
}

.detail-img-wrap img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.anbieter-infobox-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-soft);
  border: 1.5px solid var(--kontur);
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.detail-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

/* BANNER CARDS */
.banner-card {
  margin: 6px 0;
}

/* MODALS (BREITES UND VOLLSTÄNDIGES FENSTER BIS ZU 760PX, ANPASSUNG FÜR SAFARI & FIREFOX) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  width: 96%;
  max-width: 760px;
  max-height: 94vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,0.35);
  -webkit-transform: translateZ(0);
}

@media (max-width: 600px) {
  .modal {
    padding: 6px;
  }
  .modal-content {
    width: 100%;
    max-height: 96vh;
    border-radius: 14px;
  }
  .modal-body {
    padding: 14px;
  }
}

.modal-content--center {
  padding: 24px;
  text-align: center;
}

.modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--kontur);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  box-sizing: border-box;
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 800;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.modal-close {
  flex-shrink: 0;
  background: var(--card-soft);
  border: 1px solid var(--kontur);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  color: var(--text-primar);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
  background: rgba(233, 30, 99, 0.15);
  color: #E91E63;
  border-color: #E91E63;
}

.modal-close:active {
  transform: scale(0.9);
}

.modal-close:hover, .modal-close:active {
  background: var(--card-soft);
  color: #E91E63;
}

.modal-body {
  padding: 18px;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* LIGHTBOX MODAL (IMMER IM VORDERGRUND ÜBER ALLEN MODALS PRO PLATFORM) */
.modal--lightbox {
  background: rgba(0, 0, 0, 0.92);
  padding: 0;
  z-index: 9999 !important;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  z-index: 10000 !important;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
  background: #E91E63;
}

/* PC & DESKTOP MONITOR OPTIMIERUNG (BILDSCHIRME AB 992px BREITE - MULTI-PLATFORM) */
@media (min-width: 992px) {
  .topbar-container {
    padding: 8px 24px;
    min-height: 60px;
  }

  .topbar__lang-select {
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 8px;
  }

  .topbar-title {
    font-size: 18px;
    letter-spacing: 0.02em;
  }

  .topbar-region-btn {
    font-size: 13px;
    padding: 2px 8px;
  }

  .topbar-right {
    gap: 10px;
    margin-right: 12px;
  }

  .topbar-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .status-dot {
    font-size: 11px;
  }

  .navtabs {
    top: 63px;
  }

  .navtab {
    padding: 12px 18px;
    font-size: 15px;
    gap: 6px;
  }
}


.lightbox-close:active {
  transform: scale(0.9);
}

/* FORMS & BUTTONS */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sekundaer);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--kontur);
  background: var(--card-soft);
  color: var(--text-primar);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

/* ROT MARKIERT FÜR FEHLENDE PFLICHTFELDER & GRÜN FÜR AUSGEFÜLLTE FELDER (EXAKT WIE IN DER APP) */
.field input.field-error, .field select.field-error, .field textarea.field-error, input.field-error, select.field-error, textarea.field-error {
  border: 2px solid #D32F2F !important;
  background-color: rgba(211, 47, 47, 0.08) !important;
  box-shadow: 0 0 6px rgba(211, 47, 47, 0.25) !important;
}

body.dark-mode .field input.field-error, body.dark-mode .field select.field-error, body.dark-mode .field textarea.field-error, body.dark-mode input.field-error, body.dark-mode select.field-error, body.dark-mode textarea.field-error {
  border: 2px solid #FF5252 !important;
  background-color: rgba(255, 82, 82, 0.15) !important;
  box-shadow: 0 0 8px rgba(255, 82, 82, 0.35) !important;
}

.field input.field-success, .field select.field-success, .field textarea.field-success, input.field-success, select.field-success, textarea.field-success {
  border: 2px solid #2E7D32 !important;
  background-color: rgba(46, 125, 50, 0.06) !important;
}

body.dark-mode .field input.field-success, body.dark-mode .field select.field-success, body.dark-mode .field textarea.field-success, body.dark-mode input.field-success, body.dark-mode select.field-success, body.dark-mode textarea.field-success {
  border: 2px solid #00E676 !important;
  background-color: rgba(0, 230, 118, 0.12) !important;
}

/* EVENT DATUMS-FELD LEUCHTENDE HERVORHEBUNG IM HELL- UND DUNKELMODUS */
input[type="date"].highlight-event-date, #edit-event-date {
  border: 2.5px solid #0091FF !important;
  background-color: rgba(0, 145, 255, 0.12) !important;
  box-shadow: 0 0 12px rgba(0, 145, 255, 0.45) !important;
  transition: all 0.2s ease;
}

body.dark-mode input[type="date"].highlight-event-date, body.dark-mode #edit-event-date {
  border: 2.5px solid #0091FF !important;
  background-color: rgba(0, 145, 255, 0.22) !important;
  box-shadow: 0 0 14px rgba(0, 145, 255, 0.65) !important;
}

input[type="date"].field-error, #edit-event-date.field-error {
  border: 2.5px solid #D32F2F !important;
  background-color: rgba(211, 47, 47, 0.15) !important;
  box-shadow: 0 0 12px rgba(211, 47, 47, 0.5) !important;
}

body.dark-mode input[type="date"].field-error, body.dark-mode #edit-event-date.field-error {
  border: 2.5px solid #FF5252 !important;
  background-color: rgba(255, 82, 82, 0.25) !important;
  box-shadow: 0 0 14px rgba(255, 82, 82, 0.65) !important;
}

/* SPENDE / KAFFEE KASSE HOCH-KONTRAST HERVORHEBUNG IM HELL- UND DUNKELMODUS */
#btn-spende-modal, #btn-spende-modal button, .spende-btn-highlight {
  background: linear-gradient(135deg, #FFF9C4 0%, #FFE082 100%) !important;
  color: #5D4037 !important;
  border: 2px solid #FFC107 !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.45) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

#btn-spende-modal:hover, #btn-spende-modal:active {
  transform: scale(1.02) !important;
  box-shadow: 0 6px 18px rgba(255, 193, 7, 0.6) !important;
}

body.dark-mode #btn-spende-modal, body.dark-mode #btn-spende-modal button, body.dark-mode .spende-btn-highlight {
  background: linear-gradient(135deg, #3E2723 0%, #5D4037 100%) !important;
  color: #FFD54F !important;
  border: 2px solid #FFB300 !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  box-shadow: 0 4px 16px rgba(255, 179, 0, 0.5) !important;
}

/* CUSTOM MOBIL-OPTIMIERTER KATEGORIE AUTOCOMPLETE PICKER */
.cat-autocomplete-wrap {
  position: relative;
  width: 100%;
}

.cat-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 230px;
  overflow-y: auto;
  background: var(--card);
  border: 1.5px solid var(--koenigsblau-akzent);
  border-radius: 12px;
  z-index: 2500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: none;
  -webkit-overflow-scrolling: touch;
}

.cat-autocomplete-dropdown.active {
  display: block;
}

.cat-autocomplete-item {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primar);
  cursor: pointer;
  border-bottom: 1px solid var(--kontur);
  transition: background 0.15s ease, color 0.15s ease;
}

.cat-autocomplete-item:last-child {
  border-bottom: none;
}

.cat-autocomplete-item:hover, .cat-autocomplete-item.selected {
  background: var(--koenigsblau);
  color: #FFFFFF;
}

body.dark-mode .cat-autocomplete-item:hover, body.dark-mode .cat-autocomplete-item.selected {
  background: #0066FF;
  color: #FFFFFF;
}

.button {
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  text-decoration: none;
}

.button--primary {
  background: var(--koenigsblau);
  color: white;
}

.button--secondary {
  background: var(--card-soft);
  border: 1px solid var(--kontur);
  color: var(--text-primar);
}

.button--ghost {
  background: transparent;
  color: var(--text-sekundaer);
}

/* AUTH & PROFILE TABS (MIT KLARER TRENNLINIE & HOCH-KONTRAST-HERVORHEBUNG FÜR HELL & DUNKELMODUS) */
.auth-tabs, .profile-tabs {
  display: flex;
  margin-bottom: 16px;
  border: 1.5px solid var(--kontur);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-soft);
}

.auth-tab, .profile-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-sekundaer);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

/* KLARE TRENNLINIE ZWISCHEN PROFIL-INFO UND AKTIVITÄTEN */
.profile-tab:first-child, .auth-tab:first-child {
  border-right: 1.5px solid var(--kontur);
}

/* HELLMODUS: AKTIVER TAB DEUTLICH HERVORGEHOBEN */
.auth-tab.active, .profile-tab.active {
  color: #FFFFFF !important;
  background: var(--koenigsblau) !important;
  font-weight: 800 !important;
  box-shadow: inset 0 -3px 0 #002B66;
}

/* DUNKELMODUS: AKTIVER TAB MIT LEUCHTENDEM ELEKTRISCHEM BLAU & WEISSER SCHRIFT FÜR OPTIMALE LESBARKEIT */
body.dark-mode .auth-tab.active, body.dark-mode .profile-tab.active {
  color: #FFFFFF !important;
  background: #0066FF !important;
  font-weight: 800 !important;
  box-shadow: inset 0 -3px 0 #0091FF, 0 2px 10px rgba(0, 145, 255, 0.4);
}

.auth-form, .profile-tab-content {
  display: none;
}

.auth-form.active, .profile-tab-content.active {
  display: block;
}

/* FOOTER */
.footer {
  background: var(--card);
  border-top: 1px solid var(--kontur);
  padding: 20px 16px;
  text-align: center;
  margin-top: 40px;
}

.footer__categories, .footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-cat-link, .footer-link {
  background: none;
  border: none;
  color: var(--text-sekundaer);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.footer__text {
  font-size: 11px;
  color: var(--text-sekundaer);
  margin-top: 10px;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--text-sekundaer);
  font-size: 14px;
}

.skeleton-loader {
  padding: 20px;
  text-align: center;
  color: var(--text-sekundaer);
}
