/* site.css */

/* Einheitliches Grundlayout */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f8f8f8; /* leichtes Grau */
    color: #333; /* Textfarbe */
}

/* Header-Style */
header {
    background-color: #003366; /* z. B. ein kräftiges Blau */
    color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
}

    header h1 {
        margin: 0;
        font-size: 1.5rem;
    }

/* Footer */
footer {
    background-color: #e1e1e1;
    color: #333;
    padding: 0.5rem;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Main-Content (gilt für reguläre Seiten) */
main {
    padding: 1rem;
    background: #fff;
    margin: 0 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Button-Stil */
button {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

    button:hover {
        background-color: #005fa3;
    }

/* Pre-Block für etwaige Konsolen-/Script-Ausgaben */
pre {
    background: #f4f4f4;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 4px;
}

/* Optionale Kleinigkeiten */
h1, h2, h3 {
    font-weight: 400;
}

form {
    margin: 1rem 0;
}

/* Tabellenstil */
.my-table {
    width: 100%; /* Tabelle über die ganze Breite */
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 1rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

    /* Tabellenkopf */
    .my-table thead {
        background-color: #003366;
        color: #fff;
    }

    .my-table th {
        padding: 0.75rem;
        text-align: left;
        font-weight: bold;
        border-bottom: 2px solid #005fa3;
    }

    /* Tabellenkörper */
    .my-table tbody tr {
        border-bottom: 1px solid #e1e1e1;
    }

    .my-table td {
        padding: 0.75rem;
        color: #333;
    }

    /* Abwechselnde Hintergrundfarbe für die Zeilen */
    .my-table tbody tr:nth-child(even) {
        background-color: #f8f8f8;
    }

    /* Hover-Effekt */
    .my-table tbody tr:hover {
        background-color: #e1f0ff;
        transition: background-color 0.2s ease-in-out;
    }

    /* Erste Spalte hervorheben (z. B. Produkt-ID) */
    .my-table td:first-child {
        font-weight: bold;
        color: #003366;
    }

/* Responsive Verhalten */
@media (max-width: 768px) {
    .my-table th,
    .my-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}
