/* Laufende Auszeit und die abgedunkelten Nebenbildschirme */
.auszeit {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  color: #edf1f7;
  background: var(--sketch-bg, #070b16);
  transition: background .5s;
  user-select: none;
  --glass: rgba(10, 14, 24, .78);
  --glass-line: rgba(255, 255, 255, .13);
  color-scheme: dark;
}
.auszeit:fullscreen { width: 100vw; height: 100vh; }
.auszeit::backdrop { background: #000; }
.sketch { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: none; }
.sketch-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45);
  opacity: 0;
  will-change: transform;
}
.auszeit.has-pointer .sketch-cursor { opacity: 1; }
.auszeit[data-light="1"] .sketch-cursor { border-color: rgba(0, 0, 0, .75); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
.auszeit-summary ~ .sketch-cursor, .is-finished .sketch-cursor { display: none; }

.auszeit-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  transition: opacity .5s;
}
.auszeit-top > * { pointer-events: auto; }
.auszeit-timer {
  padding: 4px 18px;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  backdrop-filter: blur(14px);
}
.auszeit-idea {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  max-width: 100%;
  padding: 8px 13px;
  color: #dbe2ec;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  font-size: .9rem;
  cursor: pointer;
  backdrop-filter: blur(14px);
}
.auszeit-idea:hover { color: #fff; }
.auszeit-idea .i { width: 15px; height: 15px; color: var(--link); }
.auszeit-audio {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  padding: 3px 12px 3px 4px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  backdrop-filter: blur(14px);
}
.auszeit-audio input { width: 110px; accent-color: var(--accent); }

.toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: calc(100vw - 24px);
  margin-inline: auto;
  padding: 7px 9px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(3, 6, 14, .45);
  backdrop-filter: blur(18px) saturate(1.3);
  transition: opacity .5s, transform .5s var(--ease);
}
.tool-group { display: flex; align-items: center; gap: 2px; }
.tool-colors { gap: 4px; flex-wrap: wrap; justify-content: center; }
.tool-sep { width: 1px; height: 24px; margin-inline: 4px; background: var(--glass-line); }
.tool {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #c7d0dc;
  background: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.tool:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.tool.is-on { color: #04202f; background: #1aa7e0; }
.tool:disabled { opacity: .35; cursor: default; background: none; }
.color {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  padding: 0;
  background: var(--c);
  border: 2px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .12s;
}
.color:hover { transform: scale(1.14); }
.color.is-on { border-color: #fff; box-shadow: 0 0 0 2px #1aa7e0; }
.color-custom { background: conic-gradient(#ff5a6f, #f2c266, #7fe3b8, #1aa7e0, #c79bff, #ff5a6f); overflow: hidden; }
.color-custom input { position: absolute; inset: -6px; width: 40px; height: 40px; opacity: 0; cursor: pointer; }
.tool-size { display: flex; align-items: center; gap: 6px; padding-inline: 4px; color: #c7d0dc; }
.tool-size .i { width: 13px; height: 13px; }
.tool-size input { width: 92px; accent-color: #1aa7e0; }
.bg-select { width: auto; min-height: 36px; margin-left: 4px; padding: 4px 8px; color: #dbe2ec; background: rgba(255, 255, 255, .07); border: 1px solid var(--glass-line); border-radius: 8px; font-size: .85rem; }

.is-idle .toolbar { opacity: .08; transform: translateY(10px); }
.is-idle .toolbar:hover, .is-idle .toolbar:focus-within { opacity: 1; transform: none; }
.is-idle .auszeit-top { opacity: .28; }
.is-idle .auszeit-top:hover { opacity: 1; }
.is-idle .emergency { opacity: .25; }
.emergency:hover, .emergency:focus-within { opacity: 1 !important; }

/* Kleine Notfall-Nachricht, bewusst unaufdringlich */
.emergency { position: absolute; left: 16px; bottom: 16px; z-index: 4; max-width: min(360px, calc(100vw - 32px)); transition: opacity .5s; }
.emergency-link { padding: 4px 8px; color: rgba(237, 241, 247, .55); background: none; border: 0; font-size: .78rem; cursor: pointer; }
.emergency-link:hover { color: #fff; text-decoration: underline; }
.auszeit[data-light="1"] .emergency-link { color: rgba(16, 24, 39, .6); }
.emergency-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: rgba(10, 14, 24, .92); border: 1px solid var(--glass-line); border-radius: 12px; font-size: .86rem; backdrop-filter: blur(14px); }
.emergency-form[hidden] { display: none; }
.emergency-form .row { gap: 6px; }
.emergency-hint { color: #f2c266; font-size: .8rem; }
.emergency:has(.emergency-form:not([hidden])) { bottom: 84px; }
@media (max-width: 1700px) { .emergency { bottom: 84px; } }
.emergency-form input { width: 100%; min-height: 34px; padding: 4px 8px; color: #edf1f7; background: #0e1522; border: 1px solid #3a475c; border-radius: 7px; font-size: .86rem; }
.tool-text { min-height: 34px; padding: 4px 10px; color: #dbe2ec; background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-line); border-radius: 7px; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.tool-text:hover { background: rgba(255, 255, 255, .16); }

.auszeit-note { position: absolute; top: 76px; left: 50%; z-index: 3; max-width: min(560px, calc(100vw - 32px)); padding: 9px 14px; color: #f2c266; background: rgba(51, 39, 15, .92); border-radius: 10px; font-size: .88rem; text-align: center; transform: translateX(-50%); }

.auszeit-gate {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: rgba(5, 8, 16, .82);
  backdrop-filter: blur(16px);
  animation: fade .3s;
}
.auszeit-gate[hidden] { display: none; }
.auszeit-gate h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.auszeit-gate p { color: #c7d0dc; }
.gate-ring { width: 96px; height: 96px; margin-bottom: 8px; border: 1.5px solid rgba(110, 198, 238, .85); border-radius: 50%; box-shadow: 0 0 40px rgba(26, 167, 224, .32), inset 0 0 26px rgba(26, 167, 224, .2); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(.74); opacity: .55; }
  50% { transform: scale(1.1); opacity: 1; }
}

.auszeit-summary { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 20px; overflow: auto; background: rgba(5, 8, 16, .84); backdrop-filter: blur(18px); animation: fade .5s; }
.summary-box { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(760px, 100%); padding: 26px; text-align: center; background: rgba(13, 18, 29, .92); border: 1px solid var(--glass-line); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pop .5s var(--ease); }
.summary-box h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.summary-sub { color: #c7d0dc; }
.summary-img { max-width: 100%; max-height: 44vh; object-fit: contain; border: 1px solid var(--glass-line); border-radius: 10px; }
.summary-actions { justify-content: center; }
.summary-unlock { width: min(340px, 100%); text-align: left; }
.summary-unlock input { color: #edf1f7; background: #0e1522; border-color: #3a475c; }
.summary-box .btn:not(.btn-primary) { color: #edf1f7; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }
.summary-box .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .14); }

/* Nebenbildschirme */
.blocker-page { background: #03060d; overflow: hidden; cursor: default; }
.blocker { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 100svh; padding: 24px; color: #dbe2ec; text-align: center; }
.blocker::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/aurora.webp) center / cover no-repeat; opacity: .22; filter: blur(2px); }
.blocker h1 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 300; }
.blocker-time { color: #9dabbd; font-size: 1.2rem; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .auszeit-top { grid-template-columns: 1fr auto; }
  .auszeit-idea { display: none; }
  .tool { width: 34px; height: 34px; }
  .tool-size input { width: 60px; }
  .color { width: 20px; height: 20px; }
  .toolbar { bottom: 44px; }
}
