/* Vorführungen: Teile, die aussehen wie in der App (Tracker, Modulkarte, Handy).
   Genutzt auf Startseite und Funktionsseiten. */

/* Vorführung: vereinfachter Tracker */
.demo { background: var(--chip); border: 1px solid var(--linie); border-radius: 24px; padding: clamp(18px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 22px; }
.demo__leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.demo__titel { font-size: 15px; font-weight: 600; }
.demo__leiste--aussen { margin: 0 4px 14px; }   /* Leiste über der Kachel */
.demo__leiste--aussen .demo__titel { font-size: 16px; }
.demo__beispiel { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-gedaempft); }
.demo__beispiel select {
  font-size: 14px; font-weight: 500; color: var(--graphit); background: var(--weiss);
  border: 1px solid var(--linie); border-radius: 9px; padding: 6px 10px; max-width: 100%;
}
.demo__stand { display: flex; gap: 14px; align-items: stretch; }
.demo__fortschritt { flex: 1; background: var(--papier-hell); border: 1px solid var(--linie); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.demo__zahlen { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--text-gedaempft); }
.demo__zahlen b { color: var(--graphit); font-weight: 600; font-size: 16px; }
.demo__balken { position: relative; height: 10px; border-radius: 6px; background: var(--chip); overflow: hidden; }
.demo__balken i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; transition: width .4s ease; }
.demo__balken .geplant { background: var(--zweitton); }
.demo__balken .erbracht { background: var(--graphit); }
.demo__zahlen em.punkt { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.punkt--erbracht { background: var(--graphit); }
.punkt--geplant { background: var(--zweitton); }
.demo__schnitt { flex: none; width: 112px; background: var(--graphit); color: var(--weiss); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.demo__schnitt span { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--auf-dunkel-gedaempft); }
.demo__schnitt b { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }

.demo__kopf { display: flex; flex-direction: column; gap: 2px; }
.demo__kopf strong { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.demo__kopf span { font-size: 14px; color: var(--text-gedaempft); }
.demo__liste { display: flex; flex-direction: column; gap: 22px; }
/* Die Modulliste scrollt in einem festen Rahmen, damit die Seite nicht endlos lang wird.
   Kopf, Fortschritt und Note bleiben oben stehen. Der Verlauf unten zeigt: da kommt noch was. */
.demo__liste {
  max-height: 560px; overflow-y: auto; overscroll-behavior: auto;
  margin-right: -10px; padding: 2px 10px 2px 0; scrollbar-width: thin; scrollbar-color: var(--linie) transparent;
}
.demo__liste.mehr-unten {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
}
@media (max-width: 480px) { .demo__liste { max-height: 480px; } }
.demo__liste > .demo__gruppe + .demo__gruppe, .demo__liste > .demo__mehr + .demo__gruppe { border-top: 2px solid var(--linie); padding-top: 20px; }
.demo__gruppe { display: flex; flex-direction: column; gap: 8px; }
.demo__gruppenkopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; }
.demo__gruppenkopf small { font-size: 13px; font-weight: 500; color: var(--text-gedaempft); }
.demo__modul {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--papier-hell); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px;
  font-size: 15px; animation: demo-rein .3s ease;
}
.demo__modul-name { min-width: 0; font-weight: 500; }
.demo__modul.bewertet .demo__modul-name, .demo__modul.bewertet .demo__ects { opacity: .5; }
.demo__ects { flex: none; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--chip); }
.demo__modul select {
  flex: none; font-size: 14px; background: var(--weiss); border: 1px solid var(--linie);
  border-radius: 9px; padding: 6px 8px; color: var(--graphit);
}
.demo__modul select.gesetzt { border-color: var(--gruen); background: var(--gruen-hell); }
.demo__modul select.durch { border-color: var(--rot); background: var(--rot-hell); }
.demo__weg {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--chip); color: var(--graphit); padding: 0; display: grid; place-items: center;
}
.demo__weg:hover { background: var(--linie); }
.demo__gewaehlt {
  align-self: flex-start; display: flex; align-items: center; gap: 10px; max-width: 100%;
  background: var(--papier-hell); border: 1px solid var(--linie); border-radius: 999px; padding: 5px 6px 5px 6px; font-size: 15px; font-weight: 500;
}
.demo__marke { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--graphit); color: var(--weiss); border-radius: 999px; padding: 4px 9px; }
.demo__ast { display: flex; flex-direction: column; gap: 18px; margin-left: 10px; padding-left: 16px; border-left: 2px solid var(--linie); }
.demo__auswahl {
  align-self: flex-start; min-width: min(280px, 100%); max-width: 100%; font-size: 14px; background: var(--weiss);
  border: 1px solid var(--linie); border-radius: 9px; padding: 8px 10px; color: var(--graphit);
}
.demo__mehr {
  align-self: flex-start; border: 1px dashed var(--linie); background: transparent; border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: 14px; color: var(--text-gedaempft); cursor: pointer;
}
.demo__mehr:hover { color: var(--graphit); border-color: var(--text-gedaempft); }
.demo__rechts { display: flex; align-items: center; gap: 8px; }
.demo__hinweis { font-size: 13px; color: var(--text-gedaempft); }
@keyframes demo-rein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo__modul { animation: none; } .demo__balken i { transition: none; } }
@media (max-width: 480px) {
  .demo__stand { flex-direction: column; }
  .demo__schnitt { width: auto; flex-direction: row; align-items: center; }
}


