/* Morqiva Landingpage – Stil
   Morqiva-Blau #0039D0 gemessen im Logo Morqiva Upload (häufigster Blauton, 10.11.2026).
   Grün #1FB82A aus demselben Logo. Keine Schriften und Skripte von fremden Servern. */

:root {
  --blau: #0039d0;
  --blau-dunkel: #002a9a;
  --blau-hell: #e8eefc;
  --gruen: #1fb82a;
  --gruen-hell: #e6f7e8;
  --orange: #d97a00;
  --orange-hell: #fff1dd;
  --text: #1b2130;
  --text-grau: #5a6477;
  --rand: #dde3ee;
  --flaeche: #ffffff;
  --flaeche-hell: #f5f7fb;
  --schatten: 0 2px 10px rgba(27, 33, 48, 0.08);
  --rundung: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--flaeche);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
b { font-weight: 650; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

.innen { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Wortmarke – nur der Schriftzug, kein Symbol (P1 Nr. 2) */
.wortmarke {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--blau);
  text-decoration: none;
}
.wortmarke-fuss { font-size: 24px; }
.wortmarke-klein {
  display: block;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--blau);
  line-height: 1;
}
.wortmarke-zusatz {
  display: block;
  font-weight: 700;
  font-size: 22px;
  color: var(--gruen);
  line-height: 1.1;
  margin-top: 4px;
}

/* Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rand);
}
.kopf-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.kopf-nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.kopf-nav a {
  font-size: 14px;
  color: var(--text-grau);
  text-decoration: none;
  padding: 6px 0;
  white-space: nowrap;
}
.kopf-nav a:hover { color: var(--blau); }

/* Einstieg */
.buehne {
  background: linear-gradient(180deg, var(--blau-hell) 0%, var(--flaeche) 100%);
  padding: 56px 0 36px;
}
.vorzeile {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-grau);
}
.buehne h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.blau { color: var(--blau); }
.einleitung {
  max-width: 720px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-grau);
  margin: 18px 0 14px;
}
.legende { margin: 0; font-size: 14px; color: var(--text-grau); }

/* Marken „gebaut“ / „geplant“ */
.marke {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1.5;
}
.marke-gebaut { background: var(--gruen-hell); color: #157a1c; }
.marke-geplant { background: var(--orange-hell); color: #8a4b00; }
.marke-test { background: var(--blau-hell); color: var(--blau-dunkel); }

/* Kacheln */
.abschnitt { padding: 36px 0 16px; }
.abschnitt-titel { font-size: 26px; font-weight: 750; margin-bottom: 20px; }
.kacheln {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.kachel {
  display: flex;
  flex-direction: column;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--rundung);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--schatten);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.kachel:hover {
  transform: translateY(-3px);
  border-color: var(--blau);
  box-shadow: 0 10px 28px rgba(0, 57, 208, 0.12);
}
.kachel-bild {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--flaeche);
  overflow: hidden;
}
.kachel-bild img { max-height: 100%; width: auto; }
.kachel-bild-kaya img { max-height: 100px; border-radius: 20px; }
.kachel-bild-text { flex-direction: column; text-align: center; }
.kachel h3 { font-size: 20px; font-weight: 750; margin-bottom: 8px; }
.kachel p { margin: 0 0 14px; color: var(--text-grau); font-size: 15.5px; flex: 1; }
.kachel-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--blau);
  background: var(--blau-hell);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

/* Programme */
.programm { padding: 56px 0; border-top: 1px solid var(--rand); scroll-margin-top: 72px; }
.programm-hell { background: var(--flaeche-hell); }
.programm-kopf {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}
.programm-kopf img {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 8px;
}
.programm-kopf .kaya-logo { width: 120px; border-radius: 24px; padding: 0; border: none; }
.programm-kopf-text {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
}
.programm h2, .programm-titel { display: block; line-height: 1.15; font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.015em; }
.programm-zeile { margin: 8px 0 0; color: var(--text-grau); font-size: 15px; }
.programm-start { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.programm-start span { color: var(--text-grau); font-size: 15px; }
.knopf {
  display: inline-block;
  background: var(--blau);
  color: #fff;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
}
.knopf:hover, .knopf:focus-visible { background: var(--blau-dunkel); text-decoration: none; }
.programm-text { max-width: 820px; font-size: 18px; margin: 0 0 26px; }

.funktionen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.gruppe {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--rundung);
  padding: 20px 22px;
  box-shadow: var(--schatten);
}
.programm-hell .gruppe { box-shadow: none; }
.gruppe h3 {
  font-size: 18px;
  font-weight: 750;
  color: var(--blau-dunkel);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blau-hell);
}
.gruppe ul { margin: 0; padding-left: 20px; }
.gruppe li { margin: 0 0 8px; font-size: 15.5px; }
.gruppe li::marker { color: var(--gruen); }

