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

:root {
    --primary-color: #8b0000;
    --primary-dark: #660000;
    --primary-light: #a61a1a;
    --accent-color: #ffcc00;
    --accent-hover: #e6b800;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   Navigation
   =================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(139, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.nav-cta {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

nav ul li a.nav-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

nav ul li a.login-link {
    border: 1px solid var(--white);
}

/* ===================================
   Header & Hero Section
   =================================== */
header {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.85) 0%, rgba(66, 0, 0, 0.9) 100%), 
                url('header-background.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    color: var(--white);
    padding: 80px 20px 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero .logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    font-size: 3.5em;
    margin: 20px 0;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .hero-subtitle {
    font-size: 1.3em;
    margin: 20px auto 40px;
    max-width: 700px;
    line-height: 1.6;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.trust-badges .badge {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    backdrop-filter: blur(5px);
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* ===================================
   Buttons & CTAs
   =================================== */
.cta-button {
    display: inline-block;
    padding: 16px 36px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.cta-primary {
    background-color: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.cta-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.6);
}

.cta-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.cta-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.cta-container {
    text-align: center;
    margin-top: 50px;
}

/* ===================================
   Sections
   =================================== */
section {
    padding: 80px 20px;
    text-align: center;
}

section:nth-child(even) {
    background-color: var(--white);
}

h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

h3 {
    font-size: 1.6em;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* ===================================
   Features Section
   =================================== */
.features-carousel {
    display: flex;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.feature-box {
    flex: 0 0 100%;
    padding: 40px;
    box-sizing: border-box;
    text-align: center;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    margin: 10px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-box p {
    font-size: 1.05em;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Video Grid
   =================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.video-box {
    background-color: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.video-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-box h3 {
    margin-top: 15px;
    font-size: 1.3em;
}

.video-box p {
    color: var(--text-light);
    margin-top: 10px;
}

video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===================================
   Benefits Section
   =================================== */
.benefits-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.vorteile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.vorteile-item {
    background-color: var(--white);
    padding: 35px 25px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vorteile-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.benefit-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.vorteile-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.vorteile-item p {
    color: var(--text-light);
    font-size: 1.05em;
    line-height: 1.6;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Pricing Section
   =================================== */
#preise {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.pricing-item {
    background-color: var(--white);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-recommended {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-recommended:hover {
    transform: scale(1.08) translateY(-10px);
}

.pricing-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.pricing-badge.recommended {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.pricing-item h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.pricing-price {
    margin: 20px 0;
}

.price-amount {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.price-period {
    font-size: 1em;
    color: var(--text-light);
    display: block;
}

.pricing-save {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.pricing-features {
    list-style: none;
    padding: 20px 0;
    margin: 20px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-dark);
    font-size: 1em;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.feature-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-limited {
    color: var(--text-light);
}

.pricing-guarantee {
    max-width: 900px;
    margin: 50px auto 0;
    padding: 25px;
    background-color: rgba(139, 0, 0, 0.05);
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===================================
   FAQ Section
   =================================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background-color: var(--white);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05em;
}

/* ===================================
   Contact Section
   =================================== */
.contact-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 40px;
    border-radius: 15px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta h3 {
    color: var(--white);
    font-size: 2.2em;
    margin-bottom: 15px;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* ===================================
   Footer
   =================================== */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

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

/* ===================================
   Popup Modal
   =================================== */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.popup-modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2em;
    }
    
    .hero .hero-subtitle {
        font-size: 1.1em;
    }
    
    h2 {
        font-size: 2em;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    nav ul {
        gap: 15px;
        font-size: 14px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-recommended {
        transform: scale(1);
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===================================
   Registration Section
   =================================== */
.registration-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.registration-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.registration-benefits {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.registration-benefits h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8em;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 15px 0;
    font-size: 1.05em;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-check {
    color: #28a745;
    font-size: 1.4em;
    font-weight: bold;
    min-width: 25px;
}

.registration-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
}

.registration-form {
    max-width: 100%;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group select {
    cursor: pointer;
    background-color: var(--white);
}

.checkbox-group {
    margin: 30px 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: var(--primary-dark);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    margin-top: 10px;
    cursor: pointer;
    border: none;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-link-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

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

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

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design for Registration */
@media (max-width: 968px) {
    .registration-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .registration-benefits {
        position: static;
    }
    
    .registration-form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .registration-form-wrapper {
        padding: 20px 15px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}