/* =========================================================
   PUBLIKATIONEN · FEHLERBEREINIGTE COVER-KARTEN
   Eigener Namensraum: keine Kollisionen mit alten Publikationsstyles.
   ========================================================= */

.alg-pubx{
  --pub-navy:#17324a;
  --pub-navy-deep:#102b45;
  --pub-gold:#a47d35;
  --pub-gold-soft:#efe3ca;
  --pub-paper:#fbf7ee;
  --pub-blue:#e7eef0;
  --pub-muted:#6e8290;
  --pub-line:rgba(23,50,74,.13);
  width:100%;
  max-width:1180px;
  margin-inline:0 auto;
}

.alg-pubx *{
  box-sizing:border-box;
}

/* Kopf */
.alg-pubx-intro{
  max-width:850px;
  margin-bottom:24px;
}

.alg-pubx-kicker{
  display:block;
  margin-bottom:6px;
  color:var(--pub-gold);
  font-size:10px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.alg-pubx-intro h2{
  margin:0 0 12px;
  color:var(--pub-navy);
}

.alg-pubx-intro p{
  margin:0;
  color:var(--pub-muted);
  font-size:15px;
  line-height:1.65;
}

/* Sprungnavigation */
.alg-pubx-jumps{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:0 0 46px;
  padding:11px;
  border:1px solid var(--pub-line);
  border-radius:16px;
  background:rgba(251,247,238,.82);
}

.alg-pubx-jumps a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 13px 8px 9px;
  border:1px solid transparent;
  border-radius:999px;
  color:var(--pub-navy);
  font-size:12px;
  font-weight:750;
  line-height:1.2;
  text-decoration:none!important;
  transition:background .18s ease,border-color .18s ease;
}

.alg-pubx-jumps a:hover{
  border-color:rgba(164,125,53,.30);
  background:#fffdf8;
}

.alg-pubx-jump-icon{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 28px;
  border-radius:50%;
  background:var(--pub-gold-soft);
  color:var(--pub-gold);
  font-size:11px;
}

/* Gruppen */
.alg-pubx-group{
  position:static;
  overflow:visible;
  scroll-margin-top:120px;
  margin:0 0 62px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.alg-pubx-group::before,
.alg-pubx-group::after{
  content:none!important;
  display:none!important;
}

.alg-pubx-group:last-child{
  margin-bottom:8px;
}

.alg-pubx-group-head{
  display:flex;
  grid-template-columns:none;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin:0 0 22px;
  padding:0 0 17px;
  border-bottom:1px solid var(--pub-line);
}

.alg-pubx-group-title{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.alg-pubx-group-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  flex:0 0 48px;
  margin:0;
  padding:0;
  border:0;
  border-radius:14px;
  background:var(--pub-navy);
  color:#fff;
  font-size:17px;
  line-height:1;
}

.alg-pubx-group-icon i{
  display:block;
  margin:0;
  color:#fff!important;
  font-size:17px!important;
  line-height:1!important;
  transform:none!important;
}

.alg-pubx-group-subtitle{
  display:block;
  margin:0 0 3px;
  color:var(--pub-gold);
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  line-height:1.35;
  text-transform:uppercase;
}

.alg-pubx-group-title h3{
  margin:0;
  color:var(--pub-navy);
  font-size:clamp(24px,2.4vw,34px);
  font-weight:650;
  line-height:1.12;
  letter-spacing:-.025em;
}

.alg-pubx-group-note{
  max-width:330px;
  margin:0;
  color:var(--pub-muted);
  font-size:11px;
  line-height:1.5;
  text-align:right;
}

/* Kartenraster */
.alg-pubx-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}

.alg-pubx-card{
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  min-width:0;
  min-height:390px;
  overflow:hidden;
  border:1px solid var(--pub-line);
  border-radius:19px;
  background:rgba(251,247,238,.90);
  box-shadow:0 10px 28px rgba(23,50,74,.055);
}

