/* ==========================
   Smooth Scroll + Base
========================== */
html {
    scroll-behavior: smooth;
}

.manual-page {
    --manual-radius: 1rem;
    --manual-icon-size: 4rem;
    --manual-anchor-offset: 5.5rem;
}

/* ==========================
   Cards
========================== */
.manual-page .card {
    border-radius: var(--manual-radius);
    border: 0;
}

.manual-hero,
.manual-toc,
.manual-section {
    background: #ffffff;
}

.manual-hero .card-body,
.manual-toc .card-body,
.manual-section .card-body {
    border-radius: var(--manual-radius);
}

/* ==========================
   Anchor Offset (Header Fix)
========================== */
.manual-anchor-section {
    scroll-margin-top: var(--manual-anchor-offset);
}

/* ==========================
   Hero
========================== */
.manual-hero-icon {
    width: var(--manual-icon-size);
    height: var(--manual-icon-size);
    flex: 0 0 var(--manual-icon-size);
    color: #0d6efd;
    background: #f8f9fa;
    border: 1px solid rgba(13, 110, 253, 0.15);
}

/* ==========================
   Typography
========================== */
.manual-hero h1,
.manual-toc h2,
.manual-section h2 {
    font-weight: 700;
}

.manual-hero p {
    max-width: 70ch;
}

.manual-hero p,
.manual-section p,
.manual-steps,
.manual-section .alert {
    line-height: 1.6;
}

/* ==========================
   TOC Buttons
========================== */
.manual-toc-links .btn {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    transition: all 0.2s ease;
}

.manual-toc-links .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.4rem 0.8rem rgba(0,0,0,0.08);
}

/* ==========================
   Steps
========================== */
.manual-step {
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: #f8f9fa;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.06);
}

.manual-step-badge {
    min-width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ==========================
   Feature Cards
========================== */
.manual-feature-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.manual-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.6rem 1rem rgba(0,0,0,0.08);
}

.manual-feature-card i {
    width: 2rem;
    text-align: center;
}

/* ==========================
   Buttons / Links
========================== */
.manual-back-top {
    border-radius: 999px;
}

.manual-section-jump {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.manual-section-jump:hover {
    color: #000 !important;
}

/* ==========================
   Alerts
========================== */
.manual-section .alert {
    border-radius: 1rem;
    border: none;
}

/* ==========================
   Video Styling (WICHTIG)
========================== */
.manual-page video {
    width: 100%;
    border-radius: 1rem;
    display: block;
}

/* ==========================
   RTL Support (PRS)
========================== */
html[dir="rtl"] .manual-hero p,
html[dir="rtl"] .manual-section,
html[dir="rtl"] .manual-step,
html[dir="rtl"] .manual-feature-card,
html[dir="rtl"] .manual-section .alert {
    text-align: right;
}

/* ==========================
   Mobile Optimierung
========================== */
@media (max-width: 991px) {
    .manual-page {
        --manual-anchor-offset: 4.75rem;
    }
}

@media (max-width: 767px) {
    .manual-page {
        --manual-icon-size: 3.2rem;
        --manual-anchor-offset: 4.25rem;
    }

    .manual-toc-links .btn {
        width: 100%;
    }

    .manual-feature-card {
        padding: 1rem !important;
    }

    .manual-step {
        padding: 0.7rem 0.8rem;
    }
}