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

:root {
  --black:      #000000;
  --charcoal:   #32373c;
  --teal:       #84A59D;
  --teal-dark:  #709999;
  --teal-deep:  #015F73;
  --cream:      #FEF4DB;
  --white:      #ffffff;
  --bg:         #f0f0f0;
  --border:     #ddd;
  --text-muted: #666;
  --pill:       9999px;
  --max-w:      800px;
  --font:       "Fira Sans", sans-serif;
  --shadow-nat: 6px 6px 9px rgba(0,0,0,0.2);
  --shadow-deep:12px 12px 50px rgba(0,0,0,0.4);

  /* Produktfarben — eine Farbe pro Produkt, eingesetzt via .product-* Body-Klasse */
  --product-color: #cf2e2e; /* Default: Reputation (rot) */
  --product-color-soft: rgba(207,46,46,0.12);
}

/* Pro-Produkt-Farbthema: wird über body.product-<key> aktiviert */
body.product-reputation {
  --product-color: #cf2e2e;               /* Rot — klassisches CI-Hauptprodukt */
  --product-color-soft: rgba(207,46,46,0.12);
}
body.product-abstimmung {
  --product-color: #015F73;               /* Teal-Deep — Demokratie/Wahlkampf */
  --product-color-soft: rgba(1,95,115,0.12);
}
body.product-forecast {
  --product-color: #84A59D;               /* Teal — vorausschauend, zurückhaltend */
  --product-color-soft: rgba(132,165,157,0.18);
}

/* Badges für Produkt-Pills in Admin-Tabelle + Report-Cards */
.product-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-weight: 500;
  margin-right: 4px;
  white-space: nowrap;
}
.product-badge--reputation { background: #cf2e2e; }
.product-badge--abstimmung { background: #015F73; }
.product-badge--forecast   { background: #84A59D; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.6;
}

/* ─── HEADER ────────────────────────────────────── */
.site-header {
  background: var(--teal);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 300;
}
.site-header__logo { display: flex; align-items: center; text-decoration: none; }
.site-header__logo svg { height: 26px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 28px; }
.site-header__nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.site-header__nav a:hover { color: var(--white); }
.site-header__lang {
  display: flex;
  gap: 6px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.2);
  margin-left: 4px;
}
.site-header__lang a {
  color: rgba(255,255,255,0.4) !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.site-header__lang a.active { color: var(--white) !important; }

/* ─── HERO ──────────────────────────────────────── */
.hero {
  background: url('https://www.gfsbern.ch/wp-content/storage5k/picture/2023/12/hero-3840x2160.webp?oext=jpg&res=2&media_id=12757&source_id=10371') center center / cover no-repeat;
  color: var(--white);
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__content {
  position: relative;
  z-index: 3;
  background: rgba(132,165,157,0.88);
  backdrop-filter: blur(4px);
  padding: 40px 48px;
  max-width: var(--max-w);
  width: 100%;
  text-align: center;
}
.hero__inner { max-width: var(--max-w); margin: 0 auto; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.hero__title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--white);
}
.hero__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  line-height: 1.65;
  margin: 0 auto;
}

/* ─── TAB NAV ───────────────────────────────────── */
.tab-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  position: sticky;
  top: 70px;
  z-index: 200;
}
.tab-nav__inner {
  display: flex;
  max-width: var(--max-w);
  width: 100%;
  padding: 0 0;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}
.tab-btn svg { width: 16px; height: 16px; }
.tab-btn:hover { color: var(--black); }
.tab-btn.active {
  color: var(--black);
  border-bottom-color: var(--teal-deep);
}
.tab-btn .badge-count {
  background: var(--teal-deep);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--pill);
  min-width: 18px;
  text-align: center;
}

/* ─── TAB PANELS ────────────────────────────────── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── SHARED MAIN WRAPPER ───────────────────────── */
main { flex: 1; }

