/* =====================================================================
   Eventpartner-Datenbank — Stylesheet v2
   Navy / Teal / Gold — Sprungbrett Marketing
   Mobile-first, WCAG 2.1 AA, touch-optimiert
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Farben */
  --c-bg:          #080c12;
  --c-surface-1:   #0d1420;
  --c-surface-2:   #111a2c;
  --c-surface-3:   #172035;
  --c-border:      #1e2e45;
  --c-border-hover:#2a3e5a;

  --c-teal-bright: #2dd4bf;
  --c-teal:        #14a085;
  --c-teal-dark:   #0d8a73;
  --c-teal-subtle: rgba(20,160,133,.12);

  --c-gold:        #e8c074;
  --c-gold-dark:   #c9a55a;
  --c-gold-subtle: rgba(232,192,116,.12);

  --c-danger:      #f06464;
  --c-danger-subtle:rgba(240,100,100,.12);
  --c-success:     #4ade80;
  --c-warning:     #fbbf24;

  --c-text-1:      #eef2f7;
  --c-text-2:      #8fa8c0;
  --c-text-3:      #5a7490;

  /* Radien */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;

  /* Schatten */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.6);

  /* Schriften */
  --f-display: 'Raleway', system-ui, sans-serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing Scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;

  /* Topbar-Höhe (für Skip-Link / Scroll-Padding) */
  --topbar-h: 60px;
}

/* ── Reset & Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--s-4));
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text-1);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(20,160,133,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(232,192,116,.05) 0%, transparent 50%);
  min-height: 100dvh;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--c-teal-bright); text-decoration: none; }
a:hover { color: var(--c-teal); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; border-radius: var(--r-sm); }
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text-1);
}
h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
h2 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
h3 { font-size: 1.05rem; }

p { color: var(--c-text-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* Inline-SVGs neben Text */
svg { vertical-align: -3px; flex-shrink: 0; }

/* ── Skip-Link (Barrierefreiheit) ────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 9999;
  padding: var(--s-2) var(--s-4);
  background: var(--c-gold);
  color: var(--c-bg);
  font-weight: 700;
  border-radius: var(--r-md);
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ── Topbar ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(8,12,18,.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--c-border);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-4);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-text-1);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.brand:hover { color: var(--c-gold); text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-teal), var(--c-teal-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(20,160,133,.4);
}

.brand-mark-large {
  width: 60px;
  height: 60px;
  border-radius: var(--r-xl);
  font-size: 1.3rem;
  margin: 0 auto var(--s-3);
  box-shadow: 0 4px 20px rgba(20,160,133,.5);
}

/* Desktop-Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex: 1;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-text-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  min-height: 44px;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--c-surface-3); color: var(--c-text-1); text-decoration: none; }
.main-nav a.active { background: var(--c-teal-subtle); color: var(--c-teal-bright); }

.user-menu {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-left: auto;
}

.user-name {
  color: var(--c-text-2);
  font-size: 0.85rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hamburger-Button */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease;
  margin-left: auto;
}
.nav-toggle:hover { background: var(--c-surface-3); color: var(--c-text-1); }
.nav-toggle .icon-close { display: none; }

/* Mobile Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--topbar-h) 0 0 0;
  background: rgba(8,12,18,.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  padding: var(--s-4);
  gap: var(--s-2);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--c-text-1);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
  min-height: 56px;
}
.mobile-nav a:hover,
.mobile-nav a.active { background: var(--c-surface-3); border-color: var(--c-border); text-decoration: none; }
.mobile-nav a.active { color: var(--c-teal-bright); background: var(--c-teal-subtle); border-color: rgba(45,212,191,.2); }

.mobile-nav-divider { height: 1px; background: var(--c-border); margin: var(--s-2) 0; }

.mobile-nav-user {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  color: var(--c-text-2);
  font-size: 0.9rem;
}
.mobile-nav-user strong { color: var(--c-text-1); display: block; font-size: 1rem; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav,
  .user-menu { display: none; }
  .mobile-nav { display: flex; }
  .brand-text { display: none; }
  /* Wenn Hamburger aktiv: X zeigen */
  .nav-toggle.is-active .icon-open { display: none; }
  .nav-toggle.is-active .icon-close { display: block; }
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--s-6) var(--s-4) var(--s-12);
}

