/* ==========================================================================
   KANZLERTAUSCH.DE - GLOBAL RESETS & TYPOGRAFIE (Teil 1)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1a1a1a;
    line-height: 1.5;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   PORTAL HEADER (Symmetrische Dreier-Reihe mit Ukraine-Quadraten)
   ========================================================================== */
.portal-header {
    background-color: #ffffff;
    padding: 25px 20px;
    border-bottom: 4px solid #000000;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.header-brand-wrapper {
    display: flex;
    align-items: center;       
    justify-content: center;   
    gap: 25px;                 
    max-width: 1200px;
    margin: 0 auto;
}

.text-block-center {
    display: flex;
    flex-direction: column;
    align-items: center;       
    text-align: center;
}

.portal-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000000;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.top-bar {
    font-size: 1rem;
    color: #4a4a4a;
    font-weight: 500;
}

/* Basis-Eigenschaften für BEIDE Quadrate */
.header-box-square {
    width: 95px;               
    height: 95px;              
    border: 3px solid #000000;
    position: relative;        /* Wichtig für die absolute Positionierung des Textes */
    overflow: hidden;          /* Schneidet die inneren Farbblöcke sauber am Rand ab */
    display: flex;
    user-select: none;
}

/* Geteilte Flaggen-Optik */
.ua-split {
    flex-direction: column;
}

.ua-blue {
    background-color: #0057b7; /* Offizielles Ukraine-Blau */
    flex: 1;                   /* Nimmt exakt 50% der Höhe ein */
    width: 100%;
}

.ua-yellow {
    background-color: #ffd700; /* Offizielles Ukraine-Gelb */
    flex: 1;                   /* Nimmt exakt 50% der Höhe ein */
    width: 100%;
}

/* Schiebt den Text zentriert über die beiden Farbflächen */
.ua-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    text-align: center;
}

/* Kontrastreiche Textfarben für bessere Lesbarkeit auf den Flaggenhälften */
.txt-white {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Macht weißes KT auf Gelb/Blau lesbar */
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.txt-black {
    color: #000000;
    text-shadow: 0px 0px 4px rgba(255,255,255,0.6); /* Macht schwarzen Text auf Blau lesbar */
}

.line-am {
    font-size: 1rem;
    text-transform: lowercase;
    line-height: 1.1;
}

.line-morgen {
    font-size: 1.1rem;
    text-transform: none;      
    line-height: 1.1;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.portal-nav {
    background-color: #1a1a1a;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    list-style: none;
}

.nav-container li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-container li a:hover {
    background-color: #333333;
    text-decoration: none;
}
/* ==========================================================================
   MAIN LAYOUT & GRID (Teil 2)
   ========================================================================== */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.breaking-ticker {
    grid-column: 1 / -1;
    background-color: #cd1a1a;
    color: #ffffff;
    padding: 10px 15px;
    font-weight: bold;
    text-transform: uppercase;
    border-left: 5px solid #000000;
}

/* ==========================================================================
   ARTIKEL & NEWS-KARTEN
   ========================================================================== */
.article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.main-article {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.news-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.news-card h2, .main-article h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #000000;
}

.news-card p, .main-article p {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.btn-portal {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: auto;
    border: none;
    cursor: pointer;
}

.btn-portal:hover {
    background-color: #333333;
}

/* ==========================================================================
   SIDEBAR & FOOTER
   ========================================================================== */
.sidebar {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    height: fit-content;
}

.sidebar h3 {
    border-bottom: 2px solid #000000;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.portal-footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
    font-size: 0.85rem;
    border-top: 4px solid #000000;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ffffff;
    margin: 0 10px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .header-brand-wrapper {
        flex-direction: column;   /* Stapelt die 3 Elemente auf Mobilgeräten sauber untereinander */
        gap: 15px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-title {
        font-size: 1.8rem;
    }
}