/* Fuß */
.fuss { border-top: 1px solid var(--rand); background: var(--flaeche-hell); padding: 32px 0 20px; }
.fuss-zeile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.fuss-firma { margin: 4px 0 0; color: var(--text-grau); font-size: 14px; }
.fuss-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.fuss-nav a { font-size: 15px; font-weight: 600; text-decoration: none; }
.fuss-nav a:hover { text-decoration: underline; }
.fuss-klein p { margin: 20px 0 0; font-size: 13px; color: var(--text-grau); }

/* Rechtsseiten */
.rechtsseite { padding-top: 40px; padding-bottom: 60px; max-width: 800px; }
.rechtsseite h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 800; margin-bottom: 8px; }
.rechtsseite h2 { font-size: 20px; font-weight: 750; margin: 28px 0 8px; color: var(--blau-dunkel); }
.rechtsseite p, .rechtsseite li { font-size: 16px; }
.rechtsseite address { font-style: normal; line-height: 1.6; }
.rechtsseite .hinweis {
  background: var(--orange-hell);
  border-left: 4px solid var(--orange);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
}
.zurueck { display: inline-block; margin-bottom: 18px; font-size: 15px; text-decoration: none; }

/* Aufklappbare Programmkacheln (11.11.2026, Markus: Text hinter einer Kachel, die sich auf Druck öffnet) */
.abschnitt-hinweis { color: var(--text-grau); margin: -8px 0 0; }
.programm, .programm-hell { padding: 10px 0; border-top: none; background: none; }
.programm-kachel > summary {
  display: block;
  list-style: none;
  cursor: pointer;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--rundung);
  padding: 20px 22px;
  box-shadow: var(--schatten);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.programm-kachel > summary::-webkit-details-marker { display: none; }
.programm-kachel > summary::marker { content: ""; }
.programm-kachel > summary:hover { border-color: var(--blau); box-shadow: 0 10px 28px rgba(0, 57, 208, 0.12); }
.programm-kachel > summary:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
.programm-kachel[open] > summary {
  border-color: var(--blau);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.programm-kachel .programm-kopf { margin-bottom: 0; grid-template-columns: 220px 1fr; }
.programm-kopf-inhalt, .programm-kachel .programm-zeile, .programm-kurz { display: block; }
.programm-kopf-text { display: block; }
.programm-kurz { margin-top: 10px; font-size: 17px; max-width: 760px; }
.aufklappen { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--blau); }
.aufklappen::after { content: " ▾"; display: inline-block; transition: transform 0.2s ease; }
.programm-kachel[open] .aufklappen::after { transform: rotate(180deg); }
.programm-kachel[open] .aufklappen-zu, .programm-kachel:not([open]) .aufklappen-auf { display: none; }
.programm-inhalt {
  border: 1px solid var(--blau);
  border-top: none;
  border-radius: 0 0 var(--rundung) var(--rundung);
  padding: 24px 22px 6px;
  background: var(--flaeche-hell);
}

.knopf-aus, .knopf-aus:hover { background: var(--blau-hell); color: var(--blau-dunkel); cursor: default; }

