/* MS15-CLEAN: zentrale Kachelroutine, ausgehend von MS14 */
.ms15-debug-badge{
  position:fixed; top:8px; left:8px; z-index:10000;
  background:#8a2d00; color:#fff; padding:7px 10px;
  border-radius:5px; font:700 13px Georgia,serif; box-shadow:0 2px 8px rgba(0,0,0,.25);
}
body.home .home-main{max-width:1120px;margin:0 auto;padding:0 18px 34px;}
body.home .edition-head{max-width:none;margin:0 -18px 20px;padding:12px 20px 14px;background:#f0f2bb;text-align:center;}
body.home .edition-head h2{margin:0 0 4px;color:#078000;font-size:42px;line-height:1.05;font-weight:400;}
body.home .edition-head .hint{margin:0 auto;color:#078000;font-size:14px;line-height:1.35;}
body.home .si-wide-card{width:min(1080px,100%);margin:18px auto 22px;padding:12px 22px 20px;background:#fff;border:1px solid #d5cdc0;border-radius:10px;box-shadow:0 9px 22px rgba(55,43,30,.18);}
body.home .si-wide-card>h3{margin:0 0 2px;text-align:center;font-size:22px;line-height:1.25;color:#333;font-weight:400;}
body.home .si-wide-card>.subline{margin:0 0 12px;text-align:center;font-size:13px;color:#555;}
body.home .si-wide-items{display:grid;align-items:center;}
body.home .si-wide-items.four{grid-template-columns:120px 1fr 1fr 1fr;}
body.home .si-wide-items.three{grid-template-columns:1fr 1fr 1fr;}
body.home .si-mini-product{min-height:92px;display:flex;align-items:center;justify-content:center;padding:4px 20px;border-left:1px solid #222;}
body.home .si-mini-product:first-child{border-left:0;}
body.home .si-mini-product a{display:flex;align-items:center;gap:14px;color:#111;text-decoration:none;width:100%;}
body.home .si-mini-product a:hover span{text-decoration:underline;}
body.home .si-mini-product.logo-only{justify-content:center;}
body.home .si-mini-product.logo-only img{display:block;margin:0 auto;}
body.home .si-mini-media{flex:0 0 82px;display:flex;align-items:center;justify-content:center;}
body.home .si-mini-media img{width:78px;height:78px;object-fit:contain;display:block;margin:0;}
body.home .si-mini-text{text-align:left;min-width:0;}
body.home .si-mini-text .author{display:block;font-size:12px;line-height:1.2;margin-bottom:5px;color:#555;}
body.home .si-mini-text span{display:block;font-size:15px;font-weight:700;line-height:1.22;color:#111;}
body.home .si-mini-text small{display:block;font-size:12px;line-height:1.22;color:#333;margin-top:2px;}
body.home .si-ebook-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;margin-top:7px;text-decoration:none!important;}
body.home .si-ebook-link img{width:38px!important;height:45px!important;object-fit:contain!important;border:1px solid #777!important;border-radius:5px!important;background:#fff!important;padding:0!important;box-shadow:none!important;display:block!important;}
body.home .edition-card-grid{max-width:820px;margin:26px auto 30px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;align-items:stretch;}
body.home .edition-card{background:#fff;border:1px solid #d5cdc0;border-radius:9px;box-shadow:0 7px 18px rgba(55,43,30,.12);min-height:118px;padding:13px 16px;display:grid;grid-template-columns:92px minmax(0,1fr) 44px;gap:14px;align-items:center;}
body.home .edition-card>a{display:contents;color:#111;text-decoration:none;}
body.home .edition-card>a>img{width:82px;height:92px;object-fit:contain;grid-column:1;justify-self:center;}
body.home .edition-card>a>div{grid-column:2;text-align:left;min-width:0;}
body.home .edition-card h3{margin:0 0 3px;font-size:19px;line-height:1.2;color:#111;font-weight:700;}
body.home .edition-card p{margin:0;font-size:12px;line-height:1.3;color:#333;}
body.home .edition-card .popup-trigger{grid-column:3;justify-self:center;align-self:center;width:38px;height:38px;border:1px solid #9c927f;border-radius:5px;background:#fff;padding:3px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:none;}
body.home .edition-card .popup-trigger img{width:100%;height:100%;object-fit:contain;display:block;}
body.home .edition-card .popup-trigger:hover{background:#f6f2e8;}
body.home .amazon-note{max-width:820px;margin:14px auto;text-align:center;font-size:12px;color:#555;}
.si-popup{position:fixed;inset:0;z-index:9998;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(0,0,0,.34);}
.si-popup[aria-hidden="false"]{display:flex;}
.si-popup-box{position:relative;width:min(620px,96vw);max-height:82vh;overflow:auto;background:#fff;border:1px solid #cfc6b8;border-radius:10px;box-shadow:0 18px 45px rgba(0,0,0,.28);padding:28px 34px 30px;text-align:left;}
.si-popup-box h3{margin:0 34px 18px 0;text-align:center;color:#555;font-size:22px;font-weight:700;}
.si-popup-box ul{margin:0;padding-left:24px;}
.si-popup-box li{margin:0 0 14px;font-size:18px;line-height:1.35;color:#111;}
.si-popup-box a{color:#000c9a;text-decoration:none;}
.si-popup-box a:hover{text-decoration:underline;}
.si-popup-close{position:absolute;top:8px;right:10px;width:28px;height:28px;border:1px solid #aaa;border-radius:50%;background:#fff;cursor:pointer;font-size:18px;line-height:1;}
@media(max-width:900px){
 body.home .si-wide-items.four,body.home .si-wide-items.three{grid-template-columns:1fr;}
 body.home .si-mini-product{border-left:0;border-top:1px solid #d8d0c5;justify-content:flex-start;}
 body.home .si-mini-product:first-child{border-top:0;}
 body.home .edition-card-grid{grid-template-columns:1fr;max-width:540px;}
}
@media(max-width:560px){
 body.home .edition-head h2{font-size:32px;}
 body.home .si-wide-card{padding:12px 12px 16px;}
 body.home .si-mini-product a{gap:10px;}
 body.home .si-mini-media{flex-basis:68px;}
 body.home .si-mini-media img{width:64px;height:64px;}
 body.home .edition-card{grid-template-columns:78px minmax(0,1fr) 38px;padding:12px 10px;gap:10px;}
 body.home .edition-card>a>img{width:70px;height:82px;}
 body.home .edition-card h3{font-size:17px;}
}


/* MS16-FOCUS: nur freigegebene Änderungen */
body.home .sfa-card .si-mini-product.logo-only{
  min-height:74px;
  padding-top:2px;
  padding-bottom:2px;
}
body.home .sfa-card .si-mini-product.logo-only .si-mini-media,
body.home .sfa-card .si-mini-product.logo-only img{
  width:70px;
  height:70px;
}
body.home .charon-card .si-wide-items.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
}
body.home .charon-card .si-mini-product{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
  min-height:0;
  padding:8px 18px 10px;
  border-left:1px solid #222;
  overflow:hidden;
}
body.home .charon-card .si-mini-product:first-child{
  border-left:0;
}
body.home .si-book-figure{
  position:relative;
  width:132px;
  min-height:176px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  margin:0 auto 10px;
}
body.home .si-print-link{
  display:flex!important;
  width:auto!important;
  gap:0!important;
  align-items:flex-end!important;
  justify-content:center!important;
  text-decoration:none!important;
}
body.home .si-print-link img{
  width:auto!important;
  height:170px!important;
  max-width:124px!important;
  object-fit:contain!important;
  display:block!important;
}
body.home .charon-card .si-ebook-link{
  position:absolute;
  right:-4px;
  bottom:0;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:42px!important;
  height:48px!important;
  margin:0!important;
  border:1px solid #777;
  border-radius:5px;
  background:#fff;
  text-decoration:none!important;
  z-index:2;
}
body.home .charon-card .si-ebook-link img{
  width:36px!important;
  height:43px!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  padding:0!important;
  display:block!important;
}
body.home .si-book-caption{
  width:100%;
  text-align:center;
  min-width:0;
  line-height:1.22;
}
body.home .si-book-caption .author{
  display:block;
  font-size:12px;
  color:#555;
  margin:0 0 4px;
}
body.home .si-book-caption .title{
  display:block;
  font-size:15px;
  font-weight:700;
  color:#111;
  margin:0 0 3px;
}
body.home .si-book-caption small{
  display:block;
  font-size:12px;
  color:#333;
  margin:0;
}
body.home .amazon-note{display:none!important;}
@media(max-width:900px){
  body.home .si-wide-items.four{grid-template-columns:1fr;}
  body.home .charon-card .si-wide-items.three{grid-template-columns:1fr;}
  body.home .charon-card .si-mini-product{border-left:0;border-top:1px solid #d8d0c5;}
  body.home .charon-card .si-mini-product:first-child{border-top:0;}
}

/* MS17-MINI: nur zwei freigegebene Korrekturen */
body.home .charon-card .si-ebook-link{
  width:auto!important;
  height:auto!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  padding:0!important;
  right:-4px;
  bottom:0;
}
body.home .charon-card .si-ebook-link img{
  width:38px!important;
  height:auto!important;
  object-fit:contain!important;
  border:1px solid #777!important;
  border-radius:5px!important;
  background:#fff!important;
  padding:0!important;
  display:block!important;
}
body.home .sfa-card .si-mini-text span{
  overflow-wrap:normal;
  word-break:normal;
}

/* MS19-FINAL: Video-Poster, Footer, Popup-Links */
body.home .ms15-debug-badge{background:#005e30;}
body.home .hero-video-wrapper{position:relative;width:min(300px,90vw);margin:12px auto 0;}
body.home .video-poster-button{position:relative;display:block;width:100%;padding:0;border:0;background:transparent;cursor:pointer;}
body.home .video-poster{display:block;width:100%;height:auto;border:0;}
body.home .video-play-symbol{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;background:rgba(0,0,0,.58);color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;line-height:1;padding-left:4px;box-shadow:0 4px 14px rgba(0,0,0,.28);}
body.home .hero-video-wrapper .hero-video-player{display:none;width:100%;height:auto;background:#000;}
body.home .video-close{display:none;position:absolute;top:6px;right:6px;width:28px;height:28px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(0,0,0,.62);color:#fff;font-size:18px;line-height:1;cursor:pointer;z-index:3;}
body.home .hero-video-wrapper[data-video-state="playing"] .video-poster-button{display:none;}
body.home .hero-video-wrapper[data-video-state="playing"] .video-close{display:block;}
.footer .links a,.footer .links span{font-size:12px;color:#777!important;}

/* MS20-VIDEO: Video-Startmaske wie Original + Footer-Copyright gleich klein/grau */
body.home .hero-video-wrapper{
  width: min(300px, 90vw);
  margin: 12px auto 0;
}
body.home .video-poster-button.video-mask{
  position: relative;
  display: block;
  width: 100%;
  height: 216px;
  padding: 0;
  border: 1px solid rgba(70,70,70,.45);
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.18) 0,
      rgba(255,255,255,.18) 3px,
      rgba(120,120,120,.16) 3px,
      rgba(120,120,120,.16) 6px),
    rgba(230,230,190,.18);
  box-shadow: none;
  cursor: pointer;
}
body.home .video-poster-button.video-mask::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.04);
}
body.home .video-poster-button.video-mask .video-play-symbol{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:58px;
  height:58px;
  border:3px solid rgba(25,25,25,.72);
  border-radius:50%;
  background:rgba(255,255,255,.42);
  color:rgba(25,25,25,.82);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:31px;
  line-height:1;
  padding-left:4px;
  box-shadow:none;
}
body.home .hero-video-wrapper[data-video-state="playing"] .video-poster-button.video-mask{display:none;}
.footer .links a,
.footer .links span,
.footer .copyright{
  font-size:12px;
  color:#777!important;
}


/* MS22-POPUP: Thrive-Logik nachgebaut – Trigger im Hero, Video im Popup */
body.home .ms15-debug-badge{background:#542788!important;}
body.home .hero-video-wrapper,
body.home .video-poster-button,
body.home .hero-video-player,
body.home .video-close{display:none!important;}
body.home .hero-video-trigger{
  position:relative;
  display:block;
  width:min(300px,90vw);
  height:170px;
  margin:12px auto 0;
  padding:0;
  border:1px solid rgba(70,70,70,.45);
  background:transparent;
  cursor:pointer;
  overflow:hidden;
}
body.home .video-trigger-pattern{
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(45deg,rgba(255,255,255,.20) 0,rgba(255,255,255,.20) 3px,rgba(80,80,80,.16) 3px,rgba(80,80,80,.16) 6px);
}
body.home .video-trigger-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:58px;
  height:58px;
  border:3px solid rgba(25,25,25,.76);
  border-radius:50%;
  background:rgba(255,255,255,.28);
  color:rgba(25,25,25,.82);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:31px;
  line-height:1;
  padding-left:4px;
  box-sizing:border-box;
}
.video-popup[aria-hidden="true"]{display:none;}
.video-popup[aria-hidden="false"]{
  position:fixed;
  inset:0;
  z-index:9998;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.62);
  padding:24px;
  box-sizing:border-box;
}
.video-popup-box{
  position:relative;
  width:min(600px,96vw);
  background:#000;
  box-shadow:0 18px 45px rgba(0,0,0,.45);
}
.video-popup-player{
  display:block;
  width:100%;
  height:auto;
  max-height:80vh;
  background:#000;
}
.video-popup-close{
  position:absolute;
  top:-14px;
  right:-14px;
  z-index:2;
  width:30px;
  height:30px;
  border:1px solid #777;
  border-radius:50%;
  background:#fff;
  color:#222;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
@media (max-width:700px){
  body.home .hero-video-trigger{width:min(260px,82vw);height:146px;}
  body.home .video-trigger-play{width:48px;height:48px;font-size:25px;}
}
/* === MS24 FINAL ABSTAND FIX === */

.hero-inner h1 {
  margin-bottom: 8px;
}

.hero-inner .tagline {
  margin-bottom: 18px;   /* war zu groß */
}

.video-trigger {
  margin-top: 0;
  margin-bottom: 20px;   /* nach unten enger */
}

.section-editionen-header {
  margin-top: 10px;      /* Abstand nach oben reduzieren */
  padding-top: 10px;
}
/* === MS24 FINAL POSITION FIX (zentriert zwischen Texten) === */

.hero {
  position: relative;
}

/* Overlay exakt mittig platzieren */
.video-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
}

/* Sicherheitsfix: keine alten Abstände mehr */
.hero-inner .tagline {
  margin-bottom: 0 !important;
}

.section-editionen-header {
  margin-top: 0 !important;
}

/* MS26-POSITION: Video-Trigger direkt im Hero positionieren.
   Der Trigger liegt jetzt außerhalb von .hero-inner und reagiert zuverlässig auf top/left. */
body.home .ms15-debug-badge{
  background:#0b63a5!important;
}
body.home .hero.hero-original{
  position:relative!important;
  overflow:hidden!important;
}
body.home .hero.hero-original > .hero-video-trigger{
  position:absolute!important;
  left:50%!important;
  top:76%!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
  z-index:4!important;
}
body.home .video-trigger{
  display:none!important;
}
@media(max-width:900px){
  body.home .hero.hero-original > .hero-video-trigger{top:76%!important;}
}
@media(max-width:640px){
  body.home .hero.hero-original > .hero-video-trigger{top:78%!important;}
}
/* === MS27 HERO TEXT NACH OBEN === */

.hero-inner {
  position: relative;
  z-index: 2;          /* sicher über Overlay */
  margin-top: -130px;   /* ALLES nach oben ziehen */
}