/* ─── FORM PANEL ────────────────────────────────── */
.panel-form {
  display: flex;
  justify-content: center;
  padding: 48px 20px 80px;
}
.form-card {
  background: var(--white);
  width: 100%;
  max-width: var(--max-w);
  box-shadow: var(--shadow-nat);
  border-radius: 12px;
}
.form-section {
  padding: 36px 48px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; }
.form-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.form-section__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 50%;
  color: var(--white);
  flex-shrink: 0;
}
.form-section__icon svg { width: 18px; height: 18px; }
.form-section__title { font-size: 0.95rem; font-weight: 700; }
.form-section__subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; }
.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }
label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 7px;
}
.tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--pill);
}
.tag--req { background: var(--teal-deep); color: var(--white); }
.tag--opt { background: #e8e8e8; color: #888; }
input[type="text"], textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}
input[type="text"]::placeholder,
textarea::placeholder { color: #bbb; font-size: 0.85rem; }
input[type="text"]:focus, textarea:focus { border-color: var(--teal-deep); }
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
textarea.large { min-height: 220px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-footer {
  padding: 32px 48px 40px;
  background: #f9f9f9;
  border-top: 1px solid var(--border);
}

/* ─── SUBMIT NOTICE ─────────────────────────────── */
.submit-notice {
  display: none;
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 0.88rem;
  line-height: 1.65;
}
.submit-notice.visible { display: block; }
.submit-notice__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.submit-notice__title svg { color: #2ecc71; flex-shrink: 0; }
.submit-notice__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}
.submit-notice__time svg { width: 14px; height: 14px; }
.submit-notice.error {
  background: #fdf3f3;
  color: #7d1f1f;
  border-left: 4px solid #cf2e2e;
}

/* ─── BUTTON ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--teal-deep);
  border: 2px solid var(--teal-deep);
  border-radius: 35px;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-primary:hover:not(:disabled) { background: var(--teal-deep); color: var(--white); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary svg { width: 17px; height: 17px; }
.btn-primary .spinner {
  border: 2.5px solid rgba(1,95,115,0.3);
  border-top-color: var(--teal-deep);
}
.btn-primary:hover:not(:disabled) .spinner {
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--teal-deep);
  border-radius: var(--pill);
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover { background: var(--teal-deep); color: var(--white); }
.btn-secondary svg { width: 15px; height: 15px; }
.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── REPORTS PANEL ─────────────────────────────── */
.panel-reports { padding: 48px 20px 80px; }
.reports-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.reports-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.reports-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Loading / empty states */
.reports-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-muted);
  gap: 16px;
}
.reports-state svg { width: 48px; height: 48px; opacity: 0.3; }
.reports-state p { font-size: 0.9rem; }
.spinner-lg {
  width: 36px; height: 36px;
  border: 3px solid #ddd;
  border-top-color: var(--charcoal);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* Report grid */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.report-card {
  background: var(--white);
  box-shadow: var(--shadow-nat);
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.report-card:hover {
  box-shadow: var(--shadow-deep);
  transform: translateY(-2px);
}
.report-card__top {
  background: var(--teal-dark);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.report-card__icon {
  width: 36px; height: 36px;
  background: var(--teal-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.report-card__icon svg { width: 18px; height: 18px; color: var(--white); }
.report-card__company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.report-card__filename {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
  word-break: break-all;
}
.report-card__body {
  padding: 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.report-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.report-card__meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.report-card__action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-deep);
}
.report-card__action svg { width: 14px; height: 14px; }
.report-card__delete {
  position: absolute; top: 8px; right: 8px;
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.35); padding: 4px;
  border-radius: 4px; line-height: 0;
  opacity: 0;
  transition: opacity 0.2s, color 0.15s, background 0.15s;
}
.report-card:hover .report-card__delete { opacity: 1; }
.report-card__delete:hover { color: #cf2e2e; background: rgba(255,255,255,0.1); }

/* ─── REPORT VIEWER MODAL ───────────────────────── */
.viewer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 400;
}
.viewer-overlay.open { display: block; }
.viewer-modal {
  background: var(--white);
  position: absolute;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-deep);
  min-width: 340px;
  min-height: 260px;
}
/* Topbar drag cursor */
.viewer-topbar { cursor: move; user-select: none; }
.viewer-topbar__actions,
.viewer-topbar__actions * { cursor: default; }
/* Resize handles */
.resize-handle {
  position: absolute;
  z-index: 10;
  user-select: none;
}
.resize-n  { top: -4px;    left: 14px;  right: 14px; height: 8px;  cursor: n-resize; }
.resize-s  { bottom: -4px; left: 14px;  right: 14px; height: 8px;  cursor: s-resize; }
.resize-e  { right: -4px;  top: 14px; bottom: 14px;  width: 8px;   cursor: e-resize; }
.resize-w  { left: -4px;   top: 14px; bottom: 14px;  width: 8px;   cursor: w-resize; }
.resize-ne { top: -4px;    right: -4px;  width: 14px; height: 14px; cursor: ne-resize; }
.resize-nw { top: -4px;    left: -4px;   width: 14px; height: 14px; cursor: nw-resize; }
.resize-se { bottom: -4px; right: -4px;  width: 14px; height: 14px; cursor: se-resize; }
.resize-sw { bottom: -4px; left: -4px;   width: 14px; height: 14px; cursor: sw-resize; }
/* Visual corner indicator (bottom-right) */
.resize-se::after {
  content: '';
  position: absolute;
  right: 4px; bottom: 4px;
  width: 8px; height: 8px;
  border-right: 2px solid rgba(0,0,0,0.25);
  border-bottom: 2px solid rgba(0,0,0,0.25);
}
.viewer-topbar {
  background: var(--teal-dark);
  color: var(--white);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.viewer-topbar__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.viewer-topbar__title span { color: rgba(255,255,255,0.5); font-weight: 400; font-size: 0.8rem; }
.viewer-topbar__actions { display: flex; align-items: center; gap: 8px; }
.viewer-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  border-radius: var(--pill);
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.viewer-btn:hover { background: rgba(255,255,255,0.2); }
.viewer-btn svg { width: 14px; height: 14px; }
.viewer-btn.close-btn { background: transparent; }
.viewer-btn.close-btn:hover { background: rgba(255,255,255,0.15); }
.viewer-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.viewer-frame {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

/* ─── FOOTER ────────────────────────────────────── */
.site-footer {
  background: var(--teal);
  color: rgba(255,255,255,0.7);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
}
.site-footer__logo svg { height: 18px; }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer__links a:hover { color: var(--white); }

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .site-header__nav { display: none; }
  .hero { padding: 40px 20px; min-height: 280px; }
  .hero__content { padding: 28px 20px; }
  .hero__title { font-size: 1.7rem; }
  .form-section { padding: 28px 20px; }
  .form-footer { padding: 28px 20px; }
  .row-2 { grid-template-columns: 1fr; }
  .tab-btn { padding: 16px 16px; font-size: 0.82rem; }
  .reports-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
  /* viewer positioning handled by JS */
}

@media (max-width: 900px) {
  .hero__circle { width: 70px; height: 70px; }
  .hero__circle svg { width: 30px; height: 30px; }
}

/* ─── AUTH OVERLAY ──────────────────────────────────── */
#auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#auth-overlay.hidden { display: none; }

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-deep);
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.auth-logo svg { height: 22px; }
.auth-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 10px;
}
.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.auth-field input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 0 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}
.auth-field input:focus { border-color: var(--teal-deep); }

