:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --ink: #0f172a;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #15803d;
  --success-bg: #dcfce7;
  --error: #b91c1c;
  --error-bg: #fee2e2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.04), 0 10px 20px rgba(15, 23, 42, 0.06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h2 { font-size: 1.5rem; margin: 0 0 20px; }
h2 svg { vertical-align: -4px; margin-right: 6px; color: #d97706; }

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.01em; }
.logo span { color: var(--primary); }
.main-nav { display: flex; align-items: center; }
.main-nav a {
  margin-left: 34px; color: var(--muted); font-weight: 500; font-size: 0.98rem;
  transition: color .15s;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a.active { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: none; padding: 6px; margin: 0; cursor: pointer;
  color: var(--ink); align-items: center; justify-content: center; border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--bg); }

/* Mobiles Menue: unter 760px wird die Hauptnavigation zu einem Hamburger-Button
   mit aufklappbarem Panel, damit die Links nicht mehr abgeschnitten werden. */
@media (max-width: 760px) {
  .header-inner { padding: 16px; position: relative; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--card-bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 8px 16px 16px; z-index: 30;
  }
  .main-nav.open { display: flex; }
  .main-nav a { margin-left: 0; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .main-nav a:last-of-type { border-bottom: none; }
  .main-nav a.nav-cta { margin-left: 0; margin-top: 10px; text-align: center; }
  .user-menu { margin-left: 0; width: 100%; }
  .user-menu-trigger { width: 100%; justify-content: space-between; padding: 12px 4px; }
  .user-menu-dropdown {
    display: flex; position: static; box-shadow: none; border: none; padding: 0 0 0 12px;
    min-width: 0;
  }
}

.user-menu { position: relative; margin-left: 34px; }
.user-menu-trigger {
  background: none; border: none; padding: 0; margin: 0; font-family: inherit;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-weight: 500; font-size: 0.98rem;
}
.user-menu-trigger:hover { color: var(--ink); }
.user-menu:focus-within .user-menu-trigger { color: var(--ink); }
.user-menu-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 10px); background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  min-width: 170px; padding: 6px; z-index: 20; flex-direction: column; gap: 2px;
}
.user-menu:focus-within .user-menu-dropdown { display: flex; }
.user-menu-dropdown a {
  color: var(--text); font-weight: 500; font-size: 0.9rem; padding: 9px 12px; border-radius: 6px; margin: 0;
}
.user-menu-dropdown a:hover { background: var(--bg); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, #1e2b4d 100%);
  color: white;
  padding: 88px 0 76px;
}
.hero h1 {
  font-size: 2.6rem; color: white; margin: 0 0 14px; max-width: 680px;
  font-weight: 700; letter-spacing: -0.03em;
}
.hero p { opacity: 0.72; margin: 0 0 32px; font-size: 1.08rem; max-width: 560px; }
.hero-trust {
  opacity: 0.85 !important; margin: -20px 0 28px !important; font-size: 0.88rem !important;
  font-weight: 600; letter-spacing: 0.01em; max-width: 560px;
}
.category-empty-hint { margin-top: 18px; }
.category-empty-hint a { color: var(--primary); }
.hero-search {
  display: flex; gap: 0; flex-wrap: wrap; background: white; border-radius: var(--radius);
  padding: 6px; box-shadow: var(--shadow-md); max-width: 720px;
}
.hero-search input, .hero-search select {
  padding: 12px 16px; border-radius: var(--radius-sm); border: none; font-size: 0.95rem;
  font-family: inherit; background: transparent;
}
.hero-search input { flex: 2; min-width: 200px; }
.hero-search select { flex: 1; min-width: 150px; border-left: 1px solid var(--border); }
.hero-search input:focus, .hero-search select:focus { outline: none; background: var(--bg); }
.hero-search button {
  padding: 12px 28px; border-radius: var(--radius-sm); border: none; background: var(--primary); color: white;
  font-weight: 600; cursor: pointer; font-size: 0.95rem; transition: background .15s;
}
.hero-search button:hover { background: var(--primary-dark); }

section.container { padding: 48px 24px; }

/* Category cards */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.category-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cbd5e1; text-decoration: none;
}
.category-card .icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: #eff4ff; color: var(--primary); border-radius: 10px; margin-bottom: 6px; transition: background .18s, color .18s;
}
.category-card .name { font-weight: 600; color: var(--ink); font-size: 1rem; }
.category-card .count { color: var(--muted); font-size: 0.86rem; }
.category-card .cta-arrow {
  display: flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; font-size: 0.84rem;
  opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; margin-top: 2px;
}
.category-card:hover { border-color: var(--primary); }
.category-card:hover .icon { background: var(--primary); color: white; }
.category-card:hover .cta-arrow { opacity: 1; transform: translateX(0); }

