/* Gym141 – Datenschutzerklärung der Mitglieder-App (gym141.com/app-datenschutz, /app-privacy).
   Oberfläche = MudBlazor + DevWorld-Theme (AppShell, devworld.css); hier nur Lesebreite,
   Typografie für längeren Text und die Kachel-Raster. Statisch, ohne Skript. */

body.g141p-body,
.g141p-body .mud-main-content { background: #f5f7fa; }

.g141p {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 32px;
    color: rgba(0, 0, 0, .87);
}

/* Sprachumschalter in der App-Bar */
.g141p-lang { display: flex; gap: 4px; }
.g141p-lang__btn { min-width: 44px; font-weight: 600; letter-spacing: .06em; }
.g141p-lang__btn.mud-button-outlined { border-color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------ Kopf ---- */
.g141p-hero { padding: 8px 0 20px; }
.g141p-hero__eyebrow { color: var(--mud-palette-primary); font-weight: 600; letter-spacing: .08em; margin: 0 0 4px; }
.g141p-hero__title {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0 0 12px;
}
.g141p-hero__lead { font-size: 1.0625rem; line-height: 1.6; color: rgba(0, 0, 0, .72); max-width: 68ch; }
.g141p-hero__chips { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 14px; margin-left: -4px; }
.g141p-hero__chips .mud-chip { background: #fff; }

/* ------------------------------------------------------- Auf einen Blick */
.g141p-glance { margin-bottom: 20px; }
.g141p-glance__title { font-weight: 600; margin-bottom: 10px; }
.g141p-glance__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g141p-glance__item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; height: 100%; }
.g141p-glance__icon { flex: none; margin-top: 2px; }
.g141p-glance__head { font-weight: 600; line-height: 1.35; margin-bottom: 2px; }
.g141p-glance__item .mud-typography-body2 { line-height: 1.55; }

/* ------------------------------------------------------- Inhaltsverzeichnis */
.g141p-toc { padding: 16px 20px; margin-bottom: 20px; }
.g141p-toc__title { font-weight: 600; margin-bottom: 6px; }
.g141p-toc__list { margin: 0; padding-left: 24px; columns: 2; column-gap: 32px; }
.g141p-toc__list li { break-inside: avoid; padding: 3px 0; }
.g141p-toc__list li::marker { color: rgba(0, 0, 0, .54); font-size: .875rem; }

/* ------------------------------------------------------------ Dokument */
.g141p-doc { padding: 8px 40px 32px; }
.g141p-sec { padding-top: 28px; scroll-margin-top: 72px; }
.g141p-sec + .g141p-sec { border-top: 1px solid var(--mud-palette-lines-default, #e0e0e0); margin-top: 4px; }
.g141p-sec__title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}
.g141p-sec__nr {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 15px;
    background: #e3f2fd;
    color: var(--mud-palette-primary);
    font-size: .9375rem;
    font-weight: 600;
    transform: translateY(-2px);
}

.g141p-prose { font-size: 1rem; line-height: 1.68; }
.g141p-prose p { margin: 0 0 12px; }
.g141p-prose h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; margin: 20px 0 6px; }
.g141p-prose h3:first-child { margin-top: 0; }
.g141p-prose ul { margin: 0 0 14px; padding-left: 22px; }
.g141p-prose li { margin: 0 0 8px; }
.g141p-prose li::marker { color: var(--mud-palette-primary); }
.g141p-prose strong { font-weight: 600; }
.g141p-prose a { color: var(--mud-palette-primary); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.g141p-prose a:hover { text-decoration-thickness: 2px; }
.g141p-prose .mud-button-root { text-decoration: none; color: #fff; }
.g141p-alert { margin: 4px 0 14px; }
/* Text der Hinweise dunkel (Orange/Blau auf Weiß wäre zu kontrastarm), Rahmen und Symbol farbig */
.g141p-alert .mud-alert-message { line-height: 1.6; color: rgba(0, 0, 0, .87); }

/* Kacheln (Berechtigungen, Kontakt, Beschwerde) */
.g141p-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 14px; }
.g141p-cards--one { grid-template-columns: minmax(0, 1fr); }
.g141p-card { padding: 16px; }
.g141p-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.g141p-card__icon { flex: none; }
.g141p-card__body { min-width: 0; }
.g141p-card__title,
.g141p-prose h3.g141p-card__title { font-size: 1rem; font-weight: 600; line-height: 1.35; margin: 0; }
.g141p-card p { margin: 0 0 8px; font-size: .9375rem; line-height: 1.6; }
.g141p-card p:last-child { margin-bottom: 0; }
.g141p-address { font-style: normal; line-height: 1.6; }

/* Fuß */
.g141p-foot { padding: 20px 4px 0; display: grid; gap: 4px; text-align: center; }

/* ---------------------------------------------------------- Handy ---- */
@media (max-width: 719.98px) {
    .g141p-glance__grid,
    .g141p-cards { grid-template-columns: minmax(0, 1fr); }
    .g141p-toc__list { columns: 1; }
}

@media (max-width: 599.98px) {
    .g141p-hero { padding-top: 0; }
    .g141p-doc { padding: 4px 18px 24px; }
    .g141p-toc { padding: 14px 16px; }
    .g141p-sec { padding-top: 22px; }
    .g141p-sec__title { font-size: 1.1875rem; gap: 10px; }
    .g141p-sec__nr { min-width: 26px; height: 26px; font-size: .875rem; }
    .g141p-glance__item, .g141p-card { padding: 14px; gap: 12px; }
}

@media print {
    .mud-appbar, .g141p-toc, .g141p-lang { display: none !important; }
    .mud-main-content { padding-top: 0 !important; }
    body.g141p-body, .g141p-body .mud-main-content { background: #fff; }
    .g141p-doc { box-shadow: none !important; padding: 0; }
}