/* Demo-Seiten (P3, 11.11.2026): Rundgang durch echte Bildschirme */
.demo { padding-top: 40px; padding-bottom: 60px; max-width: 1000px; }
.demo h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 800; margin-bottom: 8px; }
.demo .hinweis { font-size: 16px; color: var(--text-grau); max-width: 760px; margin-bottom: 30px; }
.demo-zusammenfassung { font-size: 18px; max-width: 820px; margin: 0 0 14px; }
#funktionen .funktionen { margin-top: 8px; }
.demo-zusammenfassung h2 { font-size: 20px; margin: 0 0 6px; color: var(--blau-dunkel); }
.demo-zusammenfassung p { margin: 0 0 6px; }
.demo-zusammenfassung ul { margin: 0; padding-left: 20px; }
.funktionsliste { margin: 0 0 10px; padding-left: 20px; max-width: 820px; }
.funktionsliste li { margin: 4px 0; }
.demo-schritt { margin: 0 0 40px; }
.demo-schritt img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  border: 1px solid var(--blau-hell);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 42, 154, 0.10);
}
.demo-schritt figcaption { margin-top: 12px; font-size: 17px; max-width: 820px; }
.demo-schritt figcaption b { color: var(--blau-dunkel); margin-right: 4px; }
.demo-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blau);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.demo-ende { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Klickbare Demo (11.11.2026, Markus: „mit der Demo auch die kacheln öffenen … die seite sehen die dann normal aufgeht“):
   ein Bildschirm zur Zeit über #bN, ohne Skript (CSP script-src 'none'). Ohne Sprungziel: erster Bildschirm. */
.bildschirm { display: none; scroll-margin-top: 80px; }
.bildschirm:target { display: block; }
.bildschirme:not(:has(.bildschirm:target)) .bildschirm:first-child { display: block; }
@supports not selector(:has(*)) {
  .bildschirm { display: block; margin-bottom: 40px; }
}
.bildschirm-rahmen { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.bildschirm-rahmen img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  border: 1px solid var(--blau-hell);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 42, 154, 0.10);
}
/* Klickflächen (Markus 12.11.2026: „In der Demo zeigst du die Werte grün umkreist. Stelle das moderner dar, klarer.“):
   ruhig in Markenblau, heller Saum für dunkle/blaue App-Flächen, beim Überfahren deutlicher, beim Erscheinen ein kurzer Puls.
   Breite Zeilen (über 60 % der Bildbreite, Klasse von demo-bauen.mjs) nur mit Streifen links statt Rahmen. */
