:root {
  --red:#d60a1a;
  --deep-red:#7a020f;
  --orange:#f04b16;
  --ink:#241013;
  --muted:#74666a;
  --paper:#f5f2f2;
  --card:rgba(255,255,255,.92);
  --green:#0b9f6d;
  --line:rgba(65,18,25,.11);
  --shadow:0 18px 48px rgba(58,13,20,.09);
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:28px; }
body { margin:0; background:linear-gradient(145deg,#fff 0%,var(--paper) 62%,#eee9e9 100%); color:var(--ink); font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:inherit; }
.site-header,main,footer { width:min(1180px,calc(100% - 40px)); margin-inline:auto; }
.site-header { display:flex; align-items:center; justify-content:space-between; padding:22px 0; }
.brand { display:flex; align-items:center; gap:12px; color:inherit; font-weight:850; text-decoration:none; }
.brand-mark { width:46px; height:46px; border-radius:14px; box-shadow:0 8px 22px rgba(122,2,15,.22); }
nav { display:flex; align-items:center; gap:7px; padding:5px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.72); backdrop-filter:blur(16px); }
nav a { padding:8px 13px; border-radius:999px; color:var(--muted); font-size:13px; font-weight:750; text-decoration:none; white-space:nowrap; }
nav a:hover,nav a.active { background:white; color:var(--red); box-shadow:0 3px 12px rgba(58,13,20,.08); }

.hero { position:relative; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.55fr); align-items:center; gap:60px; margin:18px 0 52px; padding:52px 58px; overflow:hidden; border-radius:32px; background:linear-gradient(140deg,#e20a1c 0%,#bb0415 58%,#84000d 100%); color:white; box-shadow:0 28px 70px rgba(122,2,15,.24); }
.hero::before { content:""; position:absolute; right:150px; top:22px; width:360px; height:330px; opacity:.2; background:radial-gradient(circle at 50% 28%,white 0 1px,transparent 2px) 0 0/10px 10px; mask-image:radial-gradient(ellipse,black 18%,transparent 68%); }
.hero::after { content:""; position:absolute; right:-110px; top:-160px; width:370px; height:370px; border-radius:50%; background:rgba(255,255,255,.08); }
.hero > * { position:relative; z-index:1; }
.eyebrow { margin:0 0 10px; color:var(--red); font-size:11px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.hero .eyebrow { color:white; opacity:.9; }
h1 { margin:0; font-size:clamp(46px,5.5vw,70px); line-height:.96; letter-spacing:-.055em; }
h1 span { color:rgba(255,255,255,.62); font-weight:500; }
.lead { max-width:680px; margin:24px 0 0; color:rgba(255,255,255,.86); font-size:18px; }
.hero-actions,.card-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border-radius:11px; font-size:13px; font-weight:850; text-decoration:none; }
.button.primary { background:white; color:var(--red); box-shadow:0 12px 28px rgba(74,0,9,.2); }
.button.secondary { border:1px solid rgba(255,255,255,.45); background:rgba(255,255,255,.07); color:white; }
.law-card { display:grid; grid-template-columns:50px 1fr; gap:16px; padding:25px; border:1px solid rgba(255,255,255,.15); border-radius:22px; background:rgba(94,0,10,.3); box-shadow:0 16px 36px rgba(70,0,8,.2); backdrop-filter:blur(16px); }
.law-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:rgba(255,255,255,.12); font-size:26px; }
.law-card small,.law-card strong,.law-card span { display:block; }
.law-card small { color:rgba(255,255,255,.68); font-size:11px; font-weight:800; }
.law-card strong { margin-top:6px; font-size:19px; line-height:1.25; }
.law-card div > span { margin-top:6px; color:rgba(255,255,255,.72); font-size:12px; }
.law-card a { grid-column:2; font-size:12px; font-weight:800; text-decoration:none; }

.page-layout { display:grid; grid-template-columns:200px minmax(0,1fr); gap:58px; align-items:start; }
.toc { position:sticky; top:24px; display:grid; gap:3px; padding:17px; border:1px solid var(--line); border-radius:19px; background:rgba(255,255,255,.76); box-shadow:var(--shadow); }
.toc p { margin:0 8px 8px; font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.toc a { padding:8px; border-radius:8px; color:var(--muted); font-size:12px; font-weight:650; text-decoration:none; }
.toc a:hover { background:rgba(214,10,26,.07); color:var(--red); }
.content { min-width:0; }
.section { margin:0 0 70px; }
.section h2 { margin:0 0 13px; font-size:clamp(28px,3.4vw,40px); line-height:1.08; letter-spacing:-.042em; }
.section-lead { max-width:780px; margin:0 0 25px; color:var(--muted); font-size:16px; }

.law-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; }
.info-card,.authority-card,.report-card,.which-office { border:1px solid var(--line); border-radius:20px; background:var(--card); box-shadow:var(--shadow); }
.info-card { display:flex; flex-direction:column; min-height:265px; padding:22px; }
.card-icon { display:grid; place-items:center; width:39px; height:39px; margin-bottom:16px; border-radius:50%; background:rgba(214,10,26,.09); color:var(--red); font-weight:900; }
.info-card small { color:var(--muted); font-size:11px; font-weight:800; }
.info-card h3 { margin:3px 0 10px; font-size:17px; }
.info-card p { margin:0 0 20px; color:var(--muted); font-size:13px; }
.info-card a { margin-top:auto; color:var(--red); font-size:12px; font-weight:850; text-decoration:none; }
.legal-note { display:grid; grid-template-columns:26px 1fr auto; align-items:center; gap:12px; margin-top:14px; padding:14px 17px; border:1px solid rgba(214,10,26,.16); border-radius:13px; background:rgba(214,10,26,.04); }
.legal-note > span { display:grid; place-items:center; width:24px; height:24px; border:1px solid var(--red); border-radius:50%; color:var(--red); font-size:12px; font-weight:900; }
.legal-note p { margin:0; color:var(--muted); font-size:12px; }
.legal-note a { color:var(--red); font-size:12px; font-weight:850; text-decoration:none; white-space:nowrap; }

.authority-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.authority-card { overflow:hidden; padding:26px 26px 0; }
.authority-head { display:flex; align-items:center; gap:15px; }
.authority-logo { display:grid; place-items:center; flex:0 0 52px; width:52px; height:52px; overflow:hidden; border-radius:16px; background:linear-gradient(145deg,#ef1023,var(--deep-red)); color:white; box-shadow:0 9px 22px rgba(122,2,15,.18); }
.authority-logo svg { width:45px; height:45px; overflow:visible; }
.authority-logo .federal-shield > path:first-child { fill:rgba(255,255,255,.12); stroke:white; stroke-width:2.1; stroke-linejoin:round; }
.authority-logo .icon-mark { fill:white; stroke:none; }
.authority-logo .icon-mark.thin { fill:none; stroke:white; stroke-width:2.2; stroke-linecap:round; }
.authority-card.gespa .authority-logo { border-radius:16px; background:linear-gradient(145deg,#ff6a23,var(--orange)); box-shadow:0 9px 22px rgba(240,75,22,.2); }
.authority-card.gespa .authority-logo svg { width:50px; height:42px; }
.cantonal-shields .canton { filter:drop-shadow(0 3px 3px rgba(94,24,3,.25)); }
.cantonal-shields .field { stroke:white; stroke-width:1.25; stroke-linejoin:round; }
.cantonal-shields .uri .field { fill:#f4cf22; }
.cantonal-shields .bull-head,.cantonal-shields .bull-eye { fill:#171313; }
.cantonal-shields .bull-horns { fill:none; stroke:#171313; stroke-width:2; stroke-linecap:round; }
.cantonal-shields .schwyz .field,.cantonal-shields .unterwalden .upper { fill:#d30b20; }
.cantonal-shields .schwyz-cross { fill:white; }
.cantonal-shields .unterwalden .lower { fill:white; }
.cantonal-shields .key-halo,.cantonal-shields .key { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.cantonal-shields .key-halo { stroke:white; stroke-width:4; }
.cantonal-shields .key { stroke:#9f0715; stroke-width:2; }
.authority-head h3 { margin:0; color:var(--red); font-size:25px; }
.authority-card.gespa h3 { color:var(--orange); }
.authority-head p { margin:1px 0 0; color:var(--muted); font-size:12px; }
.authority-card > p { min-height:58px; margin:21px 0; color:var(--muted); font-size:13px; }
.list-data { display:grid; grid-template-columns:1fr auto; align-items:end; gap:22px; margin:0 -26px; padding:18px 26px; border-top:1px solid var(--line); }
.list-data small,.list-data strong { display:block; }
.list-data small { color:var(--muted); font-size:10px; }
.list-data strong { margin-top:4px; font-size:31px; line-height:1; letter-spacing:-.04em; }
.list-data div:last-child strong { font-size:14px; letter-spacing:0; }
.list-data span { color:var(--red); font-size:11px; font-weight:800; }
.card-actions { margin:0 -26px; padding:0 26px 22px; }
.card-actions .button { flex:1; }
.button.solid { background:var(--red); color:white; }
.button.outline { border:1px solid var(--red); color:var(--red); }
.button.orange { border-color:var(--orange); background:var(--orange); color:white; }
.button.outline.orange { background:transparent; color:var(--orange); }

.process { display:grid; grid-template-columns:repeat(9,auto); align-items:center; gap:8px; }
.process article { align-self:stretch; width:150px; padding:18px; border:1px solid var(--line); border-radius:17px; background:var(--card); box-shadow:var(--shadow); }
.process article > span { display:grid; place-items:center; width:33px; height:33px; margin-bottom:18px; border-radius:50%; background:rgba(214,10,26,.09); color:var(--red); font-size:12px; font-weight:900; }
.process h3 { margin:0 0 8px; font-size:14px; line-height:1.25; }
.process p { margin:0; color:var(--muted); font-size:11px; line-height:1.45; }
.process i { color:var(--red); font-size:19px; font-style:normal; }
.process .deadline { border-color:rgba(214,10,26,.3); background:linear-gradient(145deg,#fff,rgba(214,10,26,.06)); }

.responsibility-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.responsibility-grid article { padding:25px; border-right:1px solid var(--line); }
.responsibility-grid article:last-child { border-right:0; }
.responsibility-icon { display:grid; place-items:center; width:42px; height:42px; margin-bottom:14px; border-radius:12px; background:rgba(214,10,26,.08); color:var(--red); font-size:20px; }
.responsibility-icon.green { background:rgba(11,159,109,.09); color:var(--green); }
.responsibility-grid h3 { margin:0 0 10px; font-size:18px; }
.responsibility-grid ul { margin:0; padding-left:17px; color:var(--muted); font-size:12px; }

.boundary-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.boundary-grid article { display:grid; grid-template-columns:43px 1fr; gap:15px; padding:25px; border:1px solid; border-radius:18px; background:var(--card); }
.boundary-grid article > span { display:grid; place-items:center; width:40px; height:40px; border:2px solid; border-radius:50%; font-size:22px; }
.boundary-grid h3 { margin:0 0 8px; }
.boundary-grid p { margin:6px 0 0; color:var(--muted); font-size:13px; }
.boundary-grid .yes { border-color:rgba(11,159,109,.25); }
.boundary-grid .yes span,.boundary-grid .yes h3 { color:var(--green); }
.boundary-grid .no { border-color:rgba(214,10,26,.22); }
.boundary-grid .no span,.boundary-grid .no h3 { color:var(--red); }

.report-grid { display:grid; grid-template-columns:1fr 1fr .72fr; gap:14px; }
.report-card,.which-office { padding:25px; }
.report-icon { display:grid; place-items:center; width:48px; height:48px; margin-bottom:15px; border-radius:14px; background:rgba(214,10,26,.08); color:var(--red); font-size:26px; }
.gespa-report .report-icon { background:rgba(240,75,22,.09); color:var(--orange); }
.report-card small { font-size:11px; font-weight:800; }
.report-card h3 { margin:3px 0 12px; color:var(--red); font-size:25px; }
.gespa-report h3 { color:var(--orange); }
.report-card p { min-height:86px; margin:0; color:var(--muted); font-size:12px; }
.report-card .button { width:100%; margin-top:18px; }
.tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:17px; }
.tags span { padding:4px 9px; border:1px solid rgba(214,10,26,.25); border-radius:999px; color:var(--red); font-size:9px; font-weight:800; }
.which-office { background:rgba(255,255,255,.55); }
.which-office h3 { margin:0 0 22px; font-size:17px; }
.which-office p { padding-top:14px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.which-office strong { color:var(--ink); }

.bottom-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.section.compact h2 { font-size:27px; }
.source-list { overflow:hidden; border:1px solid var(--line); border-radius:17px; background:var(--card); box-shadow:var(--shadow); }
.source-list a { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:12px; padding:15px; border-bottom:1px solid var(--line); text-decoration:none; }
.source-list a:last-child { border-bottom:0; }
.source-list a > span { display:grid; place-items:center; width:35px; height:35px; border-radius:50%; background:rgba(214,10,26,.08); color:var(--red); font-size:10px; font-weight:900; }
.source-list a > .source-authority-icon { width:40px; height:40px; overflow:hidden; border-radius:12px; background:linear-gradient(145deg,#ef1023,var(--deep-red)); box-shadow:0 6px 14px rgba(122,2,15,.17); }
.source-authority-icon svg { width:36px; height:36px; }
.source-authority-icon .source-shield { fill:rgba(255,255,255,.12); stroke:white; stroke-width:2.1; stroke-linejoin:round; }
.source-authority-icon .source-cross { fill:white; }
.source-list a > .gespa-source { background:linear-gradient(145deg,#ff6a23,var(--orange)); box-shadow:0 6px 14px rgba(240,75,22,.2); }
.gespa-source svg { width:38px; height:32px; }
.gespa-source .mini-field { stroke:white; stroke-width:1.1; stroke-linejoin:round; }
.gespa-source .mini-uri .mini-field { fill:#f4cf22; }
.gespa-source .mini-bull { fill:#171313; }
.gespa-source .mini-horns { fill:none; stroke:#171313; stroke-width:1.7; stroke-linecap:round; }
.gespa-source .mini-schwyz .mini-field,.gespa-source .mini-upper { fill:#d30b20; }
.gespa-source .mini-cross { fill:white; }
.gespa-source .mini-unterwalden .lower { fill:white; }
.gespa-source .mini-key-halo,.gespa-source .mini-key { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.gespa-source .mini-key-halo { stroke:white; stroke-width:3.5; }
.gespa-source .mini-key { stroke:#9f0715; stroke-width:1.7; }
.source-list strong,.source-list small { display:block; }
.source-list strong { font-size:12px; }
.source-list small { margin-top:2px; color:var(--muted); font-size:10px; }
.source-list b { color:var(--green); font-size:11px; }
.text-links a { grid-template-columns:1fr auto; }
.fine-print { color:var(--muted); font-size:10px; }
footer { display:flex; justify-content:space-between; gap:20px; padding:28px 0 45px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.footer-links { display:flex; flex-wrap:wrap; gap:16px; }
.footer-links a { text-decoration:none; }
.footer-links a:hover { color:var(--red); }

@media (max-width:1060px) {
  .process { grid-template-columns:repeat(5,1fr); gap:12px; }
  .process article { width:auto; }
  .process i { display:none; }
  .report-grid { grid-template-columns:1fr 1fr; }
  .which-office { grid-column:1/-1; }
}
@media (max-width:900px) {
  .hero { grid-template-columns:1fr; gap:30px; padding:44px; }
  .law-card { max-width:470px; }
  .page-layout { grid-template-columns:1fr; gap:40px; }
  .toc { position:static; display:flex; overflow-x:auto; }
  .toc p { display:none; }
  .toc a { white-space:nowrap; }
  .law-grid { grid-template-columns:1fr; }
  .info-card { min-height:0; }
}
@media (max-width:680px) {
  .site-header { display:grid; grid-template-columns:1fr; gap:12px; align-items:stretch; padding-top:14px; padding-bottom:12px; }
  .brand { justify-self:start; }
  .brand span { display:inline; }
  nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; max-width:none; gap:4px; overflow:visible; border-radius:18px; }
  nav a { display:flex; align-items:center; justify-content:center; min-height:40px; padding:8px 6px; text-align:center; white-space:normal; line-height:1.15; }
  .hero { margin-top:12px; padding:30px 22px; border-radius:25px; }
  h1 { font-size:40px; line-height:1.02; }
  .authority-grid,.boundary-grid,.responsibility-grid,.report-grid,.bottom-grid { grid-template-columns:1fr; }
  .responsibility-grid article { border-right:0; border-bottom:1px solid var(--line); }
  .responsibility-grid article:last-child { border-bottom:0; }
  .process { grid-template-columns:1fr; }
  .legal-note { grid-template-columns:26px 1fr; }
  .legal-note a { grid-column:2; }
  .report-card p { min-height:0; }
  .which-office { grid-column:auto; }
  footer { display:block; }
  footer span { display:block; margin-top:5px; }
}
