/* ==========================================================================
   Handlesen-Kurs — Sektions-Styles
   Palette: folgt style.css (--color-gold, --color-bg-card, --color-primary)
   ========================================================================== */

.hs-main {
    max-width: var(--content-width); /* kanonische Sektionsbreite (style.css, Saso 09.11.2026) */
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* --- Layout: Inhaltsspalte + Kapitel-Navigation -------------------------- */
.hs-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .hs-layout {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    /* Sticky-Kapitelnavi nur in der Desktop-Seitenspalte */
    .hs-toc {
        position: sticky;
        top: 1rem;
    }
}

/* --- Kapitel-Navigation (links) ----------------------------------------- */
.hs-toc {
    background: linear-gradient(135deg, #1a1a35, #0d0d1a); /* deckend — Transparenz liess Seiteninhalt durchscheinen (Saso 09.11.2026: "kaum zu lesen") */
    border: 1px solid rgba(212, 169, 68, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    /* Mobile: statisch im Fluss — Sticky verdeckte auf kleinen Screens den
       Inhalt (Saso 09.11.2026: "sollte mitscrollen bei mobile"). Sticky
       nur in der Desktop-Spalte (>=900px) weiter unten. */
    position: static;
}

.hs-toc-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.9rem;
}

.hs-toc-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.35;
    transition: background 0.2s, color 0.2s;
}

.hs-toc-item:hover {
    background: rgba(212, 169, 68, 0.08);
    color: var(--color-text);
}

.hs-toc-current {
    background: rgba(212, 169, 68, 0.12);
    color: var(--color-gold-light);
    font-weight: 600;
}

.hs-toc-num {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 169, 68, 0.35);
    border-radius: 50%;
    font-size: 0.78rem;
    color: var(--color-gold);
}

.hs-toc-current .hs-toc-num {
    background: rgba(212, 169, 68, 0.2);
}

.hs-toc-back {
    display: block;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(212, 169, 68, 0.15);
    color: var(--color-text-muted);
    font-size: 0.88rem;
    text-decoration: none;
}

.hs-toc-back:hover {
    color: var(--color-gold);
}

/* --- Artikel ------------------------------------------------------------- */
.hs-article {
    min-width: 0;
    background: linear-gradient(135deg, rgba(26, 26, 53, 0.55), rgba(13, 13, 26, 0.75));
    border: 1px solid rgba(212, 169, 68, 0.18);
    border-radius: 14px;
    padding: 2rem 1.75rem;
}

@media (min-width: 768px) {
    .hs-article {
        padding: 2.75rem 3rem;
    }
}

.hs-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.hs-article h2 {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    font-size: 1.85rem;
    line-height: 1.25;
    margin: 0 0 1.25rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(212, 169, 68, 0.22);
}

.hs-article h3 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.3rem;
    margin: 2.4rem 0 0.9rem;
    scroll-margin-top: 1.5rem;
}

.hs-article h4 {
    color: var(--color-gold-light);
    font-size: 1.08rem;
    margin: 1.6rem 0 0.6rem;
}

.hs-article p {
    line-height: 1.75;
    margin-bottom: 1.05rem;
    color: var(--color-text);
}

.hs-article ul,
.hs-article ol {
    line-height: 1.75;
    margin: 0 0 1.2rem;
    padding-left: 1.4rem;
    color: var(--color-text);
}

.hs-article li {
    margin-bottom: 0.5rem;
}

.hs-article li::marker {
    color: var(--color-gold);
}

.hs-article strong {
    color: var(--color-gold-light);
}

.hs-article em {
    color: var(--color-silver);
}

.hs-lead {
    font-size: 1.08rem;
    color: var(--color-silver);
    line-height: 1.7;
}

/* --- Merksatz / Hinweis / Definition ------------------------------------ */
.hs-merksatz {
    background: linear-gradient(135deg, rgba(212, 169, 68, 0.12), rgba(212, 169, 68, 0.04));
    border-left: 4px solid var(--color-gold);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem;
    margin: 1.4rem 0;
}

.hs-hinweis {
    background: rgba(155, 77, 202, 0.1);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem;
    margin: 1.4rem 0;
}

