/* styles.css */

/* =========================
   Allgemeine Styles
   ========================= */
   body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

.container {
    text-align: center;
    padding: 20px;
}

h1 {
    margin-top: 0;
}

#timer {
    font-size: 48px;
    margin: 20px 0;
}

/* =========================
   Progressbars
   ========================= */

/* Progressbars in eigenen Zeilen */
.progress-section {
    margin-bottom: 20px;
}

.progress-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
    padding-left: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: red;
    transition: width 1s linear;
}

/* Neue Regel für die Adrenalin-Progressbar */
#adrenaline-progress {
    background-color: green;
}

/* =========================
   Start-Button
   ========================= */

/* Start-Button zentriert in eigener Zeile */
.start-button-section {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

/* Start-Button Styling */
.big-button {
    font-size: 16px; /* Mindestens 16px Schriftgröße zur Vermeidung von Doppeltippen-Zoom */
    touch-action: manipulation; /* Verhindert Doppeltippen-Zoom */
    padding: 20px 30px;
    border-radius: 50%; /* Rund gestalten */
    width: 120px; /* Ausreichende Größe */
    height: 120px; /* Ausreichende Größe */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Optional: Box Shadow für besseres Aussehen */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; /* Übergang für Skalierung */
    flex-direction: column; /* Erlaubt mehreren Zeilen */
    background-color: red; /* Standardfarbe */
    color: white;
    border: none;
    cursor: pointer;
}

.big-button:active {
    transform: scale(0.98);
}

/* Alternativer Button Stil für roten Start-Button */
.red-button {
    background-color: red;
    color: white;
    border: none;
}

.red-button:active {
    transform: scale(0.98);
}

/* Kleiner Text für "Doppelklick" */
.small-text {
    font-size: 14px;
    font-weight: normal;
}

/* Start-Button Text Styling */
.start-button-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.start-button-text strong {
    font-size: 18px; /* Angepasste Schriftgröße für "Start" */
}

.start-button-text .small-text {
    font-size: 14px; /* Kleinere Schriftgröße für "Doppelklick" */
    font-weight: normal; /* Nicht fett */
}

/* =========================
   Action Buttons
   ========================= */

/* Defibrillation und Adrenalin Buttons in eigener Zeile */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.action-button {
    padding: 15px 25px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #007BFF;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.action-button:hover {
    background-color: #0056b3;
}

.action-button:active {
    transform: scale(0.98);
}

/* Weitere Buttons */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.buttons button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: #6c757d;
    color: white;
}

.buttons button:hover {
    background-color: #5a6268;
}

.buttons button:active {
    transform: scale(0.98);
}

/* =========================
   Zusammenfassungsseite
   ========================= */

#summary-page {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#summary-page h2 {
    margin-top: 0;
}

#summary-content p {
    text-align: left;
    margin: 10px 0;
    padding-left: 20px;
}

/* Download und Zurück Buttons auf der Zusammenfassungsseite */
#summary-page button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    margin: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: #28a745;
    color: white;
}

#summary-page button:hover {
    background-color: #218838;
}

#summary-page button:active {
    transform: scale(0.98);
}

#summary-page #back {
    background-color: #dc3545;
}

#summary-page #back:hover {
    background-color: #c82333;
}

/* =========================
   Zusätzliche Styles zur Verhinderung des Doppeltippen-Zooms
   ========================= */

/* Sicherstellen, dass der Start-Button mindestens 44x44px groß ist */
#start-pause {
    font-size: 16px; /* Mindestens 16px Schriftgröße zur Vermeidung von Doppeltippen-Zoom */
    touch-action: manipulation; /* Verhindert Doppeltippen-Zoom */
    width: 120px; /* Ausreichende Größe */
    height: 120px; /* Ausreichende Größe */
}

/* Optional: Entfernen des Tap-Hervorhebungseffekts auf allen Buttons */
button, .action-button, .big-button {
    -webkit-tap-highlight-color: transparent; /* Entfernt den Tap-Hervorhebungseffekt */
}

/* =========================
   Responsive Design (Optional)
   ========================= */

@media (max-width: 600px) {
    #timer {
        font-size: 36px;
    }

    .big-button {
        width: 100px;
        height: 100px;
        padding: 15px 20px;
    }

    .action-button {
        padding: 10px 20px;
        font-size: 16px;
    }

    .buttons button {
        padding: 8px 12px;
        font-size: 14px;
    }

    #summary-page {
        padding: 15px;
    }

    #summary-page button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
