/* assets/style.css - FIXED GRID ROWS VERSION */

:root {
    --bg-dark: #0a0a0a;
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --ruhr-gold: #d4af37;
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.3);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    
    /* 1. Layer: Schwarzer Schleier (0.8 = 80% Dunkelheit), damit es schemenhaft bleibt */
    /* 2. Layer: Dein Kohle-Bild */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.85)), 
        url('../images/Kohle.jpg');
        
    /* DER FIX FÜR PIXELIGE BILDER: */
    background-size: auto;       /* Behält die originale, scharfe Größe des Bildes */
    background-repeat: repeat;   /* Wiederholt das Bild (Kacheln), um den Schirm zu füllen */
    
    background-attachment: fixed; /* Bild bewegt sich nicht beim Scrollen */
    background-position: top left;
    
    color: var(--text-main);
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto 1fr auto; 
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    grid-column: 1;
    grid-row: 1 / -1; /* FIX: Sidebar erstreckt sich über ALLE Zeilen (1 bis Ende) */
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    z-index: 100;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.sidebar-logo {
    width: 120px;
    height: auto;
    max-height: 120px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.sidebar:hover .sidebar-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
}

.sidebar h2 {
    color: var(--ruhr-gold);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: var(--gold-glow);
    text-align: center;
    line-height: 1.2;
}

.sidebar nav a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.sidebar nav a:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--ruhr-gold);
    box-shadow: var(--gold-glow);
    transform: translateX(5px);
}

/* --- HEADER --- */
.header {
    grid-column: 2 / -1; /* Spalte 2 */
    grid-row: 1;         /* Zeile 1 (bestimmt die Höhe dieser Zeile) */
    position: sticky;
    top: 0;
    height: 80px;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 500;
}

.header-spacer { flex-grow: 1; }

.header-blog-nav {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-right: 20px;
    align-items: center;
}

.header-blog-nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    white-space: nowrap;
}

.header-blog-nav a:hover { color: #fff; }

.header-blog-nav a.active {
    color: var(--ruhr-gold);
    border-bottom-color: var(--ruhr-gold);
}

.search-box input {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--ruhr-gold);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus { box-shadow: var(--gold-glow); }

/* --- MAIN CONTENT --- */
.main-content {
    grid-column: 2 / -1; /* Spalte 2 */
    grid-row: 2;         /* Zeile 2 (startet direkt unter dem Header) */
    padding: 40px 60px 80px 60px;
    overflow-x: hidden;
}

h1, h2, h3 { color: #fff; font-weight: 700; margin-bottom: 15px; }
p { color: #ccc; line-height: 1.7; font-size: 1.05rem; margin-bottom: 20px; }

/* --- HOME HERO --- */
.home-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--ruhr-gold);
    color: var(--ruhr-gold);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: rgba(212, 175, 55, 0.1);
}

.home-hero img.avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ruhr-gold);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- GRID SYSTEM (Cards) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--ruhr-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

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

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
    text-decoration: none;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: linear-gradient(45deg, #222, #333);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid #444;
    border-radius: 4px;
    transition: 0.3s;
    align-self: flex-start;
}

.btn:hover {
    background: var(--ruhr-gold);
    color: #000;
    border-color: var(--ruhr-gold);
    box-shadow: var(--gold-glow);
}

/* --- SLOGAN BANNER --- */
.slogan-banner {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 40px;
    text-align: center;
    margin: 60px 0;
}

.slogan-banner h3 {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--ruhr-gold);
    text-shadow: var(--gold-glow);
    margin: 0;
}