.hs-def {
    background: rgba(192, 192, 208, 0.07);
    border-left: 3px solid rgba(192, 192, 208, 0.4);
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1.1rem;
    margin: 1.1rem 0;
}

/* --- Tabellen ------------------------------------------------------------ */
.hs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;
}

.hs-table th,
.hs-table td {
    border: 1px solid rgba(212, 169, 68, 0.2);
    padding: 0.65rem 0.85rem;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.hs-table thead th {
    background: rgba(212, 169, 68, 0.12);
    color: var(--color-gold-light);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    white-space: nowrap;
}

.hs-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* --- Landing: Sektionen + Karten ---------------------------------------- */
.hs-section {
    margin: 3rem 0;
}

.hs-section h2 {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    font-size: 1.7rem;
    margin: 0 0 0.9rem;
}

.hs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
    margin-top: 1.8rem;
}

.hs-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(26, 26, 53, 0.7), rgba(13, 13, 26, 0.85));
    border: 1px solid rgba(212, 169, 68, 0.2);
    border-radius: 12px;
    padding: 1.3rem 1.4rem;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hs-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 169, 68, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hs-card-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-gold);
    line-height: 1;
}

.hs-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-gold-light);
    line-height: 1.3;
}

.hs-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* --- Vor/Zurück-Navigation ------------------------------------------------ */
.hs-card-nav {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 169, 68, 0.18);
}

.hs-card-nav a {
    font-size: 0.95rem;
}

/* --- Landing: Hero -------------------------------------------------------- */
.hs-hero {
    text-align: center;
    padding: 2.5rem 0 1rem;
}

.hs-hero h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    color: var(--color-gold-light);
    margin: 0 0 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hs-hero h2 {
        font-size: 2.8rem;
    }
}

.hs-hero .hs-lead {
    max-width: 680px;
    margin: 0 auto;
}

/* --- Landing: Fakten-Leiste ---------------------------------------------- */
.hs-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2.5rem 0;
}

.hs-fact {
    background: rgba(212, 169, 68, 0.07);
    border: 1px solid rgba(212, 169, 68, 0.18);
    border-radius: 10px;
    padding: 1.1rem;
    text-align: center;
}

.hs-fact-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--color-gold);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.hs-fact-label {
    display: block;
    font-size: 0.86rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* --- Diagramme (Hand-Schemata) ------------------------------------------ */
.hs-figure {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(13, 13, 26, 0.5);
    border: 1px solid rgba(212, 169, 68, 0.18);
    border-radius: 12px;
    text-align: center;
}

.hs-figure img {
    max-width: 100%;
    height: auto;
    max-height: 520px;
    display: block;
    margin: 0 auto 1.2rem;
}

.hs-figure figcaption {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.hs-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
    justify-content: center;
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(212, 169, 68, 0.14);
}

.hs-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--color-text);
}

.hs-legend-chip {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
}

.hs-legend-num {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-gold);
}

.hs-legend-name {
    color: var(--color-text-muted);
}

/* --- Landing: Zwei-Spalten-Infogrid -------------------------------------- */
.hs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.hs-info {
    background: rgba(26, 26, 53, 0.5);
    border: 1px solid rgba(212, 169, 68, 0.16);
    border-radius: 12px;
    padding: 1.3rem 1.4rem;
}

.hs-info h3 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.12rem;
    margin: 0 0 0.7rem;
}

.hs-info p,
.hs-info li {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.hs-info ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* --- Landing: Ablauf-Schritte -------------------------------------------- */
.hs-steps {
    counter-reset: hs-step;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.hs-steps li {
    counter-increment: hs-step;
    position: relative;
    padding: 0.9rem 0 0.9rem 3.2rem;
    border-bottom: 1px solid rgba(212, 169, 68, 0.12);
    line-height: 1.7;
}

.hs-steps li:last-child {
    border-bottom: none;
}

.hs-steps li::before {
    content: counter(hs-step);
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 169, 68, 0.4);
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.hs-steps strong {
    display: block;
    color: var(--color-gold-light);
    margin-bottom: 0.25rem;
}
