/* Fonts are loaded in index.html for better performance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Base Font Size */
html {
    font-size: 16px;
    /* Basis-Schriftgröße */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #3b3b3b;
    min-height: 100vh;
    overflow-x: hidden;
}

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

.landing-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 40px 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, #FF0101, #7D0000);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    will-change: transform;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.hero-image svg {
    width: 80px;
    height: 80px;
    fill: white;
}

.main-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    line-height: 1.2;
}

.year-badge {
    background: linear-gradient(135deg, #333333, #000000);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    line-height: 1.4;
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    line-height: 1.6;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF0101, #7D0000);
    color: white;
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    will-change: transform, box-shadow;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover:before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 1, 1, 0.6);
}

.cta-button:active {
    transform: translateY(-1px);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
    text-align: left;
}

.benefit {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out 1s both;
    transition: transform 0.3s ease;
    will-change: transform, background-color;
}

.benefit:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    /* Stärkerer Kontrast */
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF0101, #7D0000);
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.benefit-icon:hover {
    transform: scale(1.1);
}

.benefit-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.benefit h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.benefit p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    margin: 60px 0;
    border-left: 4px solid #FF0101;
    animation: fadeIn 1s ease-out 1.2s both;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    font-weight: 600;
    color: #ffffff;
}

.form-section {
    background: rgba(255, 255, 255, 0.08);
    padding: 50px 40px;
    border-radius: 20px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.form-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.form-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF0101;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #333;
    color: white;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #FF0101, #7D0000);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.faq-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: white;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    will-change: transform, max-height;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FF0101;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    padding-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {

    html {
        font-size: 15px;
    }

    .landing-content {
        padding: 40px 20px;
    }

    .main-heading {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-image {
        width: 120px;
        height: 120px;
    }

    .form-section {
        padding: 30px 20px;
    }

    .form-section h2 {
        font-size: 2rem;
    }

    .faq-section {
        padding: 40px 20px;
    }

    .faq-section h2 {
        font-size: 2rem;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
        max-height: 1000px;
    }
}

@media (max-width: 480px) {

    html {
        font-size: 14px;
    }


    .main-heading {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

a {
    color: #ffffff;
    text-decoration: underline;
}

a:hover {
    color: #FF0101;
    text-decoration: underline;
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.error-message[role="alert"] {
    display: block;
}

.helper-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 5px;
}

input[aria-invalid="true"] {
    border-color: #ff4444;
}

/* Accessibility Styles */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF0101;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.3s;
    font-weight: 500;
}

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

/* Verbesserte Sichtbarkeit beim Hover */
.skip-link:hover {
    background: #cc0000;
    text-decoration: underline;
    color: white;
}

/* Verbesserte Farbkontraste */
.skip-link:focus:not(:focus-visible) {
    outline: none;
}

/* Focus Management Styles */
:focus {
    outline: 3px solid #FF0101;
    outline-offset: 2px;
}

/* Spezifische Fokus-Styles für verschiedene Elemente */
.cta-button:focus {
    outline: 3px solid #FF0101;
    outline-offset: 4px;
    text-decoration: underline;
}

.form-group input:focus,
.form-group select:focus {
    outline: 3px solid #FF0101;
    border-color: #FF0101;
    box-shadow: 0 0 0 1px #FF0101;
}

.faq-question:focus {
    outline: 3px solid #FF0101;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Fokus nur bei Tastaturnavigation */
:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

:focus-visible {
    outline: 3px solid #FF0101;
    outline-offset: 2px;
}

/* Links im Content */
a:focus {
    outline: 3px solid #FF0101;
    outline-offset: 2px;
    text-decoration: underline;
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF0101, #7D0000);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    padding: 0;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 1, 1, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top.show {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 30px;
        right: 30px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}