/* Allgemeine Stile */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    background: #eaeaea;
    line-height: 1.6;
}

/* Skip-Link für Barrierefreiheit */
body .skip-link {
    position: absolute;
    left: 6px;
    top: -100px;
    background: #1D4F90;
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    z-index: 10000;
    transition: top 0.3s;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    outline: none;
    border: 2px solid #fff;
    display: inline-block;
}

body .skip-link:focus {
    top: 24px !important;
    left: 24px !important;
    outline: 3px solid #ff0 !important;
    background: #1a4e9e !important;
    color: #fff !important;
    display: inline-block !important;
}

/* Focus-Indikatoren für bessere Barrierefreiheit */
*:focus {
    outline: 3px solid #1D4F90;
    outline-offset: 2px;
}

/* HERO-BEREICH */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dunklerer Overlay für besseren Kontrast */
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

body .btn, a.btn, button.btn {
    background: #1e4a8a !important; /* dunkleres Blau */
    color: #fff !important;
    padding: 14px 28px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    display: inline-block !important;
    margin-top: 16px !important;
    transition: background 0.3s, box-shadow 0.3s !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    min-height: 20px !important;
    min-width: 200px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
}

body .btn:hover, body .btn:focus, a.btn:hover, a.btn:focus, button.btn:hover, button.btn:focus {
    background: #163665 !important; /* noch dunkler bei Hover */
    box-shadow: 0 4px 16px rgba(30, 74, 138, 0.2) !important;
    outline: 2px solid #fff !important;
}


/* ÜBER MICH BEREICH */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.about-text {
    flex: 1;
    padding: 20px;
}

