* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    /* Schwarzer Seitenhintergrund */
    body {
      background: #000;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      font-family: sans-serif;
    }
    /* Dunkler Container */
    .timer-container {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      width: 90%;
      max-width: 600px;
      background: #333;
      padding: 10px;
      border-radius: 5px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
      gap: 1rem;
    }
    /* Gemeinsamkeiten für alle Buttons */
    button {
      border: 1px solid #999;
      border-radius: 2px;
      cursor: pointer;
      transition: background-color 0.3s ease, color 0.3s ease;
    }
    /* Abbrechen-Button */
    .cancel-button {
      justify-self: start;
      padding: 0.5rem 1rem;
      font-size: 1rem;
      background-color: #fef39c;
      color: #333;
    }
    .cancel-button:hover {
      background-color: #e6e085;
    }
    /* Rechter Bereich (Start Button, Reset Button) */
    .btn-container {
      display: flex;
      gap: 0.5rem;
      justify-self: end;
    }
    /* Start-Button */
    .start-button {
      padding: 0.5rem 1rem;
      font-size: 1rem;
      background-color: #fef39c;
      color: #333;
    }
    .start-button:hover {
      background-color: #e6e085;
    }
    /* Reset-Button */
    .reset-button {
      padding: 0.5rem 1rem;
      font-size: 1rem;
      background-color: #c87000;
      color: #fff;
    }
    .reset-button:hover {
      background-color: #a65f00;
    }
    /* Hauptabschnitt für Stunden, Minuten, Sekunden */
    .time-sections {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .time-section {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .time-section h2 {
      margin-bottom: 1rem;
      font-size: 0.8rem;
      font-weight: normal;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #fff; /* weiße Schrift */
    }
    /* Darstellung als \"Zahlenschloss\" */
    .wheel {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 60px;
      position: relative;
      overflow: hidden;
    }
    .slot {
      line-height: 1;
      text-align: center;
      margin: 1px 0;
      padding: 2px;
      width: 100%;
      background: #eee;
      border-radius: 2px;
      box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
      transition: transform 0.15s ease, opacity 0.15s ease;
    }
    .slot.big {
      font-size: 1.3rem;
      font-weight: bold;
      background: #ccc;
      opacity: 1;
    }
    .slot.smaller {
      font-size: 1rem;
      opacity: 0.7;
    }
    .slot.smallest {
      font-size: 0.8rem;
      opacity: 0.4;
    }

    /* Kreis-Countdown (zunächst versteckt) */
    .circle-countdown {
      display: none;
      position: relative;
      width: 200px;
      height: 200px;
      margin: 0 auto;
    }
    /* Wir drehen das SVG +90°, damit 0 Offset oben ist
       und die Füllung in Richtung Uhrzeigersinn läuft */
    svg {
      width: 100%;
      height: 100%;
      transform: rotate(-90deg);
    }
    .circle-bg {
      fill: none;
      stroke: #eee;
      stroke-width: 9;
    }
    .circle-progress {
      fill: none;
      stroke: #a20000; /* Neue Farbe laut Vorgabe */
      stroke-width: 9;
      stroke-linecap: round;
    }
    /* Text im Zentrum des Kreises */
    .circle-time-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 1.5rem;
      font-weight: bold;
      color: #fff;
    }


    /* Overlay, das bei Ablauf der Zeit erscheint */
    .time-up-overlay {
      pointer-events: none;    /* => Klicks werden durchgereicht an darunterliegende Elemente */
      display: none;          /* Standardmäßig unsichtbar */
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.8);
      color: #fff;
      font-size: 5rem;        /* Deutlich größere Schrift */
      font-weight: bold;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      z-index: 9999; /* Höher als der Container, aber pointer-events: none lässt Klicks durch */
    }

    @media (max-width: 700px) {
       .timer-container {
        width: 100%;
        max-width: 700px;      
      }

      .wheel {
        width: 50px;
      }
      .slot.big {
        font-size: 1.2rem;
      }
      .slot.smaller {
        font-size: 0.9rem;
      }
      .slot.smallest {
        font-size: 0.7rem;
      }
      .time-section h2 {
        margin-bottom: 0.5rem;
      }
      .timer-container {
        grid-template-columns: 1fr;
        justify-items: center;
      }
      .circle-countdown {
        width: 150px;
        height: 150px;
      }
      .circle-time-text {
        font-size: 1.2rem;
      }
      .time-up-overlay {
        font-size: 2rem; /* Auch mobil deutlich größer, aber etwas kleiner als Desktop */
      }
    }