/* Echtzeit-Editor leicht gemacht: Beschriftungen, Fahrplan, Tour */

/* Reiter immer mit Beschriftung: Symbol über Text, passt auch auf kleinere Bildschirme */
@media (min-width: 821px) { body.sm-studio #hsBar { height: 62px; } }
#hsBar .sm-tabs { gap: 2px; padding: 4px; }
#hsBar .sm-tabs > button, #hsBar .sm-more-btn { flex-direction: column; justify-content: center; gap: 3px !important; height: 50px !important; min-width: 62px; padding: 0 9px !important; }
#hsBar .sm-tabs > button span, #hsBar .sm-more-btn span { display: block !important; font-size: 11.5px !important; font-weight: 700 !important; line-height: 1 !important; }
#hsBar .sm-tabs > button i, #hsBar .sm-more-btn i { font-size: 17px !important; line-height: 1; width: auto !important; }
#hsBar .sm-more-btn { display: inline-flex !important; align-items: center; border: 0 !important; border-radius: 10px !important; background: transparent !important; color: #cfdcd9 !important; }
#hsBar .sm-more-btn:hover { background: #ffffff18 !important; color: #fff !important; }
#hsBar .sm-more-btn i { font-style: normal; color: #e7c9a2; }

/* Werkzeuge über der Vorschau mit Beschriftung */
#hsCtx .sm-tools button span { display: inline !important; font-size: 12px; font-weight: 600; }
#hsCtx .sm-tools button { gap: 6px; padding: 0 10px !important; width: auto !important; }
#hsCtx .devices button span { display: inline !important; font-size: 12px; }
#hsCtx .devices button { width: auto !important; padding: 0 10px !important; gap: 5px; }

/* Kopfleiste im Editor: Schriftzug nicht über die Werkzeuge legen */
@media (max-width: 1280px) {
  body.sm-studio:not(.creator-home-open) header .brand.hwc-brand .hwc-word { display: none !important; }
}

/* Fahrplan-Knopf */
#hsBar #elFahrplan { display: inline-flex !important; align-items: center; gap: 8px; height: 42px !important; padding: 0 12px 0 6px !important; border-radius: 12px !important; border: 1px solid #f1d6a866 !important; background: #f1d6a81f !important; color: #fff !important; max-width: none !important; }
#hsBar #elFahrplan:hover { background: #f1d6a833 !important; }
.el-ring { width: 32px; height: 32px; flex: none; }
.el-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.el-ring circle { fill: none; stroke: #ffffff2e; stroke-width: 4; }
.el-ring circle.el-wert { stroke: #f1d6a8; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset .6s cubic-bezier(.2, .8, .2, 1); }
#elFahrplan.el-fertig .el-ring circle.el-wert { stroke: #7bd3a8; }
.el-knopf-text { display: grid; text-align: left; line-height: 1.15; }
.el-knopf-text b { font-size: 13px; font-weight: 800; } .el-knopf-text small { font-size: 11px; color: #f1d6a8; font-weight: 700; }

/* Fahrplan-Fenster */
#elFenster { position: fixed; z-index: 2147482200; width: min(430px, calc(100vw - 20px)); max-height: calc(100dvh - 160px); overflow-y: auto; padding: 16px; border-radius: 20px; background: #fff; color: #14323a; box-shadow: 0 30px 70px -18px #0b182080, 0 0 0 1px #e1e7e4; font: 14px/1.45 Manrope, "Segoe UI", system-ui, sans-serif; animation: el-auf .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes el-auf { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
#elFenster button, #elFenster input { font-family: inherit; margin: 0; box-shadow: none; min-height: 0; }
.el-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.el-kopf b { display: block; font-size: 18px; } .el-kopf small { color: #5f7177; }
#elFenster .el-zu { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: #f1f4f2; color: #14323a; font-size: 18px; cursor: pointer; }
.el-balken { height: 8px; border-radius: 99px; background: #e8eeeb; overflow: hidden; margin: 12px 0 14px; }
.el-balken i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2a9079, #7bd3a8); transition: width .5s; }
#elFenster .el-naechster { display: grid; gap: 2px; width: 100%; text-align: left; padding: 14px 16px; margin: 0 0 12px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #14323a, #1d6d5e); color: #fff; cursor: pointer; }
.el-naechster small { color: #f1d6a8; font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.el-naechster b { font-size: 16px; } .el-naechster span { color: #ffffffcc; font-size: 13px; }
.el-naechster em { font-style: normal; font-weight: 800; color: #f1d6a8; margin-top: 4px; }
.el-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.el-liste li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 6px; border-radius: 12px; }
.el-liste li:hover { background: #f4f8f6; }
.el-haken { position: relative; flex: none; cursor: pointer; margin: 0; }
.el-haken input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.el-haken span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #cfdcd6; color: #5f7177; font-weight: 800; font-size: 12.5px; }
.el-liste li.ok .el-haken span { background: #2a9079; border-color: #2a9079; color: transparent; position: relative; }
.el-liste li.ok .el-haken span::after { content: "✓"; position: absolute; color: #fff; font-size: 15px; }
.el-haken input:focus-visible + span { outline: 3px solid #c99a5b; outline-offset: 2px; }
.el-liste li > div { flex: 1; min-width: 0; display: grid; }
.el-liste b { font-size: 14px; } .el-liste small { color: #66777d; font-size: 12.5px; }
.el-liste li.ok b { color: #5f7177; }
#elFenster .el-liste button { flex: none; height: 32px; padding: 0 12px; border-radius: 9px; border: 1.5px solid #9cc7bb; background: #fff; color: #16564b; font-weight: 800; font-size: 12.5px; cursor: pointer; }
#elFenster .el-liste li:not(.ok) button { background: #1d6d5e; border-color: #1d6d5e; color: #fff; }
.el-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef1ef; color: #66777d; font-size: 12.5px; }
#elFenster .el-tour { height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: #fbf0dd; color: #8a5a2b; font-weight: 800; font-size: 13px; cursor: pointer; }

/* Hinweis oben in der rechten Leiste */
.el-tipp { display: flex; gap: 8px; align-items: flex-start; margin: 10px 12px 4px !important; padding: 10px 12px; border-radius: 12px; background: #fffaf0; border: 1px solid #f0e2c4; color: #6b4a22; font: 600 13px/1.45 Manrope, "Segoe UI", system-ui, sans-serif; }

/* Geführte Tour */
#elTour { position: fixed; inset: 0; z-index: 2147483400; }
.et-loch { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px #0b1820b3; transition: all .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; outline: 3px solid #f1d6a8; outline-offset: 2px; }
.et-karte { position: fixed; padding: 18px 18px 14px; border-radius: 18px; background: #fff; color: #14323a; box-shadow: 0 24px 60px #0008; font: 14.5px/1.5 Manrope, "Segoe UI", system-ui, sans-serif; transition: top .35s, left .35s; }
.et-karte button { font-family: inherit; margin: 0; box-shadow: none; min-height: 0; }
.et-zahl { color: #8a5a2b; font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.et-karte h3 { margin: 4px 0 6px; font-size: 19px; }
.et-karte p { margin: 0 0 14px; color: #34474e; }
.et-knoepfe { display: flex; align-items: center; gap: 8px; }
.et-knoepfe span { flex: 1; display: flex; justify-content: center; gap: 5px; }
.et-knoepfe span i { width: 7px; height: 7px; border-radius: 50%; background: #d6dfdb; }
.et-knoepfe span i.an { background: #1d6d5e; width: 18px; border-radius: 99px; }
.et-karte .et-ueber { white-space: nowrap; border: 0; background: none; color: #66777d; font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 0; }
.et-karte .et-zurueck { height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #cfdcd6; background: #fff; color: #14323a; font-weight: 700; cursor: pointer; }
.et-karte .et-zurueck:disabled { opacity: .4; cursor: default; }
.et-karte .et-weiter { height: 38px; padding: 0 16px; border-radius: 10px; border: 0; background: #1d6d5e; color: #fff; font-weight: 800; cursor: pointer; }

@media (max-width: 1100px) {
  #hsBar .sm-tabs > button, #hsBar .sm-more-btn { min-width: 52px; padding: 0 6px !important; }
  #hsBar .sm-tabs > button span, #hsBar .sm-more-btn span { font-size: 10.5px !important; }
  .el-knopf-text b { display: none; }
  #hsCtx .sm-tools button span { display: none !important; }
}
@media (max-width: 820px) {
  body.sm-studio .sm-right { display: flex !important; flex: none; }
  body.sm-studio .sm-right > :not(#elFahrplan) { display: none !important; }
  .el-knopf-text { display: none; }
  #hsBar #elFahrplan { padding: 0 5px !important; }
  #hsCtx .devices button span { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .et-loch, .et-karte, #elFenster, .el-ring circle.el-wert { transition: none; animation: none; } }

/* Favoriten-Sterne der Bausteine besser erkennbar */
.bs-star:not([aria-pressed=true]) { color: #5f7177 !important; }
