/* ==========================================================================
   Sektions-Komponenten der Startseite — Geometrien 1:1 aus Rapidhost.fig
   (Feature-Karten 384x296, Suchfeld 792x55, Icons 48px, Preiskarten 384px)
   ========================================================================== */

/* --- Dekorative Akzent-Ellipsen (im Template: #00ffa3 @70 %, stark geblurrt) */
.glow {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: .18;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-sm { width: 92px;  height: 92px;  filter: blur(70px);  opacity: .5; }
.glow-md { width: 241px; height: 241px; }
.glow-lg { width: 520px; height: 520px; opacity: .12; }

/* ------------------------------------------------------------------- Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 588fr 589fr;
  gap: 24px;
  align-items: center;
}
.hero-grid h1 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.16; margin-bottom: 20px; }
.hero-grid > div:first-child > p { font-size: 20px; line-height: 32px; max-width: 560px; }

/* Rechte Hero-Seite: Illustration + schwebende Glas-Karten */
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-visual .server-art { width: 100%; max-width: 420px; }

.info-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(22, 29, 37, .72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  max-width: 240px;
  z-index: 2;
}
.info-card svg { width: 34px; height: 34px; flex: 0 0 34px; color: var(--accent); }
.info-card.pos-tl { top: 4%;  left: -4%; }
.info-card.pos-br { bottom: 10%; right: -2%; }
.info-card.pos-bl { bottom: -2%; left: 6%; }

/* ---------------------------------------------------- Domain-Suche (996px) */
.domain-search {
  background: rgba(22, 29, 37, .55);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  z-index: 1;
}
.domain-form {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  max-width: 996px;
  margin-inline: auto;
}
/* Suchfeld: im Template 792x55 mit Füllung #303641 */
.domain-form input[type=text] {
  height: 55px;
  background: var(--divider);
  border-color: transparent;
  border-radius: var(--r-pill);
  padding-inline: 24px;
  font-size: 17px;
}
.domain-form .btn { height: 55px; padding-inline: 24px; }

.domain-note {
  text-align: center;
  margin: 18px auto 0;
  max-width: 720px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Ergebnis der Prüfung */
.domain-result {
  max-width: 996px;
  margin: 24px auto 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-black);
  padding: 20px 24px;
  display: none;
}
.domain-result.show { display: block; }
.domain-result-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--text);
}
.domain-result.is-free    { border-color: rgba(0,255,163,.35); }
.domain-result.is-taken   { border-color: rgba(255,107,107,.35); }
.domain-result.is-unknown { border-color: rgba(255,193,7,.35); }

/* Leistungs-Karten (im Template die TLD-Preiskarten, 180x121) */
.include-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 996px;
  margin: 28px auto 0;
}
.include-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 18px;
  text-align: center;
  min-height: 121px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.include-card b {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  background: var(--grad-button); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.include-card span { font-size: 14px; color: var(--text-muted); }

/* ------------------------------------------------------ Vertrauensanker */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.trust-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(1, 255, 133, 0.2);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: 0 0 22px;
  transition: transform 0.3s ease;
}
.trust-item:hover svg {
  transform: scale(1.1);
}