/* Coverbereich */
.alg-pubx-cover{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:100%;
  overflow:hidden;
  padding:22px 16px;
  border-right:1px solid var(--pub-line);
  background:
    radial-gradient(circle at 50% 26%,rgba(164,125,53,.11),transparent 31%),
    linear-gradient(155deg,#e8eef0,#f0e7d7);
}

.alg-pubx-cover img{
  position:relative;
  z-index:2;
  display:block;
  width:auto;
  max-width:138px;
  max-height:270px;
  object-fit:contain;
  background:#fff;
  box-shadow:0 13px 26px rgba(23,50,74,.18);
}

/* Der Fallback ist NUR sichtbar, wenn kein echtes Cover vorhanden ist. */
.alg-pubx-cover.has-cover .alg-pubx-cover-fallback{
  display:none;
}

.alg-pubx-cover.is-fallback .alg-pubx-cover-fallback{
  display:flex;
}

.alg-pubx-cover-fallback{
  width:132px;
  min-height:205px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:16px;
  border:1px solid rgba(164,125,53,.25);
  background:linear-gradient(160deg,#fffdf8,#e8ddc8);
  box-shadow:0 11px 24px rgba(23,50,74,.10);
}

.alg-pubx-cover-fallback-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  margin-bottom:auto;
  border-radius:11px;
  background:var(--pub-gold-soft);
  color:var(--pub-gold);
  font-size:15px;
}

.alg-pubx-cover-fallback-meta{
  display:block;
  margin-bottom:4px;
  color:var(--pub-gold);
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.alg-pubx-cover-fallback strong{
  color:var(--pub-navy);
  font-size:13px;
  line-height:1.28;
}

/* Inhalt */
.alg-pubx-content{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:22px;
}

.alg-pubx-meta-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}

.alg-pubx-badge{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  max-width:75%;
  padding:5px 9px;
  border-radius:999px;
  background:var(--pub-gold-soft);
  color:#8b6927;
  font-size:8.5px;
  font-weight:850;
  letter-spacing:.05em;
  line-height:1.15;
  text-transform:uppercase;
}

.alg-pubx-year{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:5px 9px;
  border:1px solid rgba(164,125,53,.26);
  border-radius:999px;
  background:#f3ead9;
  color:#6d8090;
  font-size:10px;
  font-weight:850;
  line-height:1;
}

.alg-pubx-series{
  display:block;
  margin-bottom:5px;
  color:var(--pub-gold);
  font-size:10px;
  font-weight:850;
  letter-spacing:.07em;
  line-height:1.3;
  text-transform:uppercase;
}

.alg-pubx-author{
  display:block;
  margin:0 0 5px;
  color:#70828f;
  font-size:11px;
  font-weight:750;
  line-height:1.35;
}

.alg-pubx-card h4{
  margin:0 0 7px;
  color:var(--pub-navy);
  font-size:21px;
  font-weight:700;
  line-height:1.16;
  letter-spacing:-.02em;
}

.alg-pubx-subtitle{
  margin:0 0 10px;
  color:#466377;
  font-size:12.5px;
  font-weight:650;
  line-height:1.48;
}

.alg-pubx-description{
  margin:0 0 14px;
  color:#718490;
  font-size:11px;
  line-height:1.55;
}

.alg-pubx-biblio{
  display:grid;
  gap:6px;
  margin-top:auto;
  padding-top:13px;
  border-top:1px solid var(--pub-line);
}

.alg-pubx-biblio span{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width:0;
  color:#6f8290;
  font-size:10px;
  font-weight:650;
  line-height:1.45;
}

.alg-pubx-biblio i{
  width:13px;
  flex:0 0 13px;
  margin-top:2px;
  color:var(--pub-gold);
  text-align:center;
}

/* Aktionen */
.alg-pubx-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:15px;
}

.alg-pubx-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:39px;
  padding:9px 12px;
  border:1px solid var(--pub-navy);
  border-radius:999px;
  font-family:var(--tp-ff-body);
  font-size:10.5px;
  font-weight:800;
  line-height:1;
  text-decoration:none!important;
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}

.alg-pubx-btn i{
  font-size:10px;
}

.alg-pubx-btn-primary{
  background:var(--pub-navy);
  color:#fff!important;
}

.alg-pubx-btn-primary:hover{
  background:var(--pub-navy-deep);
  border-color:var(--pub-navy-deep);
  color:#fff!important;
}

.alg-pubx-btn-secondary{
  background:transparent;
  color:var(--pub-navy)!important;
}

.alg-pubx-btn-secondary:hover{
  background:var(--pub-blue);
  color:var(--pub-navy)!important;
}

.alg-pubx-btn-preview{
  background:var(--pub-gold-soft);
  border-color:rgba(164,125,53,.34);
  color:#8b6927!important;
}

.alg-pubx-btn-preview:hover{
  background:#f6ecda;
  border-color:rgba(164,125,53,.52);
  color:#7a5d24!important;
}

/* Tablet */
@media (max-width:1050px){
  .alg-pubx-grid{
    grid-template-columns:1fr;
  }

  .alg-pubx-card{
    grid-template-columns:185px minmax(0,1fr);
  }

  .alg-pubx-cover img{
    max-width:150px;
  }
}