@media (max-width: 640px) {
  .page-wrap { padding: var(--s-4) var(--s-3) var(--s-10); }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}
.page-header h1 { margin: 0; }
.page-header .subtitle {
  color: var(--c-text-2);
  margin-top: var(--s-1);
  font-size: 0.9rem;
}

.auth-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
}

/* ── Karten ─────────────────────────────────────────────────────────── */
.card {
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .card { padding: var(--s-4); border-radius: var(--r-lg); }
}

.auth-card { width: 100%; max-width: 440px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--c-teal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20,160,133,.3);
}
.btn-primary:hover { background: var(--c-teal-bright); color: var(--c-bg); text-decoration: none; box-shadow: 0 4px 16px rgba(20,160,133,.4); }

.btn-secondary {
  background: var(--c-surface-3);
  color: var(--c-text-1);
  border-color: var(--c-border);
}
.btn-secondary:hover { background: var(--c-surface-2); border-color: var(--c-border-hover); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--c-text-2);
  border-color: var(--c-border);
}
.btn-ghost:hover { background: var(--c-surface-3); color: var(--c-text-1); text-decoration: none; }

.btn-danger {
  background: transparent;
  color: var(--c-danger);
  border-color: rgba(240,100,100,.4);
}
.btn-danger:hover { background: var(--c-danger-subtle); border-color: var(--c-danger); text-decoration: none; }

.btn-sm { min-height: 36px; padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* Icon-Button (Stift / Papierkorb bei Einträgen) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--c-text-3);
  cursor: pointer;
  transition: all .15s ease;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--c-danger-subtle); border-color: rgba(240,100,100,.3); color: var(--c-danger); }
.icon-btn.icon-btn-edit:hover { background: var(--c-teal-subtle); border-color: rgba(20,160,133,.3); color: var(--c-teal-bright); }

/* Actions-Row */
.actions-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

/* ── Formulare ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--s-4); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text-2);
  margin-bottom: var(--s-2);
  letter-spacing: .02em;
  text-transform: uppercase;
}
label .req { color: var(--c-gold); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.7rem var(--s-3);
  min-height: 48px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text-1);
  font-family: var(--f-body);
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--c-text-3); }
input:hover, select:hover, textarea:hover { border-color: var(--c-border-hover); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(20,160,133,.2);
}
textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a7490' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.help-text { font-size: 0.8rem; color: var(--c-text-3); margin-top: var(--s-1); }

/* Passwort-Feld mit Toggle */
.pw-wrapper { position: relative; }
.pw-wrapper input { padding-right: 3rem; }
.pw-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--c-text-3);
  cursor: pointer;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  transition: color .15s ease;
}
.pw-toggle:hover { color: var(--c-text-2); }

fieldset {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5) var(--s-5);
  margin-bottom: var(--s-5);
}
legend {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-gold);
  padding: 0 var(--s-2);
}

/* Bewertungsskala 1-10 */
.rating-scale {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
}
.rating-scale input { display: none; }
.rating-scale label {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-text-2);
  margin: 0;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rating-scale input:checked + label {
  background: var(--c-teal);
  border-color: var(--c-teal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20,160,133,.4);
}
.rating-scale label:hover {
  border-color: var(--c-teal);
  color: var(--c-teal-bright);
  background: var(--c-teal-subtle);
}

/* ── Flash-Meldungen ────────────────────────────────────────────────── */
.flash {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-4);
  font-size: 0.9rem;
  border: 1px solid transparent;
  animation: flash-in .3s ease;
}
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.flash-success { background: rgba(74,222,128,.1); color: var(--c-success); border-color: rgba(74,222,128,.25); }
.flash-error   { background: rgba(240,100,100,.1); color: var(--c-danger); border-color: rgba(240,100,100,.25); }
.flash-info    { background: var(--c-teal-subtle); color: var(--c-teal-bright); border-color: rgba(45,212,191,.25); }

