/* Gemeinsamer Einstieg und deutlich erkennbare Themennavigation. */
:root {
  --thema: #4c7ecb;
  --thema-hell: #e9eff9;
  --thema-rand: #bdcde8;
}
body[data-thema="deeskalation"] { --thema: #009640; --thema-text: #00662c; --thema-on: #08120c; --thema-hell: #e5f3eb; --thema-rand: #add3bd; }
body[data-thema="impuls"] { --thema: #2aa65a; --thema-text: #146c36; --thema-on: #08120c; --thema-hell: #e8f8ed; --thema-rand: #acdabb; }
body[data-thema="status"] { --thema: #107c10; --thema-hell: #eaf3e8; --thema-rand: #bbd7b5; }

.mb-einstieg {
  width: calc(100% - 32px);
  max-width: 812px;
  margin: 26px auto 28px;
  scroll-margin-top: calc(var(--toolbar-height, 120px) + 16px);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  background: #fffdf8;
  border: 1px solid #e2dcd0;
  border-radius: 18px;
  box-shadow: 0 4px 20px #152e6108;
}
.mb-einstieg[hidden] { display: none; }
.mb-einstieg .mb-einstieg-label {
  color: var(--thema-text, var(--thema));
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.mb-einstieg h1 {
  color: #152e61;
  font-size: 1.8em;
  line-height: 1.17;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  overflow-wrap: normal;
}
.mb-einstieg p { color: #3a424d; font-size: 1em; line-height: 1.6; margin: 0 0 14px; }
.mb-einstieg p:last-of-type { margin-bottom: 20px; }
.mb-einstieg figure { margin: 0; min-width: 0; }
.mb-einstieg img { display: block; width: 100%; height: auto; border-radius: 12px; }
a.mb-einstieg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 9px;
  background: var(--thema);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .95em;
}
a.mb-einstieg-link:hover { filter: brightness(.9); }
body[data-thema="deeskalation"] a.mb-einstieg-link:hover { filter: none; box-shadow: 0 0 0 2px var(--thema-text); }
#mb-einstieg a.mb-einstieg-link,
#mb-einstieg a.mb-einstieg-link:visited,
#mb-einstieg a.mb-einstieg-link:hover,
#mb-einstieg a.mb-einstieg-link:focus { color: var(--thema-on, #fff) !important; text-decoration: none !important; }
a.mb-einstieg-link:focus-visible { outline: 3px solid #152e61; outline-offset: 4px; }

body[data-thema] #mb-uebersicht {
  width: calc(100% - 32px);
  max-width: 812px;
  padding: 20px;
  margin: 0 auto 30px;
  background: var(--thema-hell);
  border: 1px solid var(--thema-rand);
  border-radius: 16px;
  box-shadow: 0 4px 16px #152e6108;
}
#mb-uebersicht .mb-ue-kopf { margin-bottom: 6px; }
#mb-uebersicht .mb-ue-linie { background: var(--thema-rand); height: 2px; }
#mb-uebersicht .mb-menue-hinweis { margin: 0 0 16px; color: #3a424d; font-size: .95em; }
#mb-uebersicht .mb-karte { border: 0; background: transparent; box-shadow: none; margin-bottom: 0; }
#mb-uebersicht .mb-karte-kopf { background: var(--thema); color: var(--thema-on, #fff); border-radius: 10px 10px 0 0; padding: 12px 14px; }
#mb-uebersicht .mb-karte-kopf::before { background: #e8c47e; }
#mb-uebersicht .mb-karte-inhalt { padding: 10px; background: #ffffff80; border-radius: 0 0 10px 10px; }
#mb-uebersicht .mb-karte-inhalt.mb-zwei,
body[data-thema="impuls"] #mb-uebersicht .mb-karte--kapitel .mb-karte-inhalt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  columns: auto;
}
#mb-uebersicht .mb-karte a {
  min-height: 48px;
  padding: 11px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--thema-rand);
  border-radius: 8px;
  color: #182c40;
  box-shadow: 0 2px 3px #152e6106;
  transition: background .15s ease, border-color .15s ease;
}
#mb-uebersicht .mb-karte a + a { margin-top: 6px; }
#mb-uebersicht .mb-zwei a + a,
body[data-thema="impuls"] #mb-uebersicht .mb-karte--kapitel a + a { margin-top: 0; }
#mb-uebersicht .mb-karte a:hover { background: var(--thema-hell); border-color: var(--thema); }
#mb-uebersicht .mb-karte a:focus-visible { outline: 3px solid var(--thema); outline-offset: 2px; }
#mb-uebersicht .mb-karte a .nr { background: var(--thema-hell); color: var(--thema-text, var(--thema)); }
#mb-uebersicht .mb-karte a:hover .nr { background: var(--thema); color: var(--thema-on, #fff); }
#mb-uebersicht .mb-seiten { background: var(--thema-hell); color: var(--thema-text, var(--thema)); white-space: nowrap; }

/* Die vier Materialien sind schon auf der Startseite farblich zugeordnet. */
.mb-start .gitter { gap: 18px; }
.mb-start .kachel {
  aspect-ratio: auto;
  min-height: 292px;
  padding: 25px 18px 20px;
  gap: 12px;
  justify-content: flex-start;
  border: 1px solid #ffffff45;
  color: #fff;
  box-shadow: 0 5px 16px #152e6118;
}
.mb-start .kachel[data-thema="deeskalation"] { background: #009640; }
.mb-start .kachel[data-thema="impuls"] { background: #2aa65a; }
.mb-start .kachel[data-thema="status"] { background: #107c10; }
.mb-start .kachel[data-thema="gefuehle"] { background: #285c78; }
.mb-start .ic { width: 66px; color: #f4ddb0; margin: 0; }
.mb-start .k-titel { color: #fff; }
.mb-start .k-unter { color: #fff; opacity: .9; }
.mb-start .k-aktion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  width: 100%;
  padding: 10px 12px;
  background: #ffffff17;
  border: 1px solid #ffffff65;
  border-radius: 8px;
  font-size: calc(10pt * var(--skala));
  font-weight: 700;
}
.mb-start .kachel:hover .k-aktion { background: #ffffff2e; }
.mb-start .kachel:focus-visible { outline: 3px solid #152e61; outline-offset: 4px; }
.mb-start.mb-gross .gitter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.mb-gross .mb-einstieg { max-width: 1325px; width: 92%; padding: 32px; }
body.mb-gross .mb-einstieg h1 { font-size: 1.8em; }
body[data-thema].mb-gross #mb-uebersicht { max-width: 1325px; width: 92%; padding: 24px; }

@media (max-width: 700px) {
  .mb-einstieg { grid-template-columns: 1fr; padding: 22px; gap: 20px; margin-top: 20px; }
  .mb-einstieg figure { grid-row: 1; }
  .mb-einstieg img { max-width: 420px; margin: 0 auto; }
  .mb-einstieg h1 { font-size: 1.65em; }
  body[data-thema] #mb-uebersicht { padding: 16px; }
  #mb-uebersicht .mb-karte-inhalt.mb-zwei,
  body[data-thema="impuls"] #mb-uebersicht .mb-karte--kapitel .mb-karte-inhalt { grid-template-columns: 1fr; }
  body.mb-gross .mb-einstieg { padding: 22px; }
  body[data-thema].mb-gross #mb-uebersicht { padding: 16px; }
  .mb-start .kachel { min-height: 244px; padding: 20px 12px 14px; }
  .mb-start .k-aktion { font-size: calc(9pt * var(--skala)); padding: 9px; }
}
@media (max-width: 480px) {
  .mb-start.mb-gross .gitter { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mb-start .kachel, #mb-uebersicht .mb-karte a { transition: none; }
  .mb-start .kachel:hover { transform: none; }
}
@media print {
  .mb-einstieg, body.mb-gross .mb-einstieg { display: block; width: 100%; max-width: none; margin: 0 0 18px; padding: 0; border: 0; box-shadow: none; break-inside: avoid; }
  .mb-einstieg[hidden] { display: none; }
  .mb-einstieg figure { max-width: 70mm; margin: 12px auto; }
  .mb-einstieg h1, body.mb-gross .mb-einstieg h1 { font-size: 22pt; }
  .mb-einstieg p { font-size: 12pt; }
}

/* KI im Alltag: vierte Materialkachel, 11.10.2026. */
.mb-start .kachel[data-thema="ki"] { background: #4c7ecb; }
.mb-start .mb-ue-kopf { flex-wrap: wrap; }
@media (max-width: 760px) {
  .mb-start .k-unter { display: block; }
  .mb-start .mb-brand { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .mb-start .gitter { grid-template-columns: 1fr; }
}