/* Vorführung auf schmalen Bildschirmen: nichts darf überstehen */
.demo__beispiel { max-width: 100%; min-width: 0; }
.demo__beispiel select { min-width: 0; }
@media (max-width: 480px) {
  .demo__leiste { flex-direction: column; align-items: stretch; }
  .demo__beispiel { flex-wrap: wrap; }
  .demo__beispiel select { width: 100%; }
  .demo__modul { flex-wrap: wrap; row-gap: 8px; }
  .demo__modul-name { flex: 1 1 100%; }
  .demo__rechts { margin-left: auto; }
    .demo__ast { margin-left: 4px; padding-left: 12px; }
}

/* Modulkarte zum Aufklappen (Vorführung) */
.modulkarte { background: var(--papier-hell); border: 1px solid var(--linie); border-radius: 20px; overflow: hidden; }
.modulkarte summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; }
.modulkarte summary::-webkit-details-marker { display: none; }
.modulkarte__titel { display: flex; flex-direction: column; gap: 4px; }
.modulkarte__titel strong { font-size: 19px; font-weight: 500; }
.modulkarte__titel span { font-size: 13px; color: var(--text-gedaempft); letter-spacing: .04em; }
.modulkarte__pfeil { flex: none; transition: transform .2s; font-size: 18px; }
.modulkarte__rechts { flex: none; display: flex; align-items: center; gap: 12px; }
.modulkarte__ects { font-size: 15px; font-weight: 600; white-space: nowrap; }
.pill--klein { font-size: 13px; padding: 4px 10px; }
.modulkarte[open] .modulkarte__pfeil { transform: rotate(90deg); }
.modulkarte__inhalt { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.modulkarte__inhalt p { margin: 0; line-height: 1.55; }
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.eckdaten div { background: var(--papier); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.eckdaten dt { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-gedaempft); }
.eckdaten dd { margin: 0; font-size: 15px; }
.modulkarte__schlagworte { display: flex; flex-wrap: wrap; gap: 8px; }
.modulkarte__schlagworte .pill { font-size: 13px; padding: 5px 11px; }
.eckdaten .eckdaten--breit { grid-column: 1 / -1; }
.modulkarte__quelle { font-size: 13px; color: var(--text-gedaempft); }
.wortlaut { border-top: 1px solid var(--linie); padding-top: 12px; }
.wortlaut summary { padding: 0; font-size: 15px; font-weight: 500; }
.wortlaut p { margin-top: 10px; font-size: 15px; color: var(--text-gedaempft); }
.wortlaut__original { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.wortlaut__original h4 { margin: 10px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-gedaempft); }
.wortlaut__original p { margin: 0; line-height: 1.6; }
.wortlaut__quelle { font-size: 13px; color: var(--text-gedaempft); }
.vorfuehrung-hinweis { font-size: 14px; color: var(--text-gedaempft); }


/* Handy-Rahmen */
.handy {
  border: 10px solid var(--graphit); border-radius: 46px; background: var(--papier-hell);
  padding: 16px 20px 14px; display: flex; flex-direction: column; gap: 16px;
}
.handy__status { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.handy__insel { width: 84px; height: 24px; border-radius: 12px; background: var(--graphit); }
.handy .wortmarke { height: 20px; margin: 0 auto; color: var(--graphit); }
.handy__frage { font-size: 26px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.handy__tabs { display: flex; gap: 6px; }
.handy__gericht { background: var(--zweitton-hell); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.handy__gericht:nth-child(even) { background: var(--chip); }
.handy__gericht div { display: flex; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 600; }
.handy__gericht div > span:last-child { white-space: nowrap; }
.handy__gericht span { font-size: 14px; color: var(--text-gedaempft); }
.handy__zeiten { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.handy__zeiten > span { display: flex; justify-content: space-between; gap: 8px; }
.handy__zeiten em { font-style: normal; color: var(--text-gedaempft); }
.handy__leiste { display: flex; justify-content: space-around; border-top: 1px solid var(--linie); padding-top: 12px; font-size: 14px; color: var(--text-gedaempft); }
.handy__leiste b { color: var(--graphit); font-weight: 600; }
.handy__strich { align-self: center; width: 110px; height: 4px; border-radius: 2px; background: var(--graphit); }



/* ------------------------------------------------------------------------
   Telefon: iPhone-Proportionen (390 × 844), Rahmen mit Seitentasten,
   Dynamic Island, Statusleiste, App-Leiste unten und Home-Strich.
   Genutzt auf der Startseite (Meine Uni, uni-handy.js).
   ------------------------------------------------------------------------ */
.telefon {
  position: relative; width: min(330px, 100%); aspect-ratio: 390 / 844; margin: 0 auto;
  border-radius: 56px; padding: 11px;
  background: linear-gradient(145deg, #3a3835 0%, #1b1a18 45%, #2c2b28 100%);
  box-shadow: inset 0 0 0 1.5px #55524d, inset 0 0 0 4px #121110, 0 40px 70px -30px oklch(0.2 0.03 50 / .45), 0 18px 30px -18px oklch(0.2 0.03 50 / .35);
}
.telefon__knopf { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a2926, #46433f); }
.telefon__knopf--aktion { left: -3px; top: 17%; height: 4.2%; }
.telefon__knopf--lauter { left: -3px; top: 24.5%; height: 7.6%; }
.telefon__knopf--leiser { left: -3px; top: 33.5%; height: 7.6%; }
.telefon__knopf--seite { right: -3px; top: 27%; height: 11.5%; background: linear-gradient(270deg, #2a2926, #46433f); }
.telefon__glas {
  position: relative; height: 100%; border-radius: 46px; overflow: hidden; background: var(--papier-hell);
  display: flex; flex-direction: column; isolation: isolate;
}
.telefon__status { flex: none; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px; font-size: 15px; font-weight: 600; color: var(--graphit); }
.telefon__uhr { min-width: 54px; }
.telefon__insel { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 31%; height: 30px; border-radius: 16px; background: #0d0d0c; }
.telefon__symbole { display: flex; align-items: center; gap: 5px; min-width: 54px; justify-content: flex-end; }
.telefon__symbole svg { fill: currentColor; }
.telefon__strich { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 36%; height: 5px; border-radius: 3px; background: var(--graphit); }

/* App darin */
.app__leiste { flex: none; display: flex; justify-content: center; padding: 2px 0 6px; }
.app__leiste .wortmarke { height: 18px; color: var(--graphit); }
.app__bildschirm {
  flex: 1; min-height: 0; overflow: hidden; padding: 6px 16px 12px; display: flex; flex-direction: column; gap: 10px;
  font-size: 12.5px; line-height: 1.35; color: var(--graphit); transition: opacity .16s ease, transform .16s ease;
}
.app__bildschirm.wechselt { opacity: 0; transform: translateY(6px); }
.app__tabs { flex: none; display: flex; justify-content: space-around; padding: 8px 10px 26px; border-top: 1px solid var(--linie); background: var(--weiss); font-size: 10.5px; font-weight: 500; color: var(--text-gedaempft); }
.app__tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.app__tabs svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app__tabs .ist-aktiv { color: var(--graphit); font-weight: 600; }
.app__tabs .ist-aktiv svg { stroke: var(--orange); }

.app__kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.app__titel { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.app__klein { font-size: 11px; color: var(--text-gedaempft); }
.app__leer { margin: 8px 0; color: var(--text-gedaempft); }
.app__abschnitt { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-gedaempft); margin-top: 2px; }
.app__status { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--chip); color: var(--text-gedaempft); white-space: nowrap; }
.app__status:has(br) { border-radius: 9px; line-height: 1.3; padding: 4px 9px; text-align: right; }   /* Status mit Uhrzeit in zwei Zeilen */
.app__status.ist-offen { background: var(--gruen-hell); color: var(--gruen-text); }

/* Campusplan */
.app__karte { flex: none; aspect-ratio: 1.25; border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); background: #fff; }
.app__karte svg { width: 100%; height: 100%; display: block; }
.app__markiert polygon { fill: var(--orange); fill-opacity: .9; stroke: oklch(0.55 0.15 50); stroke-width: 4; }
.app__zurueck { font-size: 11px; font-weight: 600; color: var(--orange-text, var(--graphit)); }
.app__liste { display: flex; flex-direction: column; gap: 6px; }
.app__zeile { background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; padding: 7px 10px; display: flex; flex-direction: column; }
.app__zeile b { font-weight: 600; }
.app__zeile span { font-size: 11px; color: var(--text-gedaempft); }

/* Öffnungszeiten */
.app__gruppe { display: flex; align-items: center; gap: 8px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; padding: 9px 10px; }
.app__gruppe b { flex: 1; font-weight: 600; }
.app__gruppe span { font-size: 10.5px; color: var(--text-gedaempft); white-space: nowrap; }
.app__gruppe span.ist-offen { color: var(--gruen-text); font-weight: 600; }
.app__gruppe i, .app__frage i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; font-size: 11px; }
.app__gruppe--offen { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.app__ort { background: var(--weiss); border: 1.5px solid var(--linie); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 4px; margin-top: -6px; }
.app__ort--offen { border-color: var(--gruen); }
.app__ort-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.app__ort-kopf b { font-weight: 600; }
.app__zeiten { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.app__zeiten span { display: flex; gap: 10px; color: var(--text-gedaempft); }
.app__zeiten span b { min-width: 42px; color: var(--graphit); font-weight: 600; }

/* Mensa */
.app__tage { display: flex; gap: 5px; }
.app__tag { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 5px 0; border-radius: 9px; background: var(--weiss); border: 1px solid var(--linie); font-size: 10px; color: var(--text-gedaempft); }
.app__tag b { font-size: 11.5px; color: var(--graphit); }
.app__tag--an { background: var(--graphit); border-color: var(--graphit); color: oklch(0.85 0.005 70); }
.app__tag--an b { color: var(--weiss); }
.app__gericht { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; gap: 4px; }
.app__gericht-kopf { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.app__gericht-kopf span { flex: 1; font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-gedaempft); }
.app__gericht-kopf i { font-style: normal; font-size: 9.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--chip); color: var(--text-gedaempft); }
.app__gericht-kopf i.gruen { background: var(--gruen-hell); color: var(--gruen-text); }
.app__gericht b { font-weight: 600; font-size: 13px; }
.app__gericht strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* Semestertermine */
.app__semester { background: var(--graphit); color: var(--weiss); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.app__semester b { font-weight: 600; font-size: 13.5px; }
.app__semester span { font-size: 10.5px; color: oklch(0.85 0.005 70); }
.app__termin { background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.app__termin-kopf { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--text-gedaempft); }
.app__termin-kopf i { font-style: normal; padding: 1px 7px; border-radius: 999px; background: var(--chip); }
.app__termin b { font-weight: 600; }

/* Wenn mal was ist */
.app__frage { display: flex; align-items: center; gap: 8px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; padding: 9px 10px; }
.app__frage b { flex: 1; font-weight: 600; }
.app__frage--offen { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.app__stelle { background: var(--zweitton-hell); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; margin-top: -6px; }
.app__stelle div { display: flex; flex-direction: column; }
.app__stelle b { font-weight: 600; }
.app__stelle span:not(.app__status) { font-size: 11px; color: var(--text-gedaempft); }
.app__stelle .app__status { align-self: flex-start; }
.app__schritte { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }

/* Knöpfe unter dem Handy (Meine-Uni-Seite): nur Text auf einer feinen Linie, wie die Zeilen
   auf der Startseite; unter dem aktiven läuft der orange Strich bis zum nächsten Wechsel */
.uni__handy { width: min(340px, 100%); }
.telefon__auswahl { display: flex; width: max-content; max-width: 100%; margin: 22px auto 0; border-bottom: 1px solid var(--linie); }
.telefon__auswahl [data-handy-zeile] {
  position: relative; cursor: pointer; font-size: 13px; font-weight: 500;
  padding: 8px 10px 10px; color: var(--text-gedaempft); transition: color .2s;
}
.telefon__auswahl [data-handy-zeile]:hover, .telefon__auswahl [data-handy-zeile].ist-aktiv { color: var(--graphit); }
.telefon__auswahl [data-handy-zeile]:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.telefon__auswahl [data-handy-zeile]::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--orange); }
.telefon__auswahl .ist-aktiv::after { width: 100%; }
[data-uni-handy].laeuft .telefon__auswahl .ist-aktiv::after { animation: uni-takt 5s linear forwards; }
@keyframes uni-takt { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { [data-uni-handy].laeuft .telefon__auswahl .ist-aktiv::after { animation: none; } }

/* Große Vorschau (Fenster über die ganze Breite, vorfuehrung.js) */
/* Der Hinweis sitzt unten auf Höhe des Kartenendes rechts, der Text bleibt oben */
.seitenkopf__reihe:has(.vorschau-tipp) { align-items: stretch; }
.vorschau-tipp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--linie); }
.vorschau-tipp__text { font-size: 17px; font-weight: 500; line-height: 1.5; }
.vorschau-tipp__text .klein { font-weight: 400; }
.vorschau { width: min(1240px, calc(100vw - 32px)); height: calc(100dvh - 48px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 28px; background: var(--chip); color: var(--graphit); box-shadow: 0 24px 80px oklch(0.15 0.005 60 / 0.3); }
.vorschau::backdrop { background: oklch(0.15 0.005 60 / 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vorschau[open] { animation: vorschau-rein .3s cubic-bezier(0.22, 1, 0.36, 1); }
.vorschau[open]::backdrop { animation: vorschau-dunkel .3s ease; }
@keyframes vorschau-rein { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes vorschau-dunkel { from { opacity: 0; } to { opacity: 1; } }
.vorschau__innen { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 2.4vw, 28px); }
.vorschau__kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px; }
.vorschau__kopf .demo__titel { font-size: 16px; }
.vorschau__zu { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--papier-hell); color: var(--graphit); padding: 0; display: grid; place-items: center; cursor: pointer; }
.vorschau__zu svg { width: 14px; height: 14px; }
.vorschau__zu:hover { background: var(--weiss); }
.vorschau .demo { flex: 1; min-height: 0; }
.vorschau .demo__liste { max-height: none; flex: 1; min-height: 0; }
html.vorschau-offen { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .vorschau[open], .vorschau[open]::backdrop { animation: none; } }
/* In der großen Vorschau keine zweite Fläche: die Vorführung liegt direkt auf dem Fenster, das denselben Ton hat wie die Karte */
.vorschau .demo { background: transparent; border: 0; padding: 0; }



/* Kopf des Fensters: Einführung erneut starten, Schließen */
.vorschau__knoepfe { display: flex; align-items: center; gap: 8px; }
.vorschau__einfuehrung { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text-gedaempft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; }
.vorschau__einfuehrung:hover { color: var(--graphit); }

/* Einführung: Scheinwerfer und Sprechblase (vorfuehrung.js) */
.tour__licht {
  position: fixed; z-index: 10; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 0 200vmax oklch(0.15 0.005 60 / 0.5), 0 0 0 3px var(--orange);
  transition: left .4s cubic-bezier(0.22, 1, 0.36, 1), top .4s cubic-bezier(0.22, 1, 0.36, 1), width .4s cubic-bezier(0.22, 1, 0.36, 1), height .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tour__blase {
  position: fixed; z-index: 11; width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 6px;
  background: var(--graphit); color: var(--weiss); border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 16px 48px oklch(0.15 0.005 60 / 0.35);
  transition: left .4s cubic-bezier(0.22, 1, 0.36, 1), top .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tour__blase--mitte { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(400px, calc(100vw - 32px)); padding: 26px 26px 22px; text-align: center; align-items: center; }
.tour__blase--rein { animation: tour-rein .35s cubic-bezier(0.22, 1, 0.36, 1); }
.tour__blase--mitte.tour__blase--rein { animation-name: tour-rein-mitte; }
@keyframes tour-rein { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes tour-rein-mitte { from { opacity: 0; scale: .96; } to { opacity: 1; scale: 1; } }
.tour__zaehler { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-label); }
.tour__titel { font-family: var(--schrift-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.tour__blase--mitte .tour__titel { font-size: 24px; }
.tour__text { font-size: 15px; line-height: 1.5; color: var(--auf-dunkel-gedaempft); }
.tour__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.tour__blase--mitte .tour__knoepfe { justify-content: center; }
.tour__weiter { border: 0; border-radius: 10px; background: var(--orange); color: var(--graphit); font: inherit; font-size: 15px; font-weight: 600; padding: 9px 16px; cursor: pointer; }
.tour__weiter:hover { background: var(--orange-label); }
.tour__leise { border: 0; background: transparent; color: var(--auf-dunkel-gedaempft); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 2px; }
.tour__leise:hover { color: var(--weiss); }
@media (prefers-reduced-motion: reduce) { .tour__licht, .tour__blase { transition: none; } .tour__blase--rein { animation: none; } }


/* Am PC: Karte auf der Seite als Vorschaubild, Klick öffnet die große Vorschau (vorfuehrung.js) */
.demo--vorschaubild { cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.demo--vorschaubild > * { pointer-events: none; }
.demo--vorschaubild .demo__liste { overflow: hidden; }
.demo--vorschaubild:hover, .demo--vorschaubild:focus-visible { border-color: var(--orange); box-shadow: var(--fokus); border-radius: 24px; }
