/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f6f9;
    color: #333;
}


/* =========================
   CONTAINER
========================= */

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}


/* =========================
   CARD DESIGN
========================= */

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}


/* =========================
   HEADINGS
========================= */

h1 {
    margin-bottom: 25px;
    font-size: 26px;
}

/* =========================
   Confirmation-Box
========================= */

.confirmation-box {
    background: #f8f9fc;
    border: 1px solid #e1e5ee;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.confirmation-box p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.confirm-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* =========================
   FORM GRID (Email / Name Bereich)
========================= */

.form-grid {
    margin-bottom: 30px;
}

.row-label {
    font-weight: 600;
    margin-bottom: 5px;
}

.row-input {
    margin-bottom: 20px;
}

.row-input input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: 0.2s ease;
}

.row-input input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.required {
    color: red;
}

.active-sort {
    color: #2563eb;
    font-weight: bold;
}


/* =========================
   TABLE
========================= */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}

table th {
    background: #007bff;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

table tr:nth-child(even) {
    background: #f9fbfd;
}

table input,
table select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

table input:focus,
table select:focus {
    border-color: #007bff;
    outline: none;
}


/* =========================
   BUTTONS
========================= */

.btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #0069d9;
}

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

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

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

.btn-danger:hover {
    background: #c82333;
}

.button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}


/* =========================
   DASHBOARD
========================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-card h2 {
    font-size: 28px;
    margin-top: 10px;
}


/* =========================
   CHART
========================= */

canvas {
    max-width: 100%;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .two-col {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 20px;
    }

    .btn {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }

}

/* =========================
   Modal Popup
========================= */

.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 100px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.5); 
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

/* =========================
   Bilder
========================= */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery-img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Modal Styling für Bilder */
#imgModal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

#imgModal img {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

#imgModal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}