/* Uhr-Baukasten im olimodo-Stil (ersetzt standard.css/style.css auf der Startseite, 28.10.2026).
   Rahmen und Grundstil: olimodo/olimodo.css. */
.hidden { display: none; }

/* Kopf der alten Seite: Domain als Unterzeile (Texte 1:1 von uhr-homepage.de) */
.uh-untertitel { font-size: 1rem; font-weight: 400; color: var(--om-muted); margin: 0; }

.uh-baukasten { display: grid; gap: 2rem; }
@media (min-width: 992px) {
  .uh-baukasten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  #preview { position: sticky; top: 1rem; }
}
.uh-baukasten h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: 1rem; }

/* Formular */
#creator form { margin: 0; }
.uh-gruppe { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.uh-gruppe legend { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; padding: 0; }
.uh-gruppe > .uh-optionen, .uh-gruppe > .uh-zeile, .uh-gruppe > .uh-regler, .uh-gruppe > select {
  margin-bottom: .5rem;
}
.uh-optionen { display: flex; flex-wrap: wrap; gap: .5rem; }
.uh-wahl {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-size: .95rem;
  background: var(--om-soft); border-radius: var(--om-radius); padding: .4rem .75rem;
}
.uh-wahl input { margin: 0; accent-color: var(--om-dark); }
.uh-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.uh-name { min-width: 6.5rem; font-size: .95rem; color: var(--om-muted); }
.uh-feld {
  font: inherit; font-size: .95rem; color: var(--om-text); background: var(--om-card);
  border: 1px solid #ced4da; border-radius: var(--om-radius); padding: .375rem .75rem; min-height: 38px;
}
.uh-feld:focus { outline: 2px solid rgba(13, 110, 253, .35); outline-offset: 1px; border-color: #86b7fe; }
.uh-feld:disabled { background: var(--om-soft); color: var(--om-muted); }
.uh-farbe { width: 8.5rem; font-family: var(--om-mono); }
#fontFamily { min-width: 12rem; }
.colorSelectorBg, .colorSelectorFont {
  width: 30px; height: 30px; flex: none; cursor: pointer; border-radius: 50%; border: 3px solid var(--om-card);
  box-shadow: 0 0 0 1px #ced4da; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
}
.colorSelectorBg:hover, .colorSelectorFont:hover { box-shadow: 0 0 0 1px #6c757d; }
.colorpicker { z-index: 1000; border-radius: var(--om-radius); box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15); }

/* Regler (jQuery UI Slider) */
.uh-regler { display: flex; align-items: center; gap: 1rem; padding: .5rem 0; }
.uh-regler .ui-slider { flex: 1; }
.ui-slider-horizontal { height: 6px; background: var(--om-border); border: 0; border-radius: 3px; }
.ui-slider-horizontal .ui-slider-range { background: var(--om-dark); border-radius: 3px; }
.ui-slider .ui-slider-handle {
  width: 20px; height: 20px; top: -7px; margin-left: -10px; border-radius: 50%; cursor: grab;
  background: var(--om-card); border: 2px solid var(--om-dark); box-shadow: var(--om-shadow); outline: none;
}
.ui-slider .ui-slider-handle:focus-visible { box-shadow: 0 0 0 4px rgba(13, 110, 253, .3); }

#createClock { margin-top: .5rem; }

/* Vorschau */
.uh-buehne {
  display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 2rem 1rem;
  border: 1px solid var(--om-border); border-radius: var(--om-radius); overflow: auto;
  background: repeating-conic-gradient(#f1f3f5 0% 25%, #fff 0% 50%) 50% / 20px 20px;
}
#clock { display: inline-block; box-sizing: content-box; white-space: nowrap; }
#clock .the_clock, #clock .the_date { display: block; }
#clock.rounded { border-radius: 8px; }
#clock.box { border: none; border-radius: 0; }
#clockDimensions { margin: .5rem 0 0; text-align: center; }

#code { margin-top: 1.5rem; }
.uh-code-titel { font-weight: 600; margin-bottom: .75rem; }
#code .code { min-height: 8rem; }

/* Design-Vorlagen (js/olimodo-vorlagen.js) */
.uh-vorlagen-titel { font-size: 1.35rem; font-weight: 600; }
.uh-vorlagen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .uh-vorlagen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.uh-vorlage {
  display: flex; flex-direction: column; gap: .5rem; padding: .5rem; cursor: pointer; font: inherit; color: var(--om-text);
  background: var(--om-card); border: 1px solid var(--om-border); border-radius: var(--om-radius); box-shadow: var(--om-shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.uh-vorlage:hover { border-color: #adb5bd; box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1); transform: translateY(-2px); }
.uh-vorlage:focus-visible { outline: 3px solid rgba(13, 110, 253, .4); outline-offset: 2px; }
.uh-vorlage.uh-aktiv { border-color: var(--om-dark); box-shadow: 0 0 0 2px var(--om-dark); }
.uh-vorlage-buehne {
  display: flex; align-items: center; justify-content: center; height: 88px; overflow: hidden; border-radius: 4px;
  background: repeating-conic-gradient(#f1f3f5 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}
.uh-vorlage-uhr { display: inline-block; white-space: nowrap; }
.uh-vorlage-uhr .uh-v-zeit, .uh-vorlage-uhr .uh-v-datum { display: block; }
.uh-vorlage-name { font-size: .875rem; font-weight: 600; text-align: center; }
