/* 06.02.26 - style.css - Globale Basis-Stile */

:root {
    --primary: #2c3e50;
    --accent: #27ae60;
    --accent-hover: #2ecc71;
    --danger: #e74c3c;
    --bg-light: #f4f7f6;
    --text-dark: #333333;
    --text-light: #666666;
    --border: #e0e6e9;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

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

/* Karten & Admin-Stack */
.admin-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
}

/* Tabellen-Styling */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f8fafc;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

/* Button-Variationen */
.btn-del {
    background: var(--danger);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-del:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.btn-orange { background-color: #ffa500 !important; }
.btn-info { background-color: #17a2b8 !important; }

/* Scroll-Container */
.scroll-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 15px;
}

/* --- Footer Styling --- */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 30px 0;
    margin-top: auto; /* Schiebt den Footer nach unten */
    border-top: 4px solid var(--accent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
}

.footer-bottom p {
    opacity: 0.6;
}

.footer-admin-link {
    display: inline-block;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.2) !important;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s;
}

.footer-admin-link:hover {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .footer-links {
        gap: 15px;
        flex-direction: column;
    }
    .main-footer {
        padding: 40px 0 20px 0;
    }
}