/* METROPOLIS V2 WEBSITE – FINALE REGELWERK VERSION */

:root {
    --bg: #020207;
    --panel: rgba(7, 8, 16, 0.86);
    --panel2: rgba(12, 13, 23, 0.94);
    --line: rgba(255, 255, 255, 0.08);
    --purple: #9d45ff;
    --purple2: #6621b8;
    --text: #e9e9ee;
    --muted: rgba(255,255,255,.72);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Barlow Condensed", Arial, sans-serif;
    letter-spacing: .4px;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.page-bg {
    position: fixed; inset: 0; z-index: -3;
    background:
        radial-gradient(circle at 52% 25%, rgba(145,58,255,.20), transparent 30%),
        radial-gradient(circle at 18% 40%, rgba(80,32,160,.18), transparent 32%),
        radial-gradient(circle at 88% 40%, rgba(81,30,128,.24), transparent 30%),
        linear-gradient(180deg, #05050b 0%, #020207 55%, #010104 100%);
}
.noise {
    position: fixed; inset: 0; z-index: 20; opacity: .055; pointer-events: none;
    background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 2px);
    mix-blend-mode: overlay;
}

/* HEADER */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: 88px; z-index: 50;
    display: grid; grid-template-columns: 285px 1fr 250px; align-items: center; gap: 20px;
    padding: 0 55px;
    background: rgba(1,2,8,.82);
    border-bottom: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(157,69,255,.45)); }