.auth-otp {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 4px;
}
.auth-otp input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: monospace;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
}
.auth-otp input:focus { border-color: var(--teal-deep); }

.auth-btn {
  width: 100%;
  height: 48px;
  background: var(--teal-deep);
  color: var(--white);
  border: none;
  border-radius: var(--pill);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.15s;
}
.auth-btn:hover:not(:disabled) { opacity: 0.8; }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-error {
  background: #fff0f0;
  border: 1px solid #fcc;
  color: #c00;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  min-height: 0;
}
.auth-error:empty { display: none; }

.auth-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 14px;
  display: block;
  text-align: center;
  width: 100%;
}
.auth-back:hover { color: var(--black); }

.auth-qr {
  text-align: center;
  margin: 16px 0 8px;
}
.auth-qr svg, .auth-qr img {
  width: 180px;
  height: 180px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
}
.auth-secret {
  font-family: monospace;
  font-size: 0.78rem;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  word-break: break-all;
  margin: 0 0 12px;
  text-align: center;
  color: var(--charcoal);
}

/* ── Auth links row (login card footer) ── */
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.auth-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
}
.auth-link:hover { color: var(--black); }

/* ── Info box (success / informational) ── */
.auth-info {
  background: #f0f7ff;
  border: 1px solid #c3dafe;
  color: #1a56db;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-info:empty { display: none; }

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--pill);
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-left: 16px;
}
.auth-badge:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