.about-text h2 {
    color: #2c5aa0; /* Dunklerer Blauton für besseren Kontrast */
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text h3 {
    margin-top: 20px;
    color: #222; /* Dunklerer Text für besseren Kontrast */
    font-size: 1.3rem;
}

.about-text p {
    font-size: 1rem;
    color: #222; /* Dunklerer Text für besseren Kontrast */
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text ul li {
    font-size: 1rem;
    color: #222; /* Dunklerer Text für besseren Kontrast */
    margin-bottom: 10px;
    padding-left: 0;
}

.about-text ul li i {
    color: #1D4F90;
    margin-right: 8px;
}

.about-image {
    flex: 1;
    text-align: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-in-out;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* STATISTIK-BEREICH */
.stats {
    text-align: center;
    padding: 50px 20px;
    background: #eaeaea;
}

.stats h2 {
    color: #2c5aa0;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 200px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box i {
    font-size: 30px;
    color: #1D4F90;
}

.stat-box h3 {
    font-size: 2rem;
    color: #222;
    margin: 10px 0;
}

.stat-box p {
    font-size: 0.9rem;
    color: #222;
    margin: 0;
}

/* KUNDENBEWERTUNGEN */
.testimonials {
    text-align: center;
    padding: 50px 20px;
    background: #eaeaea;
}

.testimonials h2 {
    color: #2c5aa0;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.testimonial-slider {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 55px;
    text-align: left;
    position: relative;
}

.testimonial {
    position: absolute;
    top: 30px;
    text-align: center;
    left: 30px;
    right: 30px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial.active {
    opacity: 1;
}

.testimonial.leaving {
    opacity: 0;
}

.testimonial strong {
    display: block;
    color: #2c5aa0;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.testimonial p {
    color: #222;
    font-style: italic;
    margin: 0;
}

/* FAQ-BEREICH */
.faq {
    padding: 50px 20px;
    background: white;
}

.faq h2 {
    text-align: center;
    color: #2c5aa0;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 20px auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #1D4F90;
}

.faq-question {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    color: #222;
    font-size: 1.1rem;
    transition: background 0.3s;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question:focus {
    background: #e9ecef;
    outline: 2px solid #1D4F90;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #222;
    line-height: 1.6;
}

.faq-answer.active {
    padding: 20px;
    max-height: 200px;
}

/* KONTAKT-BEREICH */
.contact {
    padding: 50px 20px;
    background: #eaeaea;
    text-align: center;
}

.contact h2 {
    color: #2c5aa0;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #222;
    font-weight: bold;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    min-height: 44px; /* Mindestgröße für Touch-Targets */
}

.contact input:focus,
.contact textarea:focus {
    border-color: #1D4F90;
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.2);
}

.contact button {
    background: #1D4F90;
    color: #fff !important;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    min-height: 44px;
    min-width: 120px;
}

.contact button:hover {
    background: #2956a6;
}

.contact button:focus {
    background: #2956a6;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.5);
}

/* FOOTER */
footer {
    width: 100%;
    background: #232323;
    color: #fff;
    padding: 0;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    box-sizing: border-box;
    padding: 0 24px;
    position: relative;
}

.footer-social-media {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
    justify-content: flex-start;
    flex-shrink: 0;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
    flex: 1 1 0;
    justify-content: center;
}

.footer-content p {
    margin: 0;
    white-space: nowrap;
}

.footer-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-end;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover, .footer-link:focus {
    color: #3a7bd5;
}

/* Social Media Icons im Footer - klein, linksbündig, stimmig */
.footer-social-media .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #fff;
    color: #3a7bd5;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    border: 1px solid #3a7bd5;
}

.footer-social-media .social-icon:hover, .footer-social-media .social-icon:focus {
    background: #3a7bd5;
    color: #fff;
    transform: translateY(-2px) scale(1.08);
    outline: none;
}

/* RESPONSIVE DESIGN */
/* Mobile Optimierungen */
@media (max-width: 768px) {
    /* Allgemeine Anpassungen */
    body, html {
        font-size: 14px;
    }
    
    /* Hero-Bereich */
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-text {
        padding: 0 20px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
        min-width: 180px !important;
        width: 100%;
        max-width: 250px;
    }
    
    /* Über mich Bereich */
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin: 30px auto;
        padding: 15px;
    }
    
    .about-text {
        padding: 15px;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .about-text h3 {
        font-size: 1.2rem;
        margin-top: 15px;
    }
    
    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .about-text ul li {
        font-size: 0.9rem;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .about-image img {
        max-width: 280px;
        width: 100%;
    }
    
    /* Statistiken */
    .stats {
        padding: 30px 15px;
    }
    
    .stats h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .stat-box {
        width: 100%;
        max-width: 280px;
        padding: 20px 15px;
    }
    
    .stat-box i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .stat-box h3 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .stat-box p {
        font-size: 0.9rem;
    }
    
    /* Kundenbewertungen */
    .testimonials {
        padding: 30px 15px;
    }
    
    .testimonials h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-slider {
        height: auto;
        min-height: 120px;
        padding: 0 10px;
    }
    
    .testimonial {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .testimonial strong {
        font-size: 0.9rem;
    }
    
    .testimonial p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* FAQ */
    .faq {
        padding: 30px 15px;
    }
    
    .faq h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-item {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 12px 15px;
        line-height: 1.4;
    }
    
    .faq-answer {
        font-size: 0.9rem;
        padding: 12px 15px;
        line-height: 1.5;
    }
    
    /* Kontaktformular */
    .contact {
        padding: 30px 15px;
    }
    
    .contact h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .contact form {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
        display: block;
    }
    
    .contact input,
    .contact textarea {
        font-size: 16px; /* Verhindert Zoom auf iOS */
        padding: 12px 15px;
        border-radius: 8px;
    }
    
    .contact textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .contact button {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
        margin-top: 20px;
    }
    
    /* Footer */
    footer {
        padding: 30px 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-link {
        padding: 8px 0;
        font-size: 0.9rem;
    }
    
    /* Erfolgs- und Fehlermeldungen */
    .success-message,
    .error-message {
        padding: 12px 15px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
}

/* Kleine Mobile Geräte (Smartphones) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        min-width: 160px !important;
    }
    
    .about-text h2 {
        font-size: 1.4rem;
    }
    
    .stats h2,
    .testimonials h2,
    .faq h2,
    .contact h2 {
        font-size: 1.4rem;
    }
    
    .contact form {
        padding: 15px 10px;
    }
    
    .contact input,
    .contact textarea {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .faq-question {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .faq-answer {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* Sehr kleine Geräte */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.3rem;
    }
    
    .btn {
        min-width: 140px !important;
        font-size: 0.8rem !important;
    }
    
    .about-container {
        padding: 10px;
    }
    
    .contact form {
        padding: 10px 5px;
    }
}

/* Touch-Geräte Optimierungen */
@media (hover: none) and (pointer: coarse) {
    /* Touch-Targets */
    .btn {
        min-height: 40px !important; /* Reduzierte Mindestgröße */
        padding: 10px 20px !important;
    }
    
    .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .contact input,
    .contact textarea {
        min-height: 44px;
    }
    
    .contact button {
        min-height: 48px;
    }
    
    /* Größere Abstände für Touch-Navigation */
    .footer-nav {
        gap: 15px;
    }
    
    .footer-link {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape-Modus auf Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 40vh;
        min-height: 250px;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .about-container {
        margin: 20px auto;
    }
    
    .stats {
        padding: 20px 15px;
    }
    
    .contact {
        padding: 20px 15px;
    }
}

/* Tablet-Optimierungen */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .about-container {
        max-width: 90%;
        gap: 30px;
    }
    
    .stats-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .contact form {
        max-width: 600px;
    }
}

/* Verbesserte Barrierefreiheit für Mobile */
@media (max-width: 768px) {
    /* Größere Focus-Indikatoren */
    *:focus {
        outline: 3px solid #1D4F90;
        outline-offset: 2px;
    }
    
    /* Skip-Link Anpassung */
    body .skip-link:focus {
        top: 10px !important;
        left: 10px !important;
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    /* Verbesserte Kontraste */
    .hero-text h1,
    .hero-text p {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    /* Größere Schrift für bessere Lesbarkeit */
    .about-text ul li {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Verbesserte Formular-Labels */
    .form-group label {
        font-weight: 600;
        color: #2c5aa0;
    }
    
    /* Checkbox für Datenschutz */
    .contact input[type="checkbox"] {
        transform: scale(0.9);
        margin-right: 8px;
        vertical-align: middle;
    }
    
    .contact input[type="checkbox"] + label {
        font-size: 0.9rem;
        line-height: 1.4;
        display: inline;
        vertical-align: middle;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid #000;
    }
    
    .contact input,
    .contact textarea {
        border: 2px solid #000;
    }
    
    .faq-question {
        border: 1px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slide-up,
    .slide-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Erfolgs- und Fehlermeldungen */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
}

/* Checkbox Styling */
.contact input[type="checkbox"] {
    transform: scale(0.9);
    margin-right: 8px;
    vertical-align: middle;
}

.contact input[type="checkbox"] + label {
    display: inline;
    vertical-align: middle;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Formular-Fehler-Indikatoren */
.contact input[aria-invalid="true"],
.contact textarea[aria-invalid="true"] {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.contact input[aria-invalid="true"]:focus,
.contact textarea[aria-invalid="true"]:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

/* Lade-Animation */
body.loaded {
    opacity: 1;
}

body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Rechtliche Seiten Styling */
.legal-content {
    padding: 50px 20px;
    background: #eaeaea;
}

.legal-content .container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legal-content h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.legal-section h4 {
    color: #222;
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
}

.legal-section p {
    color: #222;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    color: #222;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.legal-section strong {
    color: #2c5aa0;
    font-weight: bold;
}

.legal-section a {
    color: #1D4F90;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section a:focus {
    outline: 2px solid #1D4F90;
    outline-offset: 2px;
}

/* Responsive Design für rechtliche Seiten */
@media (max-width: 768px) {
    .legal-content .container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .legal-section h4 {
        font-size: 1rem;
    }
}

/* Datenschutz-Checkbox - klassisch nebeneinander */
.privacy-checkbox {
    margin-bottom: 18px;
}

.privacy-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #111 !important;
    font-weight: 400;
    flex-wrap: wrap;
}

.privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.privacy-checkbox a {
    color: #0645AD !important;
    text-decoration: underline;
    word-break: break-word;
}

.privacy-checkbox a:hover {
    color: #032d6b !important;
}

/* Entferne das alte .social-media-fixed CSS */
.social-media-fixed { display: none !important; }