/* Mobil */
@media (max-width:767px){
  .alg-pubx-jumps{
    display:grid;
    grid-template-columns:1fr;
  }

  .alg-pubx-jumps a{
    border-radius:12px;
  }

  .alg-pubx-group{
    margin-bottom:46px;
  }

  .alg-pubx-group-head{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }

  .alg-pubx-group-note{
    text-align:left;
  }

  .alg-pubx-card{
    grid-template-columns:1fr;
    min-height:0;
  }

  .alg-pubx-cover{
    min-height:300px;
    border-right:0;
    border-bottom:1px solid var(--pub-line);
  }

  .alg-pubx-cover img{
    max-width:175px;
    max-height:265px;
  }

  .alg-pubx-cover-fallback{
    width:170px;
    min-height:240px;
  }

  .alg-pubx-content{
    padding:20px 18px;
  }

  .alg-pubx-card h4{
    font-size:20px;
  }
}

@media (max-width:430px){
  .alg-pubx-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .alg-pubx-btn{
    width:100%;
  }
}


/* =========================================================
   PUBLIKATIONEN · COVER-ZOOM + GRÖSSERE COVER + ANKER-FIX
   ========================================================= */

.alg-pubx-intro,
.alg-pubx-group{
  scroll-margin-top:120px!important;
}

.alg-pubx-group-head-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  flex:0 0 auto;
}

.alg-pubx-back{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--pub-navy)!important;
  font-size:10px;
  font-weight:800;
  line-height:1;
  text-decoration:none!important;
  white-space:nowrap;
}

.alg-pubx-back i{
  color:var(--pub-gold);
  font-size:9px;
}

.alg-pubx-back:hover{
  text-decoration:underline!important;
  text-underline-offset:3px;
}

/* Mehr Platz für Cover in der normalen Kartenansicht */
.alg-pubx-card{
  grid-template-columns:220px minmax(0,1fr)!important;
  min-height:430px!important;
}

.alg-pubx-cover{
  padding:26px 16px!important;
}

.alg-pubx-cover-button{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:190px;
  min-height:272px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  cursor:zoom-in;
}

.alg-pubx-cover-button img{
  width:auto!important;
  max-width:190px!important;
  max-height:330px!important;
  transition:transform .18s ease,box-shadow .18s ease;
}

.alg-pubx-cover-button:hover img,
.alg-pubx-cover-button:focus-visible img{
  transform:scale(1.025);
  box-shadow:0 16px 32px rgba(23,50,74,.23)!important;
}

.alg-pubx-cover-button:focus-visible{
  outline:2px solid var(--pub-gold);
  outline-offset:6px;
  border-radius:4px;
}

.alg-pubx-zoom-hint{
  position:absolute;
  right:4px;
  bottom:4px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--pub-navy);
  color:#fff;
  font-size:11px;
  box-shadow:0 6px 14px rgba(23,50,74,.22);
  opacity:0;
  transform:translateY(3px);
  transition:opacity .18s ease,transform .18s ease;
}

.alg-pubx-cover-button:hover .alg-pubx-zoom-hint,
.alg-pubx-cover-button:focus-visible .alg-pubx-zoom-hint{
  opacity:1;
  transform:translateY(0);
}

/* Lightbox */
.alg-pubx-lightbox{
  width:min(92vw,900px);
  max-width:900px;
  max-height:92vh;
  margin:auto;
  padding:0;
  border:0;
  border-radius:20px;
  background:transparent;
  overflow:visible;
}

.alg-pubx-lightbox::backdrop{
  background:rgba(8,21,32,.78);
  backdrop-filter:blur(4px);
}

.alg-pubx-lightbox-inner{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  max-height:88vh;
  padding:24px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:20px;
  background:#f8f4eb;
  box-shadow:0 28px 70px rgba(0,0,0,.34);
}

.alg-pubx-lightbox-inner img{
  display:block;
  width:auto;
  max-width:min(76vw,650px);
  max-height:76vh;
  object-fit:contain;
  background:#fff;
  box-shadow:0 16px 40px rgba(23,50,74,.20);
}

.alg-pubx-lightbox-inner strong{
  max-width:700px;
  color:var(--pub-navy);
  font-size:13px;
  font-weight:800;
  line-height:1.35;
  text-align:center;
}

