/* Inter-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/Inter/inter-300.woff2') format('woff2');
}
/* Inter-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/Inter/inter-400.woff2') format('woff2');
}
/* Inter-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/Inter/inter-700.woff2') format('woff2');
}

:root {
    --primary-color: #3399ff; /* Noch helleres Blau für maximale Lesbarkeit auf dunklem Grund */
    --bg-dark: #020B13;
    --bg-card: #041625;
    --text-main: #c0c2c4;
    --white: #ffffff;
    --error: #ff4d4d;
    --success: #28a745;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 11, 19, 0.9);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 100px 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: brightness(0.4) blur(8px);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 11, 19, 0.7), rgba(2, 11, 19, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.2s, filter 0.2s;
}

/* Animation für Hero-Text */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

h1, h2, h3, h4 {
    letter-spacing: -0.02em;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1rem;
    opacity: 0; /* Startzustand für Animation */
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s; /* Verzögerung, damit das Video zuerst lädt */
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0; /* Startzustand für Animation */
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.8s; /* Etwas später als der Titel */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Prozess-Schritte Styling */
.process-card {
    text-align: center;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.extra-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, margin-top 0.3s;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-main);
}

.card.is-expanded .extra-info {
    max-height: 500px;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

h1, h2 {
    color: var(--white);
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-align: center;
    font-weight: 300;
}

/* Referenzen Sektion */
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.reference-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    min-height: 140px;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.reference-item h3 {
    margin: 0 0 0.5rem 0;
    color: var(--white);
    font-size: 1.1rem;
}

.reference-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.reference-item:hover {
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Modernes Formular-Layout */
.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.region-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

input, select, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    color: var(--white);
    font-family: inherit;
    border-radius: 4px;
    transition: border-color 0.3s;
}

/* Verbessert die Lesbarkeit des Dropdown-Menüs in modernen Browsern */
select {
    color-scheme: dark;
}

/* Macht die Hoch/Runter-Pfeile im Zahlenfeld hell */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1);
    cursor: pointer;
}

select option {
    background-color: var(--bg-card);
    color: var(--white);
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-wrapper label {
    color: var(--text-main);
    font-weight: normal;
    font-size: 0.9rem;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.4;
}

/* Fix für den Link in der Datenschutzerklärung */
.checkbox-wrapper label a {
    color: var(--white);
    text-decoration: underline;
}

/* Verhindert, dass Anker-Ziele vom fixierten Header überlagert werden */
[id] {
    scroll-margin-top: 100px;
}

.hidden { display: none; } /* Für Honeypot */

button.submit-btn {
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 1rem 2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s;
}

button.submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Status-Meldungen */
#form-messages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}
.success { background: var(--success); color: white; display: block !important; }
.error { background: var(--error); color: white; display: block !important; }

.business-info {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
}

.business-info a {
    color: var(--primary-color);
    font-weight: bold;
}

/* Styles für rechtliche Inhalte */
.legal-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
    max-width: 800px;
}
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h3 { 
    color: var(--white); 
    margin-top: 2.5rem; 
    margin-bottom: 1rem; 
}
.legal-section p { margin-bottom: 1.2rem; }
hr { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 3rem 0; }

footer a { 
    color: var(--text-main); 
    text-decoration: underline; 
}

/* Scroll to Top Button */
#scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none; /* Standardmäßig ausgeblendet */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 999;
    transition: transform 0.3s, background-color 0.3s;
}
#scroll-top:hover { transform: translateY(-3px); background-color: #0056b3; }

/* Mobile Optimierung */
@media (max-width: 1024px) {
    .hero-video {
        display: none;
    }
    .container {
        padding: 1rem;
    }
    header { padding: 0.5rem 0; }
    nav { 
        flex-direction: row; 
    }
    .section-title {
        margin-bottom: 2.5rem;
    }
    .grid, .reference-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    nav ul { 
        flex-direction: row; 
        gap: 0.8rem; 
        margin-top: 0; 
        font-size: 0.85rem;
    }
    .logo img { height: 40px; }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}