/* Listing cards */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 20px; }
.listing-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; color: var(--text); display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
.listing-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cbd5e1; text-decoration: none;
}
.listing-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.listing-card-top .icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: #eff4ff; color: var(--primary); border-radius: 9px; flex-shrink: 0;
}
.listing-card-top img.icon {
  width: auto; max-width: 130px; min-width: 48px; height: 48px;
}
.listing-card h3 { margin: 6px 0 4px; font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.listing-cat-loc { margin: 0 0 8px; }
.listing-desc {
  margin: 0 0 10px; font-size: 0.88rem; color: var(--text); line-height: 1.5;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  min-height: calc(1.5em * 2);
}
.listing-date { margin: 0 0 10px; font-size: 0.78rem; color: var(--muted); }
.listing-card-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.rating { color: #b45309; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 4px; }
.small { font-size: 0.82rem; }
.card-cta {
  display: flex; align-items: center; gap: 2px; color: var(--primary); font-weight: 600; font-size: 0.84rem;
}
.badge-demo {
  display: inline-flex; align-items: center; background: #f1f5f9; color: #64748b; font-weight: 700;
  font-size: 0.65rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  flex-shrink: 0;
}

.badge-premium {
  display: inline-flex; align-items: center; gap: 3px; background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; font-weight: 700; font-size: 0.65rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; flex-shrink: 0;
}
.listing-card-premium {
  border: 1.5px solid #f59e0b; box-shadow: 0 4px 14px rgba(217, 119, 6, 0.14);
  background: linear-gradient(180deg, #fffbeb 0%, var(--card-bg) 70px);
}
.listing-card-premium:hover {
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.22);
}

.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-native { background: #dcfce7; color: #166534; }
.badge-fluent { background: #dbeafe; color: #1e40af; }
.badge-basic { background: #fef3c7; color: #92400e; }
.badge-sample { background: #f1f5f9; color: #64748b; margin-left: 6px; }

/* CTA band */
.cta-band {
  text-align: center; background: var(--ink); border-radius: 20px; border: none; color: white;
  padding: 64px 24px !important; margin: 0 auto 56px !important;
}
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,0.65); margin-bottom: 28px; }

.button, button[type="submit"] {
  display: inline-block; background: var(--primary); color: white; padding: 13px 28px; border: none;
  border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-size: 0.95rem;
  transition: background .15s, transform .1s;
}
.button:hover, button[type="submit"]:hover { background: var(--primary-dark); text-decoration: none; }
.button:active, button[type="submit"]:active { transform: scale(0.98); }

/* Filter bar */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm);
}
.filter-bar input, .filter-bar select {
  padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.92rem;
  font-family: inherit; background: var(--bg);
}
.filter-bar input { flex: 2; min-width: 180px; }
.filter-bar select { flex: 1; min-width: 140px; }
.filter-checkbox { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--text); white-space: nowrap; }
.filter-bar button {
  background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); padding: 11px 22px; cursor: pointer;
  font-weight: 600;
}

.muted { color: var(--muted); }

