@charset "UTF-8";
/* cw_inhalt_css.css - Formatiert Header und dynamische CMS-Inhalte */

/* =========================================
   1. GLOBALE ANPASSUNGEN
   ========================================= */
body {
    background-color: #F4F5F7; 
    background-image: url('../images/hg_grau.jpg');
    background-repeat: repeat;
}


/* =========================================
   LOGO SWAP ANIMATION (CAD4FM)
   ========================================= */
@keyframes popSwap {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.logo-animated-swap {
    animation: popSwap 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: left center;
}

/* =========================================
   2. NEUER DESKTOP HEADER (.nwh-)
   ========================================= */

/* Desktop-Header auf Handys verstecken */
@media screen and (max-width: 900px) {
    .nwh-desktop-header { display: none !important; }
}

.nwh-desktop-header {
    font-family: 'Encode Sans', sans-serif;
    width: 100%;
}

.nwh-container {
    max-width: 1400px;
    width: 96%;
    margin: 0 auto;
    position: relative;
}

/* Transparente Topbar */
.nwh-topbar {
    background-color: rgba(255, 255, 255, 0.4);
    border-top: 3px solid #BF071D; 
    border-bottom: 3px solid #BF071D;
}
.nwh-topbar-flex {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
}
.nwh-topbar a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 25px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.nwh-topbar a:hover { color: #BF071D; }
.nwh-topbar i { margin-right: 8px; font-size: 1.1em; }

/* Logo Bereich (Transparent) */
.nwh-logo-bg {
    background-color: rgba(255, 255, 255, 0.8);
}
.nwh-logo-flex {
    display: flex;
    align-items: center;
    padding: 25px 0; 
    min-height: 190px; 
}
.nwh-logo-box {
    width: 380px; 
    flex-shrink: 0;
    text-align: center; /* Diese Zeile zentriert das Logo UND den Text perfekt in der Box */
}
.nwh-logo-box img {
    max-width: 320px; 
    height: auto;
}
.nwh-claim {
    color: #777;
    font-size: 0.85rem;
    margin-top: 5px;
    letter-spacing: 0.5px;
    text-align: center; /* Zur Sicherheit auch hier nochmal explizit zentriert */
}
.nwh-quote {
    flex-grow: 1;
    text-align: center;
    font-family: 'Encode Sans', sans-serif; /* Klare, moderne Schrift statt der Schreibschrift */
    font-size: 1.6rem; /* Vorher 2.2rem -> jetzt etwas kleiner */
    font-weight: 300; /* Dünner Schnitt für mehr Eleganz */
    font-style: italic; /* Leicht kursiv für den Zitat-Charakter */
    color: #888;
    margin-right: 510px; 
    line-height: 1.4;
}

/* Navigation (Dunkelgrau) */
.nwh-nav-bg {
    background-color: #333333;
    border-bottom: 3px solid #E1E1E1;
    height: 55px; 
}
.nwh-nav-flex {
    display: flex;
    height: 100%;
}
.nwh-nav-left {
    display: flex;
    flex-grow: 1; 
}
.nwh-nav-left a {
    flex: 1; 
}
.nwh-nav-spacer {
    width: 280px; 
    flex-shrink: 0;
}
.nwh-nav-right {
    width: 230px; 
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.nwh-nav-bg a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
    text-align: center;
}
.nwh-nav-bg a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: #333333;
}

/* Das Rote CAD4FM Viereck */
.nwh-redbox {
    position: absolute;
    top: 0; 
    right: 230px; 
    width: 280px; 
    bottom: -55px; 
    background-color: #BF071D;
    color: #ffffff;
    z-index: 100;
    padding: 25px;
    box-sizing: border-box;
    box-shadow: -3px 0 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}
.nwh-redbox p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}
.nwh-redbox img {
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
}
.nwh-redbox a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s, padding-left 0.2s;
}
.nwh-redbox a:hover {
    padding-left: 10px;
    background-color: rgba(0,0,0,0.1);
}
.nwh-redbox a:last-child {
    border-bottom: none;
}


/* =========================================
   3. STARTSEITE RASTER (Flexbox Asymmetrisch)
   ========================================= */
#container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; 
    margin-top: 20px;
}

#container > div[style*="clear"], 
#container > .clear,
#container > br {
    display: none !important;
}

#start_obenlinks, 
#start_obenrechts,
#start_untenlinks, 
#start_untenrechts {
    width: 100%; 
    background: rgba(255, 255, 255, 0.4); 
    padding: 30px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- ANGEPASSTE BREITEN (60/40) --- */
#start_obenlinks   { width: calc(60% - 15px); }
#start_obenrechts  { width: calc(40% - 15px); }
#start_untenlinks  { width: calc(40% - 15px); }
#start_untenrechts { width: calc(60% - 15px); }


/* Graue Überschriften */
#start_obenlinks h2, 
#start_obenrechts h2,
#start_untenlinks h2, 
#start_untenrechts h2 {
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

#start_obenlinks h2 img, 
#start_obenrechts h2 img,
#start_untenlinks h2 img, 
#start_untenrechts h2 img {
    margin-right: 15px;
}


/* =========================================
   4. UNTERSEITEN (GLOBALES 3-SPALTEN-RASTER)
   ========================================= */
