/* Interaktive Demo: das Fenster von Ruheraum im Browser (ruheraum-demo.js baut es in <div class="ruheraum-demo">).
   Alle Klassen beginnen mit rd-, damit sie sich mit keiner Seite beißen. Farben wie Source/UI/Look.h der App. */
@font-face { font-family: "Fraunces"; font-style: italic; src: url(../medien/schriften/Fraunces-Italic.ttf); }
@font-face { font-family: "Josefin Sans"; font-weight: 400; src: url(../medien/schriften/JosefinSans-Regular.ttf); }
@font-face { font-family: "Josefin Sans"; font-weight: 600; src: url(../medien/schriften/JosefinSans-SemiBold.ttf); }
@font-face { font-family: "Plex Mono"; font-weight: 400; src: url(../medien/schriften/IBMPlexMono-Regular.ttf); }
@font-face { font-family: "Plex Mono"; font-weight: 600; src: url(../medien/schriften/IBMPlexMono-SemiBold.ttf); }

.ruheraum-demo {
  --rd-papier: #efe9de; --rd-tafel: #f4efe6; --rd-hell: #fbf8f2;
  --rd-tinte: #2b2622; --rd-leise: #6b6258; --rd-blass: #9a9184; --rd-linie: #d8cfc0;
  --rd-kopf: 196px;
  color: var(--rd-tinte); text-align: left;
}
/* :where() wiegt nichts – sonst überstimmen diese Grundregeln die Schriftgrößen der Knöpfe weiter unten */
:where(.ruheraum-demo) * { box-sizing: border-box; }
:where(.ruheraum-demo) button { font: inherit; color: inherit; }
:where(.ruheraum-demo) canvas { display: block; width: 100%; height: 100%; }
.rd-etikett { font-family: "Josefin Sans", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--rd-blass); }
.rd-mono { font-family: "Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--rd-leise); }

.rd-app {
  background: var(--rd-papier); border: 1px solid var(--rd-linie); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 var(--rd-hell) inset, 0 18px 50px -24px rgba(43, 38, 34, .35);
  font-family: "Josefin Sans", sans-serif; line-height: 1.4; user-select: none; -webkit-user-select: none;
}
.rd-kopfleiste { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid var(--rd-linie); }
.rd-projekt small { display: block; font-family: "Fraunces", serif; font-style: italic; font-size: 15px; color: var(--rd-leise); }
.rd-projekt small i { font-family: "Plex Mono", monospace; font-style: normal; font-size: 10px; color: var(--rd-blass); margin-left: 4px; }
.rd-projekt b { display: block; font-family: "Fraunces", serif; font-style: italic; font-weight: 400; font-size: 30px; line-height: 1.1; white-space: nowrap; }
.rd-chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rd-linie); background: var(--rd-hell);
  border-radius: 999px; padding: 6px 16px 4px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; white-space: nowrap;
}
.rd-transport { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.rd-rund { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rd-linie); background: var(--rd-hell); display: grid; place-items: center; cursor: pointer; padding: 0; }
.rd-rund svg { width: 14px; height: 14px; }
.rd-play { width: 46px; height: 46px; background: var(--rd-tinte); border-color: var(--rd-tinte); }
.rd-play svg { width: 16px; height: 16px; fill: var(--rd-hell); }
.rd-play .rd-pause { display: none; }
.rd-app.rd-spielt .rd-play .rd-pfeil { display: none; }
.rd-app.rd-spielt .rd-play .rd-pause { display: block; }
.rd-app.rd-laedt .rd-play { opacity: .55; cursor: progress; }
.rd-anzeige { display: grid; }
.rd-anzeige b { font-family: "Plex Mono", monospace; font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.rd-anzeige .rd-mono { font-size: 10px; color: var(--rd-blass); }
.rd-anzeige.rd-phase b { font-family: "Josefin Sans", sans-serif; letter-spacing: .2em; }
.rd-atem { display: grid; grid-template-columns: 26px auto; gap: 0 8px; align-items: center; }
.rd-atem .rd-etikett { grid-column: 1 / -1; }
.rd-atem-ball { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #b8aee0; display: grid; place-items: center; }
.rd-atem-ball i { width: 14px; height: 14px; border-radius: 50%; background: #8f7fc6; opacity: .55; transform: scale(.55); }
.rd-atem .rd-mono { font-size: 11px; }
.rd-export { background: var(--rd-tinte); color: var(--rd-hell) !important; border: 0; border-radius: 999px; padding: 9px 18px 7px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; cursor: pointer; }

.rd-mitte { position: relative; padding: 14px 22px 10px 0; }
.rd-zeile { display: grid; grid-template-columns: var(--rd-kopf) minmax(0, 1fr); align-items: stretch; }
.rd-links { padding: 0 14px 0 22px; }
.rd-links b { display: block; font-family: "Fraunces", serif; font-style: italic; font-weight: 400; font-size: 24px; margin: 2px 0 8px; }
.rd-links .rd-chip { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; padding: 4px 12px 2px; }
.rd-links .rd-etikett { display: block; margin-top: 8px; }
.rd-feld { position: relative; }
.rd-bogen { height: 186px; border: 1px solid var(--rd-linie); border-radius: 8px; background: var(--rd-tafel); overflow: hidden; cursor: pointer; }
.rd-lineal { height: 30px; cursor: pointer; }
.rd-spur { border-top: 1px dashed var(--rd-linie); }
.rd-spur .rd-feld { height: 64px; cursor: pointer; }
.rd-stimme .rd-feld { height: 58px; display: grid; place-items: center; cursor: default; }
.rd-stimme .rd-feld p { margin: 0; font-family: "Fraunces", serif; font-style: italic; font-size: 15px; color: var(--rd-blass); text-align: center; padding: 0 12px; }
.rd-spurkopf { padding: 8px 14px 6px 22px; }
.rd-spurname { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 14px; white-space: nowrap; }
.rd-spurname i { width: 11px; height: 11px; border-radius: 50%; background: var(--rd-farbe); flex: none; }
.rd-spur.rd-offen .rd-spurname { color: var(--rd-farbe); }
.rd-regler { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.rd-ms { width: 24px; height: 22px; border: 1px solid var(--rd-linie); background: var(--rd-hell); border-radius: 5px; padding: 2px 0 0; font-weight: 600; font-size: 12px; cursor: pointer; line-height: 1; color: var(--rd-tinte) !important; }
.rd-ms.rd-an.rd-m { background: var(--rd-tinte); color: var(--rd-hell) !important; border-color: var(--rd-tinte); }
.rd-ms.rd-an.rd-s { background: #e8c35a; border-color: #c9a33a; }
.rd-ms:disabled { opacity: .45; cursor: default; }
.ruheraum-demo input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 18px; background: transparent; margin: 0 0 0 6px; cursor: pointer; }
.ruheraum-demo input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--rd-farbe) var(--rd-stand), var(--rd-linie) var(--rd-stand)); }
.ruheraum-demo input[type=range]::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--rd-farbe) var(--rd-stand), var(--rd-linie) var(--rd-stand)); }
.ruheraum-demo input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6px; border-radius: 50%; background: var(--rd-hell); border: 1.5px solid var(--rd-tinte); }
.ruheraum-demo input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--rd-hell); border: 1.5px solid var(--rd-tinte); }
.rd-spur.rd-leise .rd-feld canvas, .rd-spur.rd-leise .rd-spurname { opacity: .35; }

