/* Insights (lib/insights.ts): the overview, the header and footer of the overview and the checklist, the links to the
   overview and the other language in every insight header, and the cards. Colours come from the page: tokens.css on
   the overview and the checklist, the article's own sheet on the articles; every value has a fallback. */

/* ---------- Header of the overview and the checklist: the header of the articles (site-header, brand) ---------- */
.insights-seite, .setup {
  --gelb-auf-grund: #a87f00;
  --kopf-hoehe: 65px;
}
[data-theme="dark"] .insights-seite { --gelb-auf-grund: var(--gelb); }
.insights-seite { margin: 0; background: var(--grund); color: var(--tinte); }
.insights-seite .site-header, .setup .site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--grund, #f3f2ee); color: var(--tinte, #121212); border-bottom: 1px solid var(--haar, rgba(18, 18, 18, 0.14));
}
.insights-seite .site-header__inner, .setup .site-header__inner {
  display: flex; align-items: center; gap: 16px; height: var(--kopf-hoehe); padding-inline: 32px;
}
.insights-seite .site-header__actions, .setup .site-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.insights-seite .brand, .setup .brand {
  display: flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; text-decoration: none;
  font: 800 19px / 1 Unbounded, system-ui, sans-serif; letter-spacing: -0.03em;
}
.insights-seite .brand__stern, .setup .brand__stern { width: 22px; height: 22px; }
.insights-seite .brand__stern .rand, .setup .brand__stern .rand { fill: var(--gelb, #ffd83a); stroke: var(--gelb, #ffd83a); stroke-width: 7; stroke-linejoin: round; }
.insights-seite .brand__stern .kern, .setup .brand__stern .kern { fill: var(--tinte, #121212); }
.insights-seite .brand__punkt, .setup .brand__punkt { color: var(--gelb-auf-grund); }
.insights-seite .site-header .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; background: none; color: inherit; cursor: pointer;
}
.insights-seite .site-header .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.insights-seite .site-header .icon-btn svg path { fill: currentColor; stroke: none; }
.insights-seite .site-header .icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.insights-seite .site-header .icon-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* With the chat closed its sign stands at the top right (chat.css); the header makes room, as on the articles. */
.chat-closed .insights-seite .site-header__actions { margin-right: 56px; }

/* ---------- The menu of the start page in every insight header (menue.css, js/menue-kopf.js) ---------- */
/* On the start page the menu floats in the corner; here it is the last item of the header. */
.site-header .menue--kopf { position: relative; top: auto; right: auto; order: 2; color: var(--tinte, #121212); }
.chat-closed .site-header .menue--kopf { right: auto; }
.site-header .menue--kopf .menue__knopf { color: inherit; }
.site-header .menue--kopf .menue__liste {
  top: 52px; z-index: 40; background: var(--grund, #f3f2ee); border-color: currentColor; border-radius: 24px;
  clip-path: none;
}
.site-header .menue--kopf .menue__liste a { border-radius: 16px; }

/* ---------- Links in every insight header: the overview and the other language ---------- */
.insights-nav { display: flex; align-items: center; gap: 2px; }
.insights-nav__link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  color: inherit; text-decoration: none; font: 700 14px / 1 Unbounded, system-ui, sans-serif; letter-spacing: -0.02em;
}
.insights-nav__sprache { font: 500 13px / 1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.04em; }
.insights-nav__link:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.insights-nav__link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.insights-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--gelb, #ffd83a); }

/* ---------- Overview: title and lead, then the cards ---------- */
.insights-uebersicht { max-width: 1152px; margin: 0 auto; padding: 0 32px 96px; }
.insights-uebersicht__kopf { padding: 96px 0; }
.insights-uebersicht h1 {
  margin: 0 0 16px; font: 800 60px / 1.05 Unbounded, system-ui, sans-serif; letter-spacing: -0.03em;
}
.insights-uebersicht__kopf p { max-width: 42rem; margin: 0; font: 400 20px / 1.5 Newsreader, Georgia, serif; }

/* ---------- Cards: overview and "More insights" ---------- */
/* Columns follow the width of the column the cards stand in: the chat beside the page takes half the window. */
/* A container has no width of its own: in the flex column of an article (.site) it needs width: 100%. */
.insights-uebersicht, .insights-mehr { container-type: inline-size; width: 100%; box-sizing: border-box; }
.insights-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.insight-karte {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
  background: var(--papier, color-mix(in srgb, currentColor 6%, transparent));
  border: 1px solid var(--haar, color-mix(in srgb, currentColor 14%, transparent));
  color: inherit; text-decoration: none; transition: box-shadow 300ms ease, border-color 300ms ease;
}
.insight-karte:hover { box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08); }
.insight-karte:focus-visible { outline: 3px solid var(--gelb, #ffd83a); outline-offset: 3px; }
.insight-karte__bild { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: color-mix(in srgb, currentColor 8%, transparent); }
.insight-karte__bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.insight-karte:hover .insight-karte__bild img { transform: scale(1.05); }
.insight-karte__text { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.insight-karte__titel {
  margin: 0 0 8px; font: 700 18px / 1.3 Unbounded, system-ui, sans-serif; letter-spacing: -0.02em; text-wrap: balance;
  hyphens: auto;
}
.insight-karte__kurz {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  margin-bottom: 16px; font: 400 15px / 1.5 Newsreader, Georgia, serif;
}
.insight-karte__meta {
  margin-top: auto; font: 400 12px / 1.4 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.02em;
  color: color-mix(in srgb, currentColor 72%, transparent);
}
/* The newest insight: two columns wide, a wider picture and a larger title. */
.insight-karte--breit { grid-column: span 2; }
.insight-karte--breit .insight-karte__bild { aspect-ratio: 21 / 9; }
.insight-karte--breit .insight-karte__text { padding: 32px; }
.insight-karte--breit .insight-karte__titel { font-size: 24px; }
.insight-karte--breit .insight-karte__kurz { font-size: 17px; }

/* ---------- "More insights" under an insight ---------- */
.insights-mehr {
  max-width: 1152px; margin: 64px auto 0; padding: 48px 32px 64px;
  border-top: 1px solid var(--haar, color-mix(in srgb, currentColor 16%, transparent));
}
.insights-mehr__titel { margin: 0 0 32px; font: 700 30px / 1.15 Unbounded, system-ui, sans-serif; letter-spacing: -0.03em; }

/* ---------- Footer of the start page (styles.css .fuss) on every insight page ---------- */
.insights-fuss {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.8rem 2rem;
  margin: 0 32px; padding: 1.6rem 0 2.2rem; border-top: 1px solid var(--haar, color-mix(in srgb, currentColor 16%, transparent));
  color: inherit; font: 400 0.8125rem / 1.5 "IBM Plex Mono", ui-monospace, monospace;
}
.insights-fuss p { margin: 0; }
.insights-fuss .fuss__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.insights-fuss a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.insights-fuss a:hover { text-decoration-thickness: 2px; }
/* Inside the footer of an article it stands in the article's own column. */
.site-footer .insights-fuss { margin: 24px 0 0; }

@container (max-width: 900px) {
  .insights-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insights-uebersicht h1 { font-size: 48px; }
}
@container (max-width: 520px) {
  .insights-raster { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .insight-karte--breit { grid-column: auto; }
  .insight-karte--breit .insight-karte__bild { aspect-ratio: 16 / 9; }
  .insight-karte--breit .insight-karte__text { padding: 20px; }
  .insight-karte--breit .insight-karte__titel { font-size: 20px; }
  .insights-uebersicht__kopf { padding: 64px 0; }
  .insights-uebersicht h1 { font-size: 36px; }
  .insights-uebersicht__kopf p { font-size: 18px; }
  .insights-mehr__titel { font-size: 24px; }
}
@media (max-width: 599px) {
  .insights-uebersicht { padding: 0 24px 64px; }
  .insights-mehr { padding: 40px 24px 48px; }
  .insights-seite .site-header__inner, .setup .site-header__inner { padding-inline: 16px; gap: 8px; }
  .insights-seite .brand, .setup .brand { font-size: 15px; }
  .insights-fuss { margin: 0 24px; }
  .insights-nav__link { padding: 0 8px; }
  /* On a phone the menu holds the link to the overview; the header keeps the name beside the star. */
  .insights-nav__link:not(.insights-nav__sprache) { display: none; }
  .site-header:has(.menue--kopf) .brand__name { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .insight-karte, .insight-karte__bild img { transition: none; }
  .insight-karte:hover .insight-karte__bild img { transform: none; }
}

/* ---------- The checklist (/setup): its licence line above the footer of the start page ---------- */
/* The checklist's body keeps 16 px at the sides (playbook.css); its header runs to the edges. */
.setup .site-header { margin: 0 -16px; }
.setup .insights-fuss, .setup .setup-fuss__lizenz { margin-inline: 16px; }
.setup-fuss__lizenz { padding: 1.6rem 0 0; font: 400 0.8125rem / 1.5 "IBM Plex Mono", ui-monospace, monospace; }
