/* ==== MATRIX STYLE MENU BAR ==== */
body {
    background: black;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff41;
    margin: 0;
    padding: 0;
}

/* Header-Bild ganz oben – voll sichtbar */
.header-image {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: black;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.header-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;        /* Zeigt das ganze Bild */
    background: black;
}

/* Matrix-Overlay für den coolen Look */
.header-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 255, 65, 0.05) 50%, 
        rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Menu Bar – JETZT NICHT MEHR FIXED, sondern direkt unter dem Bild */
nav {
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 0;
    text-align: center;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 30px rgba(0, 255, 65, 0.5);
    border-top: 1px solid #00ff41;
    border-bottom: 1px solid #00ff41;
    z-index: 10;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    margin: 0 30px;
}

nav a {
    color: #00ff41;
    text-decoration: none;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px #00ff41;
    transition: all 0.4s ease;
}

nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 25px #00ff41, 0 0 40px #00ff41;
    letter-spacing: 6px;
}

/* Optional: Glow für Überschriften */
h1, h2, h3 {
    text-shadow: 0 0 20px #00ff41;
}

/* Etwas Abstand für den Content unter der Nav */
.content {
    padding: 60px 20px;
    text-align: center;
}

/* Leuchtender Trennbalken im Matrix-Stil */
.glow-separator {
    width: 60%;                     /* Oder 100% für volle Breite */
    max-width: 800px;               /* Begrenzt die Länge auf großen Screens */
    height: 1px;                    /* Dicke des Balkens */
    background: #00ff41;          /* Basis-Grün */
    margin: 40px auto;              /* Abstand oben/unten + zentriert */
    border-radius: 2px;
    
    /* Der mega Glow-Effekt */
    box-shadow: 
        0 0 10px #00ff41,
        0 0 20px #00ff41,
        0 0 40px #00ff41,
        0 0 80px rgba(0, 255, 65, 0.6);
    
    /* Optional: Leichter Puls-Effekt für noch mehr Leben */
    animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 
            0 0 10px #00ff41,
            0 0 20px #00ff41,
            0 0 40px #00ff41,
            0 0 60px rgba(0, 255, 65, 0.4);
    }
    to {
        box-shadow: 
            0 0 15px #00ff41,
            0 0 30px #00ff41,
            0 0 60px #00ff41,
            0 0 100px rgba(0, 255, 65, 0.8);
    }
}

/* Optional: Etwas mehr Abstand und Glow für die Blog-Überschriften */
.blog-entry h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
}

/* Blog "Read more" Links im Matrix-Stil */
.read-more, 
a.read-more, 
.blog-entry a,                  /* Falls der Link keine eigene Klasse hat */
.entry a, 
.post a[href$=".html"]         /* Falls Links auf Artikel-Seiten enden */
{
    color: #00ff41 !important;            /* Starkes Matrix-Grün */
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px #00ff41;        /* Leichter Glow */
    transition: all 0.4s ease;
    display: inline-block;
    margin-top: 20px;
}

.read-more:hover, 
a.read-more:hover, 
.blog-entry a:hover,
.entry a:hover,
.post a[href$=".html"]:hover {
    color: #ffffff !important;
    text-shadow: 
        0 0 15px #00ff41,
        0 0 30px #00ff41,
        0 0 50px #00ff41;              /* Stärkerer Glow beim Hover */
    letter-spacing: 4px;                  /* Buchstaben ziehen auseinander  */
    transform: translateY(-2px);          /* Leicht anheben */
}

.read-more::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00ff41;
    margin-top: 5px;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px #00ff41;
}

.read-more:hover::after {
    width: 100%;
}

/* Blog-Übersicht: Klare Abtrennung der Einträge */
.blog-overview {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-entry {
    background: rgba(0, 0, 0, 0.6);            /* Leicht transparenz für Tiefe */
    border: 1px solid rgba(0, 255, 65, 0.3);   /* Subtiler grüner Rand */
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 60px;                      /* Wichtiger Abstand ZWISCHEN den Einträgen */
    position: relative;
    
    /* Starker äußerer Glow-Rahmen */
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.2),
        0 0 40px rgba(0, 255, 65, 0.1);
    
    transition: all 0.4s ease;
}