@keyframes ziel-puls {
  0% { background: rgba(0, 57, 208, 0.04); box-shadow: 0 0 0 0 rgba(0, 57, 208, 0.40); }
  45% { background: rgba(0, 57, 208, 0.16); box-shadow: 0 0 0 6px rgba(0, 57, 208, 0.18); }
  100% { background: rgba(0, 57, 208, 0.04); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.70); }
}
.ziel {
  position: absolute;
  display: block;
  border-radius: 10px;
  outline: 2px solid rgba(0, 57, 208, 0.35);
  outline-offset: -2px;
  background: rgba(0, 57, 208, 0.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.70);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, outline-color 0.15s ease;
  animation: ziel-puls 1.2s ease-out 0.2s 1;
}
.ziel:hover, .ziel:focus-visible {
  background: rgba(0, 57, 208, 0.12);
  outline-color: var(--blau);
  box-shadow: 0 0 0 4px rgba(0, 57, 208, 0.18);
}
.ziel.ziel-breit { outline: none; border-radius: 6px; box-shadow: inset 4px 0 0 rgba(0, 57, 208, 0.55); animation: none; }
.ziel.ziel-breit:hover, .ziel.ziel-breit:focus-visible { background: rgba(0, 57, 208, 0.10); box-shadow: inset 4px 0 0 var(--blau); }
.ziel.ziel-breit:focus-visible { outline: 2px solid var(--blau); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  .ziel { animation: none; transition: none; }
}
.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.bildschirm-text { margin: 12px 0 0; font-size: 17px; max-width: 820px; }
.bildschirm-text b { color: var(--blau-dunkel); margin-right: 4px; }
.bildschirm-gross { font-size: 14px; margin-left: 6px; }
.bildschirm-leiste { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 18px; padding-top: 18px; border-top: 1px solid var(--rand); }
.bildschirm-leiste a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--rand);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  background: var(--flaeche);
}
.bildschirm-leiste a:hover, .bildschirm-leiste a:focus-visible { border-color: var(--blau); color: var(--blau); }
.bildschirm-leiste .demo-nr { width: 24px; height: 24px; font-size: 13px; margin-right: 8px; }
.knopf-hell, .knopf-hell:hover { background: var(--blau-hell); color: var(--blau-dunkel); }
.knopf-hell:hover, .knopf-hell:focus-visible { background: #d6e1fa; }

/* Handy und Tablet */
/* Kacheln zwei je Reihe, gleich groß, nur Logo (P5/P6, 12.11.2026) */
@font-face { font-family: "Poppins Morqiva"; font-weight: 800; font-display: swap; src: url("schrift-poppins-800.woff2") format("woff2"); }
:root { --m-hoehe: 24px; }
.programm-raster { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.programm-raster > .programm, .programm-raster > .programm > .innen, .programm-raster .programm-kachel:not([open]), .programm-raster .programm-kachel:not([open]) > summary { height: 100%; }
.programm-raster .programm-kachel > summary { box-sizing: border-box; }
.programm-satz { display: block; margin: 12px 0 0; font-size: 17px; font-weight: 600; color: var(--text); }
.programm-raster .programm-start { margin-top: 12px; }
.programm-raster > .programm { padding: 0; }
.programm-raster > .programm > .innen { max-width: none; padding: 0; }
.programm-raster .programm-kachel .programm-kopf { grid-template-columns: 1fr; gap: 14px; }
/* Logos so groß, dass „Morqiva“ überall gleich hoch ist (gemessene Höhe des „M“ je Bildbreite) */
.programm-kopf img.logo { height: auto; max-width: calc(100% - 18px); }
.programm-kopf img.logo-upload { width: calc(var(--m-hoehe) / 0.1013); }
.programm-kopf img.logo-inventar { width: calc(var(--m-hoehe) / 0.0975); }
.programm-kopf img.logo-architekt { width: calc(var(--m-hoehe) / 0.0954); }
.programm-kopf img.logo-bau { width: calc(var(--m-hoehe) / 0.1087); }
.programm-kopf img.logo-travellmate { width: calc(var(--m-hoehe) / 0.0802); }
.programm-kopf img.logo-communicator { width: calc(var(--m-hoehe) / 0.0750); }
.programm-kopf img.logo-rechnung { width: calc(var(--m-hoehe) / 0.0813); }
/* Kaya: Logo ohne Schriftzug – Name in der Schrift der Logos (Poppins 800, Großbuchstabe so hoch wie das „M“ der Logos) */
.programm-titel.titel-wortmarke { font-family: "Poppins Morqiva", system-ui, sans-serif; font-weight: 800; color: #0328a3; font-size: calc(var(--m-hoehe) / 0.7); letter-spacing: -0.02em; }

@media (max-width: 960px) {
  :root { --m-hoehe: 18px; }
  .programm-raster { gap: 12px; }
  .kacheln { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .kopf-nav a:not(:first-child) { display: none; }
  .buehne { padding: 36px 0 24px; }
  .kacheln { grid-template-columns: 1fr; gap: 14px; }
  .funktionen { grid-template-columns: 1fr; gap: 14px; }
  .programm, .programm-hell { padding: 7px 0; }
  .programm-kopf, .programm-kachel .programm-kopf { grid-template-columns: 1fr; gap: 14px; }
  .programm-kachel > summary { padding: 16px; }
  .programm-inhalt { padding: 18px 14px 4px; }
  .programm-kopf img { max-width: 260px; }
  .programm-kopf-text { max-width: 260px; }
  .programm-text { font-size: 17px; }
  :root { --m-hoehe: 11px; }
  .programm-raster { gap: 10px; }
  .programm-raster .programm-kachel > summary { padding: 12px; }
  .programm-raster .programm-kopf img { padding: 4px; }
  .programm-satz { font-size: 14px; margin-top: 8px; }
  .programm-kopf .kaya-logo { width: 64px; border-radius: 14px; }
  .programm-raster .programm-start { margin-top: 8px; gap: 6px; }
  .programm-raster .knopf { padding: 8px 12px; font-size: 14px; }
  .programm-raster .programm-start .knopf-aus { font-size: 14px; }
  .aufklappen { margin-top: 8px; font-size: 14px; }
  .gruppe { padding: 16px 16px; }
  .gruppe li { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kachel, .kachel:hover { transition: none; transform: none; }
}

/* Zeile und Kurztext erscheinen erst nach dem Drücken (Markus 12.11.2026) */
.programm-inhalt > .programm-zeile { margin: 0 0 6px; }
.programm-inhalt > .programm-kurz { margin: 0 0 22px; font-weight: 600; }

/* Über uns am Ende, über die ganze Breite (Markus 12.11.2026) */
#ueber-uns { grid-column: 1 / -1; }

/* Geöffnete Kachel = ganzer Bildschirm (Markus 12.11.2026); oben eine schmale feste Leiste mit „Schließen“ */
.programm-kachel[open] { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: var(--flaeche-hell); }
.programm-kachel[open] > summary { position: sticky; top: 0; z-index: 1; height: auto; border: none; border-bottom: 1px solid var(--rand); border-radius: 0; padding: 10px 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }
.programm-kachel[open] > summary .programm-kopf { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; max-width: 1120px; margin: 0 auto; }
.programm-kachel[open] > summary .programm-kopf-inhalt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; flex: 1; margin: 0; }
.programm-kachel[open] > summary .programm-kopf img.logo { width: auto; height: 44px; max-width: none; padding: 2px; }
.programm-kachel[open] > summary .programm-kopf .kaya-logo { width: 44px; height: 44px; }
.programm-kachel[open] > summary .titel-wortmarke { font-size: 22px; }
.programm-kachel[open] > summary .programm-satz { display: none; }
.programm-kachel[open] > summary .programm-start, .programm-kachel[open] > summary .aufklappen { margin: 0; }
.programm-kachel[open] > summary .aufklappen { margin-left: auto; }
.programm-kachel[open] > .programm-inhalt { border: none; border-radius: 0; max-width: 1120px; margin: 0 auto; padding-top: 22px; }

/* Demo-Knopf und „Erläuterung öffnen“ in allen Kacheln einer Reihe auf gleicher Höhe (Markus 12.11.2026): unten bündig */
.programm-raster .programm-kachel:not([open]) > summary { display: flex; flex-direction: column; }
.programm-raster .programm-kachel:not([open]) > summary > .programm-kopf { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.programm-raster .programm-kachel:not([open]) > summary .programm-kopf-inhalt { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.programm-raster .programm-kachel:not([open]) > summary .programm-start { margin-top: auto; padding-top: 12px; }
.programm-start .knopf-aus { font-size: inherit; color: var(--blau-dunkel); }

/* Demo mit Kacheln und Erklärung (Markus 12.11.2026: „Kachel drücken – man sieht, was dahinter ist, und es kommt eine
   kleine Erklärung mit Text“; keine Nummern, keine Leiste). Erklärung unter dem Bild (Markus: „unten eine Erklärung“), auch im Hochformat. */
.demo { max-width: 1120px; }
.bildschirm-hoch .bildschirm-rahmen img { max-height: 72vh; }
.erklaerung {
  margin-top: 20px;
  max-width: 760px;
  padding: 22px 26px;
  background: var(--flaeche-hell);
  border: 1px solid var(--rand);
  border-radius: var(--rundung);
}
.erklaerung h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--blau-dunkel); }
.erklaer-ort { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--blau); text-transform: uppercase; letter-spacing: 0.04em; }
.erklaer-satz { margin: 0 0 12px; font-size: 17px; }
.erklaer-liste { list-style: none; margin: 0 0 14px; padding: 0; }
.erklaer-liste li { position: relative; padding: 5px 0 5px 30px; font-size: 16px; }
.erklaer-liste li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--blau);
  border-bottom: 3px solid var(--blau);
  transform: rotate(-45deg);
}
.erklaer-tipp { margin: 0 0 14px; font-size: 14px; color: var(--text-grau); }
.erklaer-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.erklaer-knoepfe:empty { display: none; }
.erklaer-knoepfe .knopf { padding: 10px 16px; font-size: 15px; }

/* Kachel-Übersicht (nur mit kacheln.json der Lieferung, z. B. Bau) */
.uebersicht-einleitung { margin: 0 0 8px; font-size: 17px; }
.uebersicht-gruppe { margin: 26px 0 4px; font-size: 22px; font-weight: 800; color: var(--blau-dunkel); }
.uebersicht-satz { margin: 0 0 14px; color: var(--text-grau); }
.demo-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.demo-kachel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rand);
  border-radius: var(--rundung);
  background: var(--flaeche);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--schatten);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.demo-kachel:hover, .demo-kachel:focus-visible { border-color: var(--blau); box-shadow: 0 10px 28px rgba(0, 57, 208, 0.12); text-decoration: none; }
