/* Regler page – rules + read-aloud */

.regler-main {
    padding: 6rem 0 4rem;
    min-height: 100vh;
}

.regler-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 0.75rem;
}

.regler-intro {
    text-align: center;
    color: var(--gray-light);
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.regler-intro strong {
    color: var(--red-primary);
}

/* Floating read-aloud button on the right (like reference image) */
.regler-float {
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 50;
}

.regler-float-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--gray-dark);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.regler-float-btn:hover {
    background: var(--charcoal);
    border-color: var(--white);
}

.regler-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.regler-float-icon svg {
    width: 22px;
    height: 22px;
}

.regler-float-label {
    white-space: nowrap;
    max-width: 12em;
}

.regler-float-btn[aria-label*="stoppe"] .regler-float-label {
    white-space: normal;
}

@media (max-width: 768px) {
    .regler-float {
        right: 0.75rem;
        top: auto;
        bottom: 1.5rem;
        transform: none;
    }
}

.regler-content {
    max-width: 720px;
    margin: 0 auto;
}

.regler-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--charcoal);
    border-radius: var(--radius);
    border: 1px solid var(--gray-dark);
}

/* Category dropdowns – click to expand/collapse */
.regler-category-dropdown {
    margin-bottom: 0.75rem;
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--charcoal);
}

.regler-category-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(0, 255, 136, 0.06);
    border: none;
    color: var(--matrix-green);
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.regler-category-trigger:hover {
    background: rgba(0, 255, 136, 0.12);
}

.regler-category-trigger .regler-category-label {
    flex: 1;
}

.regler-category-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s;
    margin-left: 0.5rem;
}

.regler-category-trigger[aria-expanded="true"] .regler-category-chevron {
    transform: rotate(180deg);
}

.regler-category-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.regler-category-body.is-open {
    max-height: 5000px;
    transition: max-height 0.4s ease-in;
}

.regler-category-body .regler-section {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.regler-category-body .regler-section:last-child {
    border-bottom: none;
}

.regler-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.regler-section p,
.regler-section li {
    color: var(--gray-light);
    margin-bottom: 0.5rem;
}

.regler-section ul {
    margin: 0.75rem 0 0 1.25rem;
    padding: 0;
}

.regler-section li {
    margin-bottom: 0.4rem;
}

.regler-section-body {
    color: var(--gray-light);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.regler-loading,
.regler-error,
.regler-empty {
    text-align: center;
    color: var(--gray-light);
    padding: 2rem;
}

.regler-error {
    color: #e74c3c;
}

/* Text selection hint */
.regler-content ::selection {
    background: rgba(197, 22, 29, 0.35);
}

.nav-active {
    color: var(--red-primary) !important;
}
