* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

#drehhinweis {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  font-size: 6vw;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5vw;
  z-index: 10;
}

#shift-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  padding: 0 28px;
  transition: transform 3s ease-in-out;
  will-change: transform;
}

/* ---------- Links: Uhrzeit und Datum ---------- */

#linke-haelfte {
  flex: 1 1 53%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 52px;
  min-width: 0;
}

#uhrzeit {
  font-size: clamp(134px, 19.35vw, 401px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.colon-dunkel {
  opacity: 0.25;
}

#datum {
  margin-top: 3vh;
  font-size: clamp(28px, 3.6vw, 68px);
  font-weight: 600;
  text-align: center;
  color: #eaeaea;
}

/* ---------- Rechts: Wetter-Widget ---------- */

#rechte-haelfte {
  flex: 1 1 47%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 23vh 2vw 2vh 3vw;
  min-width: 0;
}

#wetter-bereich {
  display: flex;
  flex-direction: column;
}

#wetter-kopf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6vh;
  margin-bottom: 0.8vh;
}

#wetter-standort {
  display: flex;
  align-items: center;
  gap: 0.7vw;
  font-size: clamp(24px, 2.8vw, 44px);
  font-weight: 700;
  color: #fff;
}

#wetter-standort svg {
  width: clamp(22px, 2.3vw, 36px);
  height: clamp(22px, 2.3vw, 36px);
  flex-shrink: 0;
}

#wetter-werte {
  display: flex;
  flex-direction: column;
  gap: 0.5vh;
  font-size: clamp(23px, 2.7vw, 38px);
  font-weight: 600;
  color: #d9d9d9;
}

#wetter-hauptzeile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1vh;
  min-width: 0;
}

#aktuelles-wetter {
  display: flex;
  align-items: center;
  gap: 1.6vw;
  flex: 0 0 auto;
}

#wetter-symbol {
  width: clamp(125px, 16.5vw, 235px);
  height: clamp(125px, 16.5vw, 235px);
  flex-shrink: 0;
}

#wetter-symbol svg {
  width: 100%;
  height: 100%;
  display: block;
}

#temperatur {
  font-size: clamp(96px, 13.2vw, 235px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  flex-shrink: 0;
}

#vorschau {
  display: flex;
  justify-content: space-between;
  gap: 1.5vw;
  min-width: 0;
}

.vorschau-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3vh;
  flex: 1 1 0;
  min-width: 0;
}

.vorschau-symbol {
  width: clamp(58px, 7.2vw, 98px);
  height: clamp(58px, 7.2vw, 98px);
}

.vorschau-symbol svg {
  width: 100%;
  height: 100%;
  display: block;
}

.vorschau-wochentag {
  font-size: clamp(23px, 2.7vw, 40px);
  font-weight: 700;
  color: #fff;
}

.vorschau-temps {
  font-size: clamp(14px, 1.5vw, 24px);
  line-height: 1.1;
  font-weight: 600;
  color: #d4d4d4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vorschau-regen {
  font-size: clamp(13px, 1.4vw, 22px);
  line-height: 1.1;
  font-weight: 700;
  color: #6fb2ff;
  white-space: nowrap;
}

#wetter-aktualisiert {
  margin-top: 1.6vh;
  padding-top: 1vh;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  text-align: center;
  font-size: clamp(13px, 1.3vw, 20px);
  font-weight: 500;
  color: #8a8a8a;
}

/* Nur Querformat vorgesehen - Hinweis bei Hochformat statt verzerrtem Layout */
@media (orientation: portrait) {
  #drehhinweis {
    display: flex;
  }
  #shift-wrapper {
    display: none;
  }
}