/* --- DOS OVERLAY --- */
#dos-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    color: #0f0; font-family: 'Courier New', monospace;
    z-index: 9999; padding: 40px; display: none;
}
.dos-line { margin-bottom: 5px; display: block; white-space: pre-wrap; text-shadow: 0 0 5px rgba(0, 255, 0, 0.7); }
.cursor {
    display: inline-block; width: 10px; height: 1.2em; background-color: #0f0;
    animation: blink 0.8s infinite; vertical-align: bottom;
    box-shadow: 0 0 10px #0f0;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- MASCHINEN SPEZIAL (Grid & Styling) --- */
.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Spezifisch nur für die Maschinen-Karten */
.machine-card .card-img {
    height: 250px;          /* Die Höhe bleibt fix für das Raster */
    width: 100%;
    
    /* Hier ist die Magie: */
    object-fit: contain;    /* Zeigt das ganze Bild, nichts wird abgeschnitten */
    
    background-color: #050505; /* Dunkler Hintergrund füllt den Rest */
    padding: 10px;          /* Ein wenig Abstand zum Rand sieht edel aus */
    border-bottom: 2px solid var(--ruhr-gold);
}

/* Damit der Zoom-Effekt auch bei 'contain' gut aussieht */
.machine-card:hover .card-img {
    transform: scale(1.05);
}

/* --- POLAROID STYLE UPDATE --- */

/* 1. Der Polaroid Rahmen */
.polaroid-frame {
    background-color: #e0e0e0; /* Fotopapier-Farbe (hellgrau/weiß) */
    padding: 10px 10px 0 10px; /* Ränder oben/links/rechts */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* Tiefer Schatten */
    transform: rotate(-2deg); /* Der lässige Winkel */
    transition: all 0.4s ease;
    margin: 10px 10px 30px 10px; /* Platz drumherum für die Drehung */
    border: 1px solid #999;
}

/* Hover-Effekt: Polaroid richtet sich auf */
.machine-card:hover .polaroid-frame {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
    z-index: 10;
    background-color: #fff; /* Wird beim Hover strahlend weiß */
}

/* 2. Das Bild selbst */
.machine-card .card-img {
    height: 260px;          /* Fixe Höhe */
    width: 100%;            /* Volle Breite des Rahmens */
    object-fit: cover;      /* WICHTIG: Füllt den Rahmen komplett aus (sieht groß aus) */
    object-position: center;
    border: 1px solid #ccc; /* Dünner Rand direkt ums Bild */
    display: block;         /* Entfernt Lücken unten */
    background-color: #000;
    filter: sepia(20%);     /* Leichter Retro-Look (optional) */
}

.machine-card:hover .card-img {
    filter: sepia(0%); /* Beim Hover volle Farbe */
}

/* 3. Der Polaroid "Chin" (Footer unten am Bild) */
.polaroid-footer {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Baujahr rechts */
    padding-right: 10px;
    font-family: 'Courier New', Courier, monospace; /* Schreibmaschinen-Schrift */
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Anpassung des Card-Body, damit er nicht am schiefen Bild klebt */
.machine-card .card-body {
    padding-top: 10px; 
    background: none; /* Hintergrund wegnehmen, damit Polaroid wirkt */
}
.machine-card .card-body {
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent);
}

.machine-card h2 {
    font-size: 1.5rem; color: #fff; margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.machine-card .model-sub {
    color: var(--ruhr-gold); font-family: monospace; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: block;
}

.machine-desc {
    font-size: 0.95rem; color: #ccc; margin-bottom: 20px; line-height: 1.6;
}

.machine-specs-wrapper {
    margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px;
}
.machine-specs-wrapper strong {
    display: block; font-size: 0.75rem; color: #888; text-transform: uppercase; margin-bottom: 10px;
}
.machine-specs-wrapper ul, .machine-specs-wrapper ul.infobox {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none !important;
}
.machine-specs-wrapper li {
    background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border);
    color: var(--dust-white); padding: 4px 10px; border-radius: 4px; font-size: 0.8rem;
}
.machine-specs-wrapper li:before { content: none !important; }

/* --- BLOG ARTIKEL & TEXT FIXES --- */
.article-header {
    margin-bottom: 30px; border-left: 4px solid var(--ruhr-gold); padding-left: 25px;
}
.article-header h1 {
    font-size: 2.8rem; line-height: 1.1; margin-bottom: 10px; color: #fff !important;
}
.article-meta {
    font-family: 'Roboto', monospace; color: #aaa; font-size: 0.95rem;
    display: flex; align-items: center; gap: 15px;
}
.category-badge {
    background: var(--ruhr-gold); color: #000; font-weight: bold; padding: 2px 8px; border-radius: 2px; font-size: 0.8rem; text-transform: uppercase;
}

