

/* CSS Reset und Grundlagen */
* {
    box-sizing: border-box;
}

html {
    font-size: 100%; /* 16px Standard */
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem; /* 14px entspricht dem Original */
    line-height: 1.6;
    background-color: #f2f2f2;
    color: #333333;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   BARRIEREFREIHEIT - Skip Links und versteckte Elemente
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 1000;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: bold;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   LAYOUT - Container und Grid
   ========================================================================== */

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: calc(100vh - 200px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
    background: #fff;
    border-bottom: 4px solid #009933;
    padding: 1.25rem 1rem;
    text-align: right;
}

.company-name {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.25rem; /* 20px */
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #333333;
}

.service-title {
    font-size: 0.875rem; /* 14px */
    font-weight: normal;
    display: inline-block;
    line-height: 1.2;
}

.small-caps {
    font-size: 0.75rem; /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navigation {
    background: #f8f8f8;
    border-right: 2px solid #339900;
    padding: 1rem 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem; /* 14px */
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus {
    background-color: #e2e2e2;
    border-left-color: #009933;
    outline: none;
}

.nav-list a:focus {
    outline: 3px solid #ffd700;
    outline-offset: -3px;
}

.nav-list a[aria-current="page"] {
    background-color: #e8f5e8;
    border-left-color: #009933;
    font-weight: bold;
}

/* ==========================================================================
   HAUPTINHALT
   ========================================================================== */

.main-content {
    padding: 1.5rem 2rem;
    background: #fff;
}

.page-title {
    font-size: 1.125rem; /* 18px */
    font-weight: bold;
    color: #333333;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid #009933;
    padding-bottom: 0.5rem;
}

.solutions-section {
    margin-bottom: 2rem;
}

.solution-category {
    font-size: 1rem; /* 16px */
    font-weight: bold;
    color: #005500;
    margin: 0 0 1rem 0;
    padding-left: 0.5rem;
    border-left: 4px solid #009933;
}

.solution-list {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.solution-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ==========================================================================
   BARRIEREFREIHEIT FEEDBACK
   ========================================================================== */

.accessibility-feedback {
    background: #f0f8f0;
    border: 2px solid #009933;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.feedback-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.feedback-link {
    color: #005500;
    text-decoration: underline;
    font-weight: bold;
}

.feedback-link:hover,
.feedback-link:focus {
    color: #003300;
    background-color: #e8f5e8;
    outline: 2px solid #009933;
    outline-offset: 2px;
    text-decoration: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: #f8f8f8;
    border-top: 1px solid #cccccc;
    padding: 1rem 2rem;
    text-align: left;
}

.copyright {
    font-size: 0.75rem; /* 12px */
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   FOKUS UND INTERAKTION - Verbesserte Barrierefreiheit
   ========================================================================== */

/* Allgemeine Fokus-Stile */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Hover-Effekte für bessere Benutzererfahrung */
a:not(.skip-link):hover {
    transition: all 0.3s ease;
}

/* ==========================================================================
   RESPONSIVE DESIGN - Mobile First Approach
   ========================================================================== */

@media screen and (max-width: 769px) {
    .main-layout {
        grid-template-columns: max-content 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .navigation {
        border-right: none;
        border-bottom: 2px solid #339900;
        order: 1;
        width: auto; 
    }
    
    .nav-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .nav-list li {
        border: 1px solid #339900;
        border-radius: 4px;
        border-bottom: 1px solid #339900;
    }
    
    .nav-list a {
        padding: 0.5rem 0.75rem;
        border-left: none;
        border-radius: 4px;
    }
    
    .main-content {
        padding: 1rem;
        order: 2;
    }
    
    .header {
        text-align: center;
    }
    
    .company-name {
        font-size: 1.125rem; /* 18px */
    }
}

@media screen and (max-width: 480px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .header {
        padding: 1rem 0.5rem;
    }
    
    .main-content {
        padding: 0.75rem 0.5rem;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-list li {
        width: 100%;
    }
}

/* ==========================================================================
   DRUCKSTILE
   ========================================================================== */

@media print {
    .skip-link,
    .navigation,
    .accessibility-feedback {
        display: none;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .header {
        border-bottom: 2pt solid #000;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ==========================================================================
   HIGH CONTRAST MODE UNTERSTÜTZUNG
   ========================================================================== */

@media (prefers-contrast: high) {
    .nav-list a:hover,
    .nav-list a:focus {
        background-color: #000;
        color: #fff;
    }
    
    .accessibility-feedback {
        border-width: 3px;
    }
    
    .feedback-link:focus {
        outline-width: 4px;
    }
}

/* ==========================================================================
   REDUCED MOTION UNTERSTÜTZUNG
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   LEGACY KLASSEN (für Kompatibilität)
   ========================================================================== */

/* Alte Klassen werden auf neue gemappt 
.titelzeile { Wird jetzt durch .header ersetzt  }
.Hauptmenu { Wird jetzt durch .nav-list a ersetzt  }
.menuspalte { Wird jetzt durch .navigation ersetzt  }
.pageTitle { Wird jetzt durch .page-title ersetzt  }
.fusszeile { Wird jetzt durch .footer ersetzt  }
.kapitaelchen{Wird jetzt durch .small-caps ersetzt  }
.gbmhName { Wird jetzt durch .company-name ersetzt  }
*/
.linkfliesstext {
    text-decoration: underline;
    color: #009900;
}

.ascii {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.75rem; /* 12px */
}