/* ========================================
   Accessible Styles for WZV Hörgertshausen
   WCAG 2.1 AA & BFSG Compliant
   ======================================== */

/* CSS Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px for easier calculations */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #222;
    background: #fff;
    overflow-x: hidden;
}

/* Skip Link for Keyboard Navigation */
.skip-link {
    position: absolute;
    top: -4rem;
    left: 0;
    background: #0868b2;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles - High Contrast for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #0868b2;
    outline-offset: 2px;
}

/* Remove default focus outline only when using :focus-visible */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

/* Container for Centering Content */
.container {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Design Banner (above header) */
.design-banner {
    width: 100%;
    height: 270px;
    background-image: url('../images/ai-generated-water-picture.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* Header (white background, no gradient) */
header {
    background: #ffffff;
    padding: 4rem 0;
    text-align: center;
    min-height: 35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-hero {
    /* Removed background for transparent logo */
}

.header-logo {
    max-width: 100%;
    width: 60rem;
    height: auto;
}

/* Welcome Section */
.welcome-section {
    background: #fff;
    padding: 2rem 0;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.welcome-text {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin: 0;
}

/* Status/Alert Section */
.status-section {
    padding: 3rem 0;
    text-align: center;
}

.status-section.status-ok {
    background-color: #e2f7e2;
}

.status-section.status-alert {
    background-color: #dbeafe;
}

.status-message {
    font-size: 1.8rem;
    margin: 0;
}

.status-ok .status-message {
    color: #0f5132;
}

.status-alert .status-message {
    color: #0868b2;
}

.status-alert .alert-headline {
    color: #842029;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Visually hidden (screen-reader only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}


main {
    padding: 2rem 0;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.section-gray {
    background: rgba(0, 0, 0, 0.04);
}

.content-section h2 {
    font-size: 5rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 400;
}

.content-section h3 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.content-section p {
    margin-bottom: 2rem;
    color: #454545;
}

.content-section ul {
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    color: #454545;
}

/* Links */
a {
    color: #0868b2;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff8c00;
}

a:active {
    color: #064a7a;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.8rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 3rem;
    border: 0.2rem solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    line-height: 1.5;
}

.btn-primary {
    background: #0868b2;
    color: #fff;
    border-color: #0868b2;
}

.btn-primary:hover {
    background: #39a3e0;
    border-color: #39a3e0;
    color: #fff;
    text-decoration: none;
}

.btn-primary:active {
    background: #064a7a;
    border-color: #064a7a;
}

/* Small Text */
.small-text {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.5;
}

/* Footer */
footer {
    background: #2f3032;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem 0;
}

footer h2 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

footer h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: #fff;
}

footer address {
    font-style: normal;
    line-height: 1.8;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

footer section {
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 56.25%; /* Slightly smaller base font on mobile */
    }

    .header-logo {
        width: 100%;
        max-width: 40rem;
    }

    header {
        min-height: 25rem;
        padding: 2rem 0;
    }

    .content-section h2 {
        font-size: 2.8rem;
    }

    .content-section h3 {
        font-size: 2.4rem;
    }

    .btn {
        width: 100%;
        max-width: 40rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 96rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    a {
        text-decoration: underline;
        font-weight: 600;
    }

    .btn {
        border-width: 0.3rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    header {
        background: none;
        border-bottom: 0.2rem solid #000;
    }

    .skip-link,
    .btn {
        display: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    footer {
        background: none;
        color: #000;
        border-top: 0.2rem solid #000;
    }
}
