/* --- CSS VARIABLES (Design System) --- */
:root {
    --bg-gradient-top: #2F333D;
    --bg-gradient-bottom: #181A21;
    
    --surface-carbon: #262A33;
    --primary-cyan: #00B4FF;
    --text-white: #FFFFFF;
    --text-steel: #8A93A6;
    --accent-navy: #003B73;
    --accent-red: #FF453A;
    
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET & BASICS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-gradient-bottom); 
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    color: var(--text-steel);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 1. Basis-Hintergrund */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-gradient-top) 0%, var(--bg-gradient-bottom) 100%);
    z-index: -2;
    pointer-events: none;
}

/* 2. Linearer Verlauf oben */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px; 
    background: linear-gradient(to bottom, rgba(0, 130, 230, 0.75) 0%, rgba(0, 130, 230, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

/* --- TYPOGRAPHY & LINKS --- */
h1, h2, h3 {
    font-family: var(--font-head);
    color: var(--text-white);
    line-height: 1.1;
}

strong {
    color: var(--text-white);
    font-weight: 500;
}

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

p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* FIX: Globale Links inkl. aller Mobil-Zustände gegen lila/dunkelblau */
a, a:link, a:visited {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:active {
    text-decoration: underline;
    color: var(--text-white);
}

/* --- LAYOUT WRAPPER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- HEADER --- */
header {
    padding: 2rem 0 0 0; 
    display: flex;
    justify-content: center; 
    align-items: center;
}

header img {
    width: 100%; 
    max-width: 280px; 
    height: auto; 
    display: block; 
    margin: 0 auto;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

/* FIX: Überschreibt die globalen Link-Farben zwingend für alle Buttons */
.btn-primary,
a.btn-primary, 
a.btn-primary:link, 
a.btn-primary:visited {
    background-color: var(--primary-cyan);
    color: var(--bg-gradient-bottom);
    border: 2px solid var(--primary-cyan);
    font-weight: 600;
}

.btn-primary:hover,
a.btn-primary:hover,
a.btn-primary:active {
    background-color: transparent;
    color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.3);
}

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

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

/* --- SECTION 1: HERO --- */
.hero {
    padding: 3rem 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 100%;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 59, 115, 0.4) 0%, rgba(5, 5, 8, 0) 70%);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-steel);
    max-width: 700px;
    margin: 0 auto;
    text-wrap: balance;
}

/* --- SECTION 2: THE FORMULA (GRID) --- */
.formula {
    padding: 6rem 0;
}

.formula-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--surface-carbon);
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--accent-navy);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- SECTION 3: B2B PITCH --- */
.pitch {
    padding: 6rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.10);
}

.pitch-content {
    max-width: 800px;
    margin: 0 auto;
}

.pitch h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

/* --- SECTION 4: KONTAKT FORMULAR --- */
.contact-section {
    padding: 6rem 0;
    text-align: center;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--surface-carbon);
    padding: 3rem;
    border-radius: 8px;
    border-top: 3px solid var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-wrapper p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* --- FORM & HONEYPOT STYLES --- */
.honeypot {
    display: none !important;
}

.hidden {
    display: none !important;
}

.success-message {
    padding: 2rem;
    background: rgba(0, 180, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 8px;
    animation: fadeInUp 0.5s ease forwards;
}

.success-message h3 {
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
}

.error-message {
    color: var(--accent-red);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-gradient-bottom);
    border: 1px solid var(--accent-navy);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    font-size: 0.85rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- FOOTER --- */
.site-footer {
    text-align: center;
    padding: 60px 10px 20px;
    color: var(--text-steel);
    font-family: var(--font-body);
    border-top: 1px solid var(--accent-navy);
    position: relative;
}

.footer-copy {
    font-size: clamp(12px, 1.5vw, 16px);
    margin: 0 0 10px 0;
    color: var(--text-steel);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 24px);
    font-size: clamp(11px, 1.5vw, 16px);
    white-space: nowrap;
}

/* FIX: Footer-Links strahlen dauerhaft in Weiß auf allen mobilen Geräten */
.footer-links a,
.footer-links a:link,
.footer-links a:visited {
    color: var(--text-white); 
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:active {
    color: var(--primary-cyan); 
    text-decoration: none;
}

.footer-links .divider {
    color: var(--text-steel); 
    opacity: 0.5;
}

.seo-hidden-img {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

.hero h1, .hero p, .hero .btn-group {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0; 
}

.hero p:nth-of-type(1), .hero p:nth-of-type(2) { animation-delay: 0.1s; } 
.hero p:nth-of-type(3), .hero p:nth-of-type(4) { animation-delay: 0.2s; } 
.hero p:nth-of-type(5), .hero p:nth-of-type(6) { animation-delay: 0.3s; } 
.hero p:nth-of-type(7) { animation-delay: 0.4s; } 
.hero .btn-group { animation-delay: 0.6s; } 
.hero p:nth-of-type(8) { animation-delay: 0.9s; } 

.reveal {
    opacity: 0; 
}

.reveal.active {
    animation: fadeInUp 0.8s ease-out forwards;
}

.formula-grid .card:nth-child(1).active { animation-delay: 0.1s; }
.formula-grid .card:nth-child(2).active { animation-delay: 0.2s; }
.formula-grid .card:nth-child(3).active { animation-delay: 0.3s; }
.formula-grid .card:nth-child(4).active { animation-delay: 0.4s; }
.pitch-content.active { animation-delay: 0.2s; }
.contact-wrapper.active { animation-delay: 0.2s; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 950px) {
    .formula-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .contact-wrapper { padding: 2rem 1.5rem; }
    .btn-group { flex-direction: column; }
    .btn { width: 100%; }
    .hero { padding: 3rem 0; }
}

/* --- ACCESSIBILITY --- */
.form-control:focus-visible, 
.btn:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}