.rd-kopfzeiger { position: absolute; top: 14px; bottom: 10px; width: 0; border-left: 1.5px solid var(--rd-tinte); pointer-events: none; }
.rd-kopfzeiger::before { content: ""; position: absolute; top: -2px; left: -6px; border: 5px solid transparent; border-top: 7px solid var(--rd-tinte); }
.rd-kopfzeiger b { position: absolute; left: 0; transform: translateX(-50%); background: var(--rd-tinte); color: var(--rd-hell); font-family: "Plex Mono", monospace; font-weight: 400; font-size: 11px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }

.rd-haube { border-top: 1px solid var(--rd-linie); background: var(--rd-tafel); padding: 16px 22px 18px; display: grid; grid-template-columns: var(--rd-kopf) 1fr; gap: 0 14px; min-height: 96px; }
.rd-haube b { display: block; font-family: "Fraunces", serif; font-style: italic; font-weight: 400; font-size: 26px; line-height: 1.15; }
.rd-haube .rd-mono { display: block; }
.rd-haube p { margin: 0; font-family: Georgia, serif; font-size: 16px; line-height: 1.5; color: var(--rd-leise); max-width: 46em; }
.rd-haube p + p { margin-top: 6px; font-size: 14px; color: var(--rd-blass); }

.rd-unter { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; opacity: .85; }
.rd-hinweis {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--rd-tinte); color: var(--rd-hell); border-radius: 12px; padding: 12px 18px; font: 16px/1.5 Georgia, serif;
  max-width: calc(100% - 32px); transition: opacity .25s, transform .25s; z-index: 50;
}
.rd-hinweis.rd-zeigen { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.rd-hinweis a { color: var(--rd-hell); }

/* Drei kurze Meditationen (.ruheraum-kurz) und „Keine KI“ (.ruheraum-regeln): Farben von der Seite (currentColor),
   Schriften der Überschriften und Player ebenfalls von der Seite */
.rk-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.rk-karte {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent); background: color-mix(in srgb, currentColor 4%, transparent);
}
.rk-karte h3 { font-size: 26px; margin: 0; }
.rk-karte p { margin: 0; font-size: 16px; line-height: 1.5; opacity: .75; }
.rk-mini { margin-top: auto; height: 92px; border-radius: 8px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); overflow: hidden; }
.rk-mini canvas { display: block; width: 100%; height: 100%; }
.rk-karte .spieler-titel { display: none; }   /* der Titel steht schon über der Karte */
.rk-ueber { grid-column: 1 / -1; margin: 0 0 -4px; font-family: "Josefin Sans", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }

