/* ===== Accessibility & Reset Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip to main content link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

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

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation (WCAG 2.4.7) */
*:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --white: #ffffff;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px; /* Base font size for better readability (WCAG 1.4.4) */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.logo span {
    white-space: nowrap;
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--secondary-color);
}

.btn-login {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover,
.btn-login:focus {
    background: var(--secondary-color);
}

/* Improved button contrast for accessibility */
.btn {
    border: 2px solid transparent;
    transition: all 0.3s;
}

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

/* Ensure sufficient color contrast (WCAG 1.4.3) */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero .container {
    max-width: 1200px;
    width: 100%;
}

/* Card-Based Hero Layout */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.hero-card-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title-line {
    display: block;
    line-height: 1.1;
}

.title-line:nth-child(1) {
    font-size: 3.2rem;
}

.title-line:nth-child(2) {
    font-size: 3.5rem;
    font-weight: 800;
}

.title-line:nth-child(3) {
    font-size: 2.8rem;
    font-weight: 600;
    opacity: 0.95;
}

.hero-card-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 35px;
    text-align: center;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-card-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-hero {
    padding: 14px 32px;
    font-size: 1.05rem;
}

/* Trust Badges */
.hero-trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.trust-badge i {
    font-size: 1.8rem;
    opacity: 0.95;
}

.trust-badge span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}



/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.btn-icon:hover {
    color: var(--primary-color);
}

/* ===== Sections ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 50px;
}

/* ===== Leistungen Section ===== */
.leistungen {
    background: var(--light-color);
    position: relative;
}

.leistungen .section-title {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.leistungen .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Accordion Layout */
.leistungen-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.leistung-accordion-item {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--secondary-color);
}

.leistung-accordion-item:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-left-color: var(--primary-color);
}

.leistung-accordion-item.active {
    border-left-color: var(--accent-color);
}

.leistung-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.leistung-accordion-header:hover {
    background: rgba(59, 130, 246, 0.05);
}

.leistung-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.leistung-accordion-item.active .icon-box {
    transform: scale(1.05);
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--white);
}

.leistung-header-text {
    flex: 1;
}