.brand-text { display: flex; flex-direction: column; line-height: .9; }
.brand-text strong { font-family: "Oswald", sans-serif; font-size: 29px; font-weight: 700; text-transform: uppercase; }
.brand-text em {
    margin-left: 62px; margin-top: -1px; color: var(--purple); font-size: 29px;
    font-weight: 800; font-style: italic; transform: skew(-12deg);
    text-shadow: 0 0 18px rgba(157,69,255,.75);
}
.nav { display: flex; align-items: center; justify-content: center; gap: 31px; height: 100%; }
.nav a { position: relative; font-size: 17px; text-transform: uppercase; color: #f1f1f4; transition: .25s; }
.nav a:hover, .nav a.active { color: var(--purple); }
.nav a.active::after, .nav a:hover::after {
    content: ""; position: absolute; left: 50%; bottom: -28px; width: 48px; height: 3px;
    background: var(--purple); transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(157,69,255,.8);
}
.discord-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    height: 48px; padding: 0 26px; border: 1px solid rgba(181,95,255,.65); border-radius: 2px;
    background: linear-gradient(180deg, rgba(126,50,202,.58), rgba(72,24,126,.76));
    box-shadow: inset 0 0 18px rgba(255,255,255,.06), 0 0 28px rgba(128,50,207,.18);
    color: #fff; font-weight: 700; text-transform: uppercase; font-size: 16px; transition: .25s;
    justify-self: end;
}
.discord-btn:hover, .start-btn:hover, .outline-btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(157,69,255,.42); }
.discord-icon { position: relative; width: 24px; height: 16px; display: inline-grid; place-items: center; }
.discord-icon::before { content: ""; position: absolute; inset: 0; border-radius: 8px 8px 6px 6px; background: #fff; }
.discord-icon::after {
    content: ""; position: absolute; left: 5px; top: 7px; width: 4px; height: 4px; border-radius: 50%;
    background: var(--purple2); box-shadow: 10px 0 0 var(--purple2);
}
.burger { display: none; }

/* HOME HERO */
.hero {
    position: relative; min-height: 690px; padding-top: 88px; display: grid; place-items: center;
    overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.05);
}
.hero-scene {
    position: absolute; inset: 88px 0 0 0; overflow: hidden;
    background:
        linear-gradient(180deg, rgba(3,4,14,.55), rgba(3,3,8,.18) 42%, #030307 98%),
        radial-gradient(circle at center 30%, rgba(164,81,255,.25), transparent 26%),
        linear-gradient(180deg, #060612 0%, #070716 42%, #020207 100%);
}
.hero-overlay {
    position: absolute; inset: 88px 0 0 0; z-index: 5;
    background:
        radial-gradient(circle at center 30%, rgba(0,0,0,.02), rgba(0,0,0,.44) 56%, rgba(0,0,0,.86) 100%),
        linear-gradient(90deg, rgba(0,0,0,.74), transparent 26%, transparent 74%, rgba(0,0,0,.74));
}
.moon-glow {
    position: absolute; left: 50%; top: 50px; width: 520px; height: 310px; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(188,118,255,.30), transparent 65%); filter: blur(4px);
}
.skyline { position: absolute; left: 50%; bottom: 118px; width: 800px; height: 330px; transform: translateX(-50%); opacity: .95; }
.skyline::before, .skyline::after {
    content: ""; position: absolute; bottom: 0; background: linear-gradient(#121222, #090913);
    box-shadow:
        40px -60px 0 -5px #10101e, 86px -26px 0 12px #111120, 135px -130px 0 -8px #141426,
        190px -80px 0 18px #101020, 250px -178px 0 -12px #15152c, 315px -95px 0 18px #0e0e1b,
        390px -210px 0 -18px #18182f, 455px -145px 0 -5px #121226, 522px -92px 0 18px #111120,
        588px -180px 0 -14px #17172c, 660px -82px 0 20px #10101c, 725px -120px 0 4px #131326;
}
.skyline::before { left: 0; width: 42px; height: 155px; }
.skyline::after { right: 0; width: 48px; height: 190px; }
.skyline-back { bottom: 120px; filter: blur(1px); opacity: .45; transform: translateX(-50%) scale(1.24); }
.skyline-front { z-index: 1; }
.skyline-front::before, .skyline-front::after, .skyline-back::before, .skyline-back::after {
    background-image: linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,.75)), linear-gradient(#121222, #090913);
    background-size: 4px 8px, auto; background-position: 8px 20px, center; background-repeat: repeat-y, no-repeat;
}
.palm { position: absolute; bottom: 62px; width: 130px; height: 420px; opacity: .58; z-index: 2; }
.palm::before { content: ""; position: absolute; left: 56px; bottom: 0; width: 14px; height: 300px; background: linear-gradient(90deg, #030305, #151017, #030305); border-radius: 12px; transform: rotate(-5deg); }
.palm::after {
    content: ""; position: absolute; top: 20px; left: 6px; width: 120px; height: 120px;
    background: radial-gradient(ellipse at center, #09080d 0 14%, transparent 16%),
    conic-gradient(from 30deg, transparent 0 8%, #07070a 8% 13%, transparent 13% 20%, #07070a 20% 25%, transparent 25% 33%, #07070a 33% 40%, transparent 40% 48%, #07070a 48% 55%, transparent 55% 63%, #07070a 63% 70%, transparent 70%);
    border-radius: 50%;
}
.palm-left { left: 30px; } .palm-right { right: 70px; transform: scaleX(-1); }
.helicopter { position: absolute; left: 120px; top: 110px; width: 130px; height: 38px; z-index: 3; transform: rotate(-7deg); opacity: .85; filter: drop-shadow(0 0 20px rgba(170,91,255,.9)); }
.helicopter::before { content: ""; position: absolute; left: 24px; top: 15px; width: 80px; height: 18px; border-radius: 50% 55% 45% 50%; background: #05050b; }
.helicopter::after { content: ""; position: absolute; left: 65px; top: 27px; width: 230px; height: 120px; background: radial-gradient(ellipse at left, rgba(217,205,255,.20), transparent 65%); transform: rotate(18deg); }
.car-left, .police-car { position: absolute; bottom: 37px; z-index: 4; opacity: .98; }
.car-left {
    left: 0; width: 390px; height: 120px;
    background: radial-gradient(circle at 65px 104px, #020202 0 27px, #292932 28px 33px, transparent 34px),
    radial-gradient(circle at 320px 104px, #020202 0 27px, #292932 28px 33px, transparent 34px),
    linear-gradient(10deg, transparent 0 10%, #08080d 11% 38%, #15131b 39% 72%, transparent 73%),
    linear-gradient(0deg, #020204, #101018);
    border-radius: 70px 120px 8px 8px;
}
.car-left::before { content: ""; position: absolute; right: 34px; top: 35px; width: 80px; height: 8px; border-radius: 20px; background: #ff2030; box-shadow: 0 0 18px #ff2030, -20px 0 20px rgba(255,32,48,.5); }
.car-left::after { content: "METROV2"; position: absolute; left: 106px; bottom: 25px; padding: 3px 10px; color: #111; background: #d9d9dc; font-family: "Oswald", sans-serif; font-size: 13px; transform: skew(-6deg); }
.police-car {
    right: -5px; width: 390px; height: 132px;
    background: radial-gradient(circle at 68px 112px, #020202 0 28px, #24242c 29px 35px, transparent 36px),
    radial-gradient(circle at 306px 112px, #020202 0 28px, #24242c 29px 35px, transparent 36px),
    linear-gradient(8deg, transparent 0 12%, #07070b 13% 36%, #f2f2f3 37% 60%, #101017 61% 78%, transparent 79%),
    linear-gradient(0deg, #040407, #111116);
    border-radius: 100px 60px 8px 8px;
}
.police-car::before { content: ""; position: absolute; left: 170px; top: 8px; width: 75px; height: 10px; border-radius: 12px; background: linear-gradient(90deg, #145dff 0 45%, #ff172e 55% 100%); box-shadow: -35px 22px 44px rgba(20,93,255,.9), 45px 22px 44px rgba(255,23,46,.9), 0 0 22px rgba(255,255,255,.45); }
.police-car::after { content: "POLICE"; position: absolute; left: 145px; top: 61px; color: #111; font-family: "Oswald", sans-serif; font-size: 36px; font-weight: 700; letter-spacing: 2px; transform: skew(-8deg); }
.person { position: absolute; bottom: 56px; width: 78px; height: 225px; z-index: 4; background: radial-gradient(circle at center 16px, #09090d 0 23px, transparent 24px), linear-gradient(90deg, transparent 0 16px, #050506 17px 59px, transparent 60px), linear-gradient(90deg, transparent 0 22px, #07070a 23px 53px, transparent 54px); border-radius: 40px 40px 7px 7px; opacity: .92; }
.person::before { content: ""; position: absolute; left: 13px; top: 56px; width: 52px; height: 105px; background: linear-gradient(180deg, #090910, #020204); border-radius: 16px 16px 8px 8px; }
.person::after { content: ""; position: absolute; left: 20px; bottom: 0; width: 13px; height: 77px; background: #030305; box-shadow: 27px 0 0 #030305; }
.person-left { left: 465px; } .person-right { right: 500px; }

.hero-content { position: relative; z-index: 8; text-align: center; margin-top: 25px; max-width: 760px; padding: 0 20px; }
.hero-logo-img { width: 150px; height: 150px; object-fit: contain; margin-bottom: 4px; filter: drop-shadow(0 0 25px rgba(157,69,255,.55)); }
.welcome { font-size: 28px; text-transform: uppercase; letter-spacing: 15px; color: rgba(255,255,255,.72); margin-bottom: 6px; }
.hero h1 { display: flex; align-items: center; justify-content: center; flex-direction: column; line-height: .76; margin-bottom: 26px; }
.hero h1 span { font-family: "Oswald", sans-serif; font-size: clamp(68px, 8vw, 132px); font-weight: 800; text-transform: uppercase; letter-spacing: -3px; background: linear-gradient(180deg, #f6f6f8 0%, #b7b7be 38%, #666773 66%, #ededf0 100%); -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 4px 4px rgba(0,0,0,.8)); }
.hero h1 em { margin-top: -8px; color: var(--purple2); font-size: clamp(72px, 7vw, 120px); font-weight: 800; font-style: italic; transform: skew(-14deg); line-height: .45; text-shadow: 0 0 30px rgba(128,45,220,.85), 0 0 80px rgba(128,45,220,.42); }
.hero h2 { color: var(--purple); font-size: 22px; text-transform: uppercase; letter-spacing: 10px; margin-top: -5px; margin-bottom: 22px; }
.hero-text { max-width: 620px; margin: 0 auto 25px; color: rgba(255,255,255,.82); font-size: 20px; line-height: 1.5; font-family: Arial, sans-serif; letter-spacing: 0; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.start-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; height: 62px; color: #fff; text-transform: uppercase; font-size: 20px; font-weight: 800; border-radius: 5px; border: 1px solid rgba(210,150,255,.85); background: radial-gradient(circle at top, rgba(255,255,255,.18), transparent 36%), linear-gradient(180deg, rgba(142,64,224,.88), rgba(72,23,126,.86)); box-shadow: 0 0 35px rgba(157,69,255,.48), inset 0 0 20px rgba(255,255,255,.10); transition: .25s; }
.hero-outline { margin-top: 0 !important; height: 62px !important; }

/* SHARED LAYOUT */
.stats, .cards, .content-grid, .feature-grid-page, .media-grid-page, .team-grid, .rules-tools, .rules-page-layout, .border-grid, .footer {
    max-width: 1740px; margin-left: auto; margin-right: auto;
}
.stats { position: relative; z-index: 10; margin-top: -1px; margin-bottom: 20px; height: 112px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: linear-gradient(180deg, rgba(14,15,25,.92), rgba(8,9,16,.93)); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 10px 36px rgba(0,0,0,.38); }
.stat { height: 70px; display: flex; align-items: center; justify-content: center; gap: 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--purple); font-size: 34px; line-height: 1; text-transform: uppercase; font-weight: 800; }
.stat span { display: block; margin-top: 5px; font-size: 18px; text-transform: uppercase; color: rgba(255,255,255,.78); }
.stat-icon { position: relative; width: 54px; height: 54px; opacity: .9; }









.cards { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card, .content-card, .mini-card, .media-card, .team-card, .rules-tools, .rule-section {
    position: relative; background: linear-gradient(120deg, rgba(12,13,22,.95), rgba(4,5,10,.92));
    border: 1px solid var(--line); border-radius: 5px; overflow: hidden; box-shadow: 0 18px 38px rgba(0,0,0,.28);
}
.card::before, .content-card::before, .mini-card::before, .media-card::before, .team-card::before, .rules-tools::before, .rule-section::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(157,69,255,.09), transparent 36%), radial-gradient(circle at 100% 0%, rgba(157,69,255,.12), transparent 35%);
    pointer-events: none;
}
.card { min-height: 330px; padding: 33px 30px; }
.card h3, .content-card h2, .mini-card h2, .media-card h2, .team-card h2, .rule-section h2 {
    position: relative; z-index: 2; color: var(--purple); font-size: 30px; font-weight: 800; text-transform: uppercase; margin-bottom: 22px;
}
.card p, .content-card p, .mini-card p, .media-card p, .team-card p, .rule-section p {
    position: relative; z-index: 2; color: var(--muted); font-size: 18px; line-height: 1.65; font-family: Arial, sans-serif; letter-spacing: 0;
}
.watermark { position: absolute; right: 28px; top: 65px; font-family: "Oswald", sans-serif; font-size: 170px; font-weight: 800; color: rgba(255,255,255,.04); line-height: 1; }
.outline-btn { position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; margin-top: 34px; min-width: 190px; height: 54px; border: 1px solid rgba(166,78,255,.75); color: var(--purple); text-transform: uppercase; font-weight: 800; font-size: 17px; background: rgba(60,20,100,.16); transition: .25s; }
.no-margin { margin-top: 0; }

.feature-card { padding-right: 220px; }
.feature-card ul, .check-list { position: relative; z-index: 2; list-style: none; }
.feature-card li, .check-list li { margin: 0 0 15px; color: rgba(255,255,255,.78); font-size: 18px; font-family: Arial, sans-serif; letter-spacing: 0; line-height: 1.55; }
.feature-card li::before, .check-list li::before { content: "✓"; color: var(--purple); font-size: 18px; margin-right: 14px; font-weight: 800; }
.masked-character { position: absolute; right: 22px; bottom: 0; width: 195px; height: 295px; z-index: 1; opacity: .85; background: radial-gradient(circle at 50% 22px, #111 0 33px, transparent 34px), linear-gradient(145deg, transparent 0 26%, rgba(115,48,185,.85) 27% 32%, #050508 33% 100%); border-radius: 80px 80px 0 0; }
.masked-character::before { content: ""; position: absolute; left: 58px; top: 48px; width: 78px; height: 30px; background: #5f25a5; clip-path: polygon(0 35%, 100% 0, 90% 100%, 10% 100%); }
.masked-character::after { content: ""; position: absolute; left: 50px; top: 6px; width: 95px; height: 26px; border-radius: 50% 50% 10px 10px; background: #050509; transform: rotate(-5deg); }
.news-item { position: relative; z-index: 2; display: grid; grid-template-columns: 50px 1fr; gap: 18px; margin-bottom: 25px; }
.news-icon { height: 50px; display: grid; place-items: center; border-radius: 4px; background: rgba(100,40,170,.32); color: #fff; font-size: 24px; }
.news-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.news-head strong { color: #fff; font-size: 18px; font-family: Arial, sans-serif; letter-spacing: 0; }
.news-head span { color: rgba(255,255,255,.55); font-size: 15px; font-family: Arial, sans-serif; letter-spacing: 0; }
.news-item p { font-size: 17px; line-height: 1.45; }
.community-card { padding-right: 160px; }
.community-bg { position: absolute; inset: 0; opacity: .34; background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.22)), radial-gradient(circle at 76% 65%, rgba(255,255,255,.25), transparent 10%), radial-gradient(circle at 85% 70%, rgba(255,255,255,.20), transparent 11%), linear-gradient(180deg, #181a25, #050507); }
.card-discord { position: relative; z-index: 3; margin-top: 58px; justify-self: start; }

/* SUBPAGES */
.subpage { padding-top: 88px; }
.sub-hero { position: relative; min-height: 360px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); background: radial-gradient(circle at center, rgba(157,69,255,.20), transparent 34%), linear-gradient(180deg, rgba(6,6,16,.96), rgba(2,2,7,.88)); }
.sub-hero-bg { position: absolute; inset: 0; overflow: hidden; opacity: .48; }
.sub-hero .skyline { bottom: -50px; transform: translateX(-50%) scale(1.15); }
.sub-hero .palm { bottom: -55px; opacity: .3; }
.sub-hero-content { position: relative; z-index: 5; text-align: center; max-width: 1040px; padding: 0 20px; }
.sub-logo { width: 118px; height: 118px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 0 24px rgba(157,69,255,.50)); }
.sub-hero-content p { color: var(--purple); font-size: 22px; text-transform: uppercase; letter-spacing: 10px; margin-bottom: 10px; }
.sub-hero-content h1 { font-family: "Oswald", sans-serif; font-size: clamp(52px, 7vw, 105px); text-transform: uppercase; line-height: .95; background: linear-gradient(180deg, #fff, #8d8d9c); -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 4px 20px rgba(0,0,0,.7)); }
.sub-hero-content span { display: block; margin-top: 18px; color: rgba(255,255,255,.75); font-size: 22px; font-family: Arial, sans-serif; letter-spacing: 0; }

.content-grid, .feature-grid-page, .media-grid-page, .team-grid, .rules-tools, .rules-page-layout, .border-grid { margin-top: 28px; margin-bottom: 28px; }
.content-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.content-card, .mini-card, .media-card, .team-card { padding: 34px; }
.content-card p + p { margin-top: 18px; }
.feature-grid-page, .team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.media-grid-page { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; }
.media-thumb { position: relative; height: 220px; margin: -10px -10px 24px; border-radius: 4px; background: radial-gradient(circle at 50% 35%, rgba(157,69,255,.55), transparent 30%), linear-gradient(180deg, rgba(18,18,32,.7), rgba(4,4,9,.95)), linear-gradient(90deg, #11111d, #040408); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.media-thumb::after { content: "METROPOLIS V2"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 100%; text-align: center; font-family: "Oswald", sans-serif; color: rgba(255,255,255,.75); font-size: 40px; font-weight: 800; text-shadow: 0 0 25px rgba(157,69,255,.75); }
.small-thumb { height: 150px; }
.media-card span { position: relative; z-index: 2; display: inline-block; margin-top: 22px; color: var(--purple); font-size: 17px; font-family: Arial, sans-serif; }
.team-card { text-align: center; }
.avatar { position: relative; z-index: 2; width: 92px; height: 92px; margin: 0 auto 22px; display: grid; place-items: center; border: 1px solid rgba(157,69,255,.8); background: radial-gradient(circle at top, rgba(157,69,255,.34), rgba(40,12,75,.55)); box-shadow: 0 0 34px rgba(157,69,255,.28); color: #fff; font-family: "Oswald", sans-serif; font-size: 48px; font-weight: 800; }
.support-discord, .small-start { position: relative; z-index: 3; margin-top: 25px; justify-self: start; }
.small-start { min-width: 220px; }

/* REGELWERK */
.rules-tools {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.rules-tools h2 {
    position: relative;
    z-index: 2;
    color: var(--purple);
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.rules-tools p {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,.70);
    font-family: Arial, sans-serif;
    letter-spacing: 0;
}
#ruleSearch {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    height: 52px;
    border: 1px solid rgba(157,69,255,.45);
    background: rgba(0,0,0,.32);
    color: #fff;
    padding: 0 18px;
    outline: none;
    font-size: 16px;
    border-radius: 4px;
}
#ruleSearch:focus {
    border-color: var(--purple);
    box-shadow: 0 0 22px rgba(157,69,255,.18);
}
.rules-page-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    align-items: start;
}
.rules-sidebar {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow: auto;
    padding: 22px;
    background: rgba(7,8,16,.86);
    border: 1px solid var(--line);
    border-radius: 5px;
}
.rules-sidebar h3 {
    color: var(--purple);
    text-transform: uppercase;
    font-size: 24px;
    margin-bottom: 14px;
}
.rules-sidebar a {
    display: block;
    color: rgba(255,255,255,.76);
    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
    transition: .2s;
}
.rules-sidebar a:hover { color: var(--purple); padding-left: 6px; }
.rules-content {
    display: grid;
    gap: 18px;
}
.rule-section {
    padding: 30px;
    scroll-margin-top: 110px;
}
.rule-section.hidden {
    display: none;
}
.rule-section .rule-intro {
    margin-bottom: 18px;
    padding: 15px 16px;
    background: rgba(157,69,255,.08);
    border-left: 3px solid var(--purple);
}
.rule-section ol {
    position: relative;
    z-index: 2;
    counter-reset: item;
    list-style: none;
    display: grid;
    gap: 11px;
}
.rule-section li {
    counter-increment: item;
    display: grid;
    grid-template-columns: 42px 1fr;
    color: rgba(255,255,255,.78);
    font-family: Arial, sans-serif;
    line-height: 1.55;
    letter-spacing: 0;
    font-size: 16px;
}
.rule-section li::before {
    content: counter(item);
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: var(--purple);
    border: 1px solid rgba(157,69,255,.55);
    border-radius: 3px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    margin-top: -2px;
}
.search-empty {
    padding: 25px;
    border: 1px solid rgba(157,69,255,.3);
    background: rgba(12,13,22,.75);
    color: rgba(255,255,255,.75);
    font-family: Arial, sans-serif;
}

/* BORDER */
.border-tools { align-items: center; }
.border-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.border-rule-section {
    min-height: 100%;
}

/* FOOTER */
.footer {
    margin-top: 22px;
    min-height: 132px;
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 10px 0 0;
}
.footer h4 { color: rgba(255,255,255,.82); font-size: 26px; text-transform: uppercase; font-weight: 800; margin-bottom: 8px; }
.footer p { color: rgba(255,255,255,.67); font-size: 22px; text-transform: uppercase; letter-spacing: 4px; }
.footer p span { color: var(--purple); }
.footer-logo { display: grid; place-items: center; justify-self: center; }
.footer-logo img { width: 105px; height: 105px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(157,69,255,.4)); }
.socials { justify-self: end; text-align: right; }
.socials div { display: flex; justify-content: flex-end; gap: 31px; margin-bottom: 18px; }
.socials a { color: rgba(255,255,255,.78); font-size: 31px; transition: .25s; }
.socials a:hover { color: var(--purple); }
.socials p { font-size: 16px; letter-spacing: 0; text-transform: none; }

@media (max-width: 1500px) {
    .header { padding: 0 30px; grid-template-columns: 250px 1fr 230px; }
    .nav { gap: 21px; }
    .stats, .cards, .content-grid, .feature-grid-page, .media-grid-page, .team-grid, .rules-tools, .rules-page-layout, .border-grid, .footer {
        max-width: calc(100% - 60px);
    }
    .person-left { left: 350px; }
    .person-right { right: 350px; }
}
@media (max-width: 1220px) {
    .header { height: 78px; grid-template-columns: 1fr auto; }
    .brand { z-index: 60; }
    .burger { display: flex; width: 48px; height: 42px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
    .burger span { width: 24px; height: 2px; background: #fff; }
    .nav, .header > .discord-btn { display: none; }
    .nav.open { display: flex; position: fixed; left: 0; right: 0; top: 78px; height: auto; padding: 28px; flex-direction: column; align-items: flex-start; background: rgba(3,4,12,.96); border-bottom: 1px solid rgba(255,255,255,.12); }
    .nav a.active::after, .nav a:hover::after { display: none; }
    .hero { min-height: 640px; padding-top: 78px; }
    .hero-scene, .hero-overlay { inset: 78px 0 0; }
    .subpage { padding-top: 78px; }
    .stats { height: auto; grid-template-columns: repeat(2, 1fr); padding: 14px 0; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:nth-last-child(-n+1) { grid-column: 1 / -1; border-bottom: 0; }
    .cards, .content-grid.two, .feature-grid-page, .media-grid-page, .team-grid, .border-grid { grid-template-columns: 1fr 1fr; }
    .media-grid-page .big { grid-column: 1 / -1; }
    .rules-page-layout { grid-template-columns: 1fr; }
    .rules-sidebar { position: relative; top: 0; max-height: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
    .rules-sidebar h3 { grid-column: 1 / -1; }
    .footer { grid-template-columns: 1fr; text-align: center; gap: 24px; padding-bottom: 40px; }
    .socials { justify-self: center; text-align: center; }
    .socials div { justify-content: center; }
}
@media (max-width: 760px) {
    .header { padding: 0 18px; }
    .brand-logo { width: 52px; height: 52px; }
    .brand-text strong { font-size: 22px; }
    .brand-text em { margin-left: 45px; font-size: 24px; }
    .welcome { font-size: 18px; letter-spacing: 9px; }
    .hero-logo-img { width: 120px; height: 120px; }
    .hero h2 { font-size: 16px; letter-spacing: 4px; }
    .hero-text { font-size: 16px; }
    .stats, .cards, .content-grid, .feature-grid-page, .media-grid-page, .team-grid, .rules-tools, .rules-page-layout, .border-grid, .footer {
        max-width: calc(100% - 28px);
    }
    .stats, .cards, .content-grid.two, .feature-grid-page, .media-grid-page, .team-grid, .border-grid { grid-template-columns: 1fr; }
    .stat { justify-content: flex-start; padding-left: 38px; }
    .feature-card, .community-card { padding-right: 30px; }
    .masked-character { opacity: .2; }
    .person-left, .person-right, .car-left, .police-car, .helicopter { transform: scale(.75); opacity: .5; }
    .person-left { left: 10px; } .person-right { right: 20px; } .car-left { left: -170px; } .police-car { right: -170px; } .palm { opacity: .25; }
    .sub-hero-content p { font-size: 15px; letter-spacing: 5px; }
    .sub-hero-content span { font-size: 17px; }
    .content-card, .mini-card, .media-card, .team-card, .rule-section { padding: 24px; }
    .rules-tools { flex-direction: column; align-items: stretch; }
    .rules-sidebar { grid-template-columns: 1fr; }
    .rule-section li { grid-template-columns: 36px 1fr; font-size: 15px; }
    .footer h4 { font-size: 22px; }
    .footer p { font-size: 16px; letter-spacing: 2px; }
}


/* =========================================
   FINALER STAT-ICON FIX
   Alle Icons sind jetzt reine CSS-Icons.
   Keine Sonderzeichen / Emojis mehr.
========================================= */

.stat-icon {
    position: relative;
    width: 54px;
    height: 54px;
    opacity: .95;
    flex: 0 0 54px;
}

/* Spieler / Gruppe */
.stat-icon.people::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: #f3f3f5;
    border-radius: 50%;
    box-shadow:
        -16px 7px 0 -2px #f3f3f5,
        16px 7px 0 -2px #f3f3f5;
}

.stat-icon.people::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 25px;
    width: 28px;
    height: 20px;
    background: #f3f3f5;
    border-radius: 16px 16px 5px 5px;
    box-shadow:
        -18px 6px 0 -4px #f3f3f5,
        18px 6px 0 -4px #f3f3f5;
}

/* Uhr */
.stat-icon.clock {
    border: 4px solid #f3f3f5;
    border-radius: 50%;
}

.stat-icon.clock::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 10px;
    width: 4px;
    height: 18px;
    background: #f3f3f5;
    border-radius: 3px;
    transform-origin: bottom center;
}

.stat-icon.clock::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 24px;
    width: 17px;
    height: 4px;
    background: #f3f3f5;
    border-radius: 3px;
    transform-origin: left center;
    transform: rotate(25deg);
}

/* Fahrzeug */
.stat-icon.vehicle::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 18px;
    width: 45px;
    height: 19px;
    border: 4px solid #f3f3f5;
    border-radius: 13px 15px 7px 7px;
    background:
        linear-gradient(135deg, transparent 0 31%, #f3f3f5 32% 39%, transparent 40%),
        linear-gradient(45deg, transparent 0 42%, #f3f3f5 43% 50%, transparent 51%);
}

.stat-icon.vehicle::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 35px;
    width: 10px;
    height: 10px;
    background: #f3f3f5;
    border-radius: 50%;
    box-shadow: 27px 0 0 #f3f3f5;
}

/* Haus / Interior */
.stat-icon.house::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 24px;
    width: 34px;
    height: 24px;
    border: 4px solid #f3f3f5;
    border-top: 0;
    border-radius: 2px;
}

.stat-icon.house::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 8px;
    width: 27px;
    height: 27px;
    border-left: 4px solid #f3f3f5;
    border-top: 4px solid #f3f3f5;
    transform: rotate(45deg);
    border-radius: 2px;
}

/* Schild / Staff */
.stat-icon.shield {
    border: 0;
    clip-path: none;
}

.stat-icon.shield::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 4px;
    width: 36px;
    height: 44px;
    background: #f3f3f5;
    clip-path: polygon(50% 0, 90% 14%, 84% 66%, 50% 100%, 16% 66%, 10% 14%);
}

.stat-icon.shield::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 10px;
    width: 26px;
    height: 31px;
    background: #070812;
    clip-path: polygon(50% 0, 86% 14%, 79% 62%, 50% 91%, 21% 62%, 14% 14%);
}


/* =========================================
   SERVER STATUS WIDGET
========================================= */

.server-status-section {
    max-width: 1740px;
    margin: 0 auto 22px;
}

.status-main-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 26px;
    align-items: center;
    min-height: 210px;
    padding: 34px;
    background:
        radial-gradient(circle at 85% 20%, rgba(157,69,255,.18), transparent 34%),
        linear-gradient(120deg, rgba(12,13,22,.96), rgba(4,5,10,.93));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
}

.status-main-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(157,69,255,.10), transparent 35%),
        radial-gradient(circle at 100% 0%, rgba(157,69,255,.13), transparent 36%);
    pointer-events: none;
}

.status-left,
.status-right {
    position: relative;
    z-index: 2;
}

.status-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--purple);
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 6px;
}

.status-left h2 {
    font-family: "Oswald", sans-serif;
    font-size: clamp(38px, 4vw, 70px);
    line-height: .95;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff, #9b9bab);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 14px;
}

.status-left p {
    max-width: 680px;
    color: rgba(255,255,255,.72);
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    letter-spacing: 0;
}

.status-right {
    display: grid;
    gap: 18px;
}

.status-pill {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.26);
    border-radius: 999px;
    color: rgba(255,255,255,.76);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.status-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    background: #b0b0b8;
    box-shadow: 0 0 14px rgba(255,255,255,.25);
}

.status-pill.online {
    border-color: rgba(76, 255, 141, .35);
    color: #dfffe8;
}

.status-pill.online .status-dot {
    background: #4cff8d;
    box-shadow: 0 0 20px rgba(76,255,141,.8);
}

.status-pill.offline {
    border-color: rgba(255, 70, 88, .35);
    color: #ffdfe3;
}

.status-pill.offline .status-dot {
    background: #ff4658;
    box-shadow: 0 0 20px rgba(255,70,88,.8);
}

.status-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.status-numbers div {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.24);
    border-radius: 4px;
}

.status-numbers span {
    display: block;
    color: rgba(255,255,255,.60);
    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.status-numbers strong {
    display: block;
    color: var(--purple);
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.status-progress {
    height: 10px;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    overflow: hidden;
}

.status-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(157,69,255,.55), rgba(220,180,255,.95));
    box-shadow: 0 0 20px rgba(157,69,255,.55);
    transition: width .35s ease;
}

.status-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.status-join {
    min-width: 205px;
    height: 54px;
    font-size: 17px;
}

.status-actions small {
    color: rgba(255,255,255,.52);
    font-family: Arial, sans-serif;
    letter-spacing: 0;
}

@media (max-width: 1500px) {
    .server-status-section {
        max-width: calc(100% - 60px);
    }
}

@media (max-width: 980px) {
    .status-main-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .server-status-section {
        max-width: calc(100% - 28px);
    }

    .status-main-card {
        padding: 26px;
    }

    .status-numbers {
        grid-template-columns: 1fr;
    }

    .status-kicker {
        font-size: 16px;
        letter-spacing: 4px;
    }
}




/* Status: API nicht erreichbar, aber Server nicht automatisch offline */
.status-pill.unknown {
    border-color: rgba(255, 200, 70, .38);
    color: #fff2cf;
}

.status-pill.unknown .status-dot {
    background: #ffc846;
    box-shadow: 0 0 20px rgba(255,200,70,.8);
}

.status-pill.loading .status-dot {
    animation: statusPulse 1s infinite alternate;
}

@keyframes statusPulse {
    from { opacity: .4; transform: scale(.85); }
    to { opacity: 1; transform: scale(1.1); }
}


/* =========================================
   IMPRESSUM & DATENSCHUTZ
========================================= */

.footer-legal-links {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.62);
    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

.footer-legal-links a {
    color: rgba(255,255,255,.68);
    transition: .25s;
}

.footer-legal-links a:hover {
    color: var(--purple);
}

.legal-page .legal-hero {
    min-height: 320px;
}

.legal-content {
    max-width: 1180px;
    margin: 28px auto;
}

.legal-card {
    position: relative;
    padding: 38px;
    background: linear-gradient(120deg, rgba(12,13,22,.96), rgba(4,5,10,.94));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
    overflow: hidden;
}

.legal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(157,69,255,.09), transparent 36%),
        radial-gradient(circle at 100% 0%, rgba(157,69,255,.12), transparent 35%);
    pointer-events: none;
}

.legal-card h2,
.legal-card h3,
.legal-card p,
.legal-card .legal-warning {
    position: relative;
    z-index: 2;
}

.legal-card h2 {
    color: var(--purple);
    font-size: 38px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.legal-card h3 {
    color: var(--purple);
    font-size: 25px;
    text-transform: uppercase;
    margin: 30px 0 10px;
}

.legal-card p {
    color: rgba(255,255,255,.76);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0;
}

.legal-card a {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-note {
    padding: 15px 16px;
    background: rgba(157,69,255,.08);
    border-left: 3px solid var(--purple);
    margin-bottom: 12px;
}

.legal-warning {
    margin-top: 32px;
    padding: 18px;
    border: 1px solid rgba(255, 200, 70, .30);
    background: rgba(255, 200, 70, .08);
    color: rgba(255,255,255,.80);
    font-family: Arial, sans-serif;
    line-height: 1.65;
    letter-spacing: 0;
}

@media (max-width: 1500px) {
    .legal-content {
        max-width: calc(100% - 60px);
    }
}

@media (max-width: 760px) {
    .legal-content {
        max-width: calc(100% - 28px);
    }

    .legal-card {
        padding: 26px;
    }

    .legal-card h2 {
        font-size: 30px;
    }

    .legal-card h3 {
        font-size: 21px;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        font-size: 13px;
    }
}


/* =========================================
   GESETZBUCH
========================================= */

.law-page .law-hero {
    min-height: 360px;
}

.law-tools,
.law-layout,
.law-balance {
    max-width: 1740px;
    margin-left: auto;
    margin-right: auto;
}

.law-tools {
    position: relative;
    margin-top: 28px;
    margin-bottom: 22px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(120deg, rgba(12,13,22,.96), rgba(4,5,10,.94));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
}

.law-tools::before,
.law-balance article::before,
.law-book::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(157,69,255,.09), transparent 36%),
        radial-gradient(circle at 100% 0%, rgba(157,69,255,.12), transparent 35%);
    pointer-events: none;
}

.law-tools h2,
.law-tools p,
.law-tools input {
    position: relative;
    z-index: 2;
}

.law-tools h2 {
    color: var(--purple);
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.law-tools p {
    max-width: 950px;
    color: rgba(255,255,255,.72);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
}

#lawSearch {
    width: min(560px, 100%);
    height: 52px;
    border: 1px solid rgba(157,69,255,.45);
    background: rgba(0,0,0,.32);
    color: #fff;
    padding: 0 18px;
    outline: none;
    font-size: 16px;
    border-radius: 4px;
}

#lawSearch:focus {
    border-color: var(--purple);
    box-shadow: 0 0 22px rgba(157,69,255,.18);
}

.law-balance {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
}

.law-balance article {
    position: relative;
    padding: 26px;
    background: linear-gradient(120deg, rgba(12,13,22,.94), rgba(4,5,10,.92));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;
    overflow: hidden;
}

.law-balance h3 {
    position: relative;
    z-index: 2;
    color: var(--purple);
    font-size: 27px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.law-balance p {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,.74);
    font-family: Arial, sans-serif;
    line-height: 1.65;
    letter-spacing: 0;
}

.law-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}

.law-sidebar {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow: auto;
    padding: 22px;
    background: rgba(7,8,16,.86);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;
}

.law-sidebar h3 {
    color: var(--purple);
    text-transform: uppercase;
    font-size: 24px;
    margin-bottom: 14px;
}

.law-sidebar a {
    display: block;
    color: rgba(255,255,255,.76);
    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
    transition: .2s;
}

.law-sidebar a:hover {
    color: var(--purple);
    padding-left: 6px;
}

.law-content {
    display: grid;
    gap: 22px;
}

.law-book {
    position: relative;
    padding: 30px;
    background: linear-gradient(120deg, rgba(12,13,22,.96), rgba(4,5,10,.94));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
    scroll-margin-top: 110px;
}

.law-book.hidden {
    display: none;
}

.law-book-head {
    position: relative;
    z-index: 2;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.law-book-head h2 {
    color: var(--purple);
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.law-book-head p {
    color: rgba(255,255,255,.72);
    font-family: Arial, sans-serif;
    line-height: 1.65;
    letter-spacing: 0;
}

.law-paragraph {
    position: relative;
    z-index: 2;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.law-paragraph:last-child {
    border-bottom: 0;
}

.law-paragraph h3 {
    color: #fff;
    font-size: 23px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.law-paragraph p {
    color: rgba(255,255,255,.74);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0;
}

.law-empty {
    padding: 25px;
    border: 1px solid rgba(157,69,255,.3);
    background: rgba(12,13,22,.75);
    color: rgba(255,255,255,.75);
    font-family: Arial, sans-serif;
}

@media (max-width: 1500px) {
    .law-tools,
    .law-layout,
    .law-balance {
        max-width: calc(100% - 60px);
    }
}

@media (max-width: 1220px) {
    .law-layout {
        grid-template-columns: 1fr;
    }

    .law-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 20px;
    }

    .law-sidebar h3 {
        grid-column: 1 / -1;
    }

    .law-balance {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .law-tools,
    .law-layout,
    .law-balance {
        max-width: calc(100% - 28px);
    }

    .law-tools {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }

    .law-sidebar {
        grid-template-columns: 1fr;
    }

    .law-book {
        padding: 24px;
    }

    .law-book-head h2 {
        font-size: 28px;
    }

    .law-paragraph h3 {
        font-size: 20px;
    }

    .law-paragraph p {
        font-size: 15px;
    }
}

