:root {
    --primary-yellow: #E0B841;
    --accent-yellow: #F8D468;
    --background-color: #000000;
    --surface-color: #111111;
    --text-color-white: #FFFFFF;
    --text-color-muted: #999;
    --font-family: 'Poppins', sans-serif;
    --sidebar-width: 250px;
    --border-radius: 8px;
    --transition-speed: 0.4s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

/* --- Navigation --- */
.sidebar-nav {
    position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh;
    background-color: var(--background-color); padding: 2rem 1rem;
    display: flex; flex-direction: column; align-items: center;
    border-right: 1px solid #222; z-index: 100;
}
.sidebar-nav .logo img { max-width: 90px; margin-bottom: 3rem; }
.sidebar-nav ul { list-style: none; width: 100%; }
.sidebar-nav ul li a { display: flex; align-items: center; padding: 0.65rem 1rem; margin-bottom: 0.2rem; color: var(--text-color-muted); text-decoration: none; font-weight: 600; border-radius: var(--border-radius); transition: all 0.3s ease; }
.sidebar-nav ul li a i { font-size: 1.1rem; width: 35px; text-align: center; }
.sidebar-nav ul li a span { font-size: 0.95rem; margin-left: 0.8rem; white-space: nowrap; }
.sidebar-nav ul li a:hover { color: var(--text-color-white); background-color: var(--surface-color); }
.sidebar-nav ul li a.active { color: #000; background-color: var(--primary-yellow); }

.mobile-header { display: none; }
.hamburger-menu { display: none; }
.mobile-menu-panel {
    position: fixed; top: 0; left: 0; width: 280px; height: 100%;
    background-color: var(--surface-color);
    z-index: 1000; padding: 6rem 2rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease-in-out;
}
.mobile-menu-panel.is-active { transform: translateX(0); }
.mobile-menu-panel nav a { display: flex; align-items: center; font-size: 1.1rem; font-weight: 600; color: var(--text-color-white); text-decoration: none; padding: 0.75rem 0; transition: color 0.3s; }
.mobile-menu-panel nav a i { width: 35px; text-align: center; margin-right: 1rem; color: var(--text-color-muted); }
.mobile-menu-panel nav a:hover, .mobile-menu-panel nav a:hover i { color: var(--primary-yellow); }

/* --- Hauptinhalt & Sektionen --- */
.main-content { margin-left: var(--sidebar-width); }
.content-section { padding: 8rem 5rem; }
.dark-bg { background-color: var(--surface-color); }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; font-weight: 700; color: var(--text-color-white); text-align: center; }
.section-subtitle { max-width: 600px; margin: 0 auto 3rem auto; text-align: center; color: var(--text-color-muted); }
.accent-color { color: var(--primary-yellow); }
p { color: var(--text-color-muted); font-size: 1rem; line-height: 1.8; }

/* --- Sektionen-spezifische Stile --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; text-align: center; padding: 5rem;
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('images/man.jpg');
    background-size: contain; background-position: center top; background-repeat: no-repeat;
    background-color: var(--background-color);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero .intro-text { color: var(--primary-yellow); font-weight: 600; letter-spacing: 2px; margin-bottom: 1rem; display: block; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; color: var(--text-color-white); }
.hero p { max-width: 600px; margin: 0 auto 2rem auto; }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: flex-start; gap: 4rem; }
.section-image img { width: 100%; border-radius: var(--border-radius); }
.section-text h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-color-white); margin-top: 0; }
.section-text .btn { margin-top: 1.5rem; }
.section-text p { color: var(--text-color-muted); }

.services-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card { background-color: #000; border: 1px solid #222; padding: 2.5rem; text-align: center; border-radius: var(--border-radius); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(224, 184, 65, 0.1); }
.service-card i { font-size: 2.5rem; color: var(--primary-yellow); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-color-white); }
.service-card p { font-size: 0.95rem; }

.workflow-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.workflow-step { background-color: var(--surface-color); padding: 2rem; border-radius: var(--border-radius); }
.workflow-step h3 { display: flex; align-items: center; font-size: 1.2rem; color: var(--text-color-white); margin-bottom: 1rem; }
.workflow-number { font-size: 1rem; font-weight: 700; color: #000; background-color: var(--primary-yellow); border-radius: 50%; width: 35px; height: 35px; display: inline-flex; justify-content: center; align-items: center; margin-right: 1rem; flex-shrink: 0; }
.workflow-step p { font-size: 0.95rem; }

.contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1000px; margin: auto; }
.contact-card { border: 1px solid #222; border-radius: var(--border-radius); text-decoration: none; text-align: center; padding: 2.5rem; transition: background-color 0.3s ease; }
.contact-card:hover { background-color: var(--surface-color); }
.contact-card i { font-size: 2.5rem; color: var(--primary-yellow); margin-bottom: 1rem; }
.contact-card h3 { color: var(--text-color-white); }
.contact-card p { font-size: 0.95rem; }

.footer { text-align: center; padding: 2rem; background-color: var(--surface-color); }
.footer p { color: #777; font-size: 0.9rem; }

/* --- Komponenten (Buttons, Modals, Animationen) --- */
.btn { display: inline-block; background-color: var(--primary-yellow); color: #000; padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn:hover { background-color: var(--accent-yellow); transform: translateY(-3px); }
.btn-secondary { background-color: #333; color: var(--text-color-white); }
.btn-secondary:hover { background-color: #444; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; z-index: 2000; backdrop-filter: blur(5px); }
.modal-content { background-color: var(--surface-color); padding: 2.5rem; border-radius: var(--border-radius); max-width: 650px; width: 90%; position: relative; border: 1px solid #333; }
.modal-close-btn { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.modal-title { font-size: 1.8rem; text-align: center; color: var(--text-color-white); margin-bottom: 1.5rem; }
.modal-content p { margin-bottom: 1rem; }
.modal-content p:last-child { margin-bottom: 0; }

/* NEU: Spezifische Regel für scrollbare Modals */
#privacy-modal .modal-content {
    max-height: 85vh; /* Stellt sicher, dass das Modal nie den Bildschirm ausfüllt */
    overflow-y: auto; /* Fügt einen Scrollbalken hinzu, wenn der Inhalt zu lang ist */
}

.hidden { display: none !important; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --- Cookie Banner & Einstellungs-Icon --- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: var(--surface-color); padding: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1500; border-top: 1px solid #333;
    gap: 1.5rem;
}
.cookie-banner p { flex-grow: 1; margin: 0; }
.cookie-buttons { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; justify-content: center; }
/* GEÄNDERT: Buttons im Cookie-Banner für gleiche Größe und responsives Verhalten */
.cookie-buttons .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    flex: 1 1 120px; /* Lässt Buttons wachsen, schrumpfen und umbrechen bei 120px */
    text-align: center;
    justify-content: center;
    white-space: nowrap; /* Verhindert Zeilenumbruch im Button-Text */
}

.privacy-settings-trigger {
    position: fixed; bottom: 20px; left: 20px;
    width: 50px; height: 50px;
    background-color: var(--primary-yellow);
    color: #000;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1400;
    transition: transform 0.3s ease;
}
.privacy-settings-trigger:hover { transform: scale(1.1); }

/* --- Cookie Einstellungs-Modal --- */
#cookie-settings-modal .modal-content { max-height: 85vh; overflow-y: auto; }
#cookie-settings-modal .btn { width: 100%; margin-top: 1.5rem; }
.cookie-category { border: 1px solid #333; border-radius: var(--border-radius); padding: 1rem; margin-bottom: 1rem; }
.cookie-category-header { display: flex; justify-content: space-between; align-items: center; }
.cookie-category-header h3 { font-size: 1.1rem; color: var(--text-color-white); margin: 0; }
.cookie-category-description { font-size: 0.9rem; color: var(--text-color-muted); margin-top: 0.5rem; margin-bottom: 0; }

.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary-yellow); }
input:focus + .slider { box-shadow: 0 0 1px var(--primary-yellow); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
input:disabled + .slider { background-color: #555; cursor: not-allowed; }

/* --- Formular-Modal --- */
.form-modal-content { max-width: 700px; text-align: left; max-height: 85vh; overflow-y: auto; }
.form-modal-content h1 { font-size: 1.8rem; text-align: center; color: var(--text-color-white); margin-bottom: 0.5rem; }
.form-section { background: #000; border-radius: var(--border-radius); padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid #222; }
.form-section h2 { color: var(--primary-yellow); margin-top: 0; font-size: 1.2rem; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--text-color-muted); }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group input[type="url"], .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #333; border-radius: var(--border-radius); font-size: 1rem; background-color: #1a1a1a; color: var(--text-color-white); transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary-yellow); outline: none; }
.form-group textarea { min-height: 120px; resize: vertical; }
.checkbox-group, .radio-group { display: flex; align-items: center; margin-bottom: 0.5rem; }
.checkbox-group label, .radio-group label { font-weight: normal; margin-left: 0.5rem; color: var(--text-color-muted); cursor: pointer;}
.checkbox-group input, .radio-group input { cursor: pointer; }
.required { color: var(--primary-yellow); }
.form-submit-btn { width: 100%; font-size: 1.1rem; padding: 1rem; margin-top: 1rem; }

/* --- Responsive Design --- */
@media (min-width: 1201px) {
    .hero { background-position: center 30%; }
}

@media (max-width: 1024px) {
    .sidebar-nav { display: none; }
    .main-content { margin-left: 0; }
    .content-section, .hero { padding: 6rem 1.5rem; }

    .mobile-header { display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; left: 0; width: 100%; padding: 1rem 1.5rem; z-index: 1001; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
    .mobile-logo img { height: 40px; }

    .hamburger-menu { display: block; position: static; width: 40px; height: 40px; background: none; border: none; cursor: pointer; }
    .hamburger-menu span { display: block; width: 28px; height: 3px; background-color: var(--text-color-white); margin: 6px auto; transition: all 0.3s ease-in-out; }
    .hamburger-menu.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger-menu.is-active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.9rem; }

    .section-grid { grid-template-columns: 1fr; }
    .section-grid .section-text { text-align: center; }
    .section-grid .section-text .btn { margin: 1.5rem auto 0 auto; }

    .workflow-container, .services-container, .contact-container { grid-template-columns: 1fr; }

    .cookie-banner { flex-direction: column; text-align: center; }
}