/* ── SBM Legal Pages – Glassmorphism im Himmel-Stil ── */

/* Himmel-Hintergrund kommt aus main.css (dort als fixierte eigene Ebene
   per body::before, siehe Kommentar dort) - main.css lädt auf den
   Rechtsseiten ohnehin mit, hier also bewusst keine eigene Kopie. */
body {
  min-height: 100svh;
  padding: 20px 16px 48px;
}

/* ── LOGO ── */
.legal-logo {
  position: fixed;
  top: 14px;
  left: 16px;
  width: 52px;
  height: auto;
  z-index: 100;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* ── CARD ── */
.legal-card {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  margin-top: 16px;
  background: rgba(91, 159, 212, 0.55);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  box-shadow: 0 12px 50px rgba(27,92,158,0.3);
  padding: 2rem 2.2rem 2.5rem;
  min-height: calc(100svh - 40px);
}

/* ── BACK BUTTON ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  padding: 0.55rem 1.2rem;
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--text-main);
  border-radius: 99px;
  font-family: var(--font-arcade);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.back-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.back-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.back-btn:active { transform: scale(0.96); }

/* ── TITEL ── */
.legal-title {
  font-family: var(--font-arcade);
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--border);
}

/* ── CONTENT ── */
.legal-content h2 {
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1.8rem 0 0.6rem;
}

.legal-content h3 {
  font-family: var(--font-arcade);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.2rem 0 0.4rem;
}

.legal-content p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.legal-content li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.legal-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.legal-content a:hover { opacity: 0.75; }
.legal-content strong { font-weight: 700; }
.legal-uppercase { font-size: 0.82rem; line-height: 1.75; color: var(--text-main); margin-bottom: 0.75rem; }

/* Adressblock */
.address-block {
  background: rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 1rem 1.3rem;
  margin: 0.8rem 0 1.2rem;
  font-size: 0.9rem;
  line-height: 1.9;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Formular-Block */
.form-block {
  background: rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 2.2;
  border: 1px solid rgba(255,255,255,0.3);
}
.form-block .form-line { border-bottom: 1px solid var(--border); min-height: 2rem; margin-bottom: 0.4rem; }

/* Trennlinie */
.legal-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── WIDERRUFSFORMULAR (interaktiv, /vertrag-widerrufen/) ── */
.widerruf-notice {
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0 1.4rem;
  font-size: 0.88rem;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.3);
}
.widerruf-notice--ok {
  background: rgba(255,255,255,0.35);
  border-left: 4px solid var(--teal);
}
.widerruf-notice--error {
  background: rgba(255,255,255,0.25);
  border-left: 4px solid #c0392b;
}

.widerruf-form { margin-top: 1.4rem; }
.widerruf-form h2 { margin-top: 1.6rem; }
.widerruf-form h2:first-child { margin-top: 0; }

.widerruf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.widerruf-form-row {
  display: flex;
  gap: 0.8rem;
}
.widerruf-form-row input { flex: 1; min-width: 0; }

.widerruf-form input[type="text"],
.widerruf-form input[type="email"],
.widerruf-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.widerruf-form input::placeholder,
.widerruf-form textarea::placeholder { color: var(--text-muted); }
.widerruf-form input:focus,
.widerruf-form textarea:focus { border-color: var(--teal); background: rgba(255,255,255,0.55); }
.widerruf-form textarea { resize: vertical; min-height: 90px; }

.widerruf-submit { margin-top: 0.6rem; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  body { padding: 12px 8px 24px; }
  .legal-card { padding: 1.4rem 1.1rem 2rem; border-radius: 6px; }
  .legal-title { font-size: 0.8rem; }
  .legal-logo { width: 44px; }
}
