/* styles.css */
@import url('common.css');

/* Grundstruktur: Flexbox für Body und HTML */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    background-color: #f4f4f4;
    box-sizing: border-box;
}

/* Header */
header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    display: inline;
    margin: 0 10px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
}

/* Main-Bereich füllt den verbleibenden Platz */
main {
    flex: 1;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

/* Footer stets unten */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    clear: both;
}

/* Tabellenheader */
th {
    background-color: #f2f2f2;
}

/* Buttons und Links */
button, a, .dark-button {
    padding: 5px 10px;
    margin: 0 5px;
    border: none;
    background-color: #333;
    color: white;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

button:hover, a:hover, .dark-button:hover {
    background-color: #555;
}

/* Formulare */
form div {
    margin-bottom: 15px;
}
form label {
    display: block;
    font-weight: bold;
}
form input[type="text"], form input[type="password"], form select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

/* Formularcontainer */
.form-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 80vh;
    box-sizing: border-box;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Dashboard und Tiles */
.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

tile {
    flex: 1 1 calc(33% - 20px);
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tile a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.tile button {
    background-color: #555;
    color: #f2f2f2;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.tile button:hover {
    background-color: #444;
    color: #fff;
}

/* Status-Felder */
.status-offen {
    background-color: red;
    color: white;
    padding: 5px;
    border-radius: 5px;
    display: inline-block;
    min-width: 75px;
    text-align: center;
    font-weight: bold;
}

.status-bestätigt {
    background-color: green;
    color: white;
}

.status-geschlossen {
    background-color: yellow;
    color: black;
}

/* Delete-Button */
.delete-button {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 80%;
    height: 80%;
    max-height: 80%;
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Akkordeon */
.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}

.accordion:hover {
    background-color: #ccc;
}

.accordion-content {
    display: none;
    padding: 0 18px;
    background-color: #f9f9f9;
    overflow: hidden;
}

/* Template-Container */
.template-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.template {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    width: 200px;
    box-sizing: border-box;
}

.template img {
    max-width: 100%;
    height: auto;
}

/* Filter-Container */
.filter-container {
    display: flex;
    gap: 10px;  /* Abstand zwischen den Dropdowns und dem Button */
    justify-content: flex-start;
    align-items: center;
}

.filter-container select, 
.filter-container input[type="date"], 
.filter-container button {
    padding: 5px;
    font-size: 16px;
    margin-right: 10px;
}

/* Responsives Design */
@media (max-width: 768px) {
    .form-container {
        width: 100%;
        padding: 15px;
    }

    .form-group label {
        font-size: 1em;
    }

    button, a, .dark-button {
        width: 100%;
        padding: 10px;
    }
}

.filter-container {
    display: flex;
    gap: 10px;  /* Abstand zwischen den Dropdowns und dem Button */
    justify-content: flex-start;
    align-items: center;
}

.filter-container select, 
.filter-container input[type="date"], 
.filter-container button {
    padding: 5px;
    font-size: 16px;
    margin-right: 10px;
}