/* --- style.css-- */

/* --- CLS FIXES --- */

/* 1. Bilder reservieren Platz basierend auf HTML Attributen */
img {
    max-width: 100%;
    height: auto;
    /* Nutzt die width="" und height="" Attribute zur Berechnung des Platzhalters */
    aspect-ratio: attr(width) / attr(height); 
    display: block;
}

/* 2. Hero Bild Container stabilisieren */
.hero-image-container {
    /* Verhindert Kollaps, falls Bild verzögert lädt */
    min-height: 280px; 
    min-width: 280px;
}

/* =========================================
   LOKALE SCHRIFTARTEN (INTER & JETBRAINS)
   ========================================= */

/* --- INTER (300, 400, 600) --- */

/* inter-300 - latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/inter-v20-latin-300.woff') format('woff'); /* Modern Browsers */
}

/* inter-400 - latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2'),
       url('/fonts/inter-v20-latin-regular.woff') format('woff');
}

/* inter-600 - latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2'),
       url('/fonts/inter-v20-latin-600.woff') format('woff');
}

/* --- JETBRAINS MONO (400, 700) --- */

/* jetbrains-mono-400 - latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2'),
       url('/fonts/jetbrains-mono-v24-latin-regular.woff') format('woff');
}

/* jetbrains-mono-700 - latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-v24-latin-700.woff2') format('woff2'),
       url('/fonts/jetbrains-mono-v24-latin-700.woff') format('woff');
}

/* =========================================
   ENDE LOKALE SCHRIFTARTEN
   ========================================= */


        :root {
            --bg-dark: #0f172a;
            --text-main: #e2e8f0;
            --text-muted: #94a3b8;
            --accent: #00ff9d;        /* Neon Grün */
            --accent-sec: #d8b4fe;    /* Helles Lila */
            --glass-bg: rgba(15, 23, 42, 0.7);
            --glass-border: rgba(255, 255, 255, 0.1);
        }

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

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-dark);
            background-image: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
            background-attachment: fixed;
            color: var(--text-main);
            line-height: 1.6;
            min-height: 100vh;
            overflow-x: hidden; /* Verhindert seitliches Wackeln */
        }

        /* BILD-SICHERUNG: Verhindert, dass Bilder das Layout sprengen */
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        /* --- 2. LAYOUT & CONTAINER --- */
        .container {
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;

        /* Abstand zwischen Überschrift und Menü */
        scroll-margin-top: 90px;
        }

        section {
            padding: 100px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        /* --- 3. NAVIGATION (STICKY) --- */
        nav {
            position: fixed;
            top: 0; left: 0; width: 100%;
            background: rgba(15, 23, 42, 0.95); /* Etwas dunkler für Lesbarkeit */
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--glass-border);
            z-index: 1000;
            padding: 15px 0;
        }

        .nav-inner { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.1rem; color: var(--accent); }
        
        .nav-links { display: flex; gap: 20px; }
        .nav-links a { text-decoration: none; color: var(--text-main); font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
        .nav-links a:hover { color: var(--accent); }

        /* Der Link der aktuellen Section leuchtet dauerhaft */
        .nav-links a.active {
        color: var(--accent);
        /* Optional: Ein kleiner Unterstrich für extra Sichtbarkeit */
        border-bottom: 2px solid var(--accent);
}

        /* --- 4. TYPOGRAPHIE --- */
        h1, h2, h3, h4 { font-family: 'JetBrains Mono', monospace; color: var(--text-main); }
        
        h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 20px; }
        h1 span { color: var(--accent); }
        
        h2 { font-size: 1.8rem; margin-bottom: 30px; display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: 5px; }
        h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--accent); }
        h4 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; color: #fff; }
        
        p { margin-bottom: 1rem; color: var(--text-muted); }
			
		h1, h2, h3, h4, h5, h6 {
    /* Aktiviert die Silbentrennung basierend auf der Sprache im HTML-Tag */
    -webkit-hyphens: auto; /* Für Safari/iOS wichtig */
    -moz-hyphens: auto;    /* Für Firefox */
    -ms-hyphens: auto;     /* Für ältere Microsoft Browser */
    hyphens: auto;         /* Standard */
}

        /* Listen Styling */
        ul.tech-list { list-style: none; padding-left: 0; margin-top: 10px; }
        ul.tech-list li { 
            margin-bottom: 6px; 
            padding-left: 20px; 
            position: relative; 
            font-size: 0.9rem;
            color: var(--text-muted); 
        }
        ul.tech-list li::before { 
            content: '>'; 
            color: var(--accent); 
            position: absolute; 
            left: 0; 
            font-family: 'JetBrains Mono'; 
            font-weight: bold;
        }

        @media (min-width: 768px) {
            h1 { font-size: 3.5rem; }
            h2 { font-size: 2.2rem; }
        }

        /* --- 5. GRID SYSTEM (SEO BEREICH) --- */
        .grid-3 {
            display: grid;
            grid-template-columns: 1fr; /* Mobil: 1 Spalte */
            gap: 25px;
            margin-top: 30px;
        }

        @media (min-width: 800px) {
            .grid-3 { grid-template-columns: repeat(3, 1fr); } /* Desktop: 3 Spalten */
        }

        /* --- 6. CARDS & HERO --- */
        .card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            padding: 30px;
            border-radius: 12px;
            height: 100%;
            transition: transform 0.2s, border-color 0.2s;
            /* Flexbox damit Footer/Listen unten bündig sind falls nötig */
            display: flex;
            flex-direction: column;
        }
        .card:hover { transform: translateY(-5px); border-color: rgba(0, 255, 157, 0.3); }

        /* Hero Layout */
        .hero-section { min-height: 90vh; display: flex; align-items: center; padding-top: 120px; }
        .hero-grid { 
            display: grid; 
            grid-template-columns: 1fr; 
            gap: 40px; 
            align-items: center; 
        }

        .profile-img {
            width: 200px; 
            height: 200px; 
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid var(--accent);
            box-shadow: 0 0 30px rgba(0, 255, 157, 0.2);
            margin: 0 auto; /* Zentriert auf Mobile */
        }

        @media (min-width: 768px) {
            .hero-grid { grid-template-columns: 1fr 300px; text-align: left; }
            .hero-text { order: 1; }
            .hero-image-container { order: 2; justify-self: end; }
            .profile-img { width: 280px; height: 280px; margin: 0; }
        }
        
        /* Mobile Order */
        @media (max-width: 767px) {
            .hero-grid .hero-image-container { order: 1; text-align: center; }
            .hero-grid .hero-text { order: 2; text-align: center; }
        }

        /* --- 7. BUTTONS & TAGS --- */
        .code-tag { font-family: 'JetBrains Mono', monospace; color: var(--accent); display: block; margin-bottom: 15px; }
        
        .btn {
            display: inline-block; margin-top: 15px; padding: 12px 25px;
            border: 1px solid var(--accent); color: var(--accent);
            text-decoration: none; font-family: 'JetBrains Mono', monospace;
            font-weight: bold; border-radius: 4px; transition: 0.3s; background: transparent;
        }
        .btn:hover { background: var(--accent); color: #0f172a; }
        
        .badge { 
            display: inline-block; font-size: 0.75rem; padding: 4px 10px; 
            background: rgba(255,255,255,0.1); border-radius: 20px; 
            margin-right: 5px; margin-bottom: 5px; 
            font-family: 'JetBrains Mono'; 
        }

        /* --- MOBILE MENU (NO-JS CSS VERSION) --- */

/* 1. Die Checkbox selbst muss weg (aber funktional bleiben) */
.nav-toggle-checkbox {
    display: none;
}

/* 2. Der Hamburger Button (Label) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    user-select: none; /* Verhindert Markieren beim schnellen Klicken */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    /* --- ANIMATION (gesteuert durch Checkbox) --- */
    /* Wenn Checkbox angehakt -> mittlerer Strich weg */
    #nav-toggle:checked ~ .hamburger .bar:nth-child(2) { opacity: 0; }
    
    /* Wenn Checkbox angehakt -> Striche zum X drehen */
    #nav-toggle:checked ~ .hamburger .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #nav-toggle:checked ~ .hamburger .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- MENÜ EINBLENDEN --- */
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-dark);
        background-image: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        text-align: center;
        transition: 0.4s ease;
        z-index: 999;
    }

    /* Hier passiert die Magie: Wenn Checkbox an, schiebe Menü rein */
    #nav-toggle:checked ~ .nav-links {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 20px 0;
        display: block;
    }
}
			
	/* --- Styling für den SEO Blogpost --- */

