/* Font Face for Inter */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

/* Note: Merriweather font file is missing. Please download 'Merriweather' ttf and place in assets/fonts/ */

:root {
    --primary-color: #0B0F19;
    /* Deepest structural black/blue */
    --secondary-color: #00D166;
    /* Vibrant, modern green */
    --secondary-hover: #00A651;
    --accent-color: #94A3B8;
    /* Cool elegant grey */
    --text-color: #334155;
    /* Slate text for better readability than pure black */
    --light-bg: #F8FAFC;
    /* Very subtle cool grey */
    --white: #FFFFFF;
    --dark-bg: #0B0F19;
    --footer-bg: #020617;
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --spacing-unit: 2rem;
    --border-radius: 6px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* More modern diffuse shadow */
    --shadow-hover: 0 20px 50px -12px rgba(0, 209, 102, 0.2);
    /* Green glow on hover */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* Tighter tracking for modern look */
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-light {
    background-color: var(--light-bg);
    padding: 6rem 0;
}

.section-white {
    background-color: var(--white);
    padding: 6rem 0;
}

.section-highlight {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 6rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Header */
.site-header {
    background-color: rgba(11, 15, 25, 0.9);
    /* Dark semi-transparent header */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
}

@media (min-width: 768px) {
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

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

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.95);
    /* Light bg to ensure logo visibility */
    padding: 5px;
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    position: absolute;
    right: 20px;
    top: 20px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--dark-bg);
    /* Dark background for mobile menu */
    padding-top: 6rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav.active {
    right: 0;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
        box-shadow: none;
        display: block;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 2.5rem;
    }
}

/* Hamburger to X Transformation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Update nav links for dark header */
.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #cbd5e1;
    /* Light grey text */
    letter-spacing: 0.02em;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Specifically target the contact button in nav */
.main-nav a.btn {
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 209, 102, 0.4);
    /* More vibrant shadow */
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    /* Changed for dark header */
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Lighter border for dark header */
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-primary-inverse {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-primary-inverse:hover {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    /* Subtle border on hover */
}


/* Darker modern hero */
.hero {
    background: var(--dark-bg);
    padding: 10rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 209, 102, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
    text-transform: none;
    /* Elegant natural case */
}

.hero-text {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: #94a3b8;
    /* Slate 400 */
    font-weight: 300;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Kompetenz / Feature List */
.section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.feature-list ul {
    margin-top: 2rem;
}

.feature-list ul li {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
}

.feature-list ul li::before {
    content: "";
    /* Use CSS shape or SVG for cleaner check */
    width: 8px;
    height: 14px;
    border-right: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    position: absolute;
    left: 0;
    top: 2px;
    transform: rotate(45deg);
}

/* Tech Stack Grid */
.tech-stack {
    margin-top: 2rem;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-item {
    background: rgba(0, 209, 102, 0.08);
    /* Light green background */
    color: var(--secondary-color);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 209, 102, 0.2);
    font-family: monospace;
    /* Tech feel */
}

.check-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    font-size: 1.05rem;
}

.check-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Clean border */
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(29, 173, 104, 0.2);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.service-card:hover::after {
    width: 100%;
}

.service-card .icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    background: rgba(29, 173, 104, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.service-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Highlight Box (Compliance Check) */
.highlight-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.highlight-box h2 {
    font-size: 2.5rem;
}

.highlight-box h2,
.highlight-box p {
    color: var(--white);
}

.highlight-box .lead {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.check-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
    text-align: left;
}

.check-item {
    flex: 1 1 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: background 0.3s;
}

.check-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.check-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.check-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
    opacity: 0.8;
}

/* Profile */
.grid-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .grid-profile {
        grid-template-columns: 1fr 2fr;
    }
}

.profile-image img,
.img-placeholder {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--secondary-color);
}

.cert-list {
    margin-top: 2rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.cert-list li {
    display: inline-block;
    margin-right: 2rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--secondary-color);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Approximate height */
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: start;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-info {
    font-size: 1.05rem;
}

.contact-info address {
    margin-top: 2rem;
    font-style: normal;
    line-height: 1.8;
}

.contact-info a {
    color: var(--secondary-color);
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #ccc;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #333;
    border-radius: var(--border-radius);
    font-family: inherit;
    background-color: #1a1a1a;
    color: #fff;
    transition: border-color 0.3s;
}

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

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #aaa;
}

.privacy-check input {
    width: auto;
    margin-top: 4px;
}

/* Legal Sections (Impressum / Datenschutz) */
.section-legal {
    background-color: #fff;
    padding: 4rem 0;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: #444;
}

.section-legal h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.section-legal h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-grid {
    display: grid;
    gap: 2rem;
}

/* Accordion for Privacy Policy */
.legal-accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}

.legal-accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-accordion-header:hover {
    color: var(--secondary-color);
}

.legal-accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-color);
}

.legal-accordion-item.active .legal-accordion-header::after {
    transform: rotate(45deg);
}

.legal-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.legal-accordion-item.active .legal-accordion-content {
    max-height: 2000px;
    /* Allow large height for content */
    padding-bottom: 1.5rem;
}

.legal-accordion-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}


/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: #666;
    padding: 4rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    margin: 0 1rem;
    color: #888;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

/* Hide decorative images on mobile */
@media (max-width: 768px) {

    #dsb .feature-image,
    #workshops .feature-image {
        display: none;
    }
}