.leistung-header-text h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.leistung-short-desc {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.small-note {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.accordion-toggle {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.accordion-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.leistung-accordion-item.active .accordion-toggle i {
    transform: rotate(180deg);
}

.accordion-toggle i {
    transition: transform 0.3s;
}

.leistung-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.leistung-accordion-item.active .leistung-accordion-content {
    max-height: 2000px;
    padding: 0 30px 30px 30px;
}

.leistung-details {
    padding-top: 10px;
    border-top: 2px solid var(--border-color);
}

.intro-text {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.7;
    font-style: italic;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.detail-section h4 i {
    font-size: 1rem;
    color: var(--secondary-color);
}

.detail-section ul {
    list-style: none;
    padding-left: 0;
}

.detail-section ul li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.detail-section ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-left: 4px solid var(--secondary-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-box i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.info-box p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== Über uns Section ===== */
.ueber-uns {
    position: relative;
}

.ueber-uns .section-title {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.ueber-uns-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ueber-uns-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.ueber-uns-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 600px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
}

.ueber-uns-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ueber-uns-image i {
    font-size: 15rem;
    color: var(--secondary-color);
    opacity: 0.1;
}

/* ===== Kontakt Section ===== */
.kontakt {
    background: var(--light-color);
    position: relative;
}

.kontakt .section-title {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.kontakt .section-subtitle {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.kontakt-form {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-subtitle {
    color: var(--text-color);
    margin-bottom: 30px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--dark-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.register-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* ===== Dashboard ===== */
.dashboard {
    min-height: 100vh;
    background: var(--light-color);
}

.dashboard-nav {
    background: var(--dark-color);
    color: var(--white);
    padding: 1rem 0;
}

.dashboard-nav .logo {
    color: var(--white);
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
    width: 250px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.dashboard-menu {
    list-style: none;
    padding: 20px 0;
}

.dashboard-menu li {
    margin-bottom: 5px;
}

.dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.dashboard-menu a i {
    width: 20px;
}

.dashboard-menu li.active a,
.dashboard-menu a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.dashboard-menu li.active a {
    border-left: 4px solid var(--primary-color);
}

.badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.dashboard-main {
    flex: 1;
    padding: 40px;
}

.dashboard-main h1 {
    color: var(--dark-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.card-content h3 {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.card-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

.dashboard-section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.content-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.content-card h2 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-list,
.document-list {
    list-style: none;
}

.task-item,
.document-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.task-item:hover,
.document-item:hover {
    background: var(--light-color);
}

.task-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 3px;
}

.task-item.urgent i {
    color: #ef4444;
}

.task-item > div,
.document-item > div {
    flex: 1;
}

.task-item strong,
.document-item strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.task-item p,
.document-item p {
    font-size: 0.9rem;
    color: var(--text-color);
}

.task-date {
    font-size: 0.85rem;
    color: var(--text-color);
    white-space: nowrap;
}

.document-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.document-header {
    margin-bottom: 20px;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 60px 0;
        min-height: 500px;
    }

    .hero-glass-card {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .hero-card-title {
        gap: 6px;
    }

    .title-line:nth-child(1) {
        font-size: 2.5rem;
    }

    .title-line:nth-child(2) {
        font-size: 2.8rem;
    }

    .title-line:nth-child(3) {
        font-size: 2.2rem;
    }

    .hero-card-text {
        font-size: 1.1rem;
    }

    .hero-trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .leistung-accordion-header {
        padding: 20px;
    }

    .leistung-header-content {
        gap: 15px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
    }

    .icon-box i {
        font-size: 1.2rem;
    }

    .leistung-header-text h3 {
        font-size: 1.2rem;
    }

    .leistung-short-desc {
        font-size: 0.9rem;
    }

    .leistung-accordion-item.active .leistung-accordion-content {
        padding: 0 20px 20px 20px;
    }

    .ueber-uns-content {
        grid-template-columns: 1fr;
    }

    .ueber-uns-image {
        display: none;
    }

    .stats {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .kontakt-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
    }

    .dashboard-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }

    .dashboard-menu li {
        margin-bottom: 0;
    }

    .dashboard-menu a {
        white-space: nowrap;
    }

    .dashboard-section-content {
        grid-template-columns: 1fr;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 1.1rem;
    }

    .hero {
        padding: 50px 0;
        min-height: auto;
    }

    .hero-glass-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .hero-card-title {
        margin-bottom: 20px;
        gap: 5px;
    }

    .title-line:nth-child(1) {
        font-size: 1.7rem;
    }

    .title-line:nth-child(2) {
        font-size: 1.9rem;
    }

    .title-line:nth-child(3) {
        font-size: 1.5rem;
    }

    .hero-card-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .hero-card-buttons {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }

    .hero-trust-badges {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 25px;
    }

    .trust-badge {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 15px;
    }

    .trust-badge i {
        font-size: 1.5rem;
    }

    .trust-badge span {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .leistung-accordion-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .leistung-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .accordion-toggle {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .leistung-header-text h3 {
        font-size: 1.1rem;
    }

    .leistung-short-desc {
        font-size: 0.85rem;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .detail-section h4 {
        font-size: 1.05rem;
    }

    .leistung-accordion-item.active .leistung-accordion-content {
        padding: 0 15px 15px 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
    }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text {
    display: flex;
    gap: 20px;
    align-items: start;
    flex: 1;
}

.cookie-text i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.cookie-text h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-accept {
    background: var(--accent-color);
    color: var(--white);
}

.btn-accept:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-essential {
    background: var(--light-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-essential:hover {
    background: var(--border-color);
}

/* ===== Erweiterte Dashboard-Styles ===== */

/* Task Items */
.task-item {
    background: var(--white);
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s;
}

.task-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.task-title {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.task-priority {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.task-priority.priority-niedrig {
    background: #e0f2fe;
    color: #0369a1;
}

.task-priority.priority-normal {
    background: #f3f4f6;
    color: #6b7280;
}

.task-priority.priority-hoch {
    background: #fef3c7;
    color: #d97706;
}

.task-priority.priority-dringend {
    background: #fee2e2;
    color: #dc2626;
}

.task-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.task-meta i {
    margin-right: 5px;
}

/* Appointment Items */
.appointment-item {
    background: var(--white);
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s;
}

.appointment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.appointment-title {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.appointment-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.appointment-status.status-geplant {
    background: #fef3c7;
    color: #d97706;
}

.appointment-status.status-bestätigt {
    background: #d1fae5;
    color: #059669;
}

.appointment-status.status-abgeschlossen {
    background: #f3f4f6;
    color: #6b7280;
}

.appointment-status.status-abgesagt {
    background: #fee2e2;
    color: #dc2626;
}

.appointment-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.appointment-meta i {
    margin-right: 5px;
}

/* Message Items */
.message-item {
    background: var(--white);
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 4px solid #9ca3af;
    transition: all 0.3s;
    cursor: pointer;
}

.message-item.unread {
    border-left-color: var(--accent-color);
    background: #f0fdf4;
}

.message-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-from {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.message-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.message-subject {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.message-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.message-category {
    color: var(--secondary-color);
}

.message-priority {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.message-priority.priority-wichtig {
    background: #fef3c7;
    color: #d97706;
}

.message-priority.priority-dringend {
    background: #fee2e2;
    color: #dc2626;
}

/* Document Cards */
.documents-list {
    display: grid;
    gap: 20px;
}

.document-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.document-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

.document-card.new {
    border-color: var(--accent-color);
    background: #f0fdf4;
}

.document-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.document-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.document-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.document-meta i {
    margin-right: 5px;
}

.document-actions .btn-download {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.document-actions .btn-download:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Message Cards (Full List) */
.messages-list {
    display: grid;
    gap: 15px;
}

.message-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    border-left: 4px solid #9ca3af;
    cursor: pointer;
}

.message-card.unread {
    border-left-color: var(--accent-color);
    background: #f0fdf4;
}

.message-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.message-header-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.message-from-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sender-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.sender-type {
    padding: 3px 10px;
    background: var(--light-color);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.message-subject-full {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.message-preview {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.message-footer {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.85rem;
}

.new-badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Appointment Cards (Full List) */
.appointments-list {
    display: grid;
    gap: 20px;
}

.appointment-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.appointment-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

.appointment-date-badge {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.date-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.appointment-details {
    flex: 1;
}

.appointment-details h4 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.appointment-details p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.appointment-meta-full {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.appointment-meta-full i {
    margin-right: 5px;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Profile Form */
.profile-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input[readonly] {
    background: var(--light-color);
    cursor: not-allowed;
}

.form-actions {
    margin-top: 30px;
}

/* Responsive Dashboard Elements */
@media (max-width: 968px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        flex-direction: column;
        text-align: center;
    }
    
    .appointment-card {
        flex-direction: column;
    }
    
    .appointment-date-badge {
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .date-day {
        font-size: 24px;
    }
}

/* ===== ADMIN-BEREICH ===== */

/* Admin-Statistiken */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    transition: all 0.3s;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
}

.admin-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.admin-stat-card .stat-info h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.admin-stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.admin-stat-card .stat-info p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Tabellen-Grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.table-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.table-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.table-card i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.table-card h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.table-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Admin-Tabellen-Header */
.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.admin-table-header h2 {
    color: var(--dark-color);
    margin: 10px 0 5px 0;
}

.admin-table-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-back {
    background: var(--light-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-back:hover {
    background: var(--border-color);
}

/* Admin-Tabelle */
.admin-table-wrapper {
    background: var(--white);
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--light-color);
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-table .actions-cell {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-icon {
    background: var(--light-color);
    color: var(--text-color);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-icon.btn-delete:hover {
    background: #dc2626;
    color: var(--white);
}

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

.text-danger {
    color: #dc2626;
}

/* Admin-Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.admin-pagination button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-pagination button:hover:not(:disabled) {
    background: var(--primary-color);
}

.admin-pagination button:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Admin-Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.admin-modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-color);
}

.admin-modal-header h2 {
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.admin-modal form {
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-grid .form-group {
    grid-column: span 1;
}

.form-grid .form-group:last-child {
    grid-column: span 2;
}

.admin-modal .form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.admin-modal .form-group input,
.admin-modal .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.admin-modal .form-group input:focus,
.admin-modal .form-group select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.admin-modal .form-group input[readonly] {
    background: var(--light-color);
    cursor: not-allowed;
}

.admin-modal .form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.admin-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

/* Responsive Admin */
@media (max-width: 968px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-table-wrapper {
        overflow-x: scroll;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid .form-group {
        grid-column: span 1 !important;
    }
    
    .tables-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-text {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-text i {
        font-size: 2rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
        justify-content: center;
    }
}

/* ===== WCAG & BFSG Accessibility Improvements ===== */

/* Reduced motion for users with vestibular motion disorders (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    * {
        border-width: 2px;
    }
    
    .btn,
    .btn-login,
    .accordion-toggle {
        border: 2px solid currentColor;
    }
}

/* Ensure minimum touch target size of 44x44px (WCAG 2.5.5) */
button,
a,
input[type="submit"],
input[type="button"],
.btn,
.accordion-toggle,
.mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
}

/* Improved text spacing for readability (WCAG 1.4.12) */
p,
li,
td,
th {
    line-height: 1.5;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Ensure visible focus for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast for links */
a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover,
a:focus {
    color: var(--primary-color);
    text-decoration-thickness: 2px;
}

/* Make modal close button accessible */
.modal .close {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal .close:hover,
.modal .close:focus {
    background: var(--light-color);
    border-color: var(--primary-color);
}

/* Ensure form labels are properly associated */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Improve form input accessibility */
input,
textarea,
select {
    border: 2px solid var(--border-color);
    padding: 10px 15px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    outline: 3px solid var(--accent-color);
    outline-offset: 0;
}

/* Error states for form validation */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

/* Success states */
input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: var(--accent-color);
}

/* Ensure icons don't interfere with screen readers */
[aria-hidden="true"] {
    speak: never;
}

/* Mobile menu accessibility */
.mobile-menu-toggle[aria-expanded="true"] .fa-bars::before {
    content: "\f00d"; /* Change icon to X when menu is open */
}

/* Print styles for accessibility */
@media print {
    .skip-link,
    nav,
    .mobile-menu-toggle,
    .cookie-banner,
    .btn-login,
    footer {
        display: none !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}