/* Allgemeines Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('background.jpg');
     background-size: cover;

}
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width:80%;
}

/* Container für das Login-Formular */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.input-group {
    margin: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    margin:5px;
}

.input-group input:focus {
    border-color: #3b82f6;
}
.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    background-color: white; /* Wichtig für Select */
    height: 42px; /* Fixe Höhe, damit Input und Select exakt gleich hoch sind */
    appearance: none; /* Entfernt das Standard-Browser-Styling */
    -webkit-appearance: none;
}
.forgot-password {
    text-align: right;
}

.forgot-password a {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.submit-btn {
    text-align: center;
}

.submit-btn button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn button:hover {
    background-color: #2563eb;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width:100%;
}

/* Header */
.dashboard-header {
    background-color: #333;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header .header-left h1 {
    margin: 0;
}

.dashboard-header .header-right .logout-btn {
    background-color: #e74c3c;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.dashboard-header .header-right .logout-btn:hover {
    background-color: #c0392b;
}

/* Sidebar */
.dashboard-sidebar {
    width: 200px;
    background-color: #2c3e50;
    padding-top: 20px;
}

.dashboard-sidebar nav ul {
    list-style-type: none;
    padding-left: 0;
}

.dashboard-sidebar nav ul li {
    margin-bottom: 15px;
}

.dashboard-sidebar nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-weight: bold;
}

.dashboard-sidebar nav ul li a:hover {
    background-color: #34495e;
}

/* Dashboard Content */
.dashboard-main {
    display: flex;
    flex-grow: 1;
}

.dashboard-content {
    flex-grow: 1;
    padding: 20px;
    background-color: #fff;
}

.dashboard-content h2 {
    color: #333;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background-color: #ecf0f1;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0;
}

.card-btn {
    display: inline-block;
    margin-top: 10px;
    background-color: #3498db;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}
.del-btn {
    display: inline-block;
    background-color: #e74c3cdb;
    color: #fff;
    padding: 3px;
    border-radius: 5px;
    text-decoration: none;
}
.edit-btn {
    display: inline-block;
    background-color: #2ea339;
    color: #fff;
    padding: 3px;
    border-radius: 5px;
    text-decoration: none;
}

.card-btn:hover {
    background-color: #2980b9;
}

textarea {
  font-size: 16px;
  padding: 5px;
  margin: 5px;
  width: 100%;
  max-width: 350px; /* Maximale Breite für bessere Ausrichtung */
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  transition: all 0.3s ease; /* Sanfte Übergänge */
}

.vorgabe-item{
    font-size: 16px;
    width: 100%;
     background-color: #D3D3D3;
     margin:5px;
     padding:10px;
     border-radius: 8px;
}

.table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f4f4f4;
    color: #555;
    font-weight: bold;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tr:hover {
    background-color: #f1f1f1;
}

.table td:last-child {
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-warning {
    background-color: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #b02a37;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}


.form-group {
    margin-bottom: 15px;
}

.form-group input[type="checkbox"],
.form-group label {
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
    margin: 0 5px;
    margin-bottom: 5px;
}

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

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0px 0px 4px rgba(0, 123, 255, 0.2);
}

/* Globale Stile für den Angebotsbereich */
.container {
    margin: auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Kartenstile */
.card {
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    overflow: hidden;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4e73df; /* Bootstrap Primärfarbe */
    margin-bottom: 15px;
}

/* Liste der Komponenten */
.list-group-item {
    font-size: 1rem;
    padding: 10px 15px;
    border: none;
}

.list-group-item strong {
    color: #1cc88a; /* Positive, grüne Farbe für Preise */
}

/* Abgeschlossene Komponenten */
.list-group-item.text-muted {
    background-color: #f8f9fa;
    font-style: italic;
}

/* Download-Link */
a.btn {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Info-Box */
.alert-info {
    background-color: #f1f8ff;
    color: #1d3557;
    border: 1px solid #a8dadc;
    border-radius: 8px;
    padding: 15px;
}

/* Links */
a {
    text-decoration: none;
}

@media print {
    body * {
        visibility: hidden; /* Versteckt alles auf der Seite */
    }
    #druckbereich, #druckbereich * {
        visibility: visible; /* Macht nur den relevanten Bereich sichtbar */
    }
    #druckbereich {
        position: absolute;
        left: 0;
        top: 0;
    }
}

@media (min-width: 800px) {
    .menu-toggle {
        display: none;
       }
}

@media (max-width: 1200px) {
    .dashboard-sidebar {
        transform: translateX(-500%); /* Hide the sidebar */
        position: fixed;
        height: 100%;
        z-index: 10;
    }

    a.btn,
    .btn,
    .btn-warning,
    .btn-success,
    .logout-btn,
    .card-btn,
    .del-btn,
    .edit-btn{
        font-size:0.7rem;
    }
    .dashboard-main {
        margin-left: 0; /* No extra margin when sidebar is hidden */
    }

    .dashboard-sidebar.open {
        transform: translateX(0); /* Show the sidebar */
    }

    .menu-toggle {
        display: block;
        //position: fixed;
        top: 15px;
        left: 15px;
        z-index: 20;
        cursor: pointer;
        font-size: 24px;
        background-color: #333;
        color: #fff;
        border: none;
        padding: 10px;
        border-radius: 4px;
        width:40px;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #ffc107;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.page-link:hover {
    background-color: #ffc107;
    color: white;
}

.page-item.active .page-link {
    background-color: #ffc107;
    color: white;
    border-color: #ffc107;
    cursor: default;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #e9ecef;
    border-color: #ddd;
}
