/* DARKWAVE KNIESCHLEIFER R001 — public site and admin UI */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,-apple-system,sans-serif;color-scheme:dark;--bg:#100d10;--surface:#20191e;--surface2:#292025;--text:#fff9f6;--muted:#a99ea2;--line:rgba(255,255,255,.11);--red:#f3494d;--red2:#c82c38;--cream:#f8ede1;--amber:#ffb073;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:86px}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}body.dialog-active{overflow:hidden}button,input,select,textarea,a{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--amber);outline-offset:3px}.shell{width:min(1280px,calc(100% - 72px));margin-inline:auto}.site-wrap{overflow:hidden;background:radial-gradient(ellipse 72% 35% at 74% -7%,rgba(156,44,50,.15),transparent 72%),#100d10}
.topbar{min-height:95px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line);position:relative;z-index:5}.brand{display:flex;align-items:center;gap:13px;line-height:1}.brand-ks{display:grid;place-items:center;width:54px;height:55px;transform:skew(-10deg);background:#f3494d;color:#160c10;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:31px;letter-spacing:-.12em;border-radius:4px;box-shadow:7px 6px 0 #5d2025}.brand-slash{display:inline-block;font-size:13px;margin-left:2px;opacity:.5}.brand-words strong{display:block;font:900 24px/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:.025em}.brand-words small{display:block;color:var(--amber);margin-top:7px;font-size:9px;font-weight:800;letter-spacing:.13em}.topnav{display:flex;gap:32px;align-items:center}.topnav>a{font-size:13px;font-weight:700;color:#f3e5e2;transition:color .2s}.topnav>a:hover{color:var(--red)}.topnav .nav-admin{background:#2c2227;padding:12px 17px;border:1px solid var(--line);border-radius:7px}.topnav .nav-admin span{color:var(--red);margin-left:8px}
.hero-shell{position:relative;min-height:700px;display:grid;grid-template-columns:1fr .86fr;align-items:center;gap:10px;padding:65px 0 85px;border-bottom:1px solid var(--line)}.hero-warm-glow{position:absolute;inset:-20px -90px 0 35%;background:radial-gradient(circle at 54% 44%,rgba(246,74,74,.20),transparent 40%),radial-gradient(circle at 50% 50%,rgba(249,151,89,.10),transparent 62%);pointer-events:none}.hero-content{position:relative;z-index:2;padding-top:10px}.eyebrow,.section-tag,.subtle-overline{font-size:11px;letter-spacing:.155em;font-weight:900;color:var(--red)}.eyebrow{color:#ffbfae;display:flex;align-items:center;gap:10px}.eyebrow-dot{width:8px;height:8px;background:var(--red);border-radius:50%;box-shadow:0 0 0 5px #f3494d20}.hero-content h1{font:900 clamp(68px,7.5vw,115px)/.82 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.025em;margin:32px 0 26px}.hero-content h1 .redtype{color:var(--red)}.hero-content h1 .outline{-webkit-text-stroke:1.25px #fff;color:transparent;text-shadow:none}.hero-intro{font-size:16px;line-height:1.85;color:#d2c1c0;max-width:475px;margin:0 0 29px}.hero-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:38px;padding:17px 22px;background:var(--red);color:#fff;font-size:12px;font-weight:900;letter-spacing:.09em;border-radius:6px;border:1px solid transparent;box-shadow:0 11px 30px #f3494d22;transition:transform .2s,background .2s}.btn-primary:hover{background:#ff575b;transform:translateY(-3px)}.hero-side-note{color:#d3b4aa;font-size:10px;letter-spacing:.1em;font-weight:800}.hero-trust{font-size:13px;color:#a998a1;margin-top:45px}.hero-trust span{font-size:19px;margin-right:7px}
.hero-art{height:600px;position:relative;display:grid;place-items:center;isolation:isolate}.hero-art:before{content:'KS';position:absolute;right:0;top:3%;font:900 380px/.8 'Barlow Condensed',sans-serif;color:rgba(255,255,255,.024);z-index:-1}.red-track{position:absolute;inset:16% 4% 14% 13%;border:1px solid rgba(247,70,78,.48);border-radius:50%;transform:rotate(-30deg);box-shadow:0 0 0 26px #f3494d0b,0 0 0 55px #f3494d08}.red-track:after{content:'';position:absolute;inset:-24px;border-radius:50%;border:1px dashed #f3494d45}.hero-back-card{position:absolute;top:9%;right:9%;height:405px;width:270px;transform:rotate(13deg);background:linear-gradient(145deg,#ac2d37,#451a26);border-radius:13px;border:1px solid #f2677090;box-shadow:0 35px 90px #0006;display:flex;align-items:end;padding:20px}.hero-back-card span{font:900 34px/.9 'Barlow Condensed';letter-spacing:.04em;opacity:.43}.featured-flyer{position:relative;z-index:2;width:min(350px,68%);height:440px;border:8px solid #fff2eb;border-radius:9px;background:#431923;box-shadow:0 25px 70px #000b,15px 22px 0 #0b0707;transform:rotate(-7deg);padding:0;overflow:visible;transition:transform .33s,box-shadow .33s}.featured-flyer:hover{transform:rotate(-3deg) scale(1.03);box-shadow:0 33px 85px #000b}.featured-flyer img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;border-radius:2px}.flyer-tag{position:absolute;bottom:18px;left:-25px;background:#fff0e6;color:#211116;font:900 15px/1.2 'Barlow Condensed';letter-spacing:.04em;padding:13px 17px;box-shadow:3px 7px 0 #c93a42;white-space:nowrap}.hero-round-stamp{position:absolute;right:-5%;bottom:11%;z-index:3;background:#f3d5ae;color:#372127;border-radius:50%;height:115px;width:115px;display:grid;place-content:center;transform:rotate(13deg);text-align:center;font:900 21px/.92 'Barlow Condensed';box-shadow:0 12px 30px #0007}.hero-round-stamp span{font-size:25px;color:var(--red);margin-top:7px}.hero-foot{position:absolute;bottom:22px;left:0;right:0;display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:.15em;font-weight:800;color:#8c7882}
.ribbon{width:100%;overflow:hidden;background:var(--red);height:48px;display:flex;align-items:center;transform:rotate(-1deg) scale(1.015);margin:5px 0 53px}.ribbon>div{white-space:nowrap;font:800 20px 'Barlow Condensed';letter-spacing:.09em;color:#271318;animation:marquee 28s linear infinite}@keyframes marquee{to{transform:translateX(-47%)}}
.main-section{padding:65px 0 120px}.section-intro{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:34px}.section-intro h2,.community-strip h2{font:900 clamp(43px,5vw,70px)/.9 'Barlow Condensed';letter-spacing:-.014em;margin:13px 0}.section-intro h2 span,.community-strip h2 span{color:var(--red)}.section-intro p,.community-strip p{margin:0;color:#b3a4a5;font-size:14px;line-height:1.65}.jump-link{font:800 12px 'DM Sans';letter-spacing:.05em;color:#f0c4a6;padding-bottom:12px;white-space:nowrap}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr);gap:20px;align-items:start}.calendar-panel,.events-panel{min-width:0;padding:29px;border:1px solid var(--line);border-radius:16px;background:#20191e;box-shadow:0 16px 45px rgba(0,0,0,.13)}.calendar-panel{background:radial-gradient(circle at 5% 5%,#54272b55,transparent 37%),#211a1f}.calendar-header,.events-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.calendar-header h3,.events-heading h3{margin:6px 0 0;font:900 clamp(25px,3vw,35px)/1 'Barlow Condensed'}.events-heading h3 span{color:var(--red)}.subtle-overline{color:#ba9ea4;font-size:10px}.calendar-nav{display:flex;gap:6px;align-items:center}.calendar-nav button{min-width:39px;height:38px;border:1px solid #48383e;background:#33272d;border-radius:7px;color:#fff6ef;font-size:22px;transition:background .2s}.calendar-nav button:hover{background:#5a3035}.calendar-nav button.today-btn{font:900 10px 'DM Sans';padding:0 10px}.weekday-row,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.weekday-row{margin:30px 0 11px}.weekday-row span{text-align:center;font-size:10px;color:#c3a6ad;font-weight:900}.calendar-day{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;height:56px;border:1px solid transparent;border-radius:8px;background:#2a2228;color:#ddd3d3;font-weight:800;font-size:13px;position:relative;transition:background .18s,transform .18s,border-color .18s}.calendar-day:hover{background:#4c2a32;transform:translateY(-2px)}.calendar-day.has-event{border-color:#9f3941;color:#fff7ed;background:#48262d}.calendar-day.is-today{box-shadow:inset 0 0 0 1px #eb9e80}.calendar-day.selected{background:#df424b;border-color:#ff8f8d;color:white}.day-dots{display:flex;gap:3px;position:absolute;bottom:7px}.day-dots i{height:4px;width:4px;border-radius:50%;background:#ffa38e}.calendar-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px;font-size:11px;color:#b49fa6}.legend-dot{width:8px;height:8px;background:var(--red);display:inline-block;border-radius:50%;margin-right:6px}.calendar-foot button{color:#f7a8a2;border:0;background:none;font:700 11px 'DM Sans';cursor:pointer}.calendar-quote{border-top:1px solid var(--line);margin-top:27px;padding-top:22px;color:#e2c3c1;font-size:14px;font-weight:600;line-height:1.5}.calendar-quote span{font:900 44px/0 'Barlow Condensed';color:var(--red);vertical-align:middle;margin-right:8px}
.count-pill{font-size:10px;font-weight:800;background:#3f252b;color:#ffab9d;border:1px solid #6b3339;border-radius:100px;white-space:nowrap;padding:7px 11px}.search-field{display:flex;align-items:center;gap:10px;margin:27px 0 19px;border:1px solid #4b3c41;border-radius:8px;padding:0 13px;height:48px;background:#181417}.search-field span{font-size:25px;color:#bba5a9}.search-field input{font:500 13px 'DM Sans';color:white;background:none;border:0;outline:none;min-width:0;flex:1}.search-field input::placeholder{color:#92818a}.category-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:22px}.filter{border:1px solid #513a41;color:#d4c2c5;border-radius:6px;background:#2c2227;font-size:11px;font-weight:750;padding:9px 11px;transition:background .2s}.filter:hover{background:#4f2b32}.filter.active{background:#f04a51;border-color:#f04a51;color:white;box-shadow:0 5px 15px #f04a5130}.event-list{display:grid;gap:10px;min-height:200px}.event-card{width:100%;display:flex;align-items:center;gap:14px;text-align:left;background:#2b2126;border:1px solid #4a363d;border-radius:11px;padding:10px;color:#fff;transition:transform .2s,border-color .2s,background .2s}.event-card:hover{transform:translateX(4px);background:#39282e;border-color:#e6575d}.event-thumb{width:84px;height:94px;border-radius:7px;background:linear-gradient(140deg,#80252e,#291b23);display:grid;place-items:center;flex:0 0 auto;overflow:hidden}.event-thumb img{width:100%;height:100%;object-fit:cover}.thumb-fallback{font:900 45px 'Barlow Condensed';color:#ffaca0}.event-card-content{min-width:0;display:flex;flex-direction:column;gap:7px;flex:1}.card-meta{display:flex;gap:8px;align-items:center;justify-content:space-between;color:#f5b0a7;font-size:9px;letter-spacing:.06em;font-weight:800}.event-card-content strong{font:900 20px/1.05 'Barlow Condensed';letter-spacing:.01em}.event-subtitle{color:#bda9ae;font-size:11px;line-height:1.5}.event-card-arrow{color:#fa9c92;font-size:23px;margin:0 9px 0 3px}.demo-label{font:800 9px/1.2 'DM Sans';color:#e2bd7f;letter-spacing:.03em}.empty-state{display:grid;justify-items:center;text-align:center;padding:28px 8px;border:1px dashed #604049;border-radius:11px;background:#2b1e24}.empty-icon{font-size:35px}.empty-state strong{font:900 23px 'Barlow Condensed';margin-top:9px}.empty-state p{font-size:12px;color:#c3abb0;margin:6px 0;max-width:270px}.error-message{color:#ff9a98;font-size:12px}
.community-strip{border-block:1px solid var(--line);padding:53px 0;display:grid;grid-template-columns:110px 1fr auto;gap:28px;align-items:center;margin-bottom:45px}.strip-icon{height:92px;width:92px;display:grid;place-items:center;background:#54252e;border:1px solid #a33d48;color:#ff6f73;border-radius:50%;font-size:44px}.community-strip h2{font-size:clamp(28px,3.3vw,49px);margin:7px 0}.community-strip p{max-width:650px}.btn-outline,.btn-secondary{border:1px solid #9d4447;background:#2c1e24;padding:16px 20px;border-radius:6px;font-size:11px;font-weight:900;letter-spacing:.08em;color:#ffeae0;white-space:nowrap}.btn-outline:hover,.btn-secondary:hover{background:#58282f}.site-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 0 40px;font-size:11px;color:#9c888d}.site-footer div{display:flex;flex-direction:column;gap:5px}.site-footer strong{font:900 22px 'Barlow Condensed';color:white}.site-footer small{font-size:10px}.site-footer a{color:#e9b1a0}
.event-dialog{width:min(960px,calc(100vw - 32px));max-height:min(90vh,970px);border:1px solid #a44c55;border-radius:18px;padding:0;background:#1d171d;color:white;box-shadow:0 25px 100px #000c;overflow:auto;animation:modalIn .38s cubic-bezier(.2,1,.2,1)}.event-dialog::backdrop{background:#070507e8;backdrop-filter:blur(13px)}@keyframes modalIn{from{opacity:0;transform:translateY(34px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.event-dialog #detailContent{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}.modal-close{position:sticky;top:14px;float:right;margin:14px 14px -58px 0;z-index:10;border-radius:50%;width:42px;height:42px;background:#211719ee;border:1px solid #ad5a60;color:white;font-size:28px;display:grid;place-items:center}.detail-poster{min-height:520px;position:relative;background:radial-gradient(circle at center,#712c44,#22131d);display:grid;place-items:center;padding:26px}.detail-poster img{width:100%;max-height:580px;object-fit:contain;filter:drop-shadow(0 20px 18px #0009)}.poster-blank{font:900 53px 'Barlow Condensed';text-align:center;color:#ffada0}.poster-badge{position:absolute;bottom:24px;left:24px;right:24px;text-align:center;background:#f04850;font-size:10px;font-weight:900;letter-spacing:.06em;padding:11px;border-radius:5px;box-shadow:0 8px 24px #0007}.detail-content{padding:38px 38px 40px;overflow-wrap:anywhere}.detail-content h2{font:900 clamp(32px,3.5vw,48px)/.94 'Barlow Condensed';margin:14px 0 24px}.detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fact{display:flex;align-items:start;gap:10px;border:1px solid #553a44;background:#302127;border-radius:9px;padding:14px 10px}.fact-icon{font-size:21px;line-height:1.1}.fact small{display:block;color:#bd9fa9;letter-spacing:.12em;font-size:9px;font-weight:900;margin-bottom:6px}.fact strong{display:block;color:#ffece8;font-size:12px;line-height:1.45}.detail-content h3{font:900 23px 'Barlow Condensed';margin:30px 0 12px}.event-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;color:#d5c6c8;max-height:350px;overflow-y:auto;padding-right:5px}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.detail-actions a,.detail-actions button{font-size:10px;padding:12px 14px;gap:8px}.detail-actions .btn-secondary{background:#35242c}
/* Admin (R001 controls, compatible with existing HTML) */
body:not(.public-page){background:#130e12;color:#fff6f1}.ambient{position:fixed;z-index:-1;inset:0;background:radial-gradient(ellipse at 10% 0%,#8d313333,transparent 42%),radial-gradient(ellipse at 100% 70%,#63263736,transparent 50%)}.top{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.logo{display:flex;align-items:center;gap:12px;letter-spacing:.08em}.logo b{display:block;font:900 23px 'Barlow Condensed';letter-spacing:.04em}.logo small{display:block;font-size:9px;letter-spacing:.15em;color:#f09b9a}.mark{height:50px;width:50px;display:grid;place-items:center;background:linear-gradient(135deg,#fb494f,#a52b3e);border-radius:8px;font-weight:900;font-size:22px}.navlink{border:1px solid #725055;border-radius:7px;padding:11px 14px;font-size:12px;font-weight:700}.hero.slim{padding:35px 0}.hero.slim h1{font:900 52px/1 'Barlow Condensed';margin:9px 0}.hero.slim h1 em{color:var(--red);font-style:normal}.hero.slim p,.muted{color:#bca9af}.eyebrow{color:#f69d9c}.adminlayout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:22px}.panel{border:1px solid #59404b;border-radius:14px;padding:23px;background:#24191f;min-width:0}.panel h2{font:900 29px 'Barlow Condensed';margin:7px 0 14px}.panel p{line-height:1.6}.panelhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.small{font-size:12px}.qrcode{display:block;margin:12px auto;width:min(270px,100%);border-radius:12px}.qrcode[hidden]{display:none}hr{border:0;border-top:1px solid #49333c;margin:20px 0}.group{border-top:1px solid #553a44;padding:15px 0}.grouphead{display:flex;gap:9px;align-items:center}.grouphead strong{font-size:13px}.group input[type=checkbox]{height:19px;width:19px;accent-color:var(--red)}label{display:grid;gap:6px;font-size:12px;color:#ebd4d5;margin:10px 0}input,textarea,select{width:100%;background:#151116;color:#fff7ee;border:1px solid #5c404a;border-radius:7px;padding:10px}textarea{resize:vertical}.group textarea{margin:12px 0}body:not(.public-page) button{background:#392329;color:white;border:1px solid #7c3d49;border-radius:7px;padding:9px 13px;font-weight:800;font-size:12px}body:not(.public-page) button:hover{background:#5e313c}.reviewList{max-height:800px;overflow-y:auto}.reviewitem{border-bottom:1px solid #56404a;padding:16px 0}.reviewitem p{margin:5px 0}.reviewitem .status{display:inline-block;border-radius:30px;padding:3px 9px;background:#56313b;font-size:11px}.reviewitem button{margin-top:10px}body:not(.public-page) footer{color:#aa929a;font-size:11px;padding:35px 0;text-align:center}#editor{background:#24181f;color:white;width:min(690px,calc(100vw - 30px));max-height:90vh;overflow-y:auto;border:1px solid #b15a66;border-radius:14px;padding:24px}#editor::backdrop{background:#080507dc;backdrop-filter:blur(6px)}#editor h2{font:900 32px 'Barlow Condensed';margin:8px 0 19px}#editor .close{float:right;font-size:29px}#editForm{display:grid;gap:6px}#editForm input,#editForm textarea,#editForm select{margin-top:5px}.adminimages{display:flex;flex-wrap:wrap;gap:10px}.adminimages img{width:145px;max-height:165px;object-fit:contain}.buttons{display:flex;gap:10px;margin-top:15px}body:not(.public-page) button.primary{background:#ef4650}body:not(.public-page) button.danger{border-color:#e0505b;color:#ffb0b0}#saveInfo{color:#f9b4a5}
@media(max-width:1120px){.hero-shell{min-height:620px}.hero-content h1{font-size:85px}.hero-art{height:520px}.featured-flyer{height:380px;width:min(290px,70%)}.hero-back-card{height:345px;width:230px}.dashboard-grid{grid-template-columns:1fr}.calendar-panel,.events-panel{padding:28px}.event-list{grid-template-columns:repeat(2,minmax(0,1fr))}.event-card-content strong{font-size:18px}.event-card{gap:11px}.event-card-arrow{margin-right:2px}}
@media(max-width:760px){.shell{width:calc(100% - 34px)}.topbar{min-height:80px}.brand-ks{height:44px;width:42px;font-size:24px}.brand-words strong{font-size:20px}.brand-words small{font-size:8px}.topnav{gap:12px}.topnav>a{font-size:11px}.topnav .nav-admin{padding:8px}.topnav>a:nth-child(2){display:none}.hero-shell{display:block;min-height:0;padding:60px 0 52px}.hero-content h1{font-size:clamp(65px,12vw,95px);margin-top:23px}.hero-intro{max-width:530px}.hero-art{height:400px;margin-top:30px}.featured-flyer{height:335px;width:250px}.hero-back-card{height:300px;width:205px;right:14%}.hero-round-stamp{right:7%;bottom:4%;height:90px;width:90px;font-size:17px}.hero-foot{position:static;margin-top:20px;font-size:9px}.main-section{padding:40px 0 70px}.section-intro{display:block}.jump-link{display:block;margin-top:18px}.event-list{grid-template-columns:1fr}.community-strip{grid-template-columns:65px 1fr;gap:18px}.strip-icon{width:60px;height:60px;font-size:29px}.community-strip .btn-outline{grid-column:2;justify-self:start}.site-footer{flex-wrap:wrap}.event-dialog #detailContent{grid-template-columns:1fr}.detail-poster{min-height:0;max-height:420px}.detail-poster img{height:350px}.detail-content{padding:25px}.adminlayout{grid-template-columns:1fr}.hero.slim h1{font-size:42px}}
@media(max-width:430px){.topnav>a:first-child{display:none}.hero-content h1{font-size:68px}.hero-side-note{font-size:9px}.hero-art{height:335px}.featured-flyer{height:292px;width:215px}.hero-back-card{height:260px;width:170px}.flyer-tag{font-size:12px;padding:10px;left:-17px}.hero-round-stamp{right:0;bottom:2%;height:76px;width:76px;font-size:15px}.section-intro h2{font-size:43px}.calendar-panel,.events-panel{padding:16px}.calendar-nav button{min-width:30px;height:32px}.calendar-nav button.today-btn{padding:0 6px;font-size:9px}.calendar-header h3{font-size:24px}.weekday-row,.calendar-grid{gap:4px}.calendar-day{height:47px;font-size:12px}.calendar-foot{font-size:10px}.calendar-foot button{font-size:10px}.detail-facts{grid-template-columns:1fr 1fr}.fact{padding:9px 7px;gap:6px}.fact-icon{font-size:17px}.fact strong{font-size:11px}.event-card{padding:8px}.event-thumb{width:75px;height:83px}.event-card-content strong{font-size:17px}.category-filters{gap:5px}.filter{font-size:10px;padding:7px 8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* R005: Web-only birthday + WhatsApp command-admin configuration */
.admin-enhancements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding-top:28px}
.admin-enhancements .adminwide:last-child{grid-column:1/-1}
.adminform{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:end}
.adminform .full{grid-column:1/-1}
.adminform .compactlabel{display:flex;align-items:center;gap:10px;margin:10px 0 0}
.adminform .compactlabel input,.checkboxGrid input{width:18px;height:18px;accent-color:#ee4350}
.checkboxGrid{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 13px}
.checkboxGrid label{display:flex;gap:8px;align-items:center;margin:0;border:1px solid #67424c;border-radius:8px;padding:10px;background:#302027;font-size:12px}
.adminitems{margin-top:16px;max-height:400px;overflow:auto}
.adminitem{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 6px;border-bottom:1px solid #553a44}
.adminitem strong{font-size:13px}.adminitem small{display:block;color:#a9a0a3;margin-top:4px;font-size:11px}
.adminitem-actions{display:flex;gap:7px;flex-shrink:0}
.birthday-preview-area{display:grid;gap:12px;max-width:720px;margin-top:16px}
.birthday-preview-area img{width:100%;border-radius:12px;border:1px solid #7b3b4b}
.birthday-preview-area img[hidden]{display:none}
@media(max-width:850px){.admin-enhancements{grid-template-columns:1fr}.adminform{grid-template-columns:1fr}.admin-enhancements .adminwide:last-child{grid-column:auto}}

/* R006: multi-group source selectors */
.source-panel{margin:26px 0}.source-toolbar{display:flex;gap:9px;flex-wrap:wrap;margin:15px 0}
.source-scroll{overflow:auto;width:100%;border:1px solid #55404a;border-radius:13px;background:#191418}
.sources-table{width:100%;border-collapse:collapse;font-size:13px;min-width:620px}
.sources-table th,.sources-table td{border-bottom:1px solid #463039;padding:15px 12px;text-align:center}
.sources-table th:first-child,.sources-table td:first-child{text-align:left;min-width:190px}
.sources-table th{background:#2b1d25;color:#f5c0b0;font-weight:800;font-size:12px}
.sources-table td small{display:block;margin-top:5px}
.sources-table tr:last-child td{border-bottom:0}
.sources-table tr:hover{background:#2d2128}
.sources-table input{width:21px;height:21px;accent-color:#f3494d;cursor:pointer}
.source-panel>.primary{margin-top:11px}

.member-avatar{width:82px;height:82px;object-fit:cover;border-radius:50%;border:2px solid #ec2442;float:left;margin-right:14px}

/* R007: responsive per-group rule editor */
.rule-panel{margin:26px 0;border-color:#7f444d;background:linear-gradient(145deg,#281920,#1b161d)}
.rule-panel .rule-header{align-items:start;gap:15px;flex-wrap:wrap}.rule-panel .rule-header h2{font-size:34px}
.rule-panel #ruleAdd{font-size:14px;padding:13px 19px}
.rule-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:15px 0 25px}.rule-toolbar label{min-width:240px;flex:1;max-width:470px;margin:0}
.rule-split{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:22px;margin:15px 0}
.rule-list{display:grid;gap:11px;margin-top:13px}.rule-card{background:#33212a;border:1px solid #64424b;border-radius:12px;padding:15px}
.rule-card-top{display:grid;gap:12px}.rule-card strong{display:block;color:#fff3e7;font-size:15px}.rule-card small{display:block;color:#c0acb6;font-size:11px;margin-top:7px}
.rule-tag{display:inline-block;color:#ffc8c2;border:1px solid #88545c;border-radius:30px;font-size:10px;padding:3px 9px;margin-top:8px}
.rule-tag.active{color:#b7f6d1;border-color:#3f996c;background:#153628}.rule-card-actions,.rule-actions{display:flex;gap:8px;flex-wrap:wrap}
.rule-editor{border:1px solid #7b4a57;background:#281b23;border-radius:12px;padding:18px;animation:modalIn .25s ease-out}
.rule-editor[hidden],#ruleTargetBlock[hidden],#ruleTemplateBlock[hidden]{display:none}
.rule-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 16px;align-items:end}
.rule-fields .full{grid-column:1/-1}.rule-fields label{margin:0}
.rule-subhead{border-bottom:1px solid #67454e;padding:10px 0 7px;color:#ffabb0;font-weight:900;letter-spacing:.05em}
.rule-label{font-size:12px;font-weight:700;color:#f8ded9}.rule-checks{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.rule-checks label,.rule-check{display:flex;align-items:center;gap:8px;background:#38232c;border:1px solid #59404b;padding:9px 10px;border-radius:9px;font-size:12px}
.rule-checks input,.rule-check input{width:18px;height:18px;accent-color:#ff535e;flex-shrink:0}
.rule-test{margin-top:25px;background:#1c151c;border:1px solid #61434b;border-radius:12px;padding:18px}.rule-test .panelhead{margin-bottom:15px}
.rule-pill{font-size:10px;font-weight:900;padding:5px 10px;color:#ffc2c2;border:1px solid #c75d69;border-radius:30px}
.rule-result{border-left:4px solid #a94f5f;background:#2b2027;padding:13px;margin-top:10px;border-radius:8px}.rule-result.hit{border-color:#48b981}
.rule-result strong{font-size:12px}.rule-result p{margin-bottom:0}.ok-status{color:#9de0b7}
@media(max-width:950px){.rule-split{grid-template-columns:1fr}}
@media(max-width:550px){.rule-panel{padding:16px}.rule-fields{grid-template-columns:1fr}.rule-fields .full{grid-column:auto}.rule-toolbar label{min-width:0;width:100%}.rule-header button{width:100%}}

/* Morning module: editorial prompt and responsive dispatch preview */
.morning-panel{border:1px solid #765447;background:linear-gradient(145deg,#302321,#1e171d)}
.morning-panel h2{font-size:31px}.morning-preview{border:1px solid #7b5150;border-radius:14px;padding:18px;background:radial-gradient(circle at right top,#6f393622,transparent 65%),#201a1e;min-height:110px}
.morning-preview strong{color:#ffcd9f;font-size:13px}.morning-preview p{color:#fff3e7;line-height:1.65;white-space:pre-wrap}
.morning-panel #mgDays label{min-width:56px;justify-content:center}.morning-panel button:disabled{opacity:.55;cursor:not-allowed}

/* R008 Live control – responsive and keyboard accessible */
.rule-live-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 18px;border-radius:14px;background:rgba(215,47,58,.08);border:1px solid rgba(235,91,95,.3);margin:14px 0}
.rule-live-switch{display:flex;align-items:center;gap:14px;cursor:pointer;max-width:100%;font-weight:normal}
.rule-live-switch input{width:23px;height:23px;accent-color:#ef3548;flex-shrink:0}
.rule-live-switch span{display:grid;gap:3px}
.rule-live-switch small{color:#aab0bc;font-size:.8rem;line-height:1.35}
#ruleLogs{max-height:340px;overflow:auto}
@media(max-width:560px){.rule-live-controls{padding:12px}.rule-live-switch{align-items:flex-start}}

/* R009 retrospective chat import */
.chat-import-panel{margin:26px 0;border-color:#745361;background:linear-gradient(145deg,#2c1d27,#1e1920)}
.chat-import-panel h2{font-size:34px}.chat-import-panel form{margin:16px 0}.chat-import-panel .adminitem{align-items:flex-start}
.chat-import-panel .adminitem .import-stats{margin-top:6px;line-height:1.6;color:#c6b2b7;font-size:12px}
.chat-author-mapping{border-top:1px solid #63404b;padding-top:18px;margin-top:20px}
.chat-import-panel input[type=file]{width:100%;max-width:100%;font-size:12px}
@media(max-width:650px){.chat-import-panel{padding:16px}.chat-import-panel .panelhead{display:block}.chat-import-panel h2{font-size:28px}}

/* R011: responsive portrait studio, with live in-browser crop preview */
.photo-studio{margin:28px 0;padding:20px;border:1px solid #71414d;border-radius:16px;background:linear-gradient(145deg,#30202a,#1d1921)}
.photo-studio h2{font-size:32px;margin:6px 0}.photo-studio .panelhead{align-items:center}
.photo-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,345px);gap:30px;margin-top:22px}
.photo-fields{display:flex;flex-direction:column;gap:18px;min-width:0}
.photo-fields label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#f0dfd9}
.photo-fields input[type=file],.photo-fields select{max-width:100%;width:100%}
.photo-fields input[type=range]{accent-color:#f3494d;width:100%;min-height:24px}
.photo-fields output{font-weight:800;color:#ffbe95;float:right}
.photo-fields button:disabled{opacity:.4;cursor:not-allowed}
.photo-viewer{display:flex;flex-direction:column;gap:10px;min-width:0}
#photoPreview{width:min(100%,320px);height:auto;aspect-ratio:1;border:2px solid #ba555e;border-radius:16px;background:repeating-linear-gradient(45deg,#29242a,#29242a 12px,#373038 12px,#373038 24px);box-shadow:0 14px 35px #0005}
.photo-current{display:flex;align-items:center;gap:13px;background:#211920;border:1px solid #49363e;border-radius:12px;padding:10px}
#photoCurrentImage{height:64px;width:64px;object-fit:cover;border-radius:50%;border:2px solid #e65e62}
.photo-viewer details{border:1px solid #54404b;border-radius:10px;padding:12px}
.photo-viewer summary{cursor:pointer}
@media(max-width:730px){.photo-layout{grid-template-columns:1fr;gap:20px}.photo-studio{padding:15px}.photo-studio h2{font-size:26px}}

/* R013 – Calendar region/interval filters and accessible event details */
.event-filter-panel{display:grid;grid-template-columns:minmax(140px,1.3fr) minmax(115px,1fr) minmax(115px,1fr);gap:10px;align-items:end;margin:0 0 11px}
.filter-control{margin:0;min-width:0;gap:6px}.filter-control span{color:#edb6af;font-size:10px;font-weight:900;letter-spacing:.12em}
.public-page .filter-control select,.public-page .filter-control input{height:43px;padding:8px;background:#171217;color:#ffe9e1;border:1px solid #6d4551;border-radius:8px;font-size:12px;min-width:0;max-width:100%}
.public-page .filter-control input::-webkit-calendar-picker-indicator{filter:invert(1)}
.public-page .reset-filters{grid-column:1/-1;justify-self:start;border:1px solid #71444e;background:#33252b;color:#ffd0ca;font-size:10px;font-weight:800;letter-spacing:.05em;padding:9px 13px;border-radius:7px}
.public-page .reset-filters:hover{background:#52303b}.filter-summary{font-size:11px;line-height:1.6;color:#d8b7b5;margin:0 0 16px}
.event-region{color:#f2a38d;font-size:10px;font-weight:700}.event-card:focus-visible{outline-color:#ffd29c}
@media(max-width:520px){.event-filter-panel{grid-template-columns:1fr 1fr}.filter-control:first-child{grid-column:1/-1}.public-page .filter-control select,.public-page .filter-control input{width:100%}}
@media(prefers-reduced-motion:reduce){.event-dialog{animation:none}.event-card,.calendar-day{transition:none}}
/* R014 Sticker Studio Pro */
.sticker-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,360px);gap:1.35rem;align-items:start;margin:1.25rem 0}
.sticker-fields{display:grid;gap:.85rem;min-width:0}
.sticker-fields label{display:grid;gap:.35rem}
.sticker-fields output{font-variant-numeric:tabular-nums}
.sticker-preview{display:grid;justify-items:center;gap:.5rem;border-radius:18px;padding:1rem;background:repeating-conic-gradient(#363039 0% 25%,#504650 0% 50%) 50% / 30px 30px}
.sticker-preview canvas{width:100%;max-width:320px;height:auto;border-radius:16px;box-shadow:0 9px 24px #0006}
.sticker-preview p{padding:.6rem;background:#1b1a1edb;border-radius:10px}
.sticker-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem;margin:1rem 0}
.sticker-tile{display:grid;gap:.5rem;border:1px solid #ffffff25;padding:.7rem;border-radius:15px;min-width:0;background:#16161b}
.sticker-tile img{width:100%;aspect-ratio:1;object-fit:contain;background:repeating-conic-gradient(#333 0% 25%,#444 0% 50%) 50% / 24px 24px;border-radius:10px}
.sticker-tile strong,.sticker-tile small{overflow-wrap:anywhere}
.sticker-tile button,.sticker-tile a{font-size:.8rem;padding:.55rem}
.sticker-pack-entry{padding:1rem;border:1px solid #ffffff25;border-radius:14px;margin:.7rem 0;display:grid;gap:.6rem}
.sticker-pack-entry select{max-width:100%}
@media(max-width:740px){.sticker-layout{grid-template-columns:1fr}.sticker-preview{max-width:100%}.sticker-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* R015: Gruppen-Zentrale (one panel per group, all switches in one place) */
.group-hub{margin:26px 0;border-color:#8a4a55;background:linear-gradient(150deg,#2a1b22,#1d161c)}
.group-hub .hub-head{align-items:start;gap:18px;flex-wrap:wrap}
.group-hub .hub-head h2{font-size:clamp(28px,3.2vw,40px);margin:8px 0 10px}
.hub-headactions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hub-live{display:flex;align-items:center;gap:10px;margin:0;background:#33212a;border:1px solid #7c3d49;border-radius:30px;padding:9px 15px;font-size:12px;font-weight:700;cursor:pointer}
.hub-live input{width:20px;height:20px;accent-color:#ef4650}
.hub-summary{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:18px 0}
.hub-chip{display:flex;align-items:baseline;gap:8px;background:#311f28;border:1px solid #66414c;border-radius:9px;padding:9px 13px}
.hub-chip strong{font:900 22px 'Barlow Condensed';color:#fff3ea}
.hub-chip span{font-size:11px;color:#c8b3ba}
.hub-chip.zero{opacity:.5}
.hub-livehint{flex:1 1 100%;margin:2px 0 0;font-size:11px;font-weight:700}
.hub-livehint.on{color:#9de0b7}.hub-livehint.offs{color:#d9b08a}
.hub-toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:6px 0 18px}
.hub-search{flex:1 1 260px;max-width:420px;margin:0}
.hub-search span{font-size:11px;font-weight:800;letter-spacing:.06em;color:#f0c2b6}
.hub-showall{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;color:#e8cfd2}
.hub-showall input{width:18px;height:18px;accent-color:#ef4650}
#hubCount{white-space:nowrap}
.hub-groups{display:grid;gap:13px}
.hub-group{border:1px solid #66424c;border-radius:13px;background:#2a1d24;padding:15px 16px;transition:opacity .2s,border-color .2s}
.hub-group.off{border-color:#4a343c;background:#251b21}
.hub-group.off .hub-group-name strong{color:#c9b6bd}
.hub-group-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.hub-group-name{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.hub-group-name strong{font-size:15px;color:#fff5ee;overflow-wrap:anywhere}
.hub-status{font-size:10px;font-weight:900;letter-spacing:.05em;border-radius:30px;padding:3px 9px;text-transform:uppercase}
.hub-status.on{color:#b7f6d1;background:#153628;border:1px solid #3f996c}
.hub-status.offs{color:#e4c0ad;background:#33232a;border:1px solid #6d4a51}
.hub-badge{font-size:10px;color:#cbb2b9;border:1px solid #5b404a;border-radius:30px;padding:3px 9px}
.hub-master{display:flex;align-items:center;gap:9px;margin:0;background:#3a232c;border:1px solid #8a4753;border-radius:30px;padding:8px 14px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.hub-master input{width:20px;height:20px;accent-color:#ef4650}
.hub-caps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.hub-capgroup{min-width:0}
.hub-capgroup-title{display:block;font-size:10px;letter-spacing:.12em;font-weight:900;color:#d59aa0;margin-bottom:7px}
.hub-caprow{display:flex;flex-wrap:wrap;gap:7px}
.hub-cap{display:flex;align-items:center;gap:8px;margin:0;background:#36242c;border:1px solid #5a3f49;border-radius:9px;padding:8px 10px;font-size:12px;line-height:1.2;cursor:pointer;flex:1 1 auto;min-width:0}
.hub-cap:hover{border-color:#9c5661}
.hub-cap:has(input:checked){background:#42262c;border-color:#c1595f}
.hub-cap input{width:19px;height:19px;accent-color:#ef4650;flex-shrink:0}
.hub-cap-icon{font-size:14px;line-height:1}
.hub-cap-label{overflow-wrap:anywhere}
.hub-more{margin-top:13px;border-top:1px solid #513842;padding-top:11px}
.hub-more>summary{cursor:pointer;font-size:12px;font-weight:800;color:#f3b3a8;padding:5px 0}
.hub-more>summary:hover{color:#ffd2c9}
.hub-welcome{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:14px 0 6px}
.hub-welcome-label{flex:1 1 320px;margin:0}
.hub-welcome-label span{font-size:11px;font-weight:800;letter-spacing:.05em;color:#e7c3b8}
.hub-relays{margin-top:10px}
.hub-relays h4{font:900 16px 'Barlow Condensed';letter-spacing:.02em;margin:18px 0 9px;color:#ffe3d8}
.hub-relay{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid #5d3f49;border-left:4px solid #cf5c63;border-radius:9px;background:#31222a;padding:10px 12px;margin-bottom:8px}
.hub-relay.off{border-left-color:#6d5560;opacity:.65}
.hub-relay-main{min-width:0;display:flex;flex-direction:column;gap:3px;flex:1 1 260px}
.hub-relay-main strong{font-size:13px;color:#fff3ea;overflow-wrap:anywhere}
.hub-relay-route{font-size:11px;font-weight:800;color:#ffb48f}
.hub-relay-filter{font-size:11px;color:#c6b0b7;overflow-wrap:anywhere}
.hub-relay-actions{display:flex;gap:6px;flex-wrap:wrap}
.hub-btn-small{padding:7px 11px!important;font-size:11px!important}
.hub-inbound{margin:0;padding-left:18px;display:grid;gap:5px;font-size:12px}
.hub-inbound strong{color:#ffcfae}
.hub-addrelay{margin-top:6px}
.hub-footnote{margin-top:16px;border-top:1px solid #4f3842;padding-top:12px}
.hub-dialog{width:min(820px,calc(100vw - 26px));max-height:92vh;overflow-y:auto;border:1px solid #b15a66;border-radius:15px;padding:24px;background:#24181f;color:white}
.hub-dialog::backdrop{background:#080507dc;backdrop-filter:blur(6px)}
.hub-dialog h2{font:900 30px 'Barlow Condensed';margin:6px 0}
.hub-dialog .close{float:right;font-size:29px}
.hub-dialog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 16px;align-items:end}
.hub-dialog-grid .full{grid-column:1/-1}
.hub-dialog-grid label{margin:0}
.hub-inline{display:flex;align-items:center;gap:9px;margin:0;font-size:12px}
.hub-inline input{width:19px;height:19px;accent-color:#ef4650}
.hub-filters{margin-top:16px;border-top:1px solid #5a3f49;padding-top:6px}
.hub-filters[hidden]{display:none}
.hub-filters .rule-subhead{margin-top:12px}
.hub-advanced{margin-top:14px;border:1px solid #513842;border-radius:9px;padding:10px 12px;background:#2b1e25}
.hub-advanced>summary{cursor:pointer;font-size:12px;font-weight:800;color:#f3b3a8}
.hub-advanced .hub-dialog-grid{margin-top:12px}
@media(max-width:1120px){.hub-caps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.hub-caps{grid-template-columns:1fr}.hub-dialog-grid{grid-template-columns:1fr}.hub-group-head{align-items:flex-start}.hub-master{width:100%;justify-content:center}}

/* R015: KI-Konfiguration direkt in der Gruppen-Zentrale */
.group-hub #ai-settings{margin:24px 0 0;background:#2b1e25;border-color:#7b4a57;border-radius:12px}
.group-hub #ai-settings h2{font-size:26px}

/* R015: Verlaufs-Scan pro Gruppe */
.hub-scan{margin:16px 0 4px;border:1px solid #574049;border-radius:10px;background:#2f2129;padding:12px 13px}
.hub-scan-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.hub-scan-head h4{font:900 16px 'Barlow Condensed';margin:0;color:#ffe3d8}
.hub-scan-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:10px 0 6px}
.hub-scan-controls select{width:auto;min-width:170px;padding:8px 10px}
.hub-scan-controls button[disabled]{opacity:.5;cursor:not-allowed}
.hub-scan-status{display:block;font-size:11px;color:#c9b2b9}
.hub-scan-status.error{color:#ff9a98}

/* R015: kompakte Tabellen-Ansicht der Gruppen-Zentrale */
.hub-table-wrap{overflow:auto;border:1px solid #5a3f49;border-radius:12px;background:#241a20;max-height:72vh}
.hub-table{width:100%;border-collapse:collapse;font-size:12px;min-width:940px}
.hub-table th{position:sticky;top:0;z-index:2;background:#33202a;color:#f3c4b6;font-size:11px;font-weight:900;letter-spacing:.03em;text-align:center;padding:10px 8px;border-bottom:1px solid #5a3f49;white-space:nowrap}
.hub-table th:first-child{text-align:left;min-width:230px}
.hub-table td{border-bottom:1px solid #3f2d36;padding:7px 8px;vertical-align:middle;text-align:center}
.hub-table tr:hover>td{background:#2e2028}
.hub-row.off>td{opacity:.62}
.hub-namecell{text-align:left!important}
.hub-namewrap{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.hub-namewrap strong{font-size:12px;color:#fff3ea;overflow-wrap:anywhere}
.hub-relaycount{font-size:10px;font-weight:800;color:#ffb48f;border:1px solid #7b4a3f;border-radius:20px;padding:1px 6px;white-space:nowrap}
.hub-hiddenbadge{font-size:9px;font-weight:900;color:#c9b6bd;border:1px solid #5b404a;border-radius:20px;padding:1px 6px;text-transform:uppercase;white-space:nowrap}
.hub-scan-seen{font-size:10px;color:#9fd6b4;white-space:nowrap}
.hub-tiny{display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer}
.hub-tiny input{width:19px;height:19px;accent-color:#ef4650;margin:0}
.hub-toolcell{white-space:nowrap}
.hub-toolcell .hub-btn-small{margin-left:4px}
.hub-expand{min-width:66px}
.hub-detail-row>td{background:#1f161c;padding:0!important}
.hub-detail-inner{padding:14px 16px;border-bottom:1px solid #4a343d}
@media(max-width:760px){.hub-table-wrap{max-height:none}.hub-table{min-width:820px}.hub-toolcell .hub-hide{display:none}}

/* R015: Scan-Center, Datenbank-Ansicht und Demo-Schalter */
.scan-center{margin:22px 0 18px;border:1px solid #7b4a57;border-radius:13px;background:linear-gradient(150deg,#2c1d24,#20171d);padding:16px 17px}
.scan-center-head{align-items:flex-start;gap:14px;flex-wrap:wrap}
.scan-center-head h3{font:900 24px 'Barlow Condensed';margin:5px 0 6px;color:#fff1e6}
.scan-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.scan-controls select{width:auto;min-width:180px;padding:9px 10px}
.scan-live{margin:13px 0;border:1px solid #593f49;border-radius:10px;background:#241a20;padding:12px 13px}
.scan-live-text{display:flex;flex-direction:column;gap:3px}
.scan-live-text strong{font-size:13px;color:#ffe6da}
.scan-bar{display:grid;gap:8px}
.scan-progress{height:8px;border-radius:30px;background:#3a2730;overflow:hidden}
.scan-progress-fill{height:100%;background:linear-gradient(90deg,#ef4650,#ffb073);transition:width .4s}
.scan-queue{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.scan-queue-item{font-size:10px;color:#dbc2c8;border:1px solid #5b404a;border-radius:20px;padding:2px 8px}
.scan-error{color:#ff9a98;font-size:11px}
.scan-report-label{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;font-size:12px}
.scan-report-label select{width:auto;min-width:220px}
.scan-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.scan-box{border:1px solid #543b45;border-radius:10px;background:#221820;padding:11px 12px;min-width:0}
.scan-box h4{font:900 15px 'Barlow Condensed';margin:0 0 8px;color:#ffd9c8}
.scan-list{display:grid;gap:6px;max-height:280px;overflow:auto}
.scan-log-item{display:grid;gap:2px;border-left:3px solid #4aa97a;background:#2a1f26;border-radius:7px;padding:7px 9px}
.scan-log-item.failed{border-left-color:#d24a55}
.scan-log-item strong{font-size:12px;color:#fff0e6}
.scan-time{font-size:10px;color:#9e8b92}
.scan-event{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;border:1px solid #4f3943;border-radius:8px;padding:7px 9px;background:#2a1f26}
.scan-event-main{display:grid;gap:1px;min-width:0}
.scan-event-main strong{font-size:12px;color:#fff1e6;overflow-wrap:anywhere}
.scan-event-badge{font-size:9px;font-weight:900;border-radius:20px;padding:2px 7px;white-space:nowrap;text-transform:uppercase}
.scan-event-badge.pending{color:#ffcf8a;border:1px solid #8a6a3c}
.scan-event-badge.approved{color:#a6e8bf;border:1px solid #3f996c}
.scan-event-badge.rejected{color:#ffa9a9;border:1px solid #8a3c46}
.review-demo{margin:8px 0 0;font-size:12px}
.reviewthumbs{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.reviewthumbs img{width:66px;height:66px;object-fit:cover;border-radius:7px;border:1px solid #6a4650}
.reviewactions{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
@media(max-width:900px){.scan-grid{grid-template-columns:1fr}}

/* R015: klare Admin-Navigation */
.status-strip{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 0}
.status-pill{font-size:11px;font-weight:800;border-radius:30px;padding:6px 12px;border:1px solid #5b404a;color:#d9c2c8;background:#2a1d24}
.status-pill.ok{border-color:#3f996c;color:#a9e8c0;background:#153628}
.status-pill.bad{border-color:#8a3c46;color:#ffa9a9;background:#331d22}
.status-pill.warn{border-color:#8a6a3c;color:#ffcf8a;background:#2f2718}
.status-pill.live{border-color:#c1595f;color:#ffc2b8;background:#3a2329}
.admin-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 20px;border-bottom:1px solid #4a343d;padding-bottom:12px;position:sticky;top:0;background:#130e12f2;backdrop-filter:blur(6px);z-index:20}
.admin-tab{background:#2b1e25!important;border:1px solid #5b404a!important;border-radius:30px!important;padding:9px 14px!important;font-size:12px!important;font-weight:800!important;color:#e3cdd3!important}
.admin-tab.active{background:#ef4650!important;border-color:#ef4650!important;color:#fff!important}
.tabpanel{display:grid;gap:16px;min-width:0}
.tabpanel[hidden]{display:none}
.dashboard{display:grid;gap:14px;margin-bottom:4px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.kpi{border:1px solid #5b404a;border-radius:12px;background:#2a1d24;padding:12px 14px;display:grid;gap:2px}
.kpi strong{font:900 30px/1 'Barlow Condensed';color:#fff2e7;overflow-wrap:anywhere}
.kpi span{font-size:11px;color:#cbb3ba}
.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.quick-card{display:grid;gap:4px;text-align:left;background:#31222a!important;border:1px solid #7c4a55!important;border-radius:11px!important;padding:13px 14px!important}
.quick-card strong{font-size:13px;color:#ffe8dd}
.quick-card span{color:#bda9b0}
.quick-card:hover{border-color:#c1595f!important}
@media(max-width:900px){.kpi-grid,.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.kpi-grid,.quick-grid{grid-template-columns:1fr}}

/* R015: Hero zeigt immer das Plakat des nächsten Termins */
.featured-flyer.no-image{background:radial-gradient(circle at 30% 20%,#7a2833,#3d1620 65%,#2a121a);display:grid;place-items:center;padding:24px}
.featured-flyer.no-image::before{content:attr(data-title);font:900 30px/1 'Barlow Condensed';letter-spacing:.02em;color:#ffe9dc;text-align:center;text-transform:uppercase}
.featured-flyer.no-image img{display:none}

/* R015: vereinfachte Weiterleitungen (mehrere Ziele, Presets, Wort-Chips) */
.relay-dialog{width:min(760px,calc(100vw - 24px))}
.relay-step{margin:16px 0;padding:14px;border:1px solid #5a3f49;border-radius:12px;background:#2b1e25}
.relay-step h3{font:900 18px 'Barlow Condensed';margin:0 0 4px;color:#ffe1d4}
.relay-step>p{margin:0 0 10px}
.relay-name{margin:0}
.relay-targets{display:grid;gap:6px;max-height:220px;overflow:auto;margin-top:9px;grid-template-columns:repeat(2,minmax(0,1fr))}
.relay-target{display:flex;align-items:center;gap:9px;margin:0;padding:8px 10px;border:1px solid #5a3f49;border-radius:8px;background:#36242c;font-size:12px;cursor:pointer}
.relay-target:has(input:checked){border-color:#c1595f;background:#42262c}
.relay-target input{width:18px;height:18px;accent-color:#ef4650;flex-shrink:0}
.relay-target span{overflow-wrap:anywhere}
.relay-presets{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.relay-presets label{display:flex;align-items:center;gap:8px;margin:0;padding:9px 12px;border:1px solid #5a3f49;border-radius:30px;background:#36242c;font-size:12px;cursor:pointer}
.relay-presets label:has(input:checked){border-color:#ef4650;background:#43252b}
.relay-presets input{width:17px;height:17px;accent-color:#ef4650}
.relay-words{margin:10px 0}
.relay-chipinput{display:flex;gap:8px}
.relay-chipinput input{flex:1}
.relay-chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.relay-chip{display:inline-flex;align-items:center;gap:6px;background:#43262c;border:1px solid #a1515a;border-radius:30px;padding:5px 11px;font-size:12px;color:#ffe8de}
.relay-chip-x{border:0!important;background:none!important;padding:0 2px!important;font-size:15px!important;line-height:1;color:#ffb0a5!important;cursor:pointer}
.relay-suggestions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.relay-suggest{font-size:11px!important;padding:5px 10px!important;border-radius:20px!important;background:#33242b!important;border:1px solid #5a3f49!important;color:#e2c9cf!important}
.relay-suggest:hover{border-color:#c1595f!important}
.relay-advanced{margin:14px 0;border:1px solid #513842;border-radius:10px;padding:10px 12px;background:#2b1e25}
.relay-advanced>summary{cursor:pointer;font-size:12px;font-weight:800;color:#f3b3a8}
.relay-advanced .hub-dialog-grid{margin-top:12px}

/* R015: Weiterleitungs-Verwaltung vor dem Expertenlabor */
.relay-panel{margin-bottom:16px;border-color:#8a4a55;background:linear-gradient(150deg,#2a1b22,#1d161c)}
.relay-panel h2{font-size:clamp(24px,2.6vw,32px)}
.expert-details{border:1px solid #4f3943;border-radius:12px;background:#221820;padding:10px 14px}
.expert-details>summary{cursor:pointer;font-size:12px;font-weight:800;color:#d9b3ba;padding:6px 0}
.expert-details[open]>summary{color:#ffc9bd;margin-bottom:8px}
.expert-details>.rule-panel{margin:0;border:0;background:transparent;padding:0}
.hub-auto-tag{font-size:10px;font-weight:900;color:#a9e8c0;border:1px solid #3f996c;background:#153628;border-radius:20px;padding:2px 8px;width:max-content}
.relay-auto{margin-top:10px;background:#1f3329;border:1px solid #3f996c;border-radius:9px;padding:9px 11px}
