/* ==============================
   @version v3
   base.css
   - Variablen und Farbdefinitionen
   - Basis-Styling
   - Layout-Struktur
   - Typografie
   - Utility-Klassen
   ============================== */

/* ==============================
   1. Variablen und Farbdefinitionen
   ============================== */
:root {
    /* Sektionsfarben */
    --section-1: hsl(0, 100%, 75%);
    --onSection-1: #fff;
    --section-2: hsl(18, 100%, 75%);
    --onSection-2: #fff;
    --section-3: hsl(36, 100%, 75%);
    --onSection-3: #000;
    --section-4: hsl(54, 100%, 75%);
    --onSection-4: #000;
    --section-5: hsl(72, 100%, 75%);
    --onSection-5: #000;
    --section-6: hsl(90, 100%, 75%);
    --onSection-6: #000;
    --section-7: hsl(108, 100%, 75%);
    --onSection-7: #000;
    --section-8: hsl(126, 100%, 75%);
    --onSection-8: #000;
    --section-9: hsl(144, 100%, 75%);
    --onSection-9: #000;
    --section-10: hsl(162, 100%, 75%);
    --onSection-10: #000;
    --section-11: hsl(180, 100%, 75%);
    --onSection-11: #000;
    --section-12: hsl(198, 100%, 75%);
    --onSection-12: #000;
    --section-13: hsl(216, 100%, 75%);
    --onSection-13: #000;
    --section-14: hsl(234, 100%, 75%);
    --onSection-14: #fff;
    --section-15: hsl(252, 100%, 75%);
    --onSection-15: #fff;
    --section-16: hsl(267, 88%, 74%);
    --onSection-16: #fff;
    --section-17: hsl(283, 89%, 75%);
    --onSection-17: #fff;
    --section-18: hsl(302, 76%, 73%);
    --onSection-18: #fff;
    --section-19: hsl(324, 100%, 75%);
    --onSection-19: #fff;
    --section-20: hsl(2, 100%, 74%);
    --onSection-20: #fff;

    /* Konformitätslevel-Farben */
    --A: hsl(181, 100%, 29%);
    --onA: #fff;
    --AA: hsl(59, 100%, 29%);
    --onAA: #fff;
    --AAA: hsl(33, 100%, 29%);
    --onAAA: #fff;

    /* Berufsgruppen-Farben */
    --requirements: hsl(41, 100%, 74%);
    --onRequirements: #000;
    --design: hsl(35, 100%, 50%);
    --onDesign: #000;
    --development: hsl(9, 100%, 50%);
    --onDevelopment: #fff;
    --testing: hsl(205, 100%, 50%);
    --onTesting: #fff;
    --release: hsl(154, 100%, 28%);
    --onRelease: #fff;
    --maintenance: hsl(268, 69%, 34%);
    --onMaintenance: #fff;
    --content: hsl(205, 82%, 78%);
    --onContent: #000;
    --uxWriter: hsl(204, 43%, 65%);
    --onUxWriter: #fff;
    --redaktion: hsl(204, 43%, 65%);
    --onRedaktion: #fff;
    --corporateText: hsl(205, 78%, 77%);
    --onCorporateText: #000;

    /* UI-Farben */
    --primary: #4a90e2;
    --primary-dark: #3a80d2;
    --primary-light: #64b5f6;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Hintergrund- und Textfarben */
    --background-dark: hsla(0, 0%, 0%, 0.85);
    --background-light: #f5f7fa;
    --background-card: #333;
    --text-light: #fff;
    --text-dark: #333;
    
    /* Grautöne */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Globale Variablen */
    --primary-focus-color: #4d90fe;
    --focus-outline-width: 2px;
    --focus-outline-offset: 2px;
    --transition-speed: 0.2s;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
    
    /* Z-Index-Ebenen */
    --z-index-base: 1;
    --z-index-header: 100;
    --z-index-dropdown: 200;
    --z-index-tooltip: 300;
    --z-index-fixed: 400;
    --z-index-modal: 500;
    --z-index-notification: 600;
}

