/* =========================================
   1. CSS RESET
========================================= */

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

/* =========================================
   1a. SCHRIFTARTEN
========================================= */

@font-face {
    font-family: 'Bank Gothic';
    src: url('../fonts/bankgothic/bankgothic.woff2') format('woff2'), url('../fonts/bankgothic/bankgothic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Titillium';
    src: url('../fonts/titillium/titillium-regular.woff2') format('woff2'), url('../fonts/titillium/titillium-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   2. ROOT VARIABLES
========================================= */

:root {
    /* Farben */
    --color-bg: #fffefe;
    --color-surface: #598f80;
    --color-text: #01040a;
    --color-muted: #9ca3af;
    --color-accent: #e4f3eb;
    --color-link: #08223f;

    /* Markenfarben */
    --color-primary: #6d9eeb;
    --color-primary-dark: #3974d4;
    --color-primary-light: #eaf2ff;

    /* Stickybar */
    --color-sticky: #6d9eeb;
    --color-sticky-dark: #3974d4;
    --color-sticky-text: #ffffff;

    /* Navigation */
    --color-navigation-bg: #ffffff;
    --color-navigation-text: #08223f;
    --color-navigation-hover: #3974d4;

    /* Neutrale Farben */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-border: #dce5f2;

    /* Schriftarten */
    --font-heading: 'Bank Gothic';
    --font-text: 'Titillium';

    /* Schriftgrößen */
    --font-size-base: 16px;
    --font-size-small: 0.875rem;
    --font-size-navigation: 1.05rem;
    --font-size-button: 0.95rem;

    /* Zeilenhöhen */
    --line-height-base: 1.6;
    --line-height-heading: 1.2;

    /* Layout */
    --max-width: 1200px;
    --spacing: 1rem;
    --sticky-height: 130px;
    --sticky-height-mobile: 130px;

    /* Abstände */
    --spacing-small: 0.5rem;
    --spacing-medium: 1rem;
    --spacing-large: 2rem;

    /* Radien */
    --radius-small: 5px;
    --radius-medium: 10px;
    --radius-large: 20px;

    /* Schatten */
    --shadow-small: 0 4px 18px rgb(0 25 70 / 15%);
    --shadow-medium: 0 10px 40px rgb(0 25 70 / 20%);

    /* Animationen */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* =========================================
   3. HTML UND BODY
========================================= */

html {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-family: var(--font-text);
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin: 0;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-family: var(--font-text);
    font-weight: 400;
    overflow-x: hidden;
}

/* =========================================
   4. MEDIEN
========================================= */

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

/* =========================================
   5. FORMULARE
========================================= */

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

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

/* =========================================
   6. LINKS
========================================= */

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

a:hover {
    text-decoration: underline;
}

/* =========================================
   7. FOKUS
========================================= */

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

/* =========================================
   8. REDUZIERTE ANIMATION
========================================= */

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

/* =========================================
   9. MAIN
========================================= */

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

.maincontainer {
    width: 99vw;
}

/* =========================================
   10. TABELLEN
========================================= */

.table-wrapper {
    min-width: 0;
    width: 80vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid black;
}

.table-template {
    display: grid;
    grid-template-columns: 10px calc(100% - 20px) 10px;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
    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;
}

table tbody tr:hover {
    background-color: #f9f9f9;
}


/* =========================================
   10. Seitentitel
========================================= */

.pagetile {
 
    font-size: 0.8rem;
    color: var(--color-sticky);
    background: linear-gradient(90deg, var(--color-bg) 0%, rgb(255 254 254 / 56%) 25%, rgb(255 254 254 / 42%) 23%, transparent 45%);
    padding-left: 1rem;

}