/* Original wiki.css owns all Wiki layouts and themes. Only portal-specific controls live here. */
/* The native shell owns its safe area and navigation bar. */
html[data-cl-presentation="native"] .cl-shell{display:none!important}
html[data-cl-presentation="native"] .cl-main{padding-top:24px}
.cl-trial-notice{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:12px;margin-bottom:12px;border:1px solid var(--cl-line);border-radius:12px;background:var(--cl-surface);font-size:14px;line-height:1.4}.cl-trial-notice>p{flex:1 1 240px;margin:0}.cl-trial-notice .cl-trial-cta{min-height:44px;padding:8px 12px;white-space:nowrap}
.cl-main{min-width:0;box-sizing:border-box}
.cl-lib,.cl-lib__side,.cl-lib__main,.cl-upcol{min-width:0;max-width:100%;box-sizing:border-box}
.cl-main img,.cl-main video,.cl-main iframe{max-width:100%}
.cl-main h1,.cl-main h2,.cl-main h3,.cl-lib__item span{overflow-wrap:anywhere}
/* A grid child's minimum content width must not widen a seminar row at large system text sizes. */
.cl-semline__main{grid-template-columns:minmax(0,1fr)}
.cl-semline__title,.cl-semline .cl-meta,.cl-semline .cl-meta>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
.cl-semline .cl-meta>span{flex-wrap:wrap}
.cl-portal-filters>summary{cursor:pointer;font-weight:700;padding:10px 12px;border:1px solid var(--cl-line);border-radius:10px}
.cl-portal-filters[open]>summary{margin-bottom:10px}
.cl-portal-filters:not([open]){justify-self:start;width:max-content;max-width:100%}.cl-portal-filters>summary{display:list-item;width:fit-content;max-width:100%;box-sizing:border-box}
.cl-apps-hero{padding:24px}.cl-apps-hero h2{font-size:clamp(26px,4vw,42px);line-height:1.12;margin-block:12px}.cl-apps-categories{display:flex;gap:8px;flex-wrap:wrap;margin-block:14px}.cl-apps-categories [aria-pressed="true"]{background:var(--cl-brand-soft);color:var(--cl-brand-strong)}.cl-apps-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}.cl-apps-card h2,.cl-apps-card p{margin:0}.cl-apps-card>a{margin-top:auto}.cl-apps-cover{width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:var(--cl-surface-2);display:grid;place-items:center}.cl-apps-cover>img{width:100%;height:100%;object-fit:cover}.cl-apps-cover--fallback>img{width:90px;height:auto;object-fit:contain}.cl-apps-monogram{font-size:42px;color:var(--cl-brand-strong)}[data-apps-detail]>.cl-apps-cover{max-width:720px;margin-block:18px}[data-apps-detail]>.cl-card{margin-top:18px}.cl-toolbar>.cl-field{min-width:0;max-width:100%}
html[data-cl-presentation="native"] input,html[data-cl-presentation="native"] select,html[data-cl-presentation="native"] textarea{font-size:max(16px,1em)}
@media(max-width:700px){.cl[data-cl-page="apps"] .cl-apps-card>a.cl-btn,.cl[data-cl-page="apps"] [data-apps-detail]>.cl-card>a.cl-btn,.cl[data-cl-page="apps"] [data-apps-detail]>a.cl-btn[href="/apps.html#cl-portal-catalog"]{box-sizing:border-box;min-height:44px;min-width:44px;height:auto}}
/* Native large text must wrap instead of overflowing the filter or fixed-height controls. */
@media (max-width: 700px) {
  html[data-cl-presentation="native"] #cl[data-cl-page="start"] .cl-sec__head > .cl-row {
    min-width: 0;
    max-width: 100%;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="start"] .cl-sec__more {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-lib {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-portal-filters {
    min-width: 0;
    box-sizing: border-box;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-portal-filters > summary {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-pagehead > div {
    min-width: 0;
    max-width: 100%;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-pagehead .cl-eyebrow {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-toolbar .cl-field {
    height: auto;
    min-height: 44px;
    padding-block: 4px;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-toolbar .cl-field input {
    line-height: 1.5;
    padding-block: 4px;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-seg {
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    align-items: stretch;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-seg button {
    height: auto;
    min-height: 44px;
    min-width: 44px;
    padding-block: 6px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media(max-width:700px){.cl-main{padding:18px 14px 36px}.cl-pagehead{margin-bottom:16px}.cl-pagehead__title{font-size:30px}.cl-shell__bar{height:auto;min-height:54px;padding-inline:14px;gap:10px}.cl-lib{gap:14px}.cl-lib__side{position:static}.cl-pagehead__actions:empty{display:none}}
.cl-portal-status{padding:16px 22px;border:1px solid var(--cl-line);border-radius:var(--cl-radius);background:var(--cl-surface);color:var(--cl-ink-2)}

/* Give the video title and action separate rows on narrow start pages. */
@media (max-width: 700px) {
  [data-slot="continue"] > .cl-card {
    display: grid;
    grid-template-columns: minmax(0, 26%) minmax(0, 1fr);
    align-items: start;
    overflow-wrap: anywhere;
  }
  [data-slot="continue"] .cl-episode__thumb { max-width: 100%; }
  [data-slot="continue"] .cl-btn {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    white-space: normal;
  }
}

.cl-portal-chapters{margin-block:18px}.cl-portal-chapters ol{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}.cl-portal-chapters button{height:auto;min-height:40px;white-space:normal;text-align:left;justify-content:flex-start;width:100%}.cl-portal-chapters [aria-current]{background:var(--cl-brand-soft);color:var(--cl-brand-strong)}

/* The shell supplies its overlay insets to the protected Wiki pages. */
html[data-cl-presentation="native"] .cl-agent-fab,
html[data-cl-presentation="native"] .cl-agent-panel {
  top: calc(max(var(--cl-native-top, 0px), env(safe-area-inset-top, 0px)) + 8px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  bottom: auto;
}
html[data-cl-presentation="native"] .cl-agent-fab {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
}
html[data-cl-presentation="native"] .cl-agent-fab__label { display: none; }
html[data-cl-presentation="native"] .cl-agent-fab:hover { transform: none; }
html[data-cl-presentation="native"] .cl-agent-panel {
  max-width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 24px);
  max-height: calc(100dvh - max(var(--cl-native-top, 0px), env(safe-area-inset-top, 0px)) - max(var(--cl-native-bottom, 0px), env(safe-area-inset-bottom, 0px)) - 16px);
}

@media (max-width: 700px) {
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-main { padding-top: 12px; }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-pagehead {
    padding: 12px 16px;
    margin-bottom: 12px;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] .cl-pagehead__title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-block: 4px 0;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="start"] .cl-stage {
    min-height: 0;
    padding: 20px;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="start"] .cl-stage__title {
    font-size: 2rem;
    line-height: 1.2;
    margin-block: 0 12px;
    padding-inline-end: 44px;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="start"] .cl-stage__lead {
    font-size: 1rem;
    line-height: 1.5;
    margin-block: 0 16px;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="start"] .cl-stage__hints { margin-top: 12px; }
  html[data-cl-presentation="native"] .cl-footer [data-cl-feedback] {
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Use exactly one geometric disclosure marker; preserve native summary semantics. */
@media (max-width: 700px) {
  html[data-cl-presentation="native"] .cl-portal-filters > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    min-height: 44px;
  }
  html[data-cl-presentation="native"] .cl-portal-filters > summary::-webkit-details-marker { display: none; }
  html[data-cl-presentation="native"] .cl-portal-filters > summary::before {
    content: "";
    display: block;
    flex: 0 0 0.4em;
    width: 0.4em;
    height: 0.4em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
  }
  html[data-cl-presentation="native"] .cl-portal-filters[open] > summary::before { transform: rotate(45deg); }
}

/* Touch readers need no fixed desktop mouse-wheel hint over their content. */
@media (max-width: 700px) {
  html[data-cl-presentation="native"] .cl-scrollhint { display: none; }
}

/* Centered load-row text must wrap within its grid cell at native large text sizes. */
@media (max-width: 700px) {
  html[data-cl-presentation="native"] #cl[data-cl-page="wissen"] [data-cl-load-more] {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    height: auto;
    padding-block: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Native Apps puts discovery and the primary demo ahead of the web introduction. */
@media (max-width: 700px) {
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-pagehead {
    padding: 0; margin-bottom: 12px; background: none; border: 0; box-shadow: none;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-pagehead .cl-eyebrow,
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-pagehead p,
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-hero],
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] #cl-portal-catalog .cl-toolbar > h2 { display: none; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-main p,
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-main li { overflow-wrap: anywhere; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-count] { margin: 0 0 8px; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] #cl-portal-catalog { margin-block: 12px; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] #cl-portal-catalog .cl-toolbar { margin-bottom: 8px; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-field { min-height: 44px; height: auto; padding-block: 0; box-sizing: border-box; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-field input { min-height: 44px; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-apps-categories { margin-block: 8px; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-apps-categories button { min-width: 0; max-width: 100%; min-height: 44px; height: auto; white-space: normal; overflow-wrap: anywhere; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-apps-card { padding: 14px; gap: 8px; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-apps-card .cl-apps-cover { aspect-ratio: 16 / 5; max-height: 112px; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail]:not([hidden]) {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; margin-top: 12px;
  }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail] > * { grid-column: 1 / -1; min-width: 0; margin-block: 0; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail] > a { grid-row: 1; justify-self: start; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail] > a,
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] .cl-apps-demo > a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail] > .cl-apps-cover { grid-column: 1; grid-row: 2 / span 2; width: 64px; height: 64px; aspect-ratio: auto; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail] > .cl-apps-cover--fallback > img { width: 80%; height: auto; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail] > .cl-tag { grid-column: 2; grid-row: 2; justify-self: start; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail] > h1 { grid-column: 2; grid-row: 3; margin: 0; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail] > h1 + p { grid-row: 4; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail] > .cl-apps-demo { grid-row: 5; }
  html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail] > .cl-card { padding: 14px; }
}
/* Original Wiki width stays owned by wiki.css; detail content uses the same grid rhythm. */
.cl-apps-back{margin-bottom:24px}
.cl-apps-detail-header{display:grid;grid-template-columns:128px minmax(0,1fr);gap:28px;align-items:center;margin-block:8px 32px}
.cl-apps-detail-header>.cl-apps-cover{width:128px;height:128px;aspect-ratio:auto;border-radius:24px}
.cl-apps-detail-copy{min-width:0}.cl-apps-detail-copy h1{margin-block:10px 12px;overflow-wrap:anywhere}
.cl-apps-detail-lead{font-size:18px;line-height:1.65;max-width:850px;margin:0;color:var(--cl-ink-2)}
.cl-apps-demo,.cl-apps-features{padding:28px;margin-block:20px;max-width:100%}
.cl-apps-demo{background:linear-gradient(120deg,var(--cl-brand-soft),var(--cl-surface) 70%);border:1px solid var(--cl-line)}
.cl-apps-demo h2,.cl-apps-features h2{margin-block:8px 16px}.cl-apps-demo p{max-width:680px;line-height:1.6}
.cl-apps-feature-list{list-style:disc;padding-inline-start:24px;margin:0;display:grid;gap:14px;line-height:1.65}
.cl-apps-feature-list>li{padding-inline-start:4px;overflow-wrap:anywhere}
@media(max-width:700px){
 .cl-apps-detail-header{grid-template-columns:64px minmax(0,1fr);gap:14px;margin-block:8px 24px}
 .cl-apps-detail-header>.cl-apps-cover{width:64px;height:64px;border-radius:16px;align-self:start}
 .cl-apps-detail-header .cl-apps-cover--fallback>img{width:80%}
 .cl-apps-detail-copy h1{font-size:clamp(24px,7vw,32px)}.cl-apps-detail-lead{font-size:16px}
 .cl-apps-demo,.cl-apps-features{padding:20px}.cl-apps-demo>.cl-btn{min-height:44px;height:auto;white-space:normal}
 html[data-cl-presentation="native"] #cl[data-cl-page="apps"] [data-apps-detail]:not([hidden]){display:block}
}

/* Current published SharePoint navigation marker: exact source styles. */
.cl-nav__new { position: absolute; right: -1px; top: 50%; margin-top: -24px; display: inline-flex; align-items: center; gap: 2px; height: 16px; padding: 0 5px 0 4px;
  border-radius: 5px; background: linear-gradient(135deg, #b93a96, #c2410c); color: #fff; font-size: 9.5px; font-weight: 750; line-height: 1; letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22); transform: rotate(9deg); transform-origin: center; pointer-events: none; }
@container cl (max-width: 680px) { .cl-nav__new { margin-top: -19px; height: 15px; } }   /* Handy: niedrigere Men\0000fczeile (44 px) \002013 nichts abgeschnitten */
.cl-nav__new .cl-ico { width: 9px; height: 9px; }
@keyframes cl-navneu { 0%, 100% { transform: rotate(9deg) scale(1); } 18% { transform: rotate(-3deg) scale(1.12); } 36% { transform: rotate(15deg) scale(1.06); }
  54% { transform: rotate(4deg) scale(1.08); } 72% { transform: rotate(12deg) scale(1.02); } }
@media (prefers-reduced-motion: no-preference) { .cl-nav__new.is-moving { animation: cl-navneu 1.3s .8s var(--cl-ease) both; } }
@keyframes cl-navneu-sanft { 0%, 100% { box-shadow: 0 2px 6px rgba(0, 0, 0, .22); filter: none; } 50% { box-shadow: 0 0 0 4px rgba(238, 125, 48, .4), 0 2px 6px rgba(0, 0, 0, .22); filter: brightness(1.2); } }
@media (prefers-reduced-motion: reduce) { .cl-nav__new.is-moving { animation: cl-navneu-sanft 1.1s .8s ease-in-out 2; } }

/* In the app the home search starts below the hero, then sticks below the status bar. */
html[data-cl-presentation="native"] .cl-stage:has(+ .cl-agent-fab) {
  margin-bottom: 10px;
}
html[data-cl-presentation="native"] .cl-stage + .cl-agent-fab {
  display: flex;
  position: sticky;
  right: auto;
  margin-inline-start: auto;
}
@media (max-width: 700px) {
  html[data-cl-presentation="native"] .cl-daybar:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 4px;
  }
  html[data-cl-presentation="native"] .cl-daybar__item {
    min-width: 0;
    min-height: 44px;
    padding: 6px 8px;
    overflow-wrap: anywhere;
  }
  html[data-cl-presentation="native"] .cl-daybar__cta {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 44px;
    margin: 4px 0 0;
  }
  html[data-cl-presentation="native"] [data-slot="continue"] > .cl-card {
    display: grid;
    grid-template-columns: minmax(0, 26%) minmax(0, 1fr);
    align-items: start;
    overflow-wrap: anywhere;
  }
  html[data-cl-presentation="native"] [data-slot="continue"] .cl-episode__thumb {
    max-width: 100%;
  }
  html[data-cl-presentation="native"] [data-slot="continue"] .cl-btn {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    min-height: 44px;
    height: auto;
    white-space: normal;
  }
}