/* ------------------------------------------------------- Feature-Karten */
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  min-height: 296px;
  display: flex; flex-direction: column;
}
.feature:nth-child(even) { background: #11161f; }
.feature svg { width: 48px; height: 48px; color: var(--accent); margin-bottom: 20px; }
.feature h5 { margin-bottom: 12px; }
.feature p  { margin: 0; }

/* ------------------------------------------------------------- Preistabelle */
.plans {
  display: grid;
  /* minmax(0,1fr) statt 1fr: sonst erzwingt der Inhalt (längste Feature-Zeile)
     unterschiedlich breite Spalten — gemessen 256/270/278/289 px. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.plan:hover {
  transform: translateY(-8px);
  border-color: rgba(21, 230, 161, 0.4);
  box-shadow: 0 20px 40px rgba(9, 13, 20, 0.6), 0 0 25px rgba(21, 230, 161, 0.08);
}
/* Empfohlene Karte. */
.plan.is-featured {
  background: var(--card);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 255, 163, .25),
              0 24px 60px rgba(0, 255, 163, .10);
}
.plan.is-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 255, 163, .4),
              0 24px 60px rgba(0, 255, 163, .25);
}
/* Nur der Preis und die Handlungsschaltfläche tragen den Akzent. */
.plan.is-featured .plan-price { color: var(--accent); }
.plan.is-featured .btn { background: var(--grad-button); color: #04150e; font-weight: 600; }
.plan.is-featured .btn:hover { color: #04150e; box-shadow: 0 14px 38px rgba(0, 255, 163, .4); }

.plan .btn {
  white-space: normal;
  line-height: 1.3;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.plan .btn:hover {
  transform: translateY(-2px);
}

.plan-badge {
  align-self: flex-start;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(0,255,163,.1); color: var(--accent);
  border: 1px solid rgba(0,255,163,.3);
  margin-bottom: 18px;
}
.plan h4 { margin-bottom: 6px; }
.plan > p { font-size: 15px; min-height: 48px; }
.plan-price {
  font-family: var(--font-head); font-weight: 700; font-size: 48px; line-height: 1.1;
  color: var(--text); margin: 12px 0 4px;
}
.plan-price small { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--text-muted); }
.plan-vat { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.plan li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; line-height: 24px; color: var(--text); margin-bottom: 12px;
}
.plan li svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; color: var(--accent); }
.plan li.is-limit { color: var(--text-muted); }
.plan li.is-limit svg { color: var(--text-muted); }

.plan-terms {
  max-width: 900px; margin: 40px auto 0; text-align: center;
  font-size: 14px; line-height: 24px; color: var(--text-muted);
}

/* --------------------------------------------------------- Ablauf-Schritte */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  background: rgba(0,255,163,.1); color: var(--accent);
  border: 1px solid rgba(0,255,163,.3);
}
.step h5 { margin-bottom: 10px; }
.step p { margin: 0; font-size: 15px; }

