:root {
    --ibm-bg: #dfdfdf;       /* Klassisches Industrie-Grau */
    --ibm-page-bg: #ffffff;  /* Weiß für die Magazinseiten */
    --ibm-blue: #0033a0;     /* IBM Dunkelblau */
    --ibm-cyan: #0088cc;     /* Akzent-Blau */
    --ibm-text: #1a1a1a;
    --border-style: 2px solid #999999;
}

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

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--ibm-bg);
    color: var(--ibm-text);
    overflow-y: hidden;
    height: 100vh;
}

/* Horizontaler Container */
.magazine-slider {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    width: 100vw;
    height: 100vh;
    scroll-behavior: smooth; /* Zwingt den Container zu weichen Übergängen */
    
    /* Optional: Verhindert unschöne Scroll-Ruckler in einigen Browsern */
    -webkit-overflow-scrolling: touch; 
}

/* Basis-Layout für jede "Seite" */
.page {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--ibm-bg);
    border-right: 4px double #999999;
}

/* --- SEITE 1: DAS COVER --- */
.cover-page {
    background-color: var(--ibm-blue);
    color: #ffffff;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.cover-page::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 15px;
    background: repeating-linear-gradient(90deg, #ffffff, #ffffff 40px, transparent 40px, transparent 50px);
}

.cover-title {
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-bottom: 2rem;
    border-bottom: 5px solid #ffffff;
    padding-bottom: 1rem;
    width: 100%;
    max-width: 800px;
}

.cover-subtitle {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.5rem;
    color: var(--ibm-cyan);
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    right: 4rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 1rem;
    animation: pulse 2s infinite;
}

/* --- SEITE 2+: HIGHLIGHT-ARTIKEL --- */
.article-page {
    background-color: var(--ibm-page-bg);
    max-width: 90vw;
    flex: 0 0 85vw;
    margin: 2vh 0 2vh 2vw;
    height: 96vh;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
    border: var(--border-style);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--ibm-blue);
    padding-bottom: 1rem;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    color: var(--ibm-blue);
}

.article-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 650px;
}

.article-category {
    font-family: "Courier New", Courier, monospace;
    background: var(--ibm-blue);
    color: white;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--ibm-text);
}

.article-preview {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 2rem;
}

.ibm-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--ibm-blue);
    background: transparent;
    color: var(--ibm-blue);
    text-decoration: none;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    transition: all 0.2s ease;
}

.ibm-btn:hover {
    background: var(--ibm-blue);
    color: white;
}

.page-footer {
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    color: #777;
    display: flex;
    justify-content: space-between;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.5; transform: translateX(10px); }
}
