:root {
  /* Globale Farbvariablen und Design-Tokens */
  --bg-color: #050505;
  --text-color: #ffffff;
  --accent-color: #3b82f6; 
  --accent-glow: rgba(59, 130, 246, 0.5);

  /* Karten-Styling (Glasmorphismus-Effekt) */
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: 1px solid rgba(255, 255, 255, 0.1);

  --font-main: "Outfit", sans-serif;
  --spacing-unit: 1rem;
}

/* Basis-Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hauptinhalt füllt den verfügbaren Platz aus */
.app-main {
  flex: 1;
  padding: var(--spacing-unit);
}

/* Header Styling */
.app-header {
  padding: calc(var(--spacing-unit) * 2);
  text-align: center;
}

.app-header__title {
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: -0.05em;
  background: linear-gradient(to right, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Footer Styling */
.app-footer {
  padding: var(--spacing-unit);
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
}

/* Navigationsmenü */
.app-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.app-nav__link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.app-nav__link:hover,
.app-nav__link:focus {
  color: #fff;
  border-bottom-color: var(--accent-color);
}

/* Weltuhren Grid-System */
.worldclock__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Einzelne Uhr-Karte */
.clock-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clock-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
  border-color: var(--accent-color);
}

.clock-card__header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.clock-card__offset {
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
}

.clock-card__body {
  text-align: center;
  z-index: 10;
}

.clock-card__city {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.clock-card__time {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.clock-card__date {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

/* Analoge Uhr-Anzeige */
.clock-face {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
  opacity: 0.3;
}

.clock-face__hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 50px 50px 0 0;
  transform-origin: bottom center;
  transition: transform 0.05s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

.clock-face__hand--hour {
  width: 6px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
}

.clock-face__hand--minute {
  width: 4px;
  height: 90px;
  background: rgba(255, 255, 255, 0.6);
}

.clock-face__hand--second {
  width: 2px;
  height: 100px;
  background: var(--accent-color);
  transition: none;
}

.clock-face__center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-color);
}

/* Binär-Uhr Layout */
.binary-clock__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.binary-clock__title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.binary-grid {
  display: grid;
  grid-template-columns: auto repeat(6, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.binary-grid__labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 1rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
}

.binary-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Spalten-Abstände für Stunden/Minuten Trennung */
.binary-column[data-col="h2"],
.binary-column[data-col="m2"] {
  margin-right: 1.5rem;
}

/* Einzelner binärer Punkt (Bit) */
.binary-bit {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Styling für aktives Bit */
.binary-bit.active {
  background-color: var(--accent-color);
  box-shadow:
    0 0 15px var(--accent-glow),
    inset 0 -2px 5px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.binary-column__label {
  font-family: monospace;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Digitale Zeitanzeige unter der Binär-Uhr */
.digital-display {
  margin-top: 2rem;
  font-family: monospace;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
}
