﻿/* Allgemeine Stile */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #005aa7, #003d5c);
    color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background: #003366;
    padding: 20px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Navigation */
nav {
    background: #004e7f;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #ffffff;
}

    nav a {
        color: #f5f5f5;
        text-decoration: none;
        margin: 0 20px;
        font-size: 18px;
        padding: 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

        nav a:hover {
            background: #00aaff;
            color: #003366;
            text-shadow: 0 2px 4px rgba(0, 170, 255, 0.7);
        }

/* Footer */
footer {
    background: #004e7f; /* gleiche Farbe wie Navbar */
    padding: 15px;
    text-align: center;
    font-size: 14px;
    position: relative;
    width: 100%;
    color: white;
}

/* Buttons */
button, .btn {
    background: #2eb398;
    color: white !important;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
}

    button:hover, .btn:hover {
        background: #26a085;
        color: white !important;
        transform: scale(1.05);
    }

/* Ensure links inside buttons inherit text color */
button a, .btn a {
    color: inherit !important;
    text-decoration: none !important;
}

button a:hover, .btn a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Edit and Back Buttons */
.btn-warning {
    background: #ff9800;
    color: white !important;
}

    .btn-warning:hover {
        background: #e68900;
        color: white !important;
    }

.btn-secondary {
    background: #607d8b;
    color: white !important;
}

    .btn-secondary:hover {
        background: #546e7a;
        color: white !important;
    }

/* Details Container */
.details-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 700px;
    margin: 50px auto;
}

    /* Titel und Subtitel */
    .details-container h1, .details-container h4 {
        text-align: center;
        font-weight: 700;
        color: #2eb398;
    }

    /* Details List */
    .details-container dl {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 15px;
        margin-top: 20px;
    }

    .details-container dt {
        font-weight: 600;
        font-size: 16px;
        color: #2eb398;
    }

    .details-container dd {
        font-size: 16px;
        color: #e0e0e0;
        line-height: 1.5;
    }

    /* Bild */
    .details-container img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }

    /* Text-Stile */
    .details-container p {
        text-align: center;
        font-style: italic;
        color: #bbb;
    }

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

    table th, table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #ffffff;
        color: #ffffff;
    }

    table th {
        background: #0055aa;
        font-weight: bold;
    }

    table tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.05);
    }

    table tr:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Formulare in Tabellen */
    table td form {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    table td select {
        background: #00796b;
        color: #ffffff;
        border: 1px solid #ffffff;
        border-radius: 5px;
        padding: 5px;
        font-size: 14px;
        width: 100%;
        max-width: 150px;
    }

        table td select option {
            background: #004d40;
            color: #ffffff;
        }

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        nav a {
            margin: 10px 0;
            font-size: 16px;
        }

    /* Details Container */
    .details-container {
        width: 95%;
        padding: 20px;
    }

        .details-container dl {
            grid-template-columns: 1fr;
        }

        .details-container dt, .details-container dd {
            font-size: 14px;
        }

    /* Footer */
    footer {
        padding: 10px;
    }
}

/* Card Styles */
.card {
    background: rgba(240, 240, 240, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    color: #333;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #003366;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Index View Card Styles */
.row .card dl {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.row .card dt {
    font-weight: 600;
    font-size: 14px;
    color: #003366;
    margin-bottom: 0.25rem;
}

.row .card dd {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.card img {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Details View spezifische Styles */
.details-card {
    max-width: 800px;
    margin: 2rem auto;
}

.details-card .card-body {
    padding: 2rem;
}

.details-card .card-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.details-card dl {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 20px;
}

.details-card dt {
    font-weight: 600;
    font-size: 16px;
    color: #003366;
    margin-bottom: 0.5rem;
}

.details-card dd {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.details-card .btn {
    margin: 0 0.5rem;
}

.modal-content {
    color: black;
}