.blog-entry:hover {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.4),
        0 0 60px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);              /* Leicht anheben beim Hover */
    border-color: rgba(0, 255, 65, 0.6);
}

/* Zentrierter Text im Eintrag */
.blog-entry h2 {
    margin-top: 0;
    font-size: 34px;
}

.blog-entry p {
    line-height: 1.8;
    font-size: 18px;
    margin: 30px 0;
}

/* Der Read-Link etwas nach unten rücken */
.blog-entry .read-more {
    margin-top: 30px;
}

/* Sicherer Zentrier- und Einrück-Block – greift ohne spezielle Klassen */
/* Wendet sich auf gängige Container direkt unter der nav an */
body > section,
body > div:not(.header-image):not(nav),
body > article,
body > main,
.content,
.blog-overview,
.blog-list,
.posts,
.entries {
    max-width: 1100px;
    margin: 0 auto;             /* Zentriert */
    padding: 40px 50px;         /* Abstand links/rechts */
    box-sizing: border-box;
}

/* Zusätzlich: Alle direkten Kinder von body (außer Header und Nav) zentrieren */
body > *:not(.header-image):not(nav):not(script):not(style) {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 50px;
    padding-right: 50px;
    box-sizing: border-box;
}

/* Die Blog-Einträge selbst */
.blog-entry,
article {
    max-width: 900px;
    margin: 0 auto 80px auto;   /* Zentriert + viel Abstand unten */
    padding: 50px 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), 0 0 40px rgba(0, 255, 65, 0.1);
    transition: all 0.4s ease;
}

.blog-entry:hover,
article:hover {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4), 0 0 60px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
    border-color: rgba(0, 255, 65, 0.6);
}

.visitor-counter {
    text-align: center;
    margin: 60px 0 20px;
    font-family: 'Courier New', monospace;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
    font-size: 18px;
    opacity: 0.9;
}

.counter-digits {
    font-size: 36px;
    letter-spacing: 8px;
    margin-top: 10px;
    color: #00ff41;
    text-shadow: 
        0 0 10px #00ff41,
        0 0 20px #00ff41,
        0 0 30px #00ff41;
    animation: flicker 4s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 0.9; text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41; }
    50% { opacity: 1; text-shadow: 0 0 20px #00ff41, 0 0 40px #00ff41, 0 0 60px #00ff41; }
}

.glow-separator-2 {
    width: 60%;
    max-width: 800px;
    height: 1px;
    background: #00ff41;
    margin: 40px auto;
    border-radius: 0;   /* Kein Radius – saubere Linie */
    
    /* Sanfter, kleiner Glow – nur leichter Schimmer */
    box-shadow: 
        0 0 4px #00ff41,
        0 0 8px #00ff41,
        0 0 16px rgba(0, 255, 65, 0.6);
    
    /* Leichtes, langsames Blinken */
    animation: pulse-glow-light 7s infinite alternate ease-in-out;
}

hr.gradient {
    height: 1px;
    border: none;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 65, 0.3) 20%,
        #00ff41 50%,
        rgba(0, 255, 65, 0.3) 80%,
        transparent 100%
    );
    box-shadow: 0 0 8px #00ff41, 0 0 16px rgba(0, 255, 65, 0.6);
    margin: 40px auto;
    width: 60%;
    max-width: 800px;
    animation: pulse-hr 6s infinite alternate ease-in-out;
}

@keyframes pulse-hr {
    from {
        box-shadow: 0 0 6px #00ff41, 0 0 12px rgba(0, 255, 65, 0.5);
    }
    to {
        box-shadow: 0 0 10px #00ff41, 0 0 20px rgba(0, 255, 65, 0.8);
    }
}
