/* Gemeinsames Aussehen der Rechtsseiten zur Mitgliedschaft:
   mitgliedschaft-agb.html, widerruf.html, kuendigen.html, datenschutz.html.
   Farben und Maße wie in impressum.html und privacy.html. */

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

:root {
    --primary: #9C3EB0;
    --accent: #F5DAF5;
    --background: #1E1C4F;
    --surface: #2A2660;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --hinweis: #FFD479;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', system-ui, sans-serif;
    background: #1E1C4F;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

/* Kopfleiste */
nav.kopf {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(30, 28, 79, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { height: 32px; width: auto; display: block; }
.nav-container a { border-bottom: none; }

.nav-back {
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.12);
    transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }

/* Inhalt */
.page-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 100px 20px 80px;
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-label {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(245, 218, 245, 0.12);
    border: 1px solid rgba(245, 218, 245, 0.25);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.page-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 12px;
    line-height: 1.3;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 22px 0 8px;
}

h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    margin: 18px 0 6px;
}

p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 12px;
}

p:last-child { margin-bottom: 0; }

ul { margin: 8px 0 16px 20px; }

ul li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

ul.striche { list-style: none; margin-left: 0; }
ul.striche li { padding-left: 1.2em; text-indent: -1.2em; }

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(245,218,245,0.4);
    transition: border-color 0.2s;
}
a:hover { border-color: var(--accent); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.section-block {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    scroll-margin-top: 80px;
}

.liste-buchstaben p { padding-left: 1.4em; text-indent: -1.4em; margin-bottom: 6px; }

.grossblock {
    background: rgba(156, 62, 176, 0.1);
    border: 1px solid rgba(156, 62, 176, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.grossblock p { color: rgba(255,255,255,0.82); margin: 0; }

.gut-zu-wissen {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 16px;
    margin-top: 20px;
}

/* Muster-Formular: wie ein Blatt zum Abschreiben */
.muster p { margin-bottom: 14px; }

/* Vorschau-Hinweise: Stellen, die vor dem Live-Stellen wegmüssen.
   Jede trägt das Attribut data-vorschau, damit man sie mit einer Suche findet. */
[data-vorschau] {
    border: 1px dashed var(--hinweis);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    color: var(--hinweis);
    font-size: 0.875rem;
    background: rgba(255, 212, 121, 0.06);
}
[data-vorschau] strong { color: var(--hinweis); }
span[data-vorschau] { display: inline-block; padding: 0 8px; margin: 0; border-radius: 6px; }

/* Formulare */
form.erklaerung fieldset {
    border: none;
    margin: 0 0 24px;
    min-width: 0;
}

form.erklaerung legend {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    padding: 0;
}

form.erklaerung label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 6px;
}

form.erklaerung legend label {
    display: inline;
    color: inherit;
    font-size: inherit;
    margin: 0;
}

form.erklaerung .fester-wert {
    color: #fff;
    font-size: 0.9375rem;
    margin-bottom: 12px;
}

form.erklaerung input[type="text"],
form.erklaerung input[type="email"],
form.erklaerung input[type="date"],
form.erklaerung textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    color-scheme: dark;
}

form.erklaerung textarea { min-height: 96px; resize: vertical; }

form.erklaerung .wahl {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 10px 0;
    margin: 0;
    color: #fff;
    cursor: pointer;
}

form.erklaerung .wahl input {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: #9C3EB0;
}

form.erklaerung .eingerueckt { margin: 4px 0 8px 34px; }
form.erklaerung [hidden] { display: none; }

.knopf {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #9C3EB0, #83309A);
    box-shadow: 0 8px 20px rgba(156, 62, 176, 0.4);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

/* Erklärung unter einem Feld (Bestellnummer) */
form.erklaerung .feld-hilfe { margin: 6px 0 0; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.45; }

.meldung {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #FFCDD2;
    color: #FFCDD2;
    font-size: 0.9375rem;
}
.meldung[hidden] { display: none; }

.eingang h2 { color: #B9F6CA; }
.eingang[hidden] { display: none; }

/* Fußzeile */
footer {
    padding: 40px 0 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--background);
}

.footer-inner { max-width: 560px; margin: 0 auto; padding: 0 20px; }

.footer-recht {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-recht a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}
.footer-recht a:hover { border-color: var(--accent); color: var(--accent); }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 6px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border-bottom: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-copyright {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
}

@media print {
    nav.kopf, footer, form.erklaerung, [data-vorschau], .nicht-drucken { display: none !important; }
    body { background: #fff; color: #000; }
    .section-block { background: #fff; border: none; padding: 0; }
    p, ul li, h2, h3 { color: #000; }
    .page-wrap { padding-top: 0; }
}