.page-layout {
    display: grid;
    /* Mitte ist nun breiter, Seitenleisten schmaler */
    grid-template-columns: 1fr 3fr 1fr; 
    gap: 30px;
    margin-top: 30px;
}

/* Transparenzwert 0.4 für Hauptinhalt UND Seitenleisten */
.main-content, .sidebar-content, .right-sidebar {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Ränder der Seitenleisten schmaler (15px) */
.sidebar-content, .right-sidebar {
    padding: 15px;
}

/* Rand des Hauptbereichs großzügiger (40px) */
.main-content {
    padding: 40px;
}

/* ÜBERSCHRIFTEN IM HAUPTBEREICH */
.main-content h1, 
.main-content h2 {
    color: #BF071D;          
    margin-top: 0;           
    margin-bottom: 20px;
    border-bottom: 2px solid #BF071D; 
    padding-bottom: 10px;
}

.main-content h1 {
    font-size: 1.8rem;
}

.main-content h2 {
    font-size: 1.5rem;
}

/* Das Menü innerhalb der linken Spalte */
ul#menu2 {
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

ul#menu2 li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

ul#menu2 li:last-child {
    border-bottom: none;
}

ul#menu2 li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

ul#menu2 li a:hover, 
ul#menu2 li a.current, 
ul#menu2 li a.aktiv {
    background: rgba(255, 255, 255, 0.4);
    border-left: 4px solid #BF071D;
    color: #BF071D;
}

ul#menu2 li a img {
    margin-right: 12px;
    vertical-align: middle;
}

/* UNTERMENÜ (Aufgeklappte Ebenen) */
ul#menu2 ul {
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.02);
    display: none;
}

ul#menu2 ul li {
    border-bottom: 1px solid rgba(0,0,0,0.03); 
}

ul#menu2 ul li:last-child {
    border-bottom: none;
}

ul#menu2 ul li a {
    padding-left: 35px; 
    font-size: 0.95em;  
    color: #555;
}

ul#menu2 ul li a:hover, 
ul#menu2 ul li a.current, 
ul#menu2 ul li a.aktiv {
    background-color: rgba(255, 255, 255, 0.4);
    border-left: 4px solid #BF071D;
    color: #BF071D;
}

/* DOWNLOAD-KASTEN jetzt auch 0.4 transparent */
#downloadkasten {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #BF071D;
    border-radius: 4px;
}

.text_downloads2 a {
    display: inline-block;
    background: #BF071D;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 15px;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: bold;
}

.text_downloads2 a:hover {
    background: #333333;
}


/* =========================================
   5. MOBILE ANPASSUNGEN (Handy & Tablet)
   ========================================= */

#display_handy {
    display: none;
}

@media screen and (max-width: 1000px) {
    
    .nwh-desktop-header { 
        display: none !important; 
    }
    
    #display_handy { 
        display: block !important; 
        position: relative !important; 
        z-index: 99990 !important; 
    }

    #nav-toggle {
        z-index: 99999 !important;
        pointer-events: auto !important;
    }
    
    #container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 10px !important;
    }
    
    #start_obenlinks, 
    #start_obenrechts,
    #start_untenlinks, 
    #start_untenrechts {
        width: 100% !important;
        grid-column: auto !important; 
        grid-row: auto !important;
        padding: 20px !important; 
    }

    /* Auf Handys stapeln sich die 3 Spalten (News Links - Inhalt - News Rechts) vertikal */
    .page-layout {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }
    .sidebar-content {
        order: 2; /* Rutscht unter den Hauptinhalt */
    }
    .main-content {
        order: 1; /* Hauptinhalt bleibt ganz oben */
        padding: 20px;
    }
    .right-sidebar {
        order: 3; /* Rechte News rutschen ganz nach unten */
    }
}

/* =========================================
   6. NEWSLETTER BUTTON
   ========================================= */
.cw-newsletter-btn {
    display: inline-block;
    background-color: #BF071D; 
    color: #ffffff !important;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(191, 7, 29, 0.3);
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    width: 100%; 
    box-sizing: border-box;
    margin-top: 10px;
}

.cw-newsletter-btn:hover {
    background-color: #333333; 
    transform: translateY(-2px); 
}

/* =========================================
   7. FOOTER BEREICH
   ========================================= */
.main-footer {
    background-color: #4a4a4a; 
    color: #eeeeee;
    padding: 60px 0 40px 0;
    margin-top: 50px;
    font-family: 'Encode Sans', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    width: 96%;
    margin: 0 auto;
}

.footer-col h4 {
    color: #ffffff;
    /* Linie unter der Überschrift jetzt weiß */
    border-bottom: 2px solid #ffffff; 
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #cccccc;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact i {
    width: 20px;
    /* Kontakt-Icons jetzt weiß */
    color: #ffffff; 
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 8px; 
}

.footer-links i {
    margin-right: 8px;
    font-size: 0.8em;
    /* Pfeil-Icons in den Links jetzt weiß */
    color: #ffffff; 
}

.copyright-bar {
    background-color: #222222; 
    color: #777777;
    padding: 20px 0;
    font-size: 0.85rem;
    font-family: 'Encode Sans', sans-serif;
}

@media screen and (max-width: 1200px) {
    .nwh-quote {
        display: none !important;
    }
}