/* ===================================================
   Consent-Tool Styles v2.0 – großzügiges Layout
   =================================================== */

:root {
  --consent-bg: #fff;
  --consent-fg: #222;
  --consent-accent: #007bff;
  --consent-muted: #666;
  --consent-overlay: rgba(0,0,0,0.65);
  --consent-radius: 14px;
  --consent-shadow: 0 6px 18px rgba(0,0,0,0.25);
  --consent-width: 640px;
}

/* ========== Banner unten ========== */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--consent-bg);
  color: var(--consent-fg);
  padding: 24px 28px;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.25);
  z-index: 99999;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}
.consent-banner h3 {
  font-size: 20px;
  margin: 0 0 8px 0;
}
.consent-banner p {
  font-size: 15px;
  margin: 0 0 20px 0;
  color: var(--consent-muted);
}
.consent-banner .consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.consent-btn {
  background: #eaeaea;
  border: none;
  border-radius: var(--consent-radius);
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.consent-btn:hover { background: #dcdcdc; }
.consent-btn--primary {
  background: var(--consent-accent);
  color: #fff;
}
.consent-btn--primary:hover { background: #005ec4; }

/* ========== Modal Overlay ========== */
.consent-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--consent-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  padding: 20px;
}

.consent-modal {
  background: var(--consent-bg);
  color: var(--consent-fg);
  width: 100%;
  max-width: var(--consent-width);
  border-radius: var(--consent-radius);
  box-shadow: var(--consent-shadow);
  padding: 32px 36px;
  overflow-y: auto;
  max-height: 90vh;
}

.consent-modal h3 {
  margin-top: 0;
  margin-bottom: 28px;
  font-size: 22px;
}

/* ========== Grid / Rows ========== */
.consent-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  min-height: 68px;
}

.consent-row span {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  display: block;
}

.consent-row small {
  display: block;
  color: var(--consent-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 75%;
}

/* ========== Switches ========== */
.consent-switch {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
  flex-shrink: 0;
}
.consent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.consent-switch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 34px;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.3s;
}
.consent-switch i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: 0.3s;
}
.consent-switch input:checked + i {
  transform: translateX(30px);
  background-color: var(--consent-accent);
}

/* ========== Modal Buttons ========== */
.consent-actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ========== Floating Button ========== */
.consent-fab {
  position: fixed;
  bottom: 25px;
  left: 25px;        /* statt right: nach links */
  background: var(--consent-accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: var(--consent-shadow);
  z-index: 9999;
  transition: background 0.2s ease;
}

.consent-fab:hover { background: #005ec4; }

/* ========== Admin-Scan Table ========== */
.consent-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}
.consent-table th,
.consent-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
}
.consent-table th {
  background: #f7f7f7;
  font-weight: 600;
}