/* ── Filter-Leiste ──────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--s-5);
}

.filter-bar input[type="search"] {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
}

.filter-bar select { width: auto; min-width: 160px; }

@media (max-width: 640px) {
  .filter-bar { gap: var(--s-2); }
  .filter-bar input[type="search"] { max-width: none; flex: 1; }
  .filter-bar select { flex: 1; min-width: 0; }
}

/* Kategorie-Chips */
.category-chips {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  min-height: 36px;
  border-radius: 999px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--c-teal); color: var(--c-text-1); text-decoration: none; }
.chip.active { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }

/* View-Toggle */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-left: auto;
  flex-shrink: 0;
}
.view-toggle a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--c-text-3);
  background: var(--c-surface-2);
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.view-toggle a + a { border-left: 1px solid var(--c-border); }
.view-toggle a:hover { background: var(--c-surface-3); color: var(--c-text-1); text-decoration: none; }
.view-toggle a.active { background: var(--c-teal); color: #fff; }

/* ── Partner-Grid / Kacheln ─────────────────────────────────────────── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--s-4);
}

.partner-card {
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.partner-card:hover {
  border-color: var(--c-teal);
  box-shadow: 0 4px 24px rgba(20,160,133,.15);
  transform: translateY(-2px);
}

.partner-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
}
.partner-card h3 { margin: 0; font-size: 1rem; }
.partner-card h3 a { color: var(--c-text-1); }
.partner-card h3 a:hover { color: var(--c-teal-bright); text-decoration: none; }

/* ── Partner-Liste (Zeilen) ─────────────────────────────────────────── */
.partner-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.partner-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-4);
  min-height: 64px;
  color: var(--c-text-1);
  transition: border-color .15s ease, background .15s ease;
}
.partner-row:hover { border-color: var(--c-teal); background: var(--c-surface-2); text-decoration: none; color: var(--c-text-1); }

.partner-row-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-teal-bright);
  flex-shrink: 0;
}

.partner-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.partner-row-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner-row-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.8rem;
  color: var(--c-text-2);
  flex-wrap: wrap;
}
.partner-row-meta span { display: inline-flex; align-items: center; gap: var(--s-1); }

.partner-row-price {
  font-size: 0.82rem;
  color: var(--c-text-3);
  flex-shrink: 0;
  text-align: right;
}
@media (max-width: 640px) { .partner-row-price { display: none; } }

/* ── Badges & Tags ──────────────────────────────────────────────────── */
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 0.72rem;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  margin-bottom: var(--s-1);
}

.rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3);
  min-width: 56px;
  flex-shrink: 0;
}
.rating-badge .score {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--c-gold);
  line-height: 1;
}
.rating-badge .score.no-rating { color: var(--c-text-3); font-size: 1rem; }
.rating-badge .count { font-size: 0.65rem; color: var(--c-text-3); margin-top: 2px; }

.rating-badge-sm {
  flex-direction: row;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-2);
  min-width: auto;
}
.rating-badge-sm .score { font-size: 0.95rem; }
.rating-badge-sm .count { margin-top: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem var(--s-2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge-admin    { background: var(--c-gold-subtle); color: var(--c-gold); }
.badge-user     { background: var(--c-teal-subtle); color: var(--c-teal-bright); }
.badge-active   { background: rgba(74,222,128,.12); color: var(--c-success); }
.badge-inactive { background: rgba(90,116,144,.15); color: var(--c-text-3); }

/* ── Card-Komponenten ───────────────────────────────────────────────── */
.meta-line {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.85rem;
  color: var(--c-text-2);
}
.description { font-size: 0.88rem; color: var(--c-text-2); flex-grow: 1; }
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-2);
  gap: var(--s-2);
  flex-wrap: wrap;
}

/* ── Empty State ────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--s-12) var(--s-6);
  color: var(--c-text-3);
}
.empty-state .empty-icon {
  display: flex;
  justify-content: center;
  color: var(--c-text-3);
  margin-bottom: var(--s-4);
  opacity: .6;
}
.empty-state h3 { color: var(--c-text-2); margin-bottom: var(--s-2); }
.empty-state p { color: var(--c-text-3); max-width: 320px; margin: 0 auto var(--s-4); }

/* ── Detail-Seite ───────────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-field { margin-bottom: var(--s-4); }
.detail-field .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-text-3);
  font-weight: 700;
  margin-bottom: var(--s-1);
}
.detail-field .value { color: var(--c-text-1); white-space: pre-line; line-height: 1.6; }

/* ── Bewertungen ────────────────────────────────────────────────────── */
.review-item { border-top: 1px solid var(--c-border); padding: var(--s-4) 0; }
.review-item:first-child { border-top: none; padding-top: 0; }

