/* ==========================================================================
   AdditiveTalk – seitliche Navigation
   Desktop ab 1101 px: feste Sidebar, einklappbar
   Darunter: Kopfleiste + Drawer von links
   ========================================================================== */

:root{
  --at-sb-w:272px;
  --at-sb-mini:80px;
  --at-top-h:64px;
  --at-admin:0px;
  --at-ease:cubic-bezier(.22,.8,.26,1);
  --at-dur:.32s;
}
body.admin-bar{--at-admin:32px;}
@media(max-width:782px){body.admin-bar{--at-admin:46px;}}
@media(max-width:600px){body.admin-bar{--at-admin:0px;}}

/* GeneratePress-Kopfzeile und -Navigation ersetzen */
.site-header,
#site-navigation,
#mobile-header,
.main-navigation.mobile-header-navigation,
#sticky-placeholder{display:none!important;}

.at-navside,.at-navside *,.at-topbar,.at-topbar *,.at-tip{box-sizing:border-box;}

.at-ico{width:20px;height:20px;display:block;flex-shrink:0;}
.at-ico--brand{width:18px;height:18px;}

/* ---------- Sidebar (gemeinsame Basis) ---------- */
.at-navside{
  position:fixed;
  left:0;
  top:var(--at-admin);
  z-index:10040;
  display:flex;
  flex-direction:column;
  width:var(--at-sb-w);
  height:calc(100vh - var(--at-admin));
  height:calc(100dvh - var(--at-admin));
  background:var(--k3d-white);
  border-right:1px solid var(--k3d-border);
  color:var(--k3d-text);
  font-size:15px;
  line-height:1.35;
}

.at-sidebar__head{
  position:relative;
  display:flex;
  align-items:center;
  min-height:84px;
  padding:18px 22px;
  border-bottom:1px solid var(--k3d-border);
  flex-shrink:0;
}

.at-nav-brand{display:flex;align-items:center;text-decoration:none!important;color:var(--k3d-text)!important;}
.at-nav-brand__logo{display:block;width:auto;height:42px;max-width:200px;object-fit:contain;object-position:left center;}
.at-nav-brand__text{font-weight:800;font-size:19px;letter-spacing:-.01em;}
.at-nav-brand__mark{display:none;width:40px;height:40px;border-radius:11px;object-fit:cover;}
.at-nav-brand__mark--text{align-items:center;justify-content:center;background:var(--k3d-text);color:var(--k3d-yellow);font-weight:800;font-size:18px;}

.at-sidebar__close{display:none;}

.at-sidebar__nav{
  flex:1 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  padding:16px 14px 10px;
  scrollbar-width:thin;
  scrollbar-color:var(--k3d-border) transparent;
}

.at-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px;}
.at-menu__item{margin:0;padding:0;position:relative;}
.at-menu__row{display:flex;align-items:center;position:relative;}

.at-menu__link{
  position:relative;
  display:flex;
  align-items:center;
  gap:13px;
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  padding:9px 12px;
  border-radius:10px;
  color:var(--k3d-text)!important;
  text-decoration:none!important;
  font-weight:600;
  font-size:15px;
  transition:background .18s ease,color .18s ease;
}
.at-menu__icon{display:flex;color:var(--k3d-muted);transition:color .18s ease,transform .18s ease;}
.at-menu__label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .2s ease;}
.at-menu__ext{margin-left:auto;font-size:12px;color:var(--k3d-muted);transition:opacity .2s ease;}

.at-menu__link:hover{background:var(--k3d-bg);}
.at-menu__link:hover .at-menu__icon{color:var(--k3d-text);}

.at-menu__item.is-current > .at-menu__row > .at-menu__link,
.at-menu__item.is-ancestor > .at-menu__row > .at-menu__link{
  background:var(--k3d-yellow-soft);
  color:#6f5000!important;
}
.at-menu__item.is-current > .at-menu__row > .at-menu__link .at-menu__icon,
.at-menu__item.is-ancestor > .at-menu__row > .at-menu__link .at-menu__icon{color:#9d7200;}
.at-menu:not(.at-menu--sub) > .at-menu__item.is-current > .at-menu__row::before,
.at-menu:not(.at-menu--sub) > .at-menu__item.is-ancestor > .at-menu__row::before{
  content:"";
  position:absolute;
  left:-14px;
  top:9px;
  bottom:9px;
  width:4px;
  border-radius:0 4px 4px 0;
  background:var(--k3d-yellow);
}

.at-menu__toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  margin-left:2px;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--k3d-muted);
  cursor:pointer;
  flex-shrink:0;
  transition:background .18s ease,color .18s ease;
}
.at-menu__toggle:hover{background:var(--k3d-bg);color:var(--k3d-text);}
.at-menu__toggle .at-ico{width:18px;height:18px;transition:transform var(--at-dur) var(--at-ease);}
.at-menu__item.is-open > .at-menu__row > .at-menu__toggle .at-ico{transform:rotate(180deg);}

