/* Schweizer Finanz Nachrichten - Stylesheet */

/* ========================================
   BASE STYLES (DESKTOP FIRST)
   ======================================== */

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

:root {
    --primary-red: #cc0000;
    --dark-text: #1a1a1a;
    --gray-text: #666;
    --light-gray: #f5f5f5;
    --border-gray: #ddd;
    --white: #ffffff;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--dark-text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Desktop Header Elements */
.top-bar {
    background: var(--dark-text);
    color: var(--white);
    font-size: 12px;
    padding: 8px 0;
}

.logo-section {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-gray);
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: var(--dark-text);
    text-decoration: none;
}

.logo span {
    color: var(--primary-red);
}

.main-nav {
    border-bottom: 3px solid var(--dark-text);
    background: var(--white);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 15px 18px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--dark-text);
    color: var(--white);
}

/* Mobile Elements - Hidden on Desktop */
.mobile-header,
.mobile-nav {
    display: none;
}

/* Main Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

.main-column {
    border-right: 1px solid var(--border-gray);
    padding-right: 30px;
}

/* Articles */
.hero-article {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-gray);
}

.hero-article h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 12px;
}

.article-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.article-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* Article Page */
.article-header h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 40px 0 25px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
}

/* ========================================
   MOBILE STYLES (max-width: 768px)
   ======================================== */

@media only screen and (max-width: 768px) {
    
    /* HIDE ALL DESKTOP ELEMENTS */
    .top-bar,
    .logo-section,
    .main-nav {
        display: none !important;
    }
    
    /* SHOW MOBILE HEADER */
    .mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        background: var(--white);
        border-bottom: 2px solid var(--dark-text);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
    }
    
    .mobile-logo {
        font-size: 26px;
        font-weight: bold;
        color: var(--dark-text);
        text-decoration: none;
    }
    
    .mobile-logo span {
        color: var(--primary-red);
    }
    
    /* HAMBURGER BUTTON */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--dark-text);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* MOBILE NAVIGATION MENU */
    .mobile-nav {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 999;
        padding-top: 60px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-nav.active {
        transform: translateX(0);
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav li {
        border-bottom: 1px solid var(--border-gray);
    }
    
    .mobile-nav a {
        display: block;
        padding: 18px 20px;
        text-decoration: none;
        color: var(--dark-text);
        font-size: 16px;
        font-weight: bold;
        font-family: Arial, sans-serif;
        text-transform: uppercase;
    }
    
    /* BODY PADDING FOR FIXED HEADER */
    body {
        padding-top: 50px !important;
    }
    
    /* SINGLE COLUMN LAYOUT */
    .main-content {
        display: block;
        grid-template-columns: 1fr;
        padding: 15px 0;
    }
    
    .main-column {
        border-right: none;
        padding-right: 0;
        width: 100%;
    }
    
    /* ARTICLE STYLES */
    .hero-article h1 {
        font-size: 22px;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .article-item {
        display: block;
        grid-template-columns: 1fr;
    }
    
    .article-thumb {
        height: 180px;
        margin-bottom: 10px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    /* FOOTER */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */

@media only screen and (max-width: 480px) {
    .mobile-logo {
        font-size: 24px;
    }
    
    body {
        padding-top: 46px !important;
    }
    
    .hero-article h1 {
        font-size: 20px;
    }
    
    .article-thumb {
        height: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ========================================
   GLOBAL FIXES - NO HORIZONTAL SCROLL
   ======================================== */

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Prevent iOS zoom on inputs */
input, select, textarea {
    font-size: 16px;
}
