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

html {
    font-size: 16px !important;
}

html body {
    font-size: 18px !important;
}

:root {
    --primary-color: #111622;
    --primary-dark: #0a0d14;
    --secondary-color: #d4a574;
    --accent-color: #d4a574;
    --gold-color: #c9965f;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #111622;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', sans-serif !important;
    color: var(--text-dark) !important;
    line-height: 1.7 !important;
    background: var(--bg-white) !important;
    font-size: 18px !important;
}

/* Override any external styles */
body * {
    font-family: inherit;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.35rem;
    margin-bottom: 3rem;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-color), var(--secondary-color));
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-color), var(--gold-color));
}

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

.btn-secondary:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    font-weight: 700;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

.btn-access {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-color), var(--secondary-color));
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-size: 1.125rem;
}

.btn-access:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--gold-color));
    transform: translateY(-2px);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.25rem 0;
    min-height: 90px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-img {
    height: 80px !important;
    width: auto !important;
    display: block;
    margin-top: 25px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.05rem;
    line-height: 1;
    display: inline-block;
}

.nav-menu a:not(.btn-primary):hover {
    color: var(--gold-color);
}

.nav-menu .btn-primary {
    color: var(--primary-color);
    font-weight: 700;
}

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111622;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.highlight {
    color: var(--gold-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-description {
    font-size: 1.25rem !important;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Services Section ===== */
.services {
    padding: 6rem 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
    border-radius: 50%;
    color: var(--gold-color);
    font-size: 2rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.125rem !important;
}

/* ===== Wissensdatenbank Section ===== */
.wissensdatenbank {
    padding: 6rem 0;
    background: white;
}

.database-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.database-card {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.database-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.database-card.locked {
    background: linear-gradient(135deg, #f8fafc 0%, #e8e4dc 100%);
    border: 2px solid var(--gold-color);
}

.lock-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold-color);
    box-shadow: var(--shadow-md);
}

.database-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.15;
    margin-bottom: 0.5rem;
}

.database-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.4;
}

.database-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.125rem !important;
}

/* ===== Partner Section ===== */
.partner {
    padding: 5rem 0;
    background: var(--bg-light);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partner-logo {
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.partner-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* ===== Kontakt Section ===== */
.kontakt {
    padding: 6rem 0;
    background: linear-gradient(135deg, #111622, #1a1f2e);
    color: white;
}

.kontakt .section-title {
    color: white;
}

.kontakt .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.consultation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.consultation-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.consultation-info h3 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    text-align: left;
    margin-top: 2rem;
    display: inline-block;
}

.benefits-list li {
    padding: 0.75rem 0;
    font-size: 1.25rem;
}

.benefits-list i {
    color: var(--gold-color);
    margin-right: 1rem;
    font-size: 1.25rem;
}

.consultation-cta .btn-primary {
    background: linear-gradient(135deg, var(--gold-color), var(--secondary-color));
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 1.5rem 3.5rem;
    font-weight: 700;
}

.consultation-cta .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--gold-color));
}

.consultation-cta .btn-primary i {
    margin-right: 0.5rem;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.3s ease;
}

.external-form-modal {
    max-width: 800px;
    padding: 2rem;
}

#externalFormContainer {
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

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

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

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: #e5e7eb;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* ===== Success Modal ===== */
.success-modal {
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--gold-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.success-modal h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-modal p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* ===== Language Switcher ===== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #d4a574;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(212, 165, 116, 0.1);
}

.lang-btn.active {
    background: #d4a574;
    color: #111622;
}

.lang-divider {
    color: #6b7280;
    font-size: 1.125rem;
}

/* ===== News Section ===== */
.news {
    padding: 5rem 0;
    background: var(--bg-light);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
}

.video-language {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #d4a574, #c9965f);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
}

/* ===== Impressum Section ===== */
.impressum {
    padding: 5rem 0;
    background: white;
}

.impressum-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.impressum-company h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.company-address {
    color: var(--text-dark);
    font-size: 1.125rem;
    line-height: 1.8;
}

.impressum-contact h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.impressum-contact p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.contact-details i {
    color: #d4a574;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #d4a574;
}

/* ===== Footer ===== */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1.5rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .language-switcher {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .services-grid,
    .database-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .partner-logos {
        gap: 2rem;
    }
    
    .partner-logo img {
        height: 60px;
    }
    
    .consultation-info {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1.125rem;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 1rem;
    }
}

/* ===== Global Font Size Protection ===== */
/* Ensure main content always has proper font sizes */
.hero-content,
.services,
.wissensdatenbank,
.partner,
.kontakt,
.footer {
    font-size: 18px !important;
}

.hero-content * {
    font-size: inherit;
}

/* Protect all main text elements */
body > *:not(#accessModal) {
    font-size: 18px !important;
}

body > *:not(#accessModal) p {
    font-size: 1.125rem !important;
}

body > *:not(#accessModal) h1 {
    font-size: 3.5rem !important;
}

body > *:not(#accessModal) h2 {
    font-size: 2.75rem !important;
}

body > *:not(#accessModal) h3 {
    font-size: 1.75rem !important;
}
