/* =========================================
   1. CSS RESET (modern & minimal)
========================================= */

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

/* =========================================
   2. ROOT VARIABLES (Design Tokens)
========================================= */

:root {
    /* Farben */
    --color-bg: rgb(255, 254, 254);
    /* Slate 900 */
    --color-surface: #598f80;
    /* Dark Surface */
    --color-text: #01040a;
    /* Light Text */
    --color-muted: #9ca3af;
    --color-accent: #e4f3eb;
    --color-link: #08223f;

    /* Typografie */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Layout */
    --max-width: 1200px;
    --spacing: 1rem;

    /* Animation */
    --transition-fast: 150ms ease;
}

/* =========================================
   3. HTML
========================================= */

html {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-family: var(--font-sans);

    color-scheme: dark light;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   4. BODY
========================================= */

body {
    min-height: 100dvh;

    background-color: var(--color-bg);
    color: var(--color-text);

    display: flex;
    flex-direction: column;

    font-weight: 400;
    overflow-x: hidden;
     
}

/* =========================================
   5. MEDIA DEFAULTS
========================================= */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* =========================================
   6. FORM ELEMENTS
========================================= */

input,
button,
textarea,
select {
    font: inherit;
    color: var(--color-bg);
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

/* =========================================
   7. LINKS
========================================= */

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================
   8. ACCESSIBILITY
========================================= */

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* =========================================
   9. REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   10. Main
========================================= */

main {
    text-align: justify;
    margin: 0;
    padding: 0;
}

.maincontainer {
    width: 99vw;
   }

/* =========================================
   11. Table
========================================= */

.table-wrapper {
    min-width: 0;
    /* erlaubt dem Container, schmaler als den Inhalt zu werden */
    width: 80vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid black;
}

.table-template {
    display: grid;
    /* Statt 10px 1fr 10px: */
    grid-template-columns: 10px calc(100% - 20px) 10px;
    /*                ↑               ↑    ↑ */
    /*   linker Rand   Mitte = 100%−(10px+10px)  rechter Rand */
}

/* Tabelle gestalten */
table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
    /* damit auf kleinen Geräten gescrollt wird */
    font-family: Arial, sans-serif;
    font-size: 15px;
    background-color: #fff;
}

table th,
table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* Hover-Effekt für Desktop */
table tbody tr:hover {
    background-color: #f9f9f9;
}