


body {
    margin: 0;
    background: var(--rd-bg);
    color: var(--rd-body);
    font-family: var(--rd-font);
    line-height: 1.55;
}

.hm-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}


.hm-kopf {
    position: sticky; top: 0; z-index: 20;
    background: var(--rd-gradient);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.hm-kopf__innen {
    max-width: 1100px; margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hm-marke {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-weight: 700; font-size: 18px; text-decoration: none;
}
.hm-marke img { border-radius: 8px; }
.hm-zurueck { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.hm-zurueck[hidden] { display: none; }
.hm-kopf-knopf {
    background: #fff; color: var(--rd-primary-dark); font-weight: 600; font-size: 14px;
    padding: 7px 16px; border-radius: var(--rd-r-pill); text-decoration: none; white-space: nowrap;
}
.hm-einstieg-hinweis { margin: -6px 0 14px; color: var(--rd-muted); font-size: 15px; }
.hm-einstieg-hinweis a { color: var(--rd-primary); }
.hm-suche { flex: 1 1 260px; }
.hm-suche input {
    width: 100%; padding: 9px 14px; border: 0; border-radius: var(--rd-r-pill);
    font-size: 15px; background: rgba(255, 255, 255, .95);
}
.hm-plattform {
    display: inline-flex; background: rgba(255, 255, 255, .2);
    border-radius: var(--rd-r-pill); padding: 3px;
}
.hm-plattform__knopf {
    border: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 600;
    padding: 6px 14px; border-radius: var(--rd-r-pill); cursor: pointer;
}
.hm-plattform__knopf.is-aktiv { background: #fff; color: var(--rd-primary-dark); }


.hm-seite { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }

.hm-einstieg h1 { color: var(--rd-ink); font-size: 26px; margin: 0 0 14px; }
.hm-rollen { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hm-rolle {
    border: 1px solid var(--rd-border); background: var(--rd-surface); color: var(--rd-ink);
    padding: 7px 16px; border-radius: var(--rd-r-pill); font-size: 15px; cursor: pointer;
}
.hm-rolle.is-aktiv { background: var(--rd-primary); border-color: var(--rd-primary); color: #fff; }

.hm-aufgaben {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.hm-aufgabe {
    display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center;
    background: var(--rd-surface); border-radius: var(--rd-r-md); padding: 14px;
    box-shadow: var(--rd-shadow); text-decoration: none; color: var(--rd-ink);
    border: 2px solid transparent; transition: border-color var(--rd-transition);
}
.hm-aufgabe:hover, .hm-aufgabe.is-aktuell { border-color: var(--rd-primary-2); }
.hm-aufgabe img { width: 40px; height: 40px; grid-row: span 2; }
.hm-aufgabe strong { font-size: 15px; }
.hm-aufgabe span { font-size: 13px; color: var(--rd-muted); }
.hm-aufgabe[hidden] { display: none; }


.hm-raster {
    display: grid; grid-template-columns: 220px 1fr; gap: 28px; margin-top: 32px;
    align-items: start;
}
.hm-toc { position: sticky; top: 80px; font-size: 14px; }
.hm-toc__titel { color: var(--rd-muted); text-transform: uppercase; font-size: 12px; letter-spacing: .05em; margin: 0 0 8px; }
.hm-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rd-border); }
.hm-toc li a {
    display: block; padding: 5px 12px; color: var(--rd-body); text-decoration: none;
    margin-left: -2px; border-left: 2px solid transparent;
}
.hm-toc li a.is-aktiv { color: var(--rd-primary); border-left-color: var(--rd-primary); font-weight: 600; }
.hm-toc__mobil { display: none; }

.hm-artikel {
    background: var(--rd-surface); border-radius: var(--rd-r-lg);
    box-shadow: var(--rd-shadow); padding: 28px 32px;
}
.hm-artikel[hidden] { display: none; }
.hm-artikel { scroll-margin-top: 80px; }
.hm-pfad { color: var(--rd-muted); font-size: 13px; margin: 0; }
.hm-hinweis-plattform { color: var(--rd-muted); font-size: 14px; margin: -6px 0 10px; }
.hm-nur-web {
    background: #ebf5fb; color: var(--rd-primary-dark); border-radius: var(--rd-r-sm);
    padding: 8px 12px; font-size: 14px; margin: 0 0 8px;
}
.hm-schritt-block h3 small { font-weight: 400; color: var(--rd-muted); font-size: 14px; }


.hm-ansichten { margin: 6px 0 0; display: grid; gap: 10px; }
.hm-ansichten > div {
    background: var(--rd-surface-muted); border-radius: var(--rd-r-sm); padding: 10px 14px;
}
.hm-ansichten dt { font-weight: 700; color: var(--rd-ink); }
.hm-ansichten dd { margin: 2px 0 0; font-size: 15px; }
.hm-artikel h2 { color: var(--rd-ink); font-size: 28px; margin: 4px 0 8px; }
.hm-kurz { font-size: 17px; margin: 0 0 20px; }

.hm-modi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.hm-modus {
    border-radius: var(--rd-r-md); padding: 12px; display: flex; flex-direction: column; gap: 2px;
    font-size: 13px; color: var(--rd-body);
}
.hm-modus strong { font-size: 15px; }
.hm-modus__symbol {
    width: 28px; height: 28px; border-radius: 50%; color: #fff; display: grid; place-items: center;
    font-size: 14px; margin-bottom: 4px;
}
.hm-modus--start  { background: #eafaf1; } .hm-modus--start  .hm-modus__symbol { background: var(--rd-accent); }
.hm-modus--ende   { background: #fef5e7; } .hm-modus--ende   .hm-modus__symbol { background: #e67e22; }
.hm-modus--beides { background: #ebf5fb; } .hm-modus--beides .hm-modus__symbol { background: var(--rd-primary); }

.hm-schritt-block { margin-top: 32px; scroll-margin-top: 80px; }
.hm-schritt-block h3, .hm-sonderfaelle h3 {
    color: var(--rd-ink); font-size: 20px; margin: 0 0 14px;
    display: flex; align-items: center; gap: 10px;
}
.hm-nr {
    width: 30px; height: 30px; border-radius: 50%; background: var(--rd-primary); color: #fff;
    display: grid; place-items: center; font-size: 15px; flex: none;
}
.hm-schritt-raster { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: start; }
.hm-schritte { margin: 0; padding-left: 22px; }
.hm-schritte li { margin-bottom: 14px; padding-left: 4px; }
.hm-schritte li::marker { color: var(--rd-primary); font-weight: 700; }
.hm-schritte strong { display: block; color: var(--rd-ink); }
.hm-schritte span { display: block; color: var(--rd-body); font-size: 15px; }

.hm-bild { margin: 0; text-align: center; }
.hm-bild img {
    width: 100%; max-width: 200px; height: auto; border-radius: 22px;
    box-shadow: var(--rd-shadow-lg); border: 6px solid #1c1c1e;
}
.hm-bild figcaption { font-size: 12px; color: var(--rd-muted); margin-top: 6px; }

.hm-film { margin: 18px 0 6px; }
.hm-film video {
    display: block; width: 100%; height: auto; background: #16324a;
    border-radius: var(--rd-r-md); border: 1px solid var(--rd-border);
}
.hm-film figcaption { font-size: 13px; color: var(--rd-muted); margin-top: 6px; }

.hm-bild--breit { margin: 10px 0 0; text-align: left; }
.hm-bild--breit img {
    max-width: 100%; border-radius: var(--rd-r-sm);
    border: 1px solid var(--rd-border); box-shadow: none;
}
.hm-platzhalter {
    border: 2px dashed var(--rd-border); border-radius: var(--rd-r-md); color: var(--rd-muted);
    padding: 60px 12px; font-size: 13px; background: var(--rd-surface-muted);
}

.hm-ergebnis {
    background: #eafaf1; color: var(--rd-accent-dark); border-radius: var(--rd-r-sm);
    padding: 10px 14px; margin: 4px 0 0; font-size: 15px;
}
.hm-wichtig {
    border-left: 4px solid var(--rd-warn); background: #fef9e7; border-radius: var(--rd-r-sm);
    padding: 12px 16px; margin-top: 18px; font-size: 15px;
}

.hm-sonderfaelle { margin-top: 36px; scroll-margin-top: 80px; }
.hm-sonderfaelle details {
    border: 1px solid var(--rd-border); border-radius: var(--rd-r-sm); margin-bottom: 8px;
    background: var(--rd-surface);
}
.hm-sonderfaelle summary {
    cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--rd-ink);
    list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.hm-sonderfaelle summary::-webkit-details-marker { display: none; }
.hm-sonderfaelle summary::after { content: "+"; color: var(--rd-primary); font-size: 20px; line-height: 1; }
.hm-sonderfaelle details[open] summary::after { content: "−"; }
.hm-sonderfaelle details p { margin: 0; padding: 0 16px 14px; font-size: 15px; }
.hm-sonderfaelle details ul { margin: 0; padding: 0 16px 14px 36px; font-size: 15px; }
.hm-sonderfaelle details li { margin: 0 0 6px; }
.hm-sonderfaelle code { background: var(--rd-surface-muted); padding: 1px 6px; border-radius: 4px; }

.hm-weiter { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rd-border-soft); display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }
.hm-weiter p { margin: 0; color: var(--rd-muted); }
.hm-weiter a { color: var(--rd-primary); font-weight: 600; text-decoration: none; }

.hm-keine-treffer { text-align: center; color: var(--rd-muted); margin-top: 30px; }


.hm-tabelle-wrap { overflow-x: auto; padding: 0 16px; }
.hm-tabelle { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 14px; margin-bottom: 10px; }
.hm-tabelle th, .hm-tabelle td { border: 1px solid var(--rd-border); padding: 6px 10px; text-align: left; }
.hm-tabelle td + td, .hm-tabelle th + th { text-align: center; }
.hm-tabelle thead th { background: var(--rd-surface-muted); }
.hm-liste { margin: 0 0 8px; padding-left: 22px; }
.hm-schritt-block > p { margin: 0 0 8px; }
.hm-fuss {
    max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px;
    display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 14px;
}
.hm-fuss a { color: var(--rd-muted); text-decoration: none; }
.hm-fuss a:hover { color: var(--rd-primary); }
.hm-treffer-aus { display: none !important; }


body[data-plattform="web"] [data-nur="ios"],
body[data-plattform="ios"] [data-nur="web"] { display: none !important; }


@media (max-width: 800px) {
    .hm-raster { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
    .hm-toc { position: static; }
    .hm-toc__titel, .hm-toc ol { display: none; }
    .hm-toc__mobil { display: block; }
    .hm-toc__mobil select { width: 100%; padding: 10px; border-radius: var(--rd-r-sm); border: 1px solid var(--rd-border); font-size: 15px; background: #fff; }
    .hm-artikel { padding: 20px 16px; }
    .hm-schritt-raster { grid-template-columns: 1fr; }
    .hm-bild img { max-width: 180px; }
    .hm-modi { grid-template-columns: 1fr; }
    .hm-modus { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; }
    .hm-modus__symbol { margin: 0; grid-row: span 2; }
    .hm-aufgaben { grid-template-columns: 1fr 1fr; }
    
    .hm-artikel, .hm-schritt-block, .hm-sonderfaelle { scroll-margin-top: 120px; }
    .hm-marke span { display: none; }
}
@media (max-width: 420px) {
    .hm-aufgaben { grid-template-columns: 1fr; }
}
