﻿/* ============================= */
/* Grundlayout */
/* ============================= */

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 40px;
    color: #333;
}

h1, h2 {
    margin-top: 0;
}

/* Zentrierter Inhaltsbereich */
.page-wrapper {
    max-width: 1000px;
    margin: auto;
}

/* ============================= */
/* Karten-Design */
/* ============================= */

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

/* ============================= */
/* Formulare */
/* ============================= */

input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: 0.2s ease;
}

input:focus {
    border-color: #f28c28;
    box-shadow: 0 0 0 2px rgba(242,140,40,0.15);
    outline: none;
}

.row {
    display: flex;
    gap: 12px;
}

.row input {
    margin-bottom: 15px;
}

/* ============================= */
/* Upload Bereich */
/* ============================= */

.upload-area {
    margin-top: 20px;
    border: 2px dashed #cfd8dc;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    background: #fafafa;
    transition: 0.3s ease;
}

.upload-area.dragover {
    background: #fff4e6;
    border-color: #f28c28;
}

.upload-area p {
    margin: 0;
    font-size: 15px;
}

.preview {
    margin-top: 25px;
    max-width: 100%;
    max-height: 280px;
    border-radius: 10px;
}

/* ============================= */
/* Buttons */
/* ============================= */

.button-bar-clean {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-orange {
    background: #f28c28;
    color: #ffffff !important;
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    text-decoration: none !important;
    display: inline-block;
    transition: 0.2s ease;
    cursor: pointer;
}

.btn-orange:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* ============================= */
/* Dashboard Tabelle */
/* ============================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

th {
    background: #f28c28;
    color: #ffffff;
    padding: 14px;
    text-align: left;
    font-weight: 500;
}

td {
    padding: 14px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #fff8f0;
}

td a {
    color: #f28c28;
    text-decoration: none;
    font-weight: 500;
}

td a:hover {
    text-decoration: underline;
}

/* ============================= */
/* Suchergebnis Karten */
/* ============================= */

.search-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.result-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    gap: 15px;
    align-items: center;
    transition: 0.2s ease;
}

.result-card:hover {
    transform: translateY(-4px);
}

.result-image {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

.result-content h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.result-date {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.no-result {
    margin-top: 20px;
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
}

/* ============================= */
/* Login */
/* ============================= */

.login-box {
    max-width: 420px;
    margin: 100px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    text-align: center;
}

/* ============================= */
/* Responsive */
/* ============================= */

@media (max-width: 768px) {

    body {
        padding: 20px;
    }

    .row {
        flex-direction: column;
    }

    .card {
        padding: 25px;
    }

    .button-bar-clean {
        flex-direction: column;
        align-items: flex-start;
    }
}
