/* Coli · Ansichten auf der Bühne. Viel Luft, wenig Rahmen, weiche Übergänge. */

.ansicht { --farbe: var(--tuerkis); display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.ansicht[data-farbe="blau"] { --farbe: var(--blau); }
.ansicht[data-farbe="pink"] { --farbe: var(--pink); }
.ansicht[data-farbe="orange"] { --farbe: var(--orange); }
.ansicht[data-farbe="gelb"] { --farbe: var(--gelb); }
.ansicht[data-farbe="gruen"] { --farbe: var(--gruen); }
.ansicht[data-farbe="rot"] { --farbe: var(--rot); }
.ansicht > * { animation: auftauchen .6s var(--weich) both; }
.ansicht > :nth-child(2) { animation-delay: .05s; } .ansicht > :nth-child(3) { animation-delay: .1s; }
.ansicht > :nth-child(4) { animation-delay: .15s; } .ansicht > :nth-child(n+5) { animation-delay: .2s; }
.ansicht svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.a-kopf { display: flex; flex-direction: column; gap: 4px; }
.a-kopf .etikett { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.a-kopf .etikett::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--farbe); transform: rotate(45deg); }
.a-kopf h1 { margin: 0; font: 500 clamp(40px, 6vw, 56px)/.95 var(--titel); color: var(--navy); letter-spacing: .01em; }
.a-kopf .marke-nr { --farbe: var(--blau); vertical-align: 12px; }
.a-unter { margin: 2px 0 0; color: var(--text-2); font-size: 15.5px; }
.a-kurz { margin: 0; color: var(--text-2); font-size: 17px; max-width: 62ch; }
.a-abschnitt { display: flex; flex-direction: column; gap: 10px; }
.a-abschnitt h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