.alg-pubx-lightbox-close{
  position:absolute;
  z-index:4;
  top:-14px;
  right:-14px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:var(--pub-navy);
  color:#fff;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}

/* Tablet: weiter große Cover, aber kein unnötiger Platzverlust */
@media (max-width:1050px){
  .alg-pubx-card{
    grid-template-columns:220px minmax(0,1fr)!important;
  }

  .alg-pubx-cover-button,
  .alg-pubx-cover-button img{
    max-width:190px!important;
  }
}

@media (max-width:767px){
  .alg-pubx-group-head-actions{
    align-items:flex-start;
  }

  .alg-pubx-card{
    grid-template-columns:1fr!important;
    min-height:0!important;
  }

  .alg-pubx-cover{
    min-height:350px!important;
  }

  .alg-pubx-cover-button{
    max-width:220px;
  }

  .alg-pubx-cover-button img{
    max-width:220px!important;
    max-height:330px!important;
  }

  .alg-pubx-zoom-hint{
    opacity:1;
    transform:none;
  }

  .alg-pubx-lightbox{
    width:94vw;
  }

  .alg-pubx-lightbox-inner{
    padding:18px;
  }

  .alg-pubx-lightbox-inner img{
    max-width:82vw;
    max-height:72vh;
  }

  .alg-pubx-lightbox-close{
    top:-10px;
    right:-6px;
  }
}


/* =========================================================
   PUBLIKATIONEN · COVER-MINIATUREN EINHEITLICH
   - alle Cover erhalten dieselbe große Darstellungsfläche
   - Seitenverhältnis bleibt erhalten, nichts wird verzerrt
   - Zoom-Kreis/Punkt wird entfernt; Cover bleibt anklickbar
   ========================================================= */

.alg-pubx-card{
  grid-template-columns:230px minmax(0,1fr)!important;
}

.alg-pubx-cover{
  min-height:370px!important;
  padding:24px 20px!important;
}

.alg-pubx-cover-button{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:190px!important;
  height:305px!important;
  max-width:none!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:2px!important;
  background:#fff!important;
  box-shadow:0 13px 28px rgba(23,50,74,.18)!important;
  cursor:zoom-in!important;
}

.alg-pubx-cover-button img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}

.alg-pubx-cover-button:hover img,
.alg-pubx-cover-button:focus-visible img{
  transform:none!important;
  box-shadow:none!important;
}

/* Der bisherige runde Zoom-Hinweis verursachte mobil den Punkt hinter dem Cover. */
.alg-pubx-zoom-hint{
  display:none!important;
}

/* Fallback-Cover exakt in derselben Miniaturgröße */
.alg-pubx-cover-fallback{
  width:190px!important;
  height:305px!important;
  min-height:305px!important;
  margin:0 auto!important;
}

@media (max-width:1050px){
  .alg-pubx-card{
    grid-template-columns:230px minmax(0,1fr)!important;
  }

  .alg-pubx-cover-button,
  .alg-pubx-cover-fallback{
    width:190px!important;
    height:305px!important;
    max-width:none!important;
  }
}

@media (max-width:767px){
  .alg-pubx-card{
    grid-template-columns:1fr!important;
  }

  .alg-pubx-cover{
    min-height:390px!important;
    padding:28px 20px!important;
  }

  .alg-pubx-cover-button,
  .alg-pubx-cover-fallback{
    width:210px!important;
    height:335px!important;
    max-width:none!important;
  }

  .alg-pubx-cover-button img{
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
  }
}
\n\n/* =========================================================\n   PUBLIKATIONEN · KEINE WEISSEN COVER-RÄNDER\n   Die feste Miniaturfläche wird vollständig vom Cover gefüllt.\n   ========================================================= */\n.alg-pubx-cover-button{\n  background:transparent!important;\n}\n\n.alg-pubx-cover-button img{\n  width:100%!important;\n  height:100%!important;\n  object-fit:cover!important;\n  object-position:center!important;\n  background:transparent!important;\n  border:0!important;\n}\n\n/* Auch in der Großansicht keinen künstlichen weißen Bildhintergrund. */\n.alg-pubx-lightbox-inner img{\n  background:transparent!important;\n  border:0!important;\n}\n
/* =========================================================
   PUBLIKATIONEN · MINIATURANSICHT OHNE WEISSE RÄNDER OBEN/UNTEN
   Die Bilder werden leicht vergrößert, damit interne weiße Balken
   im Originalbild oben und unten in der Miniaturansicht verschwinden.
   ========================================================= */
.alg-pubx-cover-button{
  overflow:hidden!important;
}

.alg-pubx-cover-button img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:scale(1.08)!important;
  transform-origin:center center!important;
  background:transparent!important;
}

.alg-pubx-cover-button:hover img,
.alg-pubx-cover-button:focus-visible img{
  transform:scale(1.08)!important;
  box-shadow:none!important;
}
