/* ==========================================================================
   pause.8dt.de — Pausentimer (tlotka-ui v1.0.1)
   Preset: Indigo · Motiv (image) · Glass · Sharp + Dark/Light Switcher
   ========================================================================== */

:root {
  --ui-bg-image: url('../images/bg-motif.svg');
  --ui-bg-opacity: 0.72;
  --ui-bg-blur: 0px;
}

[data-theme="light"] {
  --ui-bg-opacity: 0.42;
}

/* Header & rahmenloses 8NERDYBIT-Logo */
.pause-brand {
  gap: 0.75rem;
}

.pause-logo {
  height: 28px;
  width: auto;
  display: block;
  border: none;
  border-radius: 0;
  background: transparent;
}

[data-theme="light"] .pause-logo {
  filter: invert(1) hue-rotate(180deg) contrast(1.06);
}

.pause-brand-sep {
  color: var(--ui-border-strong);
  font-weight: 400;
}

/* Theme-Switcher (analog skeleton) */
.pause-theme-toggle {
  color: var(--ui-text);
}

[data-theme="light"] .pause-theme-toggle {
  background: var(--ui-accent-soft);
  border-color: var(--ui-accent-border);
  color: var(--ui-accent);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .pause-theme-toggle:hover {
  background: var(--ui-surface);
  border-color: var(--ui-accent);
  color: var(--ui-accent);
}

.pause-theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

[data-theme="dark"] .pause-icon-moon {
  display: none;
}

[data-theme="light"] .pause-icon-sun {
  display: none;
}

/* Hauptbereich */
.pause-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding-block: 2rem;
}

.pause-terminal {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

.pause-terminal-body {
  padding: 1.75rem 1.75rem 1.85rem;
  gap: 1.35rem;
}

.pause-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.45;
  color: var(--ui-terminal-muted);
}

.pause-status-text {
  color: var(--ui-text);
  font-weight: 700;
}

.pause-cursor {
  display: inline-block;
  width: 0.6em;
  height: 0.14em;
  background-color: var(--ui-accent);
  margin-left: -0.15rem;
  transform: translateY(0.12em);
  animation: pause-blink 0.9s steps(1) infinite;
}

@keyframes pause-blink {
  50% { opacity: 0; }
}

/* Große Timer-Anzeige */
.pause-timer {
  font-family: var(--ui-font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 8.75rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ui-text);
  text-shadow: 0 0 28px rgba(99, 102, 241, 0.16);
  user-select: none;
  padding-block: 0.25rem;
}

.pause-timer.warn {
  color: var(--ui-danger);
  text-shadow: 0 0 24px rgba(248, 113, 113, 0.25);
}

/* Fortschrittsbalken */
.pause-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pause-progress-track {
  position: relative;
  height: 6px;
  width: 100%;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  overflow: hidden;
}

.pause-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ui-accent);
  transition: width 0.25s linear, background-color var(--ui-transition-fast);
}

.pause-progress-fill.is-warn {
  background: var(--ui-danger);
}

.pause-progress-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ui-warn);
  opacity: 0.85;
  transform: translateX(-1px);
  pointer-events: none;
}

.pause-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--ui-font-mono);
  font-size: 0.74rem;
  color: var(--ui-terminal-muted);
}

/* Buttons & Shortcuts */
.pause-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.pause-buttons .ui-btn {
  min-width: 140px;
  min-height: 44px;
  font-size: 1rem;
  justify-content: center;
}

.pause-shortcuts {
  text-align: center;
  font-family: var(--ui-font-mono);
  font-size: 0.74rem;
  color: var(--ui-terminal-muted);
}

/* Status-Chip-Leiste */
.pause-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 820px;
  margin-inline: auto;
  width: 100%;
}

.pause-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.78rem;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  backdrop-filter: blur(var(--ui-surface-blur));
  -webkit-backdrop-filter: blur(var(--ui-surface-blur));
  color: var(--ui-text-muted);
  font-family: var(--ui-font-mono);
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 100%;
}

.pause-chip strong {
  color: var(--ui-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pause-chip-btn {
  cursor: pointer;
  transition: var(--ui-transition-fast);
}

.pause-chip-btn:hover {
  border-color: var(--ui-accent-border);
  background: var(--ui-accent-soft);
  color: var(--ui-text);
}

.pause-wl-icon {
  display: inline-flex;
  justify-content: center;
  width: 1.4em;
}

.ip-desktop {
  display: inline-flex;
}

.ip-mobile {
  display: none;
}

/* Mobile Details */
.pause-details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.pause-details > summary::-webkit-details-marker {
  display: none;
}

.pause-details-caret {
  opacity: 0.8;
  width: 1em;
  display: inline-flex;
  justify-content: center;
}

.pause-details-body {
  margin-top: 0.45rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .pause-main {
    padding-block: 1.25rem;
    align-items: flex-start;
  }

  .pause-logo {
    height: 24px;
  }

  .pause-brand-sep,
  .pause-brand .ui-brand-title {
    display: none;
  }

  .pause-ref-pill {
    display: none;
  }

  .pause-terminal-body {
    padding: 1.25rem 1rem 1.35rem;
    gap: 1.1rem;
  }

  .pause-buttons .ui-btn {
    flex: 1 1 130px;
    min-width: 0;
  }

  .pause-shortcuts {
    display: none;
  }

  .pause-chips {
    flex-direction: column;
    align-items: stretch;
  }

  .pause-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .ip-desktop {
    display: none;
  }

  .ip-mobile {
    display: block;
    width: 100%;
  }

  #btnSoundTest {
    display: none !important;
  }
}

@media (max-height: 520px) {
  .pause-chips,
  .ui-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pause-cursor {
    animation: none;
    opacity: 0.85;
  }
}