/* Key Takeaways Box (Zusammenfassung) */
.key-takeaways {
  background-color: #eef2f5; /* Helles Grau-Blau */
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 5px;
  border-left: 5px solid #0056b3; /* Akzentfarbe (Blau) */
}

.key-takeaways h3 {
  margin-top: 0;
  color: #333;
}

.key-takeaways ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

/* Experten-Tipp Zitatbox */
.expert-tip {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  margin: 2rem 0;
  padding: 1.5rem;
  font-style: normal; /* Normaler Stil, da es ein Info-Block ist */
}

.expert-tip p {
  margin: 0 0 1rem 0;
}

.expert-tip p:last-child {
  margin-bottom: 0;
}

/* Bilder und Grafiken */
.cls-chart img {
  max-width: 100%;
  height: auto;
  background-color: #f0f0f0; /* Fallback-Farbe während des Ladens */
  padding: 20px;
  border: 1px solid #ddd;
  display: block;
  margin: 0 auto;
}

.cls-chart figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Code-Blöcke */
pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
}
			
			/* --- BLOG POST STYLING --- */

/* Verhindert, dass Sections im Blogtext riesige Abstände haben */
.blog-post .content section {
    padding: 0;
    margin-bottom: 2rem; /* Moderater Abstand zwischen Abschnitten */
}

