/* =========================================================
   EMPIRE VALLEY – REGELWERK
   Professional • Lawbook • Premium
   ========================================================= */

:root {
    --bg-main: #0b0c10;
    --bg-card: rgba(15,16,22,0.88);
    --bg-soft: rgba(255,255,255,0.03);

    --text-main: #e6e8f0;
    --text-muted: #a2a6b8;

    /* Gesetzbuch-Akzent */
    --accent-main: #c9a24d;
    --accent-soft: rgba(201,162,77,0.12);
    --accent-alt: #8b5cf6;

    --border-soft: rgba(255,255,255,0.08);
}

/* ================================
   CONTAINER
   ================================ */

.regelwerk-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4.5rem 2rem;
    color: var(--text-main);
    font-family: "Inter", system-ui, sans-serif;
}

/* ================================
   TITLES
   ================================ */

.regelwerk-container h1 {
    font-size: 2.9rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

/* ================================
   TABS – CLEAN & FLAT
   ================================ */

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3.5rem;
}

.tab {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab:hover {
    background: rgba(255,255,255,0.07);
}

.tab.active {
    background: var(--accent-main);
    color: #000;
    font-weight: 700;
    border-color: transparent;
}

/* ================================
   TAB CONTENT
   ================================ */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ================================
   BADGES / INFO
   ================================ */

.stand {
    display: inline-block;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.warnung {
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--accent-main);
    padding: 1.6rem 2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 3.5rem;
    font-style: italic;
}

/* ================================
   MAIN LAYOUT
   ================================ */

.regelwerk-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* ================================
   SIDEBAR / INHALT
   ================================ */

.inhalt {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 1.6rem 1.4rem;
    position: sticky;
    top: 110px;
}

.inhalt h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.inhalt ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.inhalt li {
    margin-bottom: 0.4rem;
}

.inhalt a {
    display: block;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.inhalt a:hover {
    background: var(--accent-soft);
    color: var(--accent-main);
}

/* ================================
   RULE TEXT
   ================================ */

.regeln {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 3.5rem 4rem;
    font-family: "Source Serif 4", "Times New Roman", serif;
}

/* § Überschrift */
.regeln h2 {
    font-size: 1.25rem;
    margin: 4.5rem 0 2.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 0.6rem;
}

/* Unterpunkt */
.regeln h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2.6rem 0 1.2rem;
}

/* Text */
.regeln p {
    max-width: 820px;
    font-size: 0.98rem;
    line-height: 1.85;
    margin: 1.2rem 0;
    color: var(--text-main);
    text-align: justify;
}

/* ================================
   LISTS
   ================================ */

.regeln ul {
    max-width: 780px;
    margin: 1.8rem 0 2.8rem 1.6rem;
    list-style-type: decimal;
}

.regeln li {
    margin-bottom: 0.7rem;
    line-height: 1.75;
    padding-left: 0.3rem;
}

/* ================================
   BUTTONS
   ================================ */

.top-btn,
.edit-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 0.55rem 1.4rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--accent-main);
    color: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-btn:hover,
.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201,162,77,0.35);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1000px) {
    .regelwerk-layout {
        grid-template-columns: 1fr;
    }

    .inhalt {
        position: relative;
        top: 0;
    }

    .regeln {
        padding: 2.8rem 2.2rem;
    }
}

@media (max-width: 600px) {
    .regelwerk-container {
        padding: 2.8rem 1.2rem;
    }

    .regelwerk-container h1 {
        font-size: 2.1rem;
    }

    .regeln h2 {
        font-size: 1.15rem;
    }

    .regeln p {
        font-size: 0.96rem;
    }
}