/* -------------------------------------------------------------------- FAQ */
.faq { max-width: 752px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 20px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 24px 0; color: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 28px;
}
.faq-q:hover { color: var(--accent); }
.faq-q .faq-icon {
  margin-left: auto; flex: 0 0 24px; width: 24px; height: 24px;
  transition: transform .2s ease; color: var(--accent);
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 24px; }
.faq-item.open .faq-a { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------- CTA */
.cta-box {
  background: linear-gradient(180deg, #161d25 0%, #0d1117 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 14px; color: var(--text-muted);
}
.cta-note svg { width: 18px; height: 18px; color: var(--accent); }

/* ----------------------------------------------------------------- Footer */
.site-footer {
  background: linear-gradient(180deg, #12181f 0%, #070a0e 100%);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer h6 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 24px;
}
.site-footer a:not(.btn), .footer-linkbtn {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 2.2;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.site-footer a:not(.btn):hover, .footer-linkbtn:hover {
  color: var(--accent);
  transform: translateX(4px);
  text-decoration: none;
}
.footer-claim {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.3;
  background: linear-gradient(120deg, #ffffff 0%, #a1a8b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  max-width: 320px;
}
.footer-contact {
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}
.footer-contact:hover {
  transform: translateX(2px);
}
.footer-contact span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.footer-contact strong {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}
.footer-contact strong a {
  color: var(--text) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}
.footer-contact strong a:hover {
  color: var(--accent) !important;
  transform: none !important;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}

/* ------------------------------------------------------------------ Modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 7, 11, .78);
  backdrop-filter: blur(6px);
  display: none;
  overflow-y: auto;
  padding: 40px 16px;
}
.modal.open { display: block; }
.modal-box {
  width: 100%; max-width: 720px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
}
.modal-head {
  display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px;
}
.modal-head h4 { margin: 0 0 6px; }
.modal-close {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--text-muted); font-size: 28px; line-height: 1; padding: 0 4px;
}
.modal-close:hover { color: var(--accent); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .field-full { grid-column: 1 / -1; }

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  margin: 0 0 24px;
}
legend {
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  color: var(--accent); padding: 0 10px;
}

/* Passwortstärke */
.pw-meter { display: flex; gap: 6px; margin-top: 8px; }
.pw-meter i {
  height: 4px; flex: 1; border-radius: 2px; background: var(--divider);
  transition: background .2s ease;
}
.pw-meter.s1 i:nth-child(-n+1) { background: #ff6b6b; }
.pw-meter.s2 i:nth-child(-n+2) { background: #ffc107; }
.pw-meter.s3 i:nth-child(-n+3) { background: #9fe870; }
.pw-meter.s4 i { background: var(--accent); }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; line-height: 24px; color: var(--text-muted);
  margin-bottom: 16px;
}
.checkbox-row input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--accent); }
.checkbox-row label { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--text-muted); }
.checkbox-row a { color: var(--accent); text-decoration: underline; }

.alert {
  border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 20px;
  font-size: 15px; line-height: 24px; display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.35); color: #ffb3b3; }
.alert-info  { background: rgba(0,255,163,.08); border: 1px solid rgba(0,255,163,.3); color: var(--accent); }

/* Provisionierungs-Schritte im Status-Dialog */
.prov-steps { list-style: none; margin: 0; padding: 0; }
.prov-steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
}
.prov-steps li:last-child { border-bottom: 0; }
.prov-steps .prov-state { margin-left: auto; }
.prov-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--divider); flex: 0 0 12px; }
.prov-dot.completed   { background: var(--accent); }
.prov-dot.in_progress { background: #ffc107; animation: pulse 1.2s infinite; }
.prov-dot.failed      { background: #ff6b6b; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; margin-top: 32px; }
  .info-card { position: static; max-width: none; margin-bottom: 12px; }
  .hero-visual { display: block; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .include-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .domain-search { padding: 24px; }
  .domain-form { grid-template-columns: 1fr; }
  .plans, .steps { grid-template-columns: 1fr; }
  .include-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 24px; }
  .cta-box { padding: 40px 24px; }
  .faq-intro h2 { font-size: 28px !important; }
  .trust-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ==========================================================================
   Ergänzungen für die PHP-Templates
   ========================================================================== */

/* Sprungmarke für Tastatur- und Screenreader-Nutzung */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--accent); color: #04150e;
  font-family: var(--font-head); font-weight: 600;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #04150e; }

/* Abgesetztes Band (Ablauf-Sektion) */
.band {
  background: var(--bg-black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Vertrauensanker-Band */
.trust-band {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-title {
  text-align: center; margin-bottom: 28px;
  font-family: var(--font-head); font-weight: 600; color: var(--text);
}

/* Zweispaltige Textsektionen (Verhältnisse aus dem Template) */
.split-grid { display: grid; grid-template-columns: 588fr 612fr; gap: 56px; align-items: center; }
.faq-grid   { display: grid; grid-template-columns: 384fr 752fr; gap: 64px; align-items: start; }

/* Fehlerseiten */
.error-code {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(90px, 18vw, 200px); line-height: 1;
  background: var(--grad-button);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.debug-box {
  margin: 32px auto 0; max-width: 900px; text-align: left;
  background: var(--bg-black); border: 1px solid rgba(255,107,107,.35);
  border-radius: var(--r-sm); padding: 18px;
  color: #ffb3b3; font-size: 13px; line-height: 20px;
  white-space: pre-wrap; word-break: break-word;
  overflow-x: auto;
}

@media (max-width: 1024px) {
  .split-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Cookie-Einwilligung (Banner + Einstellungsdialog)
   Gestaltungsregel: Zustimmen und Ablehnen sind gleich groß und gleich
   prominent. Keine Dark Patterns — Vorgabe der Datenschutzkonferenz.
   ========================================================================== */

.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: rgba(18, 24, 38, .97);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--accent);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
  padding: 24px 0;
  animation: consent-in .28s ease-out;
}
@keyframes consent-in { from { transform: translateY(100%); } to { transform: none; } }

.consent-inner {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 24px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
}
.consent-text h2 {
  font-size: 20px; line-height: 1.3; margin: 0 0 8px;
}
.consent-text p { font-size: 15px; line-height: 24px; margin: 0 0 8px; }
.consent-links { font-size: 14px; margin: 0 !important; }
.consent-links a { color: var(--accent); text-decoration: underline; }

.consent-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.consent-form { margin: 0; }
/* Gleiche Mindestbreite für beide Entscheidungen */
.consent-btn { min-width: 190px; }
.consent-settings-link {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  color: var(--text-muted); text-decoration: underline; padding: 8px;
}
.consent-settings-link:hover { color: var(--accent); }

/* --- Einstellungsdialog --- */
.consent-modal .modal-box { max-width: 780px; }

.consent-cat {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--bg-black);
}
.consent-cat-head { margin-bottom: 12px; }
.consent-cat-label {
  font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--text);
}
.consent-cat-summary { font-size: 15px; line-height: 24px; margin: 0 0 8px; }
.consent-cat-legal   { font-size: 13px; line-height: 20px; color: #6c7484; margin: 0; }

/* Schalter */
.consent-switch {
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; margin: 0; font-weight: 400;
}
.consent-switch.is-locked { cursor: default; }
.consent-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent-switch-track {
  position: relative; flex: 0 0 46px;
  width: 46px; height: 26px; border-radius: var(--r-pill);
  background: var(--divider); border: 1px solid var(--border);
  transition: background .18s ease, border-color .18s ease;
}
.consent-switch-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-muted);
  transition: transform .18s ease, background .18s ease;
}
.consent-switch input:checked + .consent-switch-track {
  background: rgba(0, 255, 163, .22); border-color: var(--accent);
}
.consent-switch input:checked + .consent-switch-track .consent-switch-knob {
  transform: translateX(20px); background: var(--accent);
}
.consent-switch input:disabled + .consent-switch-track { opacity: .65; }
.consent-switch input:focus-visible + .consent-switch-track {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

.consent-details { margin-top: 14px; }
.consent-details summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600;
  font-size: 14px; color: var(--accent); padding: 6px 0;
}
.consent-service {
  border-top: 1px solid var(--border);
  padding: 14px 0 4px;
  font-size: 14px;
}
.consent-service strong { color: var(--text); font-family: var(--font-head); }
.consent-service dl {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 4px 16px; margin: 10px 0 0;
}
.consent-service dt { color: #6c7484; }
.consent-service dd { margin: 0; color: var(--text-muted); line-height: 21px; }

.consent-modal-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 24px; margin-top: 8px;
}

@media (max-width: 900px) {
  .consent-inner { grid-template-columns: 1fr; gap: 20px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1 1 200px; min-width: 0; }
  .consent-form { flex: 1 1 200px; display: flex; }
  .consent-form .btn { width: 100%; }
  .consent-service dl { grid-template-columns: 1fr; gap: 2px; }
  .consent-service dt { margin-top: 8px; }
}

/* Schaltfläche, die im Fußbereich wie ein Link aussehen soll
   (der Widerruf muss ein Button sein, weil er ein Dialog öffnet). */
.footer-linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 16px; line-height: 32px;
  color: var(--text-muted); text-align: left;
}
.footer-linkbtn:hover { color: var(--accent); text-decoration: underline; }

/* Kurze Rückmeldung nach dem Speichern der Einwilligung */
.consent-toast {
  position: fixed; z-index: 260;
  left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  padding: 14px 26px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  transition: opacity .45s ease, transform .45s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.consent-toast.is-out { opacity: 0; transform: translateX(-50%) translateY(12px); }

/* Gleichgewichtige Entscheidung im Banner.
   Die Datenschutzkonferenz verlangt, dass Ablehnen nicht unauffälliger ist als
   Zustimmen. Eine umrandete gegen eine gefüllte Schaltfläche wäre ein
   Gewichtsunterschied — deshalb sind beide gefüllt, gleich groß, mit
   vergleichbarem Kontrast. */
.consent-btn-neutral {
  background: #3a4150;
  color: var(--text);
  border: 0;
  font-weight: 600;
}
.consent-btn-neutral:hover {
  background: #454d5e;
  color: var(--text);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .35);
}

/* Stapelreihenfolge korrigiert.
   Der Banner liegt bei 250, der allgemeine Dialog bei 200 — dadurch verdeckte
   der Banner den aus ihm geöffneten Einstellungsdialog samt Schaltflächen.
   Reihenfolge: Dialog über Banner, Rückmeldung über allem. */
.consent-modal { z-index: 270; }
.consent-toast { z-index: 280; }