/* Überschriften im Blog kompakter gestalten */
.blog-post .content h2 {
    margin-top: 2.5rem;    /* Genug Luft nach oben für neuen Abschnitt */
    margin-bottom: 1rem;   /* Nicht zu weit weg vom Text */
    line-height: 1.3;
}

.blog-post .content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--accent-sec); /* Deine Akzentfarbe nutzen */
}

/* Lesbarkeit für Fließtext optimieren */
.blog-post .content p, 
.blog-post .content li {
    line-height: 1.8;      /* Etwas mehr Zeilenhöhe liest sich angenehmer */
    margin-bottom: 1.5rem;
}

/* Listen etwas einrücken */
.blog-post .content ul, 
.blog-post .content ol {
    padding-left: 20px;
    margin-bottom: 2rem;
}
			
			/* --- BLOG ÜBERSICHT OPTIMIERUNG --- */

/* 1. Der Blog-Kopfbereich (Hero) kompakter */
#blog-hero {
    padding-top: 120px;    /* Genug Platz für die Navigation */
    padding-bottom: 2rem;  /* Viel weniger Abstand nach unten zum Grid! */
    min-height: auto;      /* Falls Hero eine Mindesthöhe hat, hier aufheben */
    text-align: center;    /* Optional: Zentriert sieht bei Übersichten oft edler aus */
}

/* 2. Das Grid enger zusammenrücken */
#blog-feed .grid-3 {
    gap: 1.5rem;           /* Statt oft 4rem Standard-Gap, hier viel enger (ca. 24px) */
    row-gap: 2rem;         /* Vertikaler Abstand zwischen den Reihen */
}

/* Optional: Die Karten auf der Übersicht etwas schlichter */
#blog-feed .card {
    padding: 1.5rem;       /* Etwas weniger Innenabstand als auf der Startseite */
}

			
/* --- FAQ Akkordeon (Neon Style auf dunklem Hintergrund) --- */

.faq-accordion {
  margin: 3rem 0;
  /* Kein Hintergrund, da deine Seite bereits dunkel ist */
}

/* Die Hauptüberschrift in Neongrün */
.faq-accordion h2 {
  color: #00FF9D;
  margin-bottom: 1.5rem;
  /* Optional: Eine feine Linie in Neon drunter */
  border-bottom: 1px solid rgba(0, 255, 157, 0.3); 
  padding-bottom: 0.5rem;
}

details {
  /* Helle, halbtransparente Trennlinie zwischen den Fragen */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

/* Der klickbare Frage-Text */
summary {
  color: #00FF9D; /* Neongrün */
  cursor: pointer;
  padding: 1rem 0;
  font-weight: bold;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity 0.2s ease;
}

summary:hover {
  opacity: 0.8;
}

/* Standard-Pfeil entfernen */
summary::-webkit-details-marker {
  display: none;
}

/* Plus-Zeichen rechts */
summary::after {
  content: '+'; 
  color: #00FF9D;
  font-size: 1.5rem;
  font-weight: 300;
  margin-left: 15px;
}

/* Zustand: Geöffnet (Minus-Zeichen) */
details[open] summary::after {
  content: '-';
}

/* Der Antwort-Text */
.faq-content {
  color: #ffffff; /* Weiß für maximalen Kontrast auf dunklem Hintergrund */
  padding-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.9; /* Nimmt dem Weiß etwas die Härte */
}

/* Optional: Animation */
details[open] .faq-content {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 0.9; transform: translateY(0); }
}