.review-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-2);
}
.review-item-actions { display: flex; align-items: center; gap: var(--s-1); }
.review-author { font-weight: 600; font-size: 0.9rem; }
.review-score {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--c-gold);
  white-space: nowrap;
}
.review-event {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.82rem;
  color: var(--c-text-3);
  margin-bottom: var(--s-1);
}
.review-comment { font-size: 0.9rem; color: var(--c-text-2); white-space: pre-line; margin-bottom: var(--s-2); }
.review-date { font-size: 0.75rem; color: var(--c-text-3); }

/* Bewertungs-Balken */
.rating-bar-row { display: flex; align-items: center; gap: var(--s-2); }
.rating-bar-label { width: 1rem; font-size: 0.72rem; color: var(--c-text-3); text-align: right; flex-shrink: 0; }
.rating-bar-track { flex: 1; background: var(--c-surface-3); border-radius: 4px; height: 6px; overflow: hidden; }
.rating-bar-fill  { height: 100%; background: var(--c-teal); border-radius: 4px; transition: width .4s ease; }
.rating-bar-count { width: 1.2rem; font-size: 0.72rem; color: var(--c-text-3); flex-shrink: 0; }

/* ── Tabellen (Admin) ───────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 600px; }
table.data-table th,
table.data-table td {
  padding: 0.75rem var(--s-3);
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: middle;
}
table.data-table th {
  color: var(--c-text-3);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--c-surface-2);
}
table.data-table th:first-child { border-radius: var(--r-sm) 0 0 0; }
table.data-table th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: rgba(255,255,255,.02); }

/* Mobile: User-Cards statt Tabelle */
.user-cards { display: none; flex-direction: column; gap: var(--s-3); }
.user-card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
.user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
}
.user-card-name { font-weight: 700; font-size: 0.95rem; }
.user-card-email { font-size: 0.82rem; color: var(--c-text-2); }
.user-card-badges { display: flex; gap: var(--s-1); flex-wrap: wrap; }
.user-card-meta { font-size: 0.78rem; color: var(--c-text-3); margin-bottom: var(--s-3); }
.user-card-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

@media (max-width: 720px) {
  .table-wrapper table.data-table { display: none; }
  .user-cards { display: flex; }
}

/* ── Dialog (Modal) ─────────────────────────────────────────────────── */
dialog {
  border: none;
  border-radius: var(--r-xl);
  padding: var(--s-6);
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  color: var(--c-text-1);
  max-width: min(360px, 90vw);
  width: 100%;
}
dialog::backdrop {
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}
dialog h3 { margin-bottom: var(--s-4); font-size: 1rem; }

/* ── Sections / Cards gestapelt ─────────────────────────────────────── */
.card + .card,
.stack > * + * { margin-top: var(--s-4); }

/* Abschnitte mit Abstand */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}
.section-header h2 { margin: 0; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  color: var(--c-text-3);
  font-size: 0.78rem;
  padding: var(--s-6) var(--s-4);
  border-top: 1px solid var(--c-border);
  margin-top: var(--s-10);
}

/* ── Utilities ──────────────────────────────────────────────────────── */
.text-muted   { color: var(--c-text-3) !important; }
.text-success { color: var(--c-success); }
.text-danger  { color: var(--c-danger); }
.text-gold    { color: var(--c-gold); }
.text-teal    { color: var(--c-teal-bright); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Zusätze ─────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* Login: Icon-Fix (kein Rückwärtspfeil-Icon, sondern Anmelde-Pfeil) */
/* Passwort-Wrapper: Icon-Ausrichtung */
.pw-wrapper { position: relative; display: block; }
.pw-wrapper input { padding-right: 3.2rem; }

/* Bewertungsseite: Formular Anker-Sprung Offset */
#bewertungsformular { scroll-margin-top: calc(var(--topbar-h) + 1rem); }

/* Detail-Sidebar: Bewertungsanzeige */
.rating-big {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--c-gold);
  line-height: 1;
  letter-spacing: -.02em;
}

