/* Academy Hub – cookie banner and consent centre (1.2.0). Everything lives in #aepc-root and resets the theme's styles. */
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),url('fonts/inter-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'),url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}

html.aepc-lock,html.aepc-lock body{overflow:hidden !important;}

#aepc-root,#aepc-root *:not(path){all:revert;box-sizing:border-box;}
#aepc-root{--r:#C8102E;--rd:#A50D26;--ink:#1D1A18;--soft:#5D5954;--line:#E7E3DD;--bg:#F7F5F2;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:15px;line-height:1.55;color:var(--ink);-webkit-font-smoothing:antialiased;}
#aepc-root [hidden]{display:none !important;}
#aepc-root svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;display:block;}
#aepc-root a{color:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}
#aepc-root a:hover{color:var(--r);}
#aepc-root :focus-visible{outline:3px solid rgba(200,16,46,.45);outline-offset:2px;}

/* buttons: "Nur notwendige" and "Alle akzeptieren" always look the same */
#aepc-root .aepc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;margin:0;border-radius:10px;border:1.5px solid var(--r);
  font:inherit;font-size:15px;font-weight:650;line-height:1.2;text-align:center;cursor:pointer;white-space:nowrap;transition:background-color .15s,border-color .15s,color .15s;}
#aepc-root .aepc-solid{background:var(--r);color:#fff;}
#aepc-root .aepc-solid:hover{background:var(--rd);border-color:var(--rd);}
#aepc-root .aepc-ghost{background:#fff;color:var(--ink);border-color:#CFC8BD;}
#aepc-root .aepc-ghost:hover{border-color:var(--ink);}

/* banner */
#aepc-root .aepc-banner{position:fixed;z-index:2147483000;left:16px;right:16px;bottom:16px;max-width:1120px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:18px;
  box-shadow:0 18px 50px rgba(29,26,24,.18),0 2px 6px rgba(29,26,24,.06);display:block;animation:aepc-up .28s ease-out;}
@keyframes aepc-up{from{transform:translateY(16px);opacity:0;}to{transform:none;opacity:1;}}
#aepc-root .aepc-b-in{display:flex;align-items:center;gap:28px;padding:22px 26px;}
#aepc-root .aepc-b-text{flex:1;min-width:0;}
#aepc-root .aepc-b-h{margin:0 0 4px;font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--ink);line-height:1.3;}
#aepc-root .aepc-b-p{margin:0;font-size:14px;color:var(--soft);}
#aepc-root .aepc-links{display:flex;flex-wrap:wrap;gap:4px 18px;margin:8px 0 0;font-size:13px;color:var(--soft);}
#aepc-root .aepc-b-btns{display:flex;gap:10px;flex:none;}

/* consent centre */
#aepc-root .aepc-overlay{position:fixed;z-index:2147483001;inset:0;background:rgba(29,26,24,.55);display:flex;align-items:center;justify-content:center;padding:24px;animation:aepc-fade .2s ease-out;}
@keyframes aepc-fade{from{opacity:0;}to{opacity:1;}}
#aepc-root .aepc-dialog{width:100%;max-width:680px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);background:#fff;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.3);display:flex;flex-direction:column;overflow:hidden;outline:none;}
#aepc-root .aepc-d-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 16px 26px;border-bottom:1px solid var(--line);flex:none;}
#aepc-root .aepc-logo{font-weight:800;font-size:22px;letter-spacing:-.02em;color:var(--r);}
#aepc-root .aepc-x{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--ink);cursor:pointer;}
#aepc-root .aepc-x:hover{background:var(--bg);}
#aepc-root .aepc-d-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 26px 8px;}
#aepc-root .aepc-d-body h2{margin:0 0 10px;font-size:21px;font-weight:750;letter-spacing:-.015em;line-height:1.25;color:var(--ink);}
#aepc-root .aepc-d-body h3{margin:24px 0 12px;font-size:17px;font-weight:700;color:var(--ink);line-height:1.3;}
#aepc-root .aepc-intro{margin:0 0 8px;font-size:14px;color:var(--soft);}
#aepc-root .aepc-more{display:inline-block;font-size:14px;font-weight:600;}
#aepc-root .aepc-d-foot{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;padding:16px 26px;border-top:1px solid var(--line);background:#fff;flex:none;}
#aepc-root .aepc-d-foot.aepc-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
#aepc-root .aepc-d-foot .aepc-btn{flex:1 1 auto;padding:6px 12px;white-space:normal;font-size:14.5px;}

#aepc-root .aepc-cat{display:block;border:1px solid var(--line);border-radius:12px;margin:0 0 10px;background:#fff;overflow:hidden;}
#aepc-root .aepc-cat-h{display:flex;align-items:center;gap:12px;padding:6px 14px 6px 6px;}
#aepc-root .aepc-cat-t{flex:1;min-width:0;display:flex;align-items:center;gap:8px;min-height:46px;margin:0;padding:6px 8px;border:0;border-radius:8px;background:transparent;
  font:inherit;font-size:15px;font-weight:650;color:var(--ink);text-align:left;cursor:pointer;}
