/* -----------------------------------
   Grundlayout
----------------------------------- */

body {
    margin: 0;
    background-color: #e7e4dd; /* greige */
    font-family: Arial, sans-serif;
    color: #333;
}

h1.page-title {
    text-align: center;
    padding: 20px 10px;
    margin: 0;
    background-color: #1e4638; /* englischgrün */
    color: white;
    font-size: 24px;
}


/* -----------------------------------
   Kachel-Dashboard
----------------------------------- */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tile {
    background-color: #1e4638;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.1s, box-shadow 0.1s;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.tile-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tile-desc {
    font-size: 14px;
    opacity: 0.8;
}


/* -----------------------------------
   Buttons
----------------------------------- */

.btn-green {
    background-color: #1e4638;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin: 10px 0;
}

.btn-green:hover {
    background-color: #163428;
}

.btn-back {
    background-color: #777;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 6px;
}

.btn-back:hover {
    background-color: #555;
}

.btn-small {
    background-color: #1e4638;
    padding: 5px 10px;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.btn-small-red {
    background-color: #a22;
    padding: 5px 10px;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.btn-small-red:hover {
    background-color: #800;
}


/* -----------------------------------
   Tabellen
----------------------------------- */

.list-table {
    width: 94%;
    margin: 20px auto;
    border-collapse: collapse;
    background: white;
}

.list-table th,
.list-table td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.list-table th {
    background: #1e4638;
    color: white;
}


/* -----------------------------------
   Formulare
----------------------------------- */

.form-card {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px;
    border-radius: 6px;
    border: 1px solid #aaa;
}

.success {
    background-color: #d5edda;
    color: #2b6e3c;
    padding: 10px;
    margin: 20px;
    border-radius: 8px;
}

.error {
    background-color: #f3cccc;
    color: #7a1b1b;
    padding: 10px;
    margin: 20px;
    border-radius: 8px;
}


/* -----------------------------------
   Login-Box
----------------------------------- */

.login-container {
    width: 90%;
    max-width: 350px;
    margin: 100px auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
}

.login-container input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
}

.login-container button {
    width: 95%;
    padding: 12px;
    background-color: #1e4638;
    color: white;
    border: none;
    border-radius: 8px;
}


/* -----------------------------------
   Mobile Optimierung
----------------------------------- */

@media (max-width: 600px) {
    .tile-title {
        font-size: 18px;
    }
    .tile-desc {
        font-size: 13px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}