.demo-kachel img { display: block; width: 100%; height: 170px; object-fit: cover; object-position: top; background: var(--flaeche-hell); border-bottom: 1px solid var(--rand); }
.demo-kachel-titel { padding: 12px 16px 2px; font-weight: 800; font-size: 17px; color: var(--blau-dunkel); }
.demo-kachel-satz { padding: 0 16px; font-size: 15px; color: var(--text-grau); flex: 1; }
.demo-kachel-mehr { padding: 10px 16px 14px; font-weight: 700; color: var(--blau); }

@media (max-width: 760px) {
  .erklaerung { padding: 16px 18px; }
  .erklaerung h2 { font-size: 20px; }
  .demo-kacheln { grid-template-columns: 1fr 1fr; gap: 10px; }
  .demo-kachel img { height: 120px; }
  .demo-kachel-titel { font-size: 15px; padding: 10px 12px 2px; }
  .demo-kachel-satz { font-size: 13px; padding: 0 12px; }
  .demo-kachel-mehr { padding: 8px 12px 10px; font-size: 14px; }
}

/* Druck auf die Programmkachel öffnet die Demo (Markus 12.11.2026: „wenn man auf die Kachel drückt, … was man dann sieht.
   Und wenn man auf die einzelnen Kacheln drückt, kommt eine Erklärung.“). Der Demo-Knopf deckt die ganze geschlossene
   Kachel ab; „Alle Funktionen“ und „Zum Programm“ liegen darüber und bleiben eigene Ziele. Ohne Demo: Kachel klappt auf. */
