/* === Lokale Schriften laden === */
@font-face {
    font-family: 'Space Grotesk';
    src: url('./fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700; /* Erlaubt alle Stärken des Variable Fonts */
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('./fonts/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 800;
    font-style: normal;
}


/* Farbpalette & Basis-Setup */
:root {
    --bg-dark: #1e2329;       
    --bg-card: #2b313a;       
    --text-main: #c9d1d9;     
    --text-muted: #8b949e;    
    --accent-orange: #e36209; 
    --accent-hover: #f9826c;  
}

/* Smooth Scrolling aktiviert */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    position: relative; 
}

/* Container für zentrierten Inhalt */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--bg-card);
}

.branding {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo {
    font-size: 1.8rem; /* Deutlich größer und präsenter */
    font-weight: 700;
    color: #ffffff; /* Strahlendes Weiß statt Dunkelblau */
    text-decoration: none;
    letter-spacing: 1px; /* Etwas mehr Abstand zwischen den Buchstaben */
    font-family: 'Space Grotesk', sans-serif;
}

.logo .highlight {
    color: var(--accent-orange); /* Dein leuchtendes Orange */
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem; /* Das .net absichtlich einen Tick kleiner */
}

.logo span.highlight {
    color: var(--accent-orange);
    font-family: 'JetBrains Mono', monospace;
}

.logo span.highlight {
    color: var(--accent-orange);
}

.logo span.suffix {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--text-main);
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -2px; 
}
.logo .terminal {
    color: var(--accent-orange);
    font-family: 'JetBrains Mono', monospace;
    margin-right: 5px;
    animation: blink 1s step-end 3 forwards;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.btn {
    background-color: var(--accent-orange);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn-outline:hover {
    background-color: var(--accent-orange);
    color: white;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-image-placeholder {
    flex: 1;
    background-color: var(--bg-card);
    height: 350px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed #444c56;
}

/* Section Titles */
h2 {
    font-size: 2rem;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

/* Process Section */
.process {
    padding: 60px 0;
    background-color: #161b22; 
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.process-card:hover {
    transform: translateY(-5px);
}

.icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--bg-dark);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.process-card h3 {
    color: white;
    margin-bottom: 10px;
}

/* === NEU: B2B / Kommission Banner === */
.b2b-banner {
    background-color: var(--accent-orange);
    padding: 40px 0;
}

.b2b-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.b2b-text h2 {
    text-align: left;
    margin-bottom: 10px;
    color: white;
}

.b2b-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Dunkler Button für den orangen Hintergrund */
.btn-dark {
    background-color: var(--bg-dark);
    color: white;
    white-space: nowrap; /* Verhindert, dass der Button-Text umbricht */
}

.btn-dark:hover {
    background-color: var(--bg-card);
}

/* Gallery / Portfolio Placeholder */
.gallery {
    padding: 80px 0;
}

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

.gallery-item {
    background-color: var(--bg-card);
    height: 250px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed #444c56;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--bg-card);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: var(--accent-orange);
}

/* Scroll to Top Button */
#scrollTopBtn {
    display: none; 
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--accent-orange);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#scrollTopBtn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.1);
}

/* WhatsApp Modal (Popup) */
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(3px); 
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    border-top: 4px solid var(--accent-orange);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-orange);
}

.modal-content h3 {
    color: white;
    margin-bottom: 10px;
}

.qr-image {
    margin-top: 20px;
    border: 10px solid white; 
    border-radius: 8px;
    max-width: 200px;
    background-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }
    .hero-image-placeholder {
        width: 100%;
    }
    .hero-content a {
        margin: 5px; 
    }
    
    /* Responsive B2B Banner */
    .b2b-content {
        flex-direction: column;
        text-align: center;
    }
    .b2b-text h2 {
        text-align: center;
    }
}


/* Styling für Rechtstexte (Impressum, Datenschutz etc.) */
.legal-box {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    margin: 60px auto;
    max-width: 800px;
}

.legal-box h1 {
    color: white;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
    display: inline-block;
}

.legal-box h2 {
    color: white;
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: left;
}

.legal-box p {
    margin-bottom: 15px;
}

.legal-box a {
    color: var(--accent-orange);
    text-decoration: none;
}

.legal-box a:hover {
    text-decoration: underline;
}



/* === Galerie & Hover Effekte === */
.gallery {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    background-color: var(--bg-card);
    height: 250px;
    border-radius: 8px;
    position: relative;
    overflow: hidden; /* Versteckt alles, was über den Rand hinausgeht */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

/* Der Rahmen leuchtet leicht auf beim Hover */
.gallery-item:hover {
    border-color: var(--accent-orange);
}

/* Das SVG Icon in der Mitte */
.gallery-icon {
    color: var(--text-muted);
    transition: transform 0.4s ease, color 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1.1); /* Icon wird minimal größer */
    color: white;
}

/* Das Text-Overlay, das von unten reinfährt */
.gallery-overlay {
    position: absolute;
    bottom: -100%; /* Startet unsichtbar unten außerhalb des Bildes */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 35, 41, 0.95); /* Dunkles, leicht transparentes Grau */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: bottom 0.3s ease-in-out;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0; /* Fährt nach oben in den sichtbaren Bereich */
}

.gallery-overlay h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.gallery-overlay p {
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}

/* === Anpassung der Galerie für Smartphones (Touch-Geräte) === */
@media (max-width: 768px) {
    .gallery-overlay {
        bottom: 0; 
        height: auto; 
        background: rgba(30, 35, 41, 0.95);
        border-top: 2px solid var(--accent-orange);
        padding: 15px 10px;
    }
    
    .gallery-icon {
        margin-bottom: 60px; 
    }

    .gallery-item:hover .gallery-icon {
        transform: none; 
    }
}

/* === Kundenstimmen / Feedback === */
.feedback-section {
    padding: 80px 0;
}

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

.feedback-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
}

.feedback-text {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.5;
}

.feedback-author {
    color: white;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    display: block;
    margin-top: 15px;
    
    /* Desktop-Verhalten: Unsichtbar und leicht nach unten verschoben */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feedback-card:hover .feedback-author {
    opacity: 1;
    transform: translateY(0);
}

/* Handy-Ansicht: Den Text immer direkt anzeigen */
@media (max-width: 768px) {
    .feedback-author {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === WhatsApp Modal Text & Nummer === */
.wa-text {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 0.9rem;
}

.wa-number {
    display: inline-block;
    margin-top: 5px;
    color: var(--accent-orange);
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace; /* Hier nutzen wir wieder den Nerd-Look */
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.wa-number:hover {
    color: white; /* Leuchtet weiß auf, wenn man mit der Maus drübergeht */
}