/* Schriftarten importieren */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* Allgemeine Stile */
body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(
        to bottom,
        #000000 0%,
        #000000 300px,
        #f5f5f5 50%,
        #000000 calc(100% - 300px),
        #000000 100%
    );
    color: #333;
    margin: 0;
    padding: 0;
    font-size: 18px;
    min-height: 100vh;
    line-height: 1.6;
}

/* Hauptcontainer */
.main {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Gemeinsame Containerstile */
.container, .container-header, .container-footer {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Spezifische Container-Anpassungen */
.container {
    max-width: 1000px;
    background-color: #ffffff;
    border-radius: 20px;
}

.container-header, .container-footer {
    background-color: transparent;
    border: none;
}

/* Header */
header {
    background: transparent;
    padding: 20px;
    color: #ffffff;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.logo-container h1 {
    margin: 0 100px 0 0;
    font-size: 2em;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.logo-container img.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 100px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
    margin-right: auto;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px auto;
    transition: 0.4s;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.header-buttons li {
    display: inline-block;
}

.header-button {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 20px;
    margin: 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #C0c0c8;
    transition: background-color 0.3s ease;
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.header-button:hover {
    background-color: #3B82F6;
}

/* Navigation */
.nav-bar {
    background-color: transparent;
    width: 100%;
    padding: 5px 0;
}

.nav-bar .container-header {
    background-color: #C0c0c8;
    border-radius: 0 0 10px 10px;
    padding: 5px 20px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}

nav ul li {
    margin: 1px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 4px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Karten-Stil */
.card-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 40px 0;
}

.card {
    flex: 1;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #C0c0c8, #1E3A8A);
}

.card-icon {
    font-size: 2.5em;
    color: #1E3A8A;
    margin-bottom: 20px;
    text-align: center;
}

.card h3 {
    color: #1E3A8A;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.card p {
    font-size: 14px;
}

.card ul {
    list-style-type: none;
    padding: 0;
}

.card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.card ul li::before {
    content: '✓';
    color: #1E3A8A;
    position: absolute;
    left: 0;
}

/* Buttons */
.btn-delete, .btn-primary, button {
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    display: inline-block;
    margin: 10px 0;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-delete:active {
    background-color: #bd2130;
}

.btn-primary, button {
    background-color: #C0c0c8;
    color: #fff;
}

.btn-primary:hover, button:hover {
    background-color: #3B82F6;
}

.btn-primary:active, button:active {
    background-color: #1E3A8A;
}

/* Formular Layout */
form {
    display: grid;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="file"] {
    padding: 5px;
}

/* Zweispaltiges Formularlayout */
.two-column-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 10px;
}

.form-group textarea {
    min-height: 100px;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.form-actions button {
    margin-left: 10px;
}

/* Fehlermeldungen im Formular */
.error-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Erfolgsmeldungen im Formular */
.success-message {
    color: #28a745;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Tabellen-Stil */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #ffffff;
}

th, td {
    border: 1px solid #000000;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #1E3A8A;  /* Das Blau, das für Überschriften verwendet wird */
    color: #ffffff;
}

tr:nth-child(even) {
    background-color: #E6F3FF;  /* Ein sehr helles Blau */
}

tr:nth-child(odd) {
    background-color: #ffffff;  /* Weiß */
}

/* Footer */
footer {
    background: transparent;
    color: #ffffff;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 200px;
}

.footer-section h3 {
    color: #1E3A8A;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    padding-top: 10px;
    background-color: transparent;
}

.footer-bottom .container-footer {
    background-color: #C0c0c8;
    border-radius: 10px 10px 0 0;
    padding: 10px 20px;
}

/* Zusätzliche Stile */
.green-title {
    color: #1E3A8A;
    margin-bottom: 20px;
}

.content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-link {
    display: block;
    text-align: center;
    margin: 20px 0;
}
/* Responsive Design (Fortsetzung) */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .header-buttons {
        display: none;
        width: 100%;
        flex-direction: column;
    }

    .header-buttons.active {
        display: flex;
    }

    .header-button {
        width: 100%;
        margin: 5px 0;
    }

    .logo-container {
        justify-content: center;
    }

    .logo-container h1 {
        margin: 0;
        font-size: 1.5em;
    }

    .logo-container img.logo {
        margin-right: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin: 10px 0;
    }
}

/* Profile Grid und Tabs */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.profile-card, .info-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.profile-tabs {
    margin-top: 20px;
}

.tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #e0e0e0;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab-item.active {
    background-color: #f0f0f0;
    border-bottom: 2px solid #1E3A8A;
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.field-item {
    display: flex;
    flex-direction: column;
}

.field-item label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Zusätzliche Anpassungen für bessere Lesbarkeit und Konsistenz */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #1E3A8A;
}

p {
    margin-bottom: 15px;
}

a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1E3A8A;
}

/* Verbesserte Zugänglichkeit */
:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Verbesserte Druckdarstellung */
@media print {
    body {
        background: none;
        color: #000;
    }

    .container, .main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    header, footer, .nav-bar, .btn-delete, .btn-primary, button {
        display: none;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-item {
    display: flex;
}

.category-item .card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.category-item .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-item .card-text {
    flex-grow: 1;
}

.category-item .btn-primary {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
</style>