#aepc-root .aepc-cat-t:hover{background:var(--bg);}
#aepc-root .aepc-chev{width:18px;height:18px;transition:transform .18s;color:var(--soft);}
#aepc-root .aepc-cat-t[aria-expanded="true"] .aepc-chev{transform:rotate(90deg);}
#aepc-root .aepc-always{font-size:13px;font-weight:700;color:var(--r);white-space:nowrap;}
#aepc-root .aepc-cat-b{display:block;padding:2px 18px 16px 40px;font-size:14px;color:var(--soft);}
#aepc-root .aepc-cat-b p{margin:0 0 8px;}
#aepc-root .aepc-det-t{display:inline-flex;margin:0;padding:4px 0;border:0;background:transparent;font:inherit;font-size:13.5px;font-weight:650;color:var(--r);cursor:pointer;text-decoration:underline;text-underline-offset:2px;}
#aepc-root .aepc-det{display:grid;gap:8px;margin-top:8px;}
#aepc-root .aepc-ck{display:block;background:var(--bg);border-radius:10px;padding:10px 14px;}
#aepc-root .aepc-ck-n{margin:0 0 4px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;font-weight:600;color:var(--ink);word-break:break-word;}
#aepc-root .aepc-ck dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:2px 12px;margin:0;font-size:13px;}
#aepc-root .aepc-ck dt{color:var(--soft);font-weight:500;}
#aepc-root .aepc-ck dd{margin:0;color:var(--ink);}

/* switch */
#aepc-root .aepc-sw{position:relative;display:inline-flex;flex:none;width:46px;height:28px;cursor:pointer;}
#aepc-root .aepc-sw-i{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1;}
#aepc-root .aepc-sw-t{position:absolute;inset:0;border-radius:999px;background:#CFC8BD;transition:background-color .18s;}
#aepc-root .aepc-sw-t::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .18s;}
#aepc-root .aepc-sw-i:checked + .aepc-sw-t{background:var(--r);}
#aepc-root .aepc-sw-i:checked + .aepc-sw-t::after{transform:translateX(18px);}
#aepc-root .aepc-sw-i:focus-visible + .aepc-sw-t{outline:3px solid rgba(200,16,46,.45);outline-offset:2px;}

/* floating button to change or withdraw consent */
#aepc-root .aepc-fab{position:fixed;z-index:2147482999;left:16px;bottom:16px;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;
  border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--r);box-shadow:0 6px 18px rgba(29,26,24,.16);cursor:pointer;transition:transform .15s;}
#aepc-root .aepc-fab:hover{transform:scale(1.06);}
#aepc-root .aepc-fab svg{width:22px;height:22px;}

@media (max-width:860px){
  #aepc-root .aepc-b-in{flex-direction:column;align-items:stretch;gap:16px;padding:20px;}
  #aepc-root .aepc-b-btns{flex-wrap:wrap;}
  #aepc-root .aepc-b-btns .aepc-btn{flex:1 1 auto;}
}
@media (max-width:560px){
  #aepc-root .aepc-banner{left:0;right:0;bottom:0;border-radius:18px 18px 0 0;border-width:1px 0 0;padding-bottom:env(safe-area-inset-bottom);}
  #aepc-root .aepc-b-btns{flex-direction:column-reverse;}
  #aepc-root .aepc-b-btns .aepc-btn{width:100%;}
  #aepc-root .aepc-b-p{font-size:13.5px;}
  #aepc-root .aepc-overlay{padding:0;align-items:flex-end;}
  #aepc-root .aepc-dialog{max-width:none;max-height:92vh;max-height:92dvh;border-radius:18px 18px 0 0;}
  #aepc-root .aepc-d-head{padding:12px 12px 12px 20px;}
  #aepc-root .aepc-d-body{padding:18px 20px 6px;}
  #aepc-root .aepc-d-foot.aepc-3{display:flex;}
  #aepc-root .aepc-d-foot{flex-direction:column-reverse;padding:12px 20px calc(12px + env(safe-area-inset-bottom));}
  #aepc-root .aepc-d-foot{gap:8px;}
  #aepc-root .aepc-d-foot .aepc-btn{width:100%;min-height:44px;}
  #aepc-root .aepc-cat-b{padding-left:18px;}
  #aepc-root .aepc-ck dl{grid-template-columns:1fr;}
  #aepc-root .aepc-ck dt{margin-top:4px;}
}
@media (prefers-reduced-motion:reduce){#aepc-root *{animation:none !important;transition:none !important;}}