/* ─── FORM SELECT (for dropdown) ───────────────────── */
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
  cursor: pointer;
}
select:focus { border-color: var(--teal-deep); }

/* ─── FEEDBACK BUTTON & MODAL ──────────────────── */
.feedback-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--charcoal); color: var(--white);
  border: none; cursor: pointer; box-shadow: var(--shadow-nat);
  display: none; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.feedback-fab:hover { background: var(--black); }
.feedback-fab svg { width: 24px; height: 24px; }

.feedback-overlay {
  display: none; position: fixed; inset: 0; z-index: 950;
  background: rgba(0,0,0,0.4); align-items: center; justify-content: center;
}
.feedback-overlay.open { display: flex; }

.feedback-modal {
  background: var(--white); border-radius: 12px;
  width: 90%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-deep); padding: 28px 28px 20px;
}
.feedback-modal h3 { margin: 0 0 4px; font-size: 1.15rem; }
.feedback-modal .fb-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 18px; }
.feedback-modal label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 5px; color: var(--charcoal); }
.feedback-modal select,
.feedback-modal textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-family: inherit; font-size: 0.95rem; margin-bottom: 14px;
}
.feedback-modal textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.feedback-meta {
  background: #f7f7f7; border-radius: 6px; padding: 10px 12px;
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px;
  line-height: 1.6;
}
.feedback-meta strong { color: var(--charcoal); }
.feedback-actions { display: flex; gap: 10px; justify-content: flex-end; }
.feedback-actions button {
  padding: 10px 22px; border-radius: var(--pill); font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: none; transition: opacity 0.15s;
}
.feedback-actions button:hover { opacity: 0.85; }
.feedback-actions .fb-cancel { background: #eee; color: var(--charcoal); }
.feedback-actions .fb-submit { background: var(--teal-deep); color: var(--white); }
.feedback-actions .fb-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── DEBUGGING TAB (Admin) ────────────────────── */
.debug-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.debug-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid #e0e0e0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.debug-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.debug-table tr:hover td { background: #fafafa; }
.debug-cat { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.debug-cat--fehler { background: #fdeaea; color: #c00; }
.debug-cat--anpassungswunsch { background: #fff8e1; color: #b8860b; }
.debug-cat--anmerkung { background: #e8f5e9; color: #2e7d32; }
.debug-error-ctx { font-family: monospace; font-size: 0.72rem; color: #999; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.debug-error-ctx:hover { white-space: normal; word-break: break-all; }

/* ─── PRODUCT SWITCHER (Hero) ──────────────────── */
.hero__switcher {
  display: none;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--pill);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.hero__switcher.visible { display: inline-flex; }
.hero__switcher-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--pill);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.hero__switcher-btn:hover { color: rgba(255,255,255,0.9); }
.hero__switcher-btn.active {
  background: var(--white);
  color: var(--teal-deep);
}