/* ==============================
   2. Basis-Styling
   ============================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
    font-family: Barlow, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    margin: 0;
    padding: 2rem;
    min-width: min-content;
    background-color: var(--background-dark);
    color: var(--text-light);
    overflow-x: auto;
    counter-reset: pruefschritt;
    font-weight: 400;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

button, 
input, 
select, 
textarea {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

button {
    cursor: pointer;
}

input, 
textarea, 
select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background-color: white;
    width: 100%;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.25);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ==============================
   3. Layout-Struktur
   ============================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

/* ==============================
   4. Typografie
   ============================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--gray-600);
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-info {
    color: var(--info);
}

.font-weight-light {
    font-weight: 300;
}

.font-weight-normal {
    font-weight: 400;
}

.font-weight-bold {
    font-weight: 700;
}

/* ==============================
   5. Utility-Klassen
   ============================== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.m-0 {
    margin: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mr-3 {
    margin-right: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.ml-3 {
    margin-left: 1rem !important;
}

.m-4 {
    margin: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mr-4 {
    margin-right: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.ml-4 {
    margin-left: 1.5rem !important;
}

.m-5 {
    margin: 3rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mr-5 {
    margin-right: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.ml-5 {
    margin-left: 3rem !important;
}

.p-0 {
    padding: 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pr-0 {
    padding-right: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pl-0 {
    padding-left: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.pt-1 {
    padding-top: 0.25rem !important;
}

.pr-1 {
    padding-right: 0.25rem !important;
}

.pb-1 {
    padding-bottom: 0.25rem !important;
}

.pl-1 {
    padding-left: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pr-2 {
    padding-right: 0.5rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.pl-2 {
    padding-left: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pr-3 {
    padding-right: 1rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pl-3 {
    padding-left: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pr-4 {
    padding-right: 1.5rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.pl-4 {
    padding-left: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pr-5 {
    padding-right: 3rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.pl-5 {
    padding-left: 3rem !important;
}

/* ==============================
   6. Navigations- und Hilfselemente
   ============================== */
/* Skip-Link für Tastaturnutzer */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #fff;
    color: #000;
    padding: 8px 16px;
    z-index: var(--z-index-header);
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Hauptnavigation */
nav[aria-label="Hauptnavigation"] {
    margin-bottom: 2rem;
}

nav[aria-label="Hauptnavigation"] ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.nav-link .material-icons {
    margin-right: 0.5rem;
}

/* ==============================
   7. Formular-Elemente
   ============================== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--gray-400);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--text-dark);
    background-color: #fff;
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid var(--gray-400);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

.form-select:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* ==============================
   8. Sektionsfarben
   ============================== */
.section-1 {
    background-color: var(--section-1);
    color: var(--onSection-1);
}
.section-2 {
    background-color: var(--section-2);
    color: var(--onSection-2);
}
.section-3 {
    background-color: var(--section-3);
    color: var(--onSection-3);
}
.section-4 {
    background-color: var(--section-4);
    color: var(--onSection-4);
}
.section-5 {
    background-color: var(--section-5);
    color: var(--onSection-5);
}
.section-6 {
    background-color: var(--section-6);
    color: var(--onSection-6);
}
.section-7 {
    background-color: var(--section-7);
    color: var(--onSection-7);
}
.section-8 {
    background-color: var(--section-8);
    color: var(--onSection-8);
}
.section-9 {
    background-color: var(--section-9);
    color: var(--onSection-9);
}
.section-10 {
    background-color: var(--section-10);
    color: var(--onSection-10);
}
.section-11 {
    background-color: var(--section-11);
    color: var(--onSection-11);
}
.section-12 {
    background-color: var(--section-12);
    color: var(--onSection-12);
}
.section-13 {
    background-color: var(--section-13);
    color: var(--onSection-13);
}
.section-14 {
    background-color: var(--section-14);
    color: var(--onSection-14);
}
.section-15 {
    background-color: var(--section-15);
    color: var(--onSection-15);
}
.section-16 {
    background-color: var(--section-16);
    color: var(--onSection-16);
}
.section-17 {
    background-color: var(--section-17);
    color: var(--onSection-17);
}
.section-18 {
    background-color: var(--section-18);
    color: var(--onSection-18);
}
.section-19 {
    background-color: var(--section-19);
    color: var(--onSection-19);
}
.section-20 {
    background-color: var(--section-20);
    color: var(--onSection-20);
}