.article-card {
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 12px;
    overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.article-banner-img {
    width: 100%; height: auto; max-height: 500px; object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.1); display: block;
}

.article-body {
    padding: 40px 50px; color: #fff !important; font-size: 1.15rem; line-height: 1.8;
}

.article-body p, .article-body span, .article-body div, .article-body li, .article-body table, .article-body td {
    color: #e0e0e0 !important; background-color: transparent !important;
    font-family: 'Roboto', sans-serif !important; max-width: 100%;
}

.article-body h2, .article-body h3, .article-body h4 {
    color: #fff !important; margin-top: 30px; margin-bottom: 15px;
}

.article-body a, .article-body a:link, .article-body a:visited, .article-body a:active {
    color: var(--ruhr-gold) !important; text-decoration: underline; font-weight: bold;
}
.article-body a span, .article-body a strong { color: var(--ruhr-gold) !important; }
.article-body a:hover, .article-body a:hover span {
    color: #fff !important; text-shadow: 0 0 5px var(--ruhr-gold); cursor: pointer;
}

.article-body img {
    max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0; border: 1px solid #333;
}

.blog-meta { color: #ccc !important; }

.back-link {
    display: inline-block; color: #888; text-decoration: none; font-size: 0.9rem;
    border: 1px solid var(--steel-grey); padding: 10px 20px; border-radius: 4px; transition: 0.3s;
}
.back-link:hover { border-color: var(--ruhr-gold); color: var(--ruhr-gold); }

/* --- FOOTER --- */
.footer {
    grid-column: 2 / -1;
    grid-row: 3; /* Zeile 3 */
    background: rgba(10,10,10,0.9);
    padding: 30px;
    text-align: center;
    border-top: 1px solid #222;
    color: #666;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    body { grid-template-columns: 1fr; }
    .sidebar {
        /* Auf Mobile keine Grid-Row Beschränkung, einfach oben */
        grid-column: 1 / -1; 
        grid-row: auto;
        height: auto; 
        border-right: none; 
        border-bottom: 1px solid var(--glass-border);
        position: relative;
    }
    .header {
        grid-column: 1 / -1; 
        grid-row: auto;
        position: relative; 
        flex-direction: column-reverse;
        height: auto; padding: 20px; gap: 15px;
    }
    .main-content {
        grid-column: 1 / -1; 
        grid-row: auto;
        padding: 25px;
    }
    .header-blog-nav {
        width: 100%; justify-content: center; padding-right: 0;
    }
    .search-box { width: 100%; }
    .search-box input { width: 100%; }
    
    .home-hero { grid-template-columns: 1fr; text-align: center; }
    .home-hero img.avatar { margin: 0 auto; }
    
    .article-body { padding: 25px; }
    .article-header h1 { font-size: 2rem; }
    .footer { grid-column: 1 / -1; grid-row: auto; }
    
    .machine-section, .machine-section.reverse {
        flex-direction: column !important;
        height: auto;
    }
    .machine-visual {
        flex: auto; width: 100%; height: 250px;
    }
}

/* --- FOOTER SOCIAL ICONS (SVG) --- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px; /* Abstand zwischen den Icons */
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    color: var(--ruhr-gold); /* Basisfarbe */
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons svg {
    width: 28px;  /* Größe der Icons */
    height: 28px;
    fill: currentColor; /* Nimmt die Textfarbe (Gold) an */
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)); /* Leichtes Glühen */
}

/* Hover Effekt */
.social-icons a:hover {
    transform: scale(1.2) translateY(-3px); /* Pop-Up Effekt */
    color: #fff; /* Icons werden weiß beim Hover */
}

.social-icons a:hover svg {
    filter: drop-shadow(0 0 10px var(--ruhr-gold)); /* Stärkeres Glühen */
}

/* --- FOOTER BOTTOM LAYOUT --- */
.footer-bottom {
    display: flex;
    justify-content: space-between; /* Schiebt Copyright nach links, Legal nach rechts */
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: #666;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--ruhr-gold);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Mobile: Alles untereinander */
@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
    .legal-links a {
        margin: 0 10px;
    }
}