/* Basis Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 30px;
    color: #333;
    line-height: 1.6;
}

h2 {
    color: #222;
    border-left: 5px solid #0077cc;
    padding-left: 10px;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

/* Formulare allgemein */
form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 650px;
    margin-bottom: 30px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

form div {
    margin-bottom: 18px;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #0077cc;
    background-color: #fff;
    box-shadow: 0 0 6px rgba(0,119,204,0.3);
    outline: none;
}

/* Buttons */
button {
    background: linear-gradient(135deg, #0077cc, #005fa3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s, background 0.25s ease;
}

button:hover {
    background: linear-gradient(135deg, #005fa3, #004d85);
    transform: translateY(-2px);
}

/* Links */
a {
    color: #0077cc;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

a:hover {
    color: #005fa3;
    text-decoration: underline;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f7f9fc;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

td {
    font-size: 0.95rem;
}

td a {
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Bilder */
img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: 10px;
}

/* Kompakter Admin Login */
.admin-login {
    max-width: 350px;
    padding: 20px;
    margin: 60px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-login input {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.admin-login button {
    width: 100%;
    padding: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Suchfeld neben Buttons */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.admin-toolbar form input[type="text"] {
    width: 140px;
    padding: 3px 6px;
    font-size: 12px;
}

.admin-toolbar form button {
    padding: 3px 8px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    form, table {
        width: 100%;
        font-size: 0.9rem;
    }

    th, td {
        padding: 12px;
    }

    .admin-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}