.at-menu__subwrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--at-dur) var(--at-ease);}
.at-menu__item.is-open > .at-menu__subwrap{grid-template-rows:1fr;}
.at-menu__subinner{overflow:hidden;min-height:0;}
.at-menu--sub{padding:4px 0 6px 45px;gap:1px;position:relative;}
.at-menu--sub::before{content:"";position:absolute;left:23px;top:6px;bottom:8px;width:1px;background:var(--k3d-border);}
.at-menu--sub .at-menu__link{min-height:36px;padding:7px 10px;font-size:14px;font-weight:500;color:var(--k3d-muted)!important;}
.at-menu--sub .at-menu__link:hover{color:var(--k3d-text)!important;}
.at-menu--sub .at-menu__item.is-current > .at-menu__row > .at-menu__link{background:transparent;color:var(--k3d-text)!important;font-weight:700;}
.at-menu--sub .at-menu--sub{padding-left:14px;}
.at-menu--sub .at-menu--sub::before{display:none;}

.at-sidebar__heading{
  margin:22px 0 8px!important;
  padding:0 12px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--k3d-muted);
  white-space:nowrap;
  position:relative;
}
.at-sidebar__heading span{transition:opacity .2s ease;}

/* ---------- Fußbereich ---------- */
.at-sidebar__foot{
  flex-shrink:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px 14px 16px;
  border-top:1px solid var(--k3d-border);
}

.at-episode{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px;
  border-radius:14px;
  background:var(--k3d-bg);
  text-decoration:none!important;
  color:var(--k3d-text)!important;
  transition:background .18s ease;
}
.at-episode:hover{background:#efeff0;}
.at-episode__copy{display:flex;flex-direction:column;gap:3px;min-width:0;}
.at-episode__copy small{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#9d7200;}
.at-episode__copy strong{font-size:14px;font-weight:700;line-height:1.35;}
.at-episode__button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  border-radius:9px;
  background:var(--k3d-yellow);
  font-weight:800;
  font-size:14px;
  box-shadow:0 8px 18px rgba(255,184,29,.22);
  transition:background .18s ease,transform .18s ease;
}
.at-episode__button .at-ico{width:15px;height:15px;fill:currentColor;}
.at-episode:hover .at-episode__button{background:var(--k3d-yellow-hover);transform:translateY(-1px);}

.at-cta{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:0 14px;
  border:1px solid var(--k3d-border);
  border-radius:10px;
  color:var(--k3d-text)!important;
  text-decoration:none!important;
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
  transition:border-color .18s ease,background .18s ease;
}
.at-cta .at-ico{width:18px;height:18px;color:var(--k3d-muted);}
.at-cta:hover{border-color:#d5d7da;background:var(--k3d-bg);}

.at-sidebar__bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:2px;}
.at-socials{display:flex;align-items:center;gap:4px;transition:opacity .2s ease;}
.at-socials a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:9px;
  color:var(--k3d-muted)!important;
  transition:background .18s ease,color .18s ease;
}
.at-socials a:hover{background:var(--k3d-bg);color:var(--k3d-text)!important;}