.programm-kachel:not([open]) > summary { position: relative; }
.programm-kachel:not([open]) .programm-start .knopf:not(.knopf-hell):not(.knopf-aus)::after { content: ""; position: absolute; inset: 0; border-radius: var(--rundung); }
.programm-kachel:not([open]) .aufklappen, .programm-kachel:not([open]) .programm-start .knopf-hell { position: relative; z-index: 1; }

/* Einführung und „Wozu“ je Bild (Inventar Fehler 4, 24.11.2026; beides freiwillig in der Lieferung) */
.demo-einfuehrung { max-width: 900px; margin: 0 0 22px; padding: 18px 20px; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche-hell); }
.demo-einfuehrung h2 { margin: 0 0 8px; font-size: 22px; color: var(--blau-dunkel); }
.demo-einfuehrung h3 { margin: 18px 0 8px; font-size: 18px; color: var(--blau-dunkel); }
.demo-einfuehrung h4 { margin: 0 0 4px; font-size: 16px; }
.demo-einfuehrung p { margin: 0 0 8px; }
.einfuehrung-kurz { font-size: 18px; font-weight: 600; }
.einfuehrung-anwendungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.einfuehrung-anwendung { padding: 12px 14px; border-radius: 10px; background: var(--flaeche); border: 1px solid var(--rand); }
.einfuehrung-anwendung p { margin: 0; font-size: 15px; }
.einfuehrung-ablauf { margin: 0; padding-left: 22px; }
.einfuehrung-ablauf li { margin: 4px 0; }
.erklaer-wozu { margin: 0 0 14px; padding: 10px 12px; border-left: 4px solid var(--blau); background: var(--flaeche-hell); font-size: 16px; }
/* Hinweis über der Funktionsliste eines Programms (Kaya-Startphase, 24.11.2026) */
.programm-hinweis { max-width: 820px; margin: 0 0 16px; padding: 12px 14px; border-left: 4px solid var(--gruen); background: var(--gruen-hell); border-radius: 8px; }
