/*
 * ALFARI Theme 6.38.58 – Planbibliothek, presentation only.
 * Begründete Ziele: lesbarer Excel-/Tabellenauszug auf 360–430 px,
 * keine Wortzerlegung und klare Gewichtung kaufrelevanter Informationen.
 */

body.page-planbibliothek .alfari-rc5-library{
  min-width:0;
  overflow-wrap:normal;
  word-break:normal;
}

/* Die Platform liefert den fachlichen Seitentitel. Die generische äußere
 * Theme-Überschrift wäre eine sichtbare und semantische Dopplung. */
body.page-planbibliothek article.page-card > .alfari-breadcrumb,
body.page-planbibliothek article.page-card > .page-kicker,
body.page-planbibliothek article.page-card > h1{
  display:none;
}

body.page-planbibliothek .alfari-rc5-library__hero h1{
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}

body.page-planbibliothek :is(
  .alfari-rc5-library__hero,
  .alfari-rc5-plan-card,
  .alfari-rc5-plan-detail,
  .alfari-plan-preview,
  .alfari-plan-preview__table-wrap
){min-width:0;max-width:100%;box-sizing:border-box}

/* Interne Identitäten bleiben zugänglich, treten im Verkaufsfluss aber zurück. */
body.page-planbibliothek .alfari-rc5-plan-card__identity,
body.page-planbibliothek .alfari-rc5-plan-detail__identity{
  font-size:.82rem;
  color:#687078;
}

body.page-planbibliothek .alfari-rc5-plan-detail__notice{
  color:#3f474f;
  background:#f5f7ef;
}

body.page-planbibliothek .alfari-rc5-plan-detail__disabled{
  color:#343a36;
  background:#ecefeb;
  border:1px solid #cdd3cd;
}

body.page-planbibliothek .alfari-rc5-plan-card__button:focus-visible,
body.page-planbibliothek .alfari-rc5-library__back a:focus-visible{
  outline:3px solid #557b21;
  outline-offset:4px;
}

@media(max-width:600px){
  body.page-planbibliothek .page-main{
    padding-top:24px;
  }

  body.page-planbibliothek .page-wrap{
    width:min(100% - 24px,940px);
  }

  body.page-planbibliothek article.page-card{
    padding:0;
    overflow:hidden;
  }

  body.page-planbibliothek .alfari-rc5-library{
    padding:26px 16px 48px;
  }

  body.page-planbibliothek .alfari-rc5-library__hero{
    margin-bottom:24px;
  }

  body.page-planbibliothek .alfari-rc5-library__hero p{
    font-size:1rem;
    line-height:1.55;
  }

  body.page-planbibliothek .alfari-rc5-library__hero h1{
    font-size:clamp(2rem,11vw,3rem);
    line-height:1.05;
  }

  body.page-planbibliothek .alfari-rc5-plan-card,
  body.page-planbibliothek .alfari-rc5-plan-detail{
    padding:22px 18px;
  }

  body.page-planbibliothek .alfari-plan-preview{
    margin-inline:0;
    padding:16px 12px;
  }

  /*
   * Das Platform-CSS erzeugt mobile Zeilen mit 105px/42%-Labelspalte.
   * Hier bleibt die Tabellenlogik erhalten, die Werte stehen aber unter dem
   * vollständigen Spaltennamen. So bricht weder "Wiederholungen" noch
   * "Beinpresse" mitten im Wort.
   */
  body.page-planbibliothek .alfari-plan-preview__table tr{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:0;
    padding:0;
    overflow:hidden;
  }

  body.page-planbibliothek .alfari-plan-preview__table td{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-content:start;
    gap:3px;
    min-width:0;
    padding:9px 8px;
    border-right:1px solid #edf0eb;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
    font-size:1rem;
    line-height:1.4;
  }

  body.page-planbibliothek .alfari-plan-preview__table td[data-label="Übung"]{
    grid-column:1/-1;
    border-right:0;
    background:#f7f8f5;
    font-weight:800;
  }

  body.page-planbibliothek .alfari-plan-preview__table td[data-label="Pause"]{
    border-right:0;
  }

  body.page-planbibliothek .alfari-plan-preview__table td::before{
    display:block;
    min-width:0;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
    font-size:.78rem;
    line-height:1.25;
    letter-spacing:.03em;
    text-transform:uppercase;
    color:#3f4740;
  }

  body.page-planbibliothek .alfari-plan-preview h4{
    overflow-wrap:normal;
    word-break:normal;
    hyphens:auto;
    font-size:1.15rem;
    line-height:1.3;
  }

  body.page-planbibliothek .alfari-rc5-plan-detail__facts{
    grid-template-columns:1fr;
  }

  body.page-planbibliothek .alfari-rc5-plan-detail__identity code{
    font-size:.78rem;
  }

  body.page-planbibliothek .alfari-rc5-library__back a{
    display:inline-flex;
    min-height:44px;
    align-items:center;
    line-height:1.3;
  }
}