.at-collapse{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  padding:0;
  margin-left:auto;
  border:1px solid var(--k3d-border);
  border-radius:10px;
  background:var(--k3d-white);
  color:var(--k3d-text);
  cursor:pointer;
  flex-shrink:0;
  transition:background .18s ease,border-color .18s ease;
}
.at-collapse:hover{background:var(--k3d-bg);border-color:#d5d7da;}
.at-collapse .at-ico{width:18px;height:18px;transition:transform var(--at-dur) var(--at-ease);}

/* Fokus für Tastaturbedienung */
.at-navside a:focus-visible,
.at-navside button:focus-visible,
.at-topbar a:focus-visible,
.at-topbar button:focus-visible{
  outline:3px solid var(--k3d-yellow-hover);
  outline-offset:2px;
}

/* Tooltip im eingeklappten Zustand */
.at-tip{
  position:fixed;
  z-index:10060;
  left:0;
  top:0;
  padding:7px 11px;
  border-radius:8px;
  background:var(--k3d-text);
  color:#fff;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  pointer-events:none;
  opacity:0;
  transform:translate(-4px,-50%);
  transition:opacity .15s ease,transform .15s ease;
}
.at-tip.is-visible{opacity:1;transform:translate(0,-50%);}

.at-topbar,
.at-backdrop{display:none;}

/* ==========================================================================
   DESKTOP
   ========================================================================== */
@media(min-width:1101px){
  body.at-has-sidebar{
    padding-left:var(--at-sb-w);
    transition:padding-left var(--at-dur) var(--at-ease);
  }
  .at-navside{transition:width var(--at-dur) var(--at-ease);}

  /* ----- eingeklappt ----- */
  html.at-sb-collapsed body.at-has-sidebar{padding-left:var(--at-sb-mini);}
  html.at-sb-collapsed .at-navside{width:var(--at-sb-mini);}

  html.at-sb-collapsed .at-sidebar__head{justify-content:center;padding:18px 10px;}
  html.at-sb-collapsed .at-nav-brand__logo{display:none;}
  html.at-sb-collapsed .at-nav-brand__mark{display:flex;}

  html.at-sb-collapsed .at-sidebar__nav{padding:16px 12px 10px;}
  html.at-sb-collapsed .at-menu__link{justify-content:center;padding:10px 0;gap:0;}
  html.at-sb-collapsed .at-menu__label,
  html.at-sb-collapsed .at-menu__ext,
  html.at-sb-collapsed .at-menu__toggle,
  html.at-sb-collapsed .at-menu__subwrap{display:none;}
  html.at-sb-collapsed .at-menu:not(.at-menu--sub) > .at-menu__item.is-current > .at-menu__row::before,
  html.at-sb-collapsed .at-menu:not(.at-menu--sub) > .at-menu__item.is-ancestor > .at-menu__row::before{left:-12px;}

  html.at-sb-collapsed .at-sidebar__heading{padding:0;height:1px;margin:18px 10px 14px!important;background:var(--k3d-border);}
  html.at-sb-collapsed .at-sidebar__heading span{display:none;}

  html.at-sb-collapsed .at-sidebar__foot{align-items:center;padding:12px 10px 16px;}
  html.at-sb-collapsed .at-episode{padding:0;background:transparent;}
  html.at-sb-collapsed .at-episode__copy{display:none;}
  html.at-sb-collapsed .at-episode__button{width:44px;height:44px;min-height:0;border-radius:12px;}
  html.at-sb-collapsed .at-episode__button span{display:none;}
  html.at-sb-collapsed .at-episode__button .at-ico{width:17px;height:17px;}
  html.at-sb-collapsed .at-cta{width:44px;height:44px;padding:0;justify-content:center;}
  html.at-sb-collapsed .at-cta span{display:none;}
  html.at-sb-collapsed .at-sidebar__bar{justify-content:center;}
  html.at-sb-collapsed .at-socials{display:none;}
  html.at-sb-collapsed .at-collapse{margin:0;}
  html.at-sb-collapsed .at-collapse .at-ico{transform:rotate(180deg);}

  /* Footer-Spalten richten sich nach der verfügbaren Breite neben der Sidebar */
  body.at-has-sidebar .k3d-footer-modern__wrap{container-type:inline-size;}
}

@container (max-width:960px){
  .at-footer .at-foot-links{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .at-footer .at-foot-links .k3d-footer-modern__brand{grid-column:1/-1}
  .at-footer .at-foot-cta{grid-template-columns:1fr}
}

/* ==========================================================================
   MOBIL + TABLET
   ========================================================================== */
@media(max-width:1100px){
  .at-topbar{
    position:sticky;
    top:var(--at-admin);
    z-index:10030;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    height:var(--at-top-h);
    padding:0 12px 0 18px;
    background:rgba(255,255,255,.92);
    -webkit-backdrop-filter:saturate(160%) blur(12px);
    backdrop-filter:saturate(160%) blur(12px);
    border-bottom:1px solid rgba(36,39,44,.07);
    transition:transform var(--at-dur) var(--at-ease),box-shadow .2s ease;
  }
  .at-topbar.is-scrolled{box-shadow:0 8px 24px rgba(20,24,30,.06);}
  .at-topbar.is-hidden{transform:translateY(calc(-100% - var(--at-admin) - 2px));}

  .at-topbar .at-nav-brand__logo{height:36px;max-width:170px;}
  .at-topbar__actions{display:flex;align-items:center;gap:8px;}

  .at-topbar__listen{
    display:flex;
    align-items:center;
    gap:7px;
    height:40px;
    padding:0 14px;
    border-radius:999px;
    background:var(--k3d-yellow);
    color:var(--k3d-text)!important;
    text-decoration:none!important;
    font-weight:800;
    font-size:14px;
  }
  .at-topbar__listen .at-ico{width:14px;height:14px;fill:currentColor;}

  .at-burger{
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    padding:0;
    border:1px solid var(--k3d-border);
    border-radius:12px;
    background:var(--k3d-white);
    color:var(--k3d-text);
    cursor:pointer;
  }
  .at-burger__box{position:relative;display:block;width:18px;height:14px;}
  .at-burger__box span{
    position:absolute;
    left:0;
    width:100%;
    height:2px;
    border-radius:2px;
    background:currentColor;
    transition:transform var(--at-dur) var(--at-ease),opacity .2s ease,top var(--at-dur) var(--at-ease);
  }
  .at-burger__box span:nth-child(1){top:0;}
  .at-burger__box span:nth-child(2){top:6px;width:70%;}
  .at-burger__box span:nth-child(3){top:12px;}
  html.at-drawer-open .at-burger__box span:nth-child(1){top:6px;transform:rotate(45deg);}
  html.at-drawer-open .at-burger__box span:nth-child(2){opacity:0;}
  html.at-drawer-open .at-burger__box span:nth-child(3){top:6px;transform:rotate(-45deg);}

  /* Drawer */
  .at-navside{
    top:0;
    height:100vh;
    height:100dvh;
    width:min(360px,88vw);
    z-index:100001;
    border-right:0;
    box-shadow:24px 0 60px rgba(20,24,30,.18);
    transform:translateX(-104%);
    visibility:hidden;
    transition:transform .38s var(--at-ease),visibility 0s linear .38s;
  }
  html.at-drawer-open .at-navside{
    transform:none;
    visibility:visible;
    transition:transform .38s var(--at-ease),visibility 0s;
  }

  .at-sidebar__head{min-height:var(--at-top-h);padding:10px 12px 10px 20px;justify-content:space-between;}
  .at-navside .at-nav-brand__logo{height:36px;}
  .at-sidebar__close{
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    padding:0;
    border:1px solid var(--k3d-border);
    border-radius:12px;
    background:var(--k3d-white);
    color:var(--k3d-text);
    cursor:pointer;
  }

  .at-sidebar__nav{padding:18px 14px 12px;}
  .at-menu__link{min-height:50px;font-size:16px;}
  .at-menu__toggle{width:44px;height:44px;}
  .at-menu--sub .at-menu__link{min-height:42px;font-size:15px;}
  .at-collapse{display:none;}
  .at-sidebar__bar{justify-content:center;}
  .at-socials a{width:42px;height:42px;}

  /* Einträge beim Öffnen gestaffelt einblenden */
  html.at-js .at-sidebar__nav > .at-menu > .at-menu__item,
  html.at-js .at-sidebar__heading,
  html.at-js .at-sidebar__foot > *{
    opacity:0;
    transform:translateX(-12px);
    transition:opacity .3s ease,transform .38s var(--at-ease);
  }
  html.at-drawer-open .at-sidebar__nav > .at-menu > .at-menu__item,
  html.at-drawer-open .at-sidebar__heading,
  html.at-drawer-open .at-sidebar__foot > *{
    opacity:1;
    transform:none;
    transition-delay:calc(var(--at-i,0) * 35ms + 90ms);
  }

  .at-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:100000;
    background:rgba(20,24,30,.42);
    -webkit-backdrop-filter:blur(3px);
    backdrop-filter:blur(3px);
    opacity:0;
    visibility:hidden;
    transition:opacity .3s ease,visibility 0s linear .3s;
  }
  html.at-drawer-open .at-backdrop{opacity:1;visibility:visible;transition:opacity .3s ease,visibility 0s;}
  html.at-drawer-open,
  html.at-drawer-open body{overflow:hidden;}

  .at-tip{display:none;}
}

@media(max-width:420px){
  .at-topbar{padding-left:14px;}
  .at-topbar .at-nav-brand__logo{height:32px;max-width:140px;}
  .at-topbar__listen{padding:0 12px;}
}
@media(max-width:350px){
  .at-topbar__listen span{display:none;}
}

@media(prefers-reduced-motion:reduce){
  .at-navside,.at-navside *,.at-topbar,.at-backdrop,body.at-has-sidebar{transition:none!important;}
}

/* ---------- Footer AdditiveTalk ---------- */
.at-footer .at-foot-cta{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:clamp(24px,4vw,56px);align-items:center;padding:54px 0 46px;border-bottom:1px solid var(--k3d-footer-line)}
.at-footer .at-foot-cta .k3d-footer-modern__intro{padding:0;max-width:none}
.at-footer .at-foot-y{color:var(--k3d-footer-yellow)}
.at-foot-card{padding:clamp(22px,3vw,32px);border-radius:22px;background:#fff;color:var(--k3d-footer-text);box-shadow:0 28px 55px -38px rgba(0,0,0,.9)}
.at-foot-card h3{margin:0 0 6px;color:var(--k3d-footer-text);font-size:clamp(20px,2vw,24px);line-height:1.2;font-weight:830;letter-spacing:-.02em}
.at-foot-card p{margin:0 0 16px;color:var(--k3d-footer-muted);font-size:14.5px;line-height:1.6}
.at-foot-steps{list-style:none;margin:0;padding:0;border-top:1px solid var(--k3d-footer-border)}
.at-foot-steps li{display:flex;align-items:center;gap:12px;margin:0;padding:11px 0;border-bottom:1px solid var(--k3d-footer-border);font-size:15px;font-weight:650;color:var(--k3d-footer-text)}
.at-foot-steps b{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:8px;background:#fff4d3;color:#8b5d00;font-size:11px;font-weight:850}
.at-footer .at-foot-button{display:flex;width:100%;gap:10px;margin-top:18px}
.at-footer .at-foot-button span{font-size:15px;transition:transform .18s ease}
.at-footer .at-foot-button:hover span{transform:translateX(3px)}
.at-footer .at-foot-links{grid-template-columns:minmax(240px,1.3fr) repeat(3,minmax(130px,.75fr))}
.at-foot-social svg{width:22px;height:22px;color:#1c1f23}
.at-footer .k3d-footer-modern__bottom a{color:inherit;text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:3px}
.at-footer .k3d-footer-modern__bottom a:hover{color:#fff}
@media(max-width:960px){
  .at-footer .at-foot-cta{grid-template-columns:1fr}
  .at-footer .at-foot-links{grid-template-columns:repeat(3,minmax(0,1fr))}
  .at-footer .at-foot-links .k3d-footer-modern__brand{grid-column:1/-1}
}
@media(max-width:640px){
  .at-footer .at-foot-cta{padding:46px 0 36px}
  .at-footer .at-foot-links{grid-template-columns:1fr 1fr}
}
@media(max-width:420px){
  .at-footer .at-foot-links{grid-template-columns:1fr}
}

/* ---------- Druckansicht ---------- */
@media print{
  .at-navside,.at-topbar,.at-backdrop,.at-tip{display:none!important;}
  body.at-has-sidebar{padding-left:0!important;}
}

/* ==========================================================================
   Vorlage „KIT3D – Full Width Landingpage“ wirklich randlos:
   GeneratePress-Rahmen (max. Breite, Innenabstände, Flex) neutralisieren
   ========================================================================== */
body.kit3d-fullwidth-page #page,
body.kit3d-fullwidth-page .site.grid-container{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
body.kit3d-fullwidth-page #content,
body.kit3d-fullwidth-page .site-content{display:block!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
body.kit3d-fullwidth-page .k3d-page-main,
body.kit3d-fullwidth-page .k3d-page-article,
body.kit3d-fullwidth-page .k3d-page-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
