/* Grundkonfiguration & Farben */
:root {
    --bg-color: #050606;
    --card-bg: #223736;
    --card-accent: #236863;
    --primary-mint: #079A8F;
    --glow-cyan: #00F4E2;
    --text-white: #f5f5f5;
    --text-muted: #a0a0a0;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(5, 6, 6, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-accent);
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--glow-cyan);
}

/* Sektionen Styling */
section {
    padding: 80px 10%;
    min-height: 50vh;
}
/* Spezifische Titelgrößen */
.main-title { 
    font-size: 4.5rem; 
    color: var(--glow-cyan); 
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

h1 { font-size: 2.8rem; margin-bottom: 15px; }

h2 {
    color: var(--glow-cyan);
    margin-bottom: 30px;
    font-size: 2rem;
    border-left: 4px solid var(--primary-mint);
    padding-left: 15px;
}

/* Hero Bereich Layout */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 0 0 300px; /* Breite des Bildes auf Desktop */
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px; /* Abgerundete Ecken für modernen Look */
    border: 2px solid var(--primary-mint);
    box-shadow: 0 0 15px rgba(7, 154, 143, 0.3);
}

/* Responsive Anpassung: Mobile Geräte */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column; /* Stapelt Text und Bild untereinander */
        text-align: center;
    }

    .hero-image {
        flex: 0 0 auto;
        width: 200px; /* Etwas kleiner auf dem Handy */
        margin-top: 20px;
    }
}

/* Projekt-Karten (Horizontaler Scroll/Slider) */
.slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.project-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 30px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.project-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.project-card {
    min-width: 320px;
    max-width: 320px;
    background: linear-gradient(145deg, var(--card-bg), var(--bg-color));
    border-radius: 15px;
    border: 1px solid var(--card-accent);
    transition: all 0.4s ease;
}

.card-content {
    padding: 20px;
}

.project-card:hover {
    border-color: var(--glow-cyan);
    box-shadow: 0 0 20px rgba(0, 244, 226, 0.15);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card h3 {
    padding: 0 0 10px 0;
    color: var(--glow-cyan);
    font-size: 1.2rem;
}

.project-card p {
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Kontaktformular */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
}

input, textarea {
    background: var(--card-bg);
    border: 1px solid var(--card-accent);
    padding: 12px;
    color: white;
    border-radius: 5px;
}

button {
    background: var(--primary-mint);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background: var(--glow-cyan);
    color: #000;
}

footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    border-top: 1px solid var(--card-accent);
}

/* Grund-Layout für den Container */
.hero-container {
    display: flex !important; /* Erzwingt Flexbox */
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-direction: row; /* Standard: Text links, Bild rechts */
}

/* Die Zick-Zack-Regel: Erzwingt Bild links, Text rechts */
/* Wir machen sie extrem spezifisch, damit sie alles andere überschreibt */
section .hero-container.reverse {
    flex-direction: row-reverse !important;
}

/* Wichtig für die Bild-Breite im Zick-Zack */
.hero-image {
    flex: 0 0 400px; /* Feste Basisbreite für das Bild auf Desktop */
    max-width: 100%;
}

.hero-text {
    flex: 1;
}

/* Mobile Ansicht: Untereinander stapeln */
@media (max-width: 900px) {
    .hero-container, 
    section .hero-container.reverse {
        flex-direction: column !important; /* Auf Handys immer untereinander */
        text-align: center;
    }
    .hero-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
}