/* Profil-Chips */
.profil-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.profil-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 6px 8px 6px 13px; font-size: 14px; font-weight: 700;
  color: var(--navy); background: color-mix(in srgb, var(--farbe) 20%, #fff);
  animation: chip-ein .5s var(--feder) both; transition: background .3s;
}
.profil-chip span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-weight: 400; color: var(--text-3); background: rgba(255, 255, 255, .7); }
.profil-chip:hover { background: color-mix(in srgb, var(--farbe) 32%, #fff); }
@keyframes chip-ein { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* Coli fragt */
.coli-fragt {
  position: relative; padding: 18px 20px 16px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--farbe) 12%, #fff), #fff 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--farbe) 30%, transparent), var(--schatten-1);
}
.coli-fragt-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.coli-fragt-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--farbe); animation: puls 2.4s ease-in-out infinite; }
.coli-fragt h2 { margin: 6px 0 12px; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl button {
  border: 1px solid var(--linie-2); background: #fff; border-radius: 16px; cursor: pointer;
  padding: 11px 18px; font-size: 16px; font-weight: 600; color: var(--navy);
  animation: auftauchen .5s var(--weich) both; animation-delay: calc(var(--i, 0) * 50ms);
  transition: transform .3s var(--feder), border-color .3s, background .3s, box-shadow .3s;
}
.wahl button:hover { transform: translateY(-2px); border-color: var(--navy); box-shadow: var(--schatten-1); }
.wahl button:active { transform: scale(.97); }
.spaeter { margin-top: 10px; border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }

/* Schrittleiste */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: 1 0 auto; scroll-snap-align: start; }
.stepper button {
  width: 100%; display: flex; align-items: center; gap: 8px; cursor: pointer; text-align: left;
  border: 0; border-radius: 14px; padding: 8px 12px 8px 8px; background: rgba(18, 33, 74, .035); color: var(--text-2);
  font-size: 14px; font-weight: 600; transition: background .35s var(--weich), color .35s, box-shadow .35s;
}
.stepper button:hover { background: rgba(18, 33, 74, .06); }
.stepper .nr { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: #fff; color: var(--navy); transition: background .35s, color .35s; }
.stepper .nr svg { width: 14px; height: 14px; stroke-width: 2.4; }
.stepper button.aktiv { background: #fff; color: var(--navy); box-shadow: var(--schatten-1), 0 0 0 1px var(--linie); }
.stepper button.aktiv .nr { background: var(--farbe); color: #fff; }
.stepper button.fertig .nr { background: color-mix(in srgb, var(--gruen) 85%, #fff); color: #fff; }
.stepper button.naechste:not(.aktiv) .nr { box-shadow: 0 0 0 2px var(--farbe); }
.st-titel { white-space: nowrap; }

/* Fokus-Schritt */
.schritt-flaeche {
  display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 18px; border-radius: 24px;
  background: var(--flaeche); box-shadow: var(--schatten-2), 0 0 0 1px var(--linie);
  animation: auftauchen .5s var(--weich) both;
}
.schritt-flaeche .etikett { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.schritt-flaeche h2 { margin: -4px 0 0; font: 500 34px/1 var(--titel); color: var(--navy); }
.schritt-text { margin: 0; color: var(--text-2); font-size: 16.5px; max-width: 64ch; }
.schritt-flaeche .aufgaben { gap: 2px; }
.schritt-flaeche .aufgaben li { border-radius: 12px; padding: 2px 8px; margin: 0 -8px; transition: background .4s; }
.schritt-flaeche .aufgaben li.als-naechstes { background: color-mix(in srgb, var(--farbe) 12%, transparent); }
.schritt-flaeche .aufgaben li.als-naechstes span::after { content: '  · als Nächstes'; color: var(--text-3); font-size: 13px; }
.schritt-flaeche .aufgaben li.neu { animation: neu-da 1.8s var(--weich) both; }
@keyframes neu-da { 0% { opacity: 0; transform: translateX(-8px); background: color-mix(in srgb, var(--farbe) 30%, transparent); } 30% { opacity: 1; transform: none; } 100% { background: transparent; } }
.aufgaben.ohne-haken li { display: flex; gap: 10px; font-size: 15.5px; padding: 4px 8px; }
.aufgaben.ohne-haken li::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; margin-top: 10px; background: var(--farbe); }
.schritt-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--linie); }
.schritt-flaeche .achtung, .schritt-flaeche .tipp { margin: 0; }

/* Mini-Kacheln (Räume/Geräte im Schritt) */
.mini-kacheln { display: flex; flex-wrap: wrap; gap: 8px; }
.r-mini {
  display: flex; align-items: center; gap: 10px; cursor: pointer; border: 1px solid var(--linie); background: #fff;
  border-radius: 14px; padding: 6px 12px 6px 6px; text-align: left; transition: transform .3s var(--feder), box-shadow .3s;
}
.r-mini:hover { transform: translateY(-2px); box-shadow: var(--schatten-1); }
.r-mini img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.r-mini b { display: block; color: var(--navy); font-size: 14.5px; }
.r-mini small { color: var(--text-3); font-size: 12.5px; }

/* Geräte-Kacheln */
.g-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.g-kacheln.band { display: flex; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; scroll-snap-type: x proximity; }
.g-kacheln.band .g-kachel { flex: 0 0 150px; scroll-snap-align: start; }
.g-kachel {
  display: flex; flex-direction: column; gap: 6px; cursor: pointer; text-align: left; border: 0; padding: 0; background: none;
  transition: transform .35s var(--feder);
}
.g-kachel:hover { transform: translateY(-3px); }
.g-kachel .g-bild {
  aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 14%, #fff), color-mix(in srgb, var(--gelb) 14%, #fff));
  box-shadow: 0 0 0 1px var(--linie); color: var(--navy);
}
.g-kachel .g-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--weich); }
.g-kachel:hover .g-bild img { transform: scale(1.05); }
.g-kachel .g-bild svg { width: 38%; height: 38%; stroke-width: 1.4; opacity: .75; }
.g-kachel .g-name { font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.g-kachel .einweisung { align-self: flex-start; }
.g-kachel.klein { flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--linie); background: #fff; border-radius: 14px; padding: 6px 12px 6px 6px; }
.g-kachel.klein .g-bild { width: 44px; height: 44px; border-radius: 10px; box-shadow: none; flex: 0 0 auto; }
.g-kachel.klein .einweisung { display: none; }
.g-kacheln.band .g-kachel.klein { flex: 0 0 auto; }

/* Galerie */
.galerie { position: relative; border-radius: 26px; overflow: hidden; background: var(--creme); box-shadow: var(--schatten-2); }
.galerie-spur { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.galerie-spur::-webkit-scrollbar { display: none; }
.galerie-spur .bild-knopf { flex: 0 0 100%; scroll-snap-align: center; }
.galerie-spur img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.galerie-punkte { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.galerie-punkte i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .4s var(--weich), background .4s; }
.galerie-punkte i.an { width: 20px; border-radius: 4px; background: #fff; }
.galerie-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--navy); font-size: 26px; line-height: 1; box-shadow: var(--schatten-1);
  opacity: 0; transition: opacity .3s;
}
.galerie:hover .galerie-pfeil, .galerie-pfeil:focus-visible { opacity: 1; }
.galerie-pfeil.links { left: 12px; } .galerie-pfeil.rechts { right: 12px; }
.bild-knopf { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; }

/* Gerät */
.g-kopf { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .g-kopf { grid-template-columns: 1fr; } }
.g-foto { margin: 0; }
.g-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: var(--schatten-2); }
.g-foto figcaption { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.g-symbol { aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center; color: var(--navy);
  background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 16%, #fff), color-mix(in srgb, var(--pink) 10%, #fff)); box-shadow: 0 0 0 1px var(--linie); }
.g-symbol svg { width: 34%; height: 34%; stroke-width: 1.3; opacity: .7; }
.g-kopf .a-kopf h1 { font-size: clamp(36px, 5vw, 48px); }
.g-fakten { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.r-chip { border: 1px solid var(--linie-2); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; }
.r-chip:hover { border-color: var(--navy); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-2); padding: 5px 12px; border-radius: 999px; background: rgba(18, 33, 74, .04); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.status.frei i { background: var(--gruen); }
.status .demo { margin-left: 2px; vertical-align: 0; }

/* Video-Platzhalter */
.video-platz {
  position: relative; display: flex; align-items: flex-end; gap: 14px; width: 100%; aspect-ratio: 16 / 9; max-width: 560px;
  border: 0; border-radius: 24px; padding: 22px; cursor: pointer; text-align: left; color: #fff; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, #2a3a6e, var(--navy) 60%), var(--navy);
}
.video-platz::before { content: ''; position: absolute; inset: 0; background: var(--facetten); opacity: .16; mix-blend-mode: screen; }
.video-play { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); transition: transform .4s var(--feder), background .3s; }
.video-play svg { width: 30px; height: 30px; fill: #fff; stroke: none; margin-left: 4px; }
.video-platz:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: rgba(255, 255, 255, .24); }
.video-text { position: relative; display: flex; flex-direction: column; gap: 2px; }
.video-text b { font-size: 18px; }
.video-text small { opacity: .75; font-size: 13.5px; }

/* Übersicht */
.r-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.r-kachel {
  display: flex; flex-direction: column; border: 0; padding: 0; background: #fff; cursor: pointer; text-align: left; border-radius: 22px; overflow: hidden;
  box-shadow: var(--schatten-1), 0 0 0 1px var(--linie); transition: transform .4s var(--feder), box-shadow .4s;
  animation: auftauchen .6s var(--weich) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.r-kachel:hover { transform: translateY(-4px); box-shadow: var(--schatten-2), 0 0 0 1px var(--linie); }
.r-bild { aspect-ratio: 16 / 10; overflow: hidden; background: var(--creme); }
.r-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--weich); }
.r-kachel:hover .r-bild img { transform: scale(1.05); }
.r-text { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 16px; }
.r-text b { font: 500 26px/1 var(--titel); color: var(--navy); }
.r-text small { color: var(--text-3); font-weight: 700; font-size: 12.5px; }
.r-text span { font-size: 14px; color: var(--text-2); margin-top: 4px; }

.heute .slots { margin-top: 0; }
.karte-auf-buehne .karte { box-shadow: none; padding: 4px 0 0; background: none; }
.karte-auf-buehne .karte::before { display: none; }

/* Neuzeichnen nach einer Antwort/einem Haken: nichts flackert, nur Neues bewegt sich */
.ansicht.ruhig > *, .ansicht.ruhig .schritt-flaeche, .ansicht.ruhig .profil-chip, .ansicht.ruhig .r-kachel, .ansicht.ruhig .wahl button { animation: none; }
.ansicht.ruhig > .coli-fragt { animation: auftauchen .5s var(--weich) both; }
.ansicht.ruhig > .coli-fragt .wahl button { animation: auftauchen .5s var(--weich) both; animation-delay: calc(var(--i, 0) * 50ms); }
.ansicht.ruhig .profil-chip:last-child { animation: chip-ein .5s var(--feder) both; }

.g-rechts { display: flex; flex-direction: column; gap: 12px; }
.g-rechts .coli-fragt h2 { font-size: 19px; }
.g-rechts .a-abschnitt { gap: 12px; }
