/* Grundlegendes Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 15px;
}

a {
    color: #03dac5;
}
/* Header-Bereich: Überschrift + Button */
.button-container {
    display: flex;
    justify-content: space-between; /* Button rechts, Überschrift links */
    align-items: center;
    padding-bottom: 10px 0; /* Platz oberhalb und unterhalb */
}

#event-header {
    color: #bb86fc;
    font-size: 1.5rem;
    margin-bottom: 0px; /* Abstand zwischen Header und Text */
    padding-top: 10px 0;
}

#event-header-text {
    font-size: 0.8em; /* Kleinere Schriftgröße für den Text */
    color: #b4aeae; /* Optional: eine andere Farbe für den Text */
    padding:0%;
}

.event-head {
    padding: 10px 0px;
}
/* Button Styling */
.top-right {
    background-color: #03dac5;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 10px 15px;
    
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.top-right:hover {
    background-color: #018786;
    color: #ffffff;
}

.top-right:disabled {
    background-color: #4a4e4e;
    color: #141111;
}


/* Formular-Styling */
form {
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 15px;
    padding-top: 0px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Label Styling */
label {
    width: 100%;
    display: block;
    margin: 10px 0 5px;
    color: #e0e0e0;
    font-weight: bold;
}

#event-name-container {
    display: none;
}

/* Input, Select und Textarea Styling */
input, select, textarea {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 7px;
    width: 100%;
    font-size: 1rem;
}

input[type="datetime-local"]
{
    display:block;
    -webkit-appearance: textfield !important;
    -moz-appearance: textfield;
    background-color: #333333;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 7px;
    min-width: 95% ;
    font-size: 1rem;
    margin-right: 20px;
}

hr {
    border: none; /* Entfernt die Standard-Grenze */
    height: 0.5px; /* Höhe des HR */
    background-color: #74706f; /* Setzt die Farbe */
    margin: 0px 0; /* Abstand oben und unten */
}

/* für Notizen */
textarea {
    resize: vertical;
}

/* Absenden-Button */
button[type="submit"] {
    background-color: #6200ea;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #3700b3;
}

/* Deaktivierter Submit-Button */
button[type="submit"]:disabled {
    background-color: #555; /* Dunkelgrau für den deaktivierten Zustand */
    color: #999; /* Hellerer Text für den deaktivierten Zustand */
    cursor: not-allowed; /* Zeigt an, dass der Button nicht klickbar ist */
    opacity: 0.6; /* Verringert die Sichtbarkeit */
}

/* Versand erfolgreich */
button.success {
    background-color: green; /* Grüner Hintergrund für Erfolg */
}

button.success:hover {
    background-color: darkgreen; /* Dunkelgrün für Hover im Erfolgszustand */
}

/* Versand NICHT erfolgreich */
button.error {
    background-color: red; /* Roter Hintergrund für Fehler */
}

button.error:hover {
    background-color: darkred; /* Dunkelgrün für Hover im Erfolgszustand */
}

/* "Zusage bis" ist abgelaufen*/
.past-date {
    width: 100%;
    color: #ff6961; /* Hellrot */
    font-weight: bold;
}

.input-group {
    display: flex; /* Verwende Flexbox für die Eingabefelder */
    justify-content: space-between; /* Abstand zwischen den Eingabefeldern */
    margin-bottom: 20px; /* Abstand nach unten */
    gap: 30px;
}

.input-container {
    width: 100%;
}

/* Toast Meldung für Zwischenablage*/
#toast {
    visibility: hidden; /* Standardmäßig versteckt */
    min-width: 250px;
    margin-left: -125px; /* Zentrieren */
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

#toast.show {
    visibility: visible; /* Sichtbar machen */
    animation: fadein 0.5s, fadeout 0.5s 2.5s; /* Animation */
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}


/* #### Übersichtstabelle #### */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Schatten für die Tabelle */
    border-radius: 8px; /* Abgerundete Ecken */
    overflow: hidden; /* Versteckt überflüssige Ecken */
    background-color: #323332;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px; /* Mehr Padding für mehr Platz */
    text-align: left;
}

th {
    background-color: rgb(21, 51, 63); /* Grüner Hintergrund für den Header */
    color: rgb(145, 141, 141); /* Weiße Schriftfarbe für den Header */
    font-weight: bold; /* Fettdruck für den Header */
}

tr:nth-child(even) {
    background-color: #524f4f; /* Abwechselnde Zeilenfarbe */
}

td.note {
    font-size: 14px; /* Standardgröße für Notizen */
    line-height: 1.2; /* Zeilenhöhe */
    max-height: 60px; /* Maximale Höhe für die Zelle */
    overflow: hidden; /* Versteckt überflüssigen Text */
    text-overflow: ellipsis; /* Zeigt "..." an, wenn der Text überläuft */
    /* white-space: nowrap; /* Verhindert Zeilenumbrüche */
}

td.note.multiline {
    font-size: 12px; /* Kleinere Schriftgröße für mehrzeilige Notizen */
    white-space: normal; /* Erlaubt Zeilenumbrüche */
}


/* #### Historie #### */
#googleHistorie {
    width: 100%; /* Bild passt sich der Breite des Containers an */
    height: auto; /* Höhe wird automatisch angepasst, um das Seitenverhältnis zu wahren */
    padding: 0 50px;
    max-width: 1000px;
}

#googleSpeicher {
    width: 100%; /* Bild passt sich der Breite des Containers an */
    height: auto; /* Höhe wird automatisch angepasst, um das Seitenverhältnis zu wahren */
    padding: 0 50px;
    max-width: 400px;
}

/* Stil für das modale Fenster */
.modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed; /* Bleibt an der gleichen Stelle */
    z-index: 1; /* Über anderen Inhalten */
    left: 0;
    top: 0;
    width: 100%; /* Volle Breite */
    height: 100%; /* Volle Höhe */
    overflow: auto; /* Scrollen, wenn nötig */
    background-color: rgba(0, 0, 0, 0.8); /* Halbtransparentes Schwarz */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%; /* Maximale Breite des Bildes im modalen Fenster */
    max-height: 90%; /* Maximale Höhe des Bildes im modalen Fenster */
}

/* #### Manual */
.step {
    margin: 20px 0;
}
.step img {
    max-width: 100%;
    height: auto;
    transition: transform 0.2s; /* Animation für die Vergrößerung */
}
.step img:hover {
    transform: scale(1.2); /* Vergrößerung bei Hover */
}