/* Listing detail */
.listing-detail .listing-header { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.icon-lg {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: #eff4ff; color: var(--primary); border-radius: 14px; flex-shrink: 0;
}
.icon-lg svg { width: 30px; height: 30px; }
.description { margin: 18px 0; color: var(--text); font-size: 1rem; }
.contact-box {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.contact-box p { margin: 8px 0; font-size: 0.95rem; }
.contact-box p.small { font-size: 0.82rem; }
@media (min-width: 640px) {
  .contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; align-items: start; }
  .contact-box p { margin: 6px 0; }
}

.review-list { margin: 14px 0; }
.review {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.review-meta { margin: 0 0 4px; font-size: 0.9rem; }
.review-report-form { margin-top: 6px; }
/* button.link-button (statt nur .link-button) noetig, damit die generische
   Regel ".button, button[type=submit]" (hoehere Spezifitaet durch
   Element+Attribut-Selektor) nicht gewinnt und aus dem dezenten Text-Link
   wieder ein grosser blauer Button wird. */
button.link-button {
  display: inline; background: none; border: none; padding: 0; color: var(--muted); font-size: 0.8rem; font-weight: normal; cursor: pointer; text-decoration: underline;
}
button.link-button:hover { background: none; color: var(--error); transform: none; }
.review-report-status { margin-top: 6px; font-size: 0.8rem; }

.owner-reply {
  margin-top: 10px; padding: 10px 14px; background: var(--bg-subtle, #f3f4f6); border-left: 3px solid var(--accent, #2563eb); border-radius: 6px;
}
.owner-reply-label { margin: 0 0 4px; font-size: 0.85rem; }
.owner-reply p:last-child { margin: 0; }
.owner-reply-toggle { margin-top: 8px; font-size: 0.85rem; }
.owner-reply-toggle summary { cursor: pointer; color: var(--muted); }
.owner-reply-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.owner-reply-form textarea { width: 100%; }
.field-hint { margin-top: -10px; font-size: 0.8rem; }
.listing-report-line { margin: 4px 0 0; }
.listing-report-form { display: inline; }

.hours-field-label { font-weight: 600; margin: 0 0 6px; }
.hours-grid { display: flex; flex-direction: column; gap: 6px; }
.hours-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; }
.hours-day { width: 90px; flex-shrink: 0; }
.hours-closed { display: flex; align-items: center; gap: 4px; font-weight: normal; width: 110px; flex-shrink: 0; }
.hours-time-inputs { display: flex; align-items: center; gap: 6px; }
.hours-time-inputs input[type="time"] { padding: 4px 6px; }
.opening-hours-table { margin: 10px 0; }
.opening-hours-table .hours-row { padding: 3px 0; border-bottom: 1px solid var(--border); }
.opening-hours-table .hours-row:last-child { border-bottom: none; }
.opening-hours-table .hours-day { width: 100px; font-weight: 600; }
.opening-status { font-size: 0.85rem; margin: 0 0 8px; font-weight: 600; }
.opening-status.is-open { color: #166534; }
.opening-status.is-closed { color: #b91c1c; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag-chip {
  display: inline-block; background: var(--bg-subtle, #f3f4f6); color: var(--muted); border-radius: 999px;
  padding: 3px 12px; font-size: 0.8rem; text-decoration: none;
}
.tag-chip:hover { background: var(--border); color: var(--text); }

.review-form, .listing-form {
  display: flex; flex-direction: column; gap: 16px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-top: 14px; box-shadow: var(--shadow-sm);
}
.review-form label, .listing-form label { display: flex; flex-direction: column; gap: 7px; font-weight: 500; font-size: 0.88rem; color: var(--text); }
.field-hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-top: -3px; }
.review-form input, .review-form select, .review-form textarea,
.listing-form input, .listing-form select, .listing-form textarea {
  padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.94rem;
  font-family: inherit; background: var(--bg); transition: border-color .15s;
}
.review-form input:focus, .review-form select:focus, .review-form textarea:focus,
.listing-form input:focus, .listing-form select:focus, .listing-form textarea:focus {
  outline: none; border-color: var(--primary); background: white;
}

.alert { padding: 15px 20px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.94rem; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--error-bg); color: var(--error); }

.admin-login { padding-top: 90px; }
.stat-bar { display: flex; gap: 16px; margin: 24px 0 36px; flex-wrap: wrap; }
.stat {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 28px; text-align: center; min-width: 150px;
  box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-size: 2rem; color: var(--ink); font-weight: 700; }
.stat span { color: var(--muted); font-size: 0.85rem; }

.admin-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.admin-item {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-actions .button, .admin-actions .button-secondary {
  padding: 9px 18px; font-size: 0.88rem; border-radius: var(--radius-sm);
}
.btn-approve, .btn-reject, .btn-delete {
  padding: 9px 18px; border-radius: var(--radius-sm); border: none; cursor: pointer; font-weight: 600; font-size: 0.88rem;
  line-height: 1.3;
}
.btn-approve { background: var(--success-bg); color: var(--success); }
.btn-reject { background: var(--error-bg); color: var(--error); }
.btn-delete { background: var(--bg); color: var(--muted); border: 1px solid var(--border) !important; }
.btn-delete:hover { background: var(--error-bg); color: var(--error); }
.btn-dismiss { padding: 9px 18px; border-radius: var(--radius-sm); border: none; cursor: pointer; font-weight: 600; font-size: 0.88rem; line-height: 1.3; background: var(--bg); color: var(--text); border: 1px solid var(--border) !important; }
.btn-premium {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 16px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; font-weight: 600; font-size: 0.88rem; line-height: 1.3;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; white-space: nowrap;
}
.btn-premium-remove {
  padding: 9px 16px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 0.88rem;
  background: #fffbeb; color: #b45309; border: 1px solid #fcd34d;
}
.btn-premium-remove:hover { background: #fef3c7; }
.premium-form { display: inline-flex; align-items: center; gap: 6px; }
.premium-form input[type="date"] {
  padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.85rem;
  height: 38px; box-sizing: border-box; color: var(--text); width: 152px;
}

.site-footer { background: var(--ink); padding: 40px 0; margin-top: 0; color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.site-footer p { margin: 4px 0; }


/* Trust / benefits section */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 8px; }
.benefit-card { display: flex; flex-direction: column; gap: 12px; }
.benefit-card .icon {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: #eff4ff; color: var(--primary); border-radius: 12px;
}
.benefit-card h3 { font-size: 1.02rem; margin: 0; font-weight: 600; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.eintragen-hero { text-align: center; margin-bottom: 8px; }
.eintragen-hero p { color: var(--muted); font-size: 1.02rem; max-width: 480px; margin: 8px auto 0; }
.trust-strip {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin: 24px 0 0;
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-strip span { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* Legal / content pages */
.legal-page { padding-top: 48px; padding-bottom: 48px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal-page p { margin: 0 0 12px; color: var(--text); }
.faq-item {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq-item h3 { font-size: 1rem; margin: 0 0 6px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-links a:hover { color: white; }

/* Logo images: feste Hoehe, Breite passt sich dem echten Seitenverhaeltnis an
   (statt in ein starres Quadrat gequetscht zu werden). Kein object-fit noetig,
   da die Breite variabel ist - das Logo behaelt seine Proportionen und fuellt
   die Kachel vollstaendig aus. Weisse Flaeche mit duennem Rand als neutraler
   Hintergrund fuer Logos mit Transparenz. */
img.icon, img.icon-lg {
  display: block; background: #fff; border: 1px solid var(--border);
  padding: 3px; box-sizing: border-box; object-fit: contain;
}
.icon-lg svg { width: 30px; height: 30px; }
.icon-lg img { width: auto; max-width: 100%; height: 100%; object-fit: contain; border-radius: inherit; padding: 6px; }

/* Status badges (dashboard) */
.badge-pending { background: #fef3c7; color: #92400e; }

.pending-diff { margin-top: 8px; font-size: 0.85rem; }
.pending-diff summary { cursor: pointer; color: var(--muted); }
.pending-diff-table { margin-top: 8px; border-collapse: collapse; width: 100%; }
.pending-diff-table th, .pending-diff-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pending-diff-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.pending-diff-old { color: var(--error); text-decoration: line-through; opacity: 0.8; }
.pending-diff-new { color: #15803d; }
.badge-live { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }
.badge-reported { background: #fee2e2; color: #b91c1c; margin-left: 6px; }
.badge-unconfirmed { background: #e5e7eb; color: #4b5563; margin-left: 6px; }
.badge-warning { display: inline-flex; align-items: center; gap: 4px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; margin-left: 6px; }

/* Nav CTA button look */
.main-nav a.nav-cta {
  background: var(--primary); color: white; padding: 8px 16px; border-radius: var(--radius-sm);
  margin-left: 16px;
}
.main-nav a.nav-cta:hover { background: var(--primary-dark); text-decoration: none; color: white; }

input[type="file"] { font-size: 0.88rem; }

/* Admin dashboard layout */
.admin-layout { display: flex; gap: 32px; align-items: flex-start; padding: 40px 24px 80px; }
.admin-sidebar {
  width: 200px; flex-shrink: 0; position: sticky; top: 24px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-sm);
}
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; font-size: 0.92rem; transition: background .15s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  background: #eff4ff; color: var(--primary); text-decoration: none;
}
.admin-sidebar nav a svg { flex-shrink: 0; opacity: 0.85; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--error); color: white; font-size: 0.7rem; font-weight: 700; line-height: 18px;
}
.nav-count {
  margin-left: auto; background: var(--primary); color: white; font-size: 0.72rem; font-weight: 700;
  border-radius: 999px; padding: 1px 8px;
}
.admin-main { flex: 1; min-width: 0; }
.admin-main h1 { margin: 0 0 24px; font-size: 1.8rem; }
.admin-main h2 { margin-top: 44px; }
.admin-main h2:first-of-type { margin-top: 0; }

.stat-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 22px 24px;
}
.stat-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: #eff4ff; color: var(--primary); border-radius: 10px;
}
.stat-icon-pending { background: #fef3c7; color: #92400e; }

.visit-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 20px 10px 0;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 4px;
}
.visit-chart-col {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; gap: 8px; min-width: 0;
}
.visit-chart-bar-wrap {
  flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; max-width: 28px; margin: 0 auto;
}
.visit-chart-bar {
  width: 100%; min-height: 3px; background: var(--primary); border-radius: 4px 4px 0 0;
  transition: opacity .15s;
}
.visit-chart-bar:hover { opacity: 0.75; }
.visit-chart-label { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.empty-state {
  border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 20px 24px; text-align: center;
  color: var(--muted); margin-bottom: 36px; background: #fbfcfe;
}
.empty-state .empty-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: var(--success-bg); color: var(--success); border-radius: 50%; margin-bottom: 12px;
}
.empty-state p { margin: 0; font-size: 0.94rem; }

.category-stat-list {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px; box-shadow: var(--shadow-sm); margin-bottom: 36px;
}
.category-stat-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.category-stat-row:last-child { border-bottom: none; }
.category-stat-row .icon { display: flex; opacity: 0.75; }
.category-stat-name { flex: 1; color: var(--text); font-weight: 500; }
.category-stat-count {
  background: var(--bg); color: var(--muted); font-weight: 600; font-size: 0.82rem;
  padding: 2px 10px; border-radius: 999px;
}

@media (max-width: 760px) {
  .admin-layout { flex-direction: column; padding: 24px 16px 60px; }
  .admin-sidebar { width: 100%; position: static; }
  .admin-sidebar nav { flex-direction: row; overflow-x: auto; }
}

/* Eintragsdetail: Breadcrumb, Kopf-Karte, Aktionen, Sterne, einklappbares Formular */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); }

.listing-header-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.listing-header-card .listing-header { margin-bottom: 16px; }
.listing-header-card .icon-lg { width: 80px; height: 80px; flex-shrink: 0; }
.listing-header-card img.icon-lg { width: auto; max-width: 220px; min-width: 80px; height: 80px; }
.listing-header-card .icon-lg svg { width: 36px; height: 36px; }
.listing-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.listing-title-row h1 { margin: 0; font-size: 1.7rem; }
.badge-verified {
  display: inline-flex; align-items: center; gap: 4px; background: var(--success-bg); color: var(--success);
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px;
}
.badge-owner-verified {
  display: inline-flex; align-items: center; gap: 4px; background: #dbeafe; color: #1e40af;
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px;
}
.listing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.button-secondary { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
.button-secondary:hover { background: var(--bg); text-decoration: none; }

.stars { color: #f59e0b; letter-spacing: 1px; }
.stars-summary { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 20px; }
.review-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; }
.review-date { font-size: 0.78rem; margin: 0 0 8px; }

.review-toggle { margin-top: 24px; }
.review-toggle summary {
  cursor: pointer; font-weight: 600; color: var(--ink); padding: 13px 20px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); display: inline-block;
}
.review-toggle summary:hover { border-color: #cbd5e1; }
.review-toggle[open] summary { border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-bottom: -1px; }
.review-toggle .review-form { border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm); margin-top: 0; }

.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-rating label { font-size: 1.8rem; color: var(--border); cursor: pointer; line-height: 1; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent-check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; font-size: 0.86rem !important; }
.consent-check input { margin-top: 3px; }
.checkbox-field { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; font-size: 0.86rem !important; color: var(--muted); }
.checkbox-field input { margin-top: 3px; }
.address-line2 { color: var(--muted); }
.auth-page { padding-top: 24px; }
.admin-list-compact .admin-item { padding: 13px 18px; }
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 42px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; padding: 6px;
}
.password-toggle:hover { color: var(--ink); }
.listing-event-date { display: flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 600; }
.listing-event-date svg { flex-shrink: 0; }

/* --- Wartungsmodus-Umschalter im Admin-Dashboard --- */
.maintenance-toggle-box {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 24px; margin: 0 0 24px; box-shadow: var(--shadow-sm);
}
.maintenance-toggle-box strong { display: flex; align-items: center; gap: 8px; }
.maintenance-toggle-box-active {
  background: #fffbeb; border-color: #f59e0b;
}
.maintenance-toggle-box-active strong { color: #b45309; }
.button-warning {
  background: #f59e0b; color: white; border: 1px solid #d97706;
}
.button-warning:hover { background: #d97706; text-decoration: none; }

/* --- Eintragstyp-Badge (Website/Blog, Onlineshop, Veranstaltung; "Unternehmen" als Standard ohne Badge) --- */
.badge-type {
  display: inline-flex; align-items: center; background: #eef2ff; color: #4338ca; font-weight: 700;
  font-size: 0.65rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  flex-shrink: 0;
}

.filter-bar input.filter-input-narrow { flex: 1; min-width: 120px; }