.rr-regeln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; text-align: left; }
.rr-regel { border-top: 2px solid currentColor; padding-top: 14px; }
.rr-nr { font-family: "Josefin Sans", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .16em; opacity: .55; }
.rr-regel h3 { font-size: 24px; margin: 4px 0 8px; }
.rr-regel p { margin: 0; font-size: 16px; line-height: 1.55; opacity: .75; }

@media (max-width: 980px) {
  .rd-links .rd-chip, .rd-links .rd-etikett { display: none; }
  .rk-karten, .rr-regeln { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ruheraum-demo { --rd-kopf: 112px; }
  .rd-app { border-radius: 10px; }
  .rd-kopfleiste { padding: 10px 12px; gap: 10px 14px; }
  .rd-projekt b { font-size: 22px; }
  .rd-projekt small, .rd-tonart, .rd-export, .rd-atem { display: none; }
  .rd-transport { margin-left: 0; order: 3; }
  .rd-anzeige b { font-size: 15px; }
  .rd-mitte { padding: 10px 10px 8px 0; }
  .rd-links, .rd-spurkopf { padding-left: 10px; padding-right: 8px; }
  .rd-links b { font-size: 18px; }
  .rd-bogen { height: 132px; }
  .rd-spurname { font-size: 11px; letter-spacing: .1em; gap: 6px; }
  .rd-spurname i { width: 9px; height: 9px; }
  .rd-ms { width: 21px; height: 20px; font-size: 11px; }
  .rd-regler { flex-wrap: wrap; gap: 4px; }
  .rd-regler input[type=range] { flex-basis: 100%; margin: 2px 0 0 !important; }
  .rd-spur .rd-feld { height: 70px; }
  .rd-stimme .rd-feld p { font-size: 13px; }
  .rd-haube { grid-template-columns: 1fr; padding: 14px 12px; }
  .rd-kopfzeiger b { font-size: 10px; padding: 0 6px; }
}