/* Stars-Row in Bewertungen */
.review-item-top { align-items: center; }

/* Partner-Form: max-width */
.form-max { max-width: 800px; }

/* Seite: Zähler-Badge */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 var(--s-2);
  border-radius: 999px;
  background: var(--c-surface-3);
  color: var(--c-text-3);
  font-size: .72rem;
  font-weight: 700;
}

/* Dialog-Form keine margin */
dialog form { margin: 0; }

/* ── Profil-Seite ────────────────────────────────────────────────────── */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--s-5);
    align-items: start;
}
@media (max-width: 860px) {
    .profile-grid { grid-template-columns: 1fr; }
}

.profile-sidebar {}

.profile-avatar-card {}

.profile-avatar-preview {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
    flex-wrap: wrap;
}

.profile-company-logo-preview {
    padding-top: var(--s-4);
    border-top: 1px solid var(--c-border);
    margin-top: var(--s-4);
}

.profile-stat {
    text-align: center;
    padding: var(--s-3);
    background: var(--c-surface-2);
    border-radius: var(--r-lg);
    border: 1px solid var(--c-border);
}
.profile-stat-number {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--c-teal-bright);
    line-height: 1;
}
.profile-stat-label {
    font-size: .72rem;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: var(--s-1);
}

/* Datei-Input-Styling */
.file-input {
    min-height: auto !important;
    padding: var(--s-2) !important;
    font-size: .85rem !important;
    cursor: pointer;
    background: var(--c-surface-2) !important;
}
.file-input::file-selector-button {
    background: var(--c-surface-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    color: var(--c-text-2);
    padding: 0.3rem 0.75rem;
    margin-right: var(--s-3);
    cursor: pointer;
    font-size: .82rem;
    transition: background .15s ease;
}
.file-input::file-selector-button:hover {
    background: var(--c-border-hover);
    color: var(--c-text-1);
}

/* Bild-löschen Label */
.profile-img-delete-label {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: .82rem;
    color: var(--c-danger);
    cursor: pointer;
    margin-top: var(--s-1);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}
.profile-img-delete-label input { width: auto; min-height: auto; }

/* Aktuelles Bild anzeigen */
.profile-img-current {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
    padding: var(--s-3);
    background: var(--c-surface-2);
    border-radius: var(--r-lg);
    border: 1px solid var(--c-border);
}

/* ── Avatar allgemein ─────────────────────────────────────────────────── */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--c-border);
    flex-shrink: 0;
}

/* Avatar + Name neben Bewertungsautor */
.review-author-row {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}
.review-author-info { display: flex; flex-direction: column; gap: 1px; }
.review-author-name { font-weight: 600; font-size: .9rem; }
.review-author-meta { font-size: .75rem; color: var(--c-text-3); }

/* Logo-Thumbnail neben Einträgen */
.partner-logo-row {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-1);
}
.company-logo {
    border-radius: var(--r-sm);
    border: 1px solid var(--c-border);
    background: var(--c-surface-3);
    object-fit: contain;
    padding: 2px;
    flex-shrink: 0;
}

/* User-Menu Avatar im Header */
.user-menu .avatar { width: 28px; height: 28px; }

/* User-Menu Profil-Link */
.user-menu-profile {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-1) var(--s-2);
    border-radius: var(--r-md);
    color: var(--c-text-2);
    font-size: .85rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
    min-height: 44px;
}
.user-menu-profile:hover,
.user-menu-profile.active {
    background: var(--c-surface-3);
    color: var(--c-text-1);
    text-decoration: none;
}

/* Klickbare Kontakt-Links (Telefon, E-Mail, Website) */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    color: var(--c-teal-bright);
    font-weight: 500;
    border-radius: var(--r-sm);
    padding: 0.15rem 0.3rem;
    margin: -0.15rem -0.3rem;
    transition: background .15s ease, color .15s ease;
    word-break: break-all;
}
.contact-link:hover {
    background: var(--c-teal-subtle);
    color: var(--c-teal-bright);
    text-decoration: none;
}
.contact-link:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 2px;
}
