/*
Theme Name:  csit-blog-theme
Theme URI:   https://beta.cs-it-solutions.de
Description: Blog-Theme fuer cs/IT solutions - pixelgenaues Layout nach Konzept v4
Author:      cs/IT solutions
Version:     1.0.1
Text Domain: csit-blog
*/

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    background: transparent;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* FONTS - actual filenames on server */
@font-face {
    font-family: 'EurostileLTStd';
    src: url('fonts/eurostileltstd-boldoblique-webfont.woff') format('woff'),
         url('fonts/eurostileltstd-boldoblique-webfont.ttf')  format('truetype');
    font-weight: bold;
    font-style: italic;
}
@font-face {
    font-family: 'EurostileLTStd';
    src: url('fonts/eurostileltstd-boldoblique-webfont.woff') format('woff'),
         url('fonts/eurostileltstd-boldoblique-webfont.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* HERO BACKGROUND */
#csit-hero {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/csit_landing-0c.jpg');
    background-size: cover; background-position: center center;
    background-repeat: no-repeat; background-attachment: fixed;
    z-index: 0;
}
#csit-hero::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(210, 218, 225, 0.25);
}

/* PAGE WRAPPER */
#csit-wrap { position: relative; z-index: 1; min-height: 100vh; padding-bottom: 52px; }

/* FIXED NAV BAR */
#csit-nav {
    position: fixed; top: 34px; left: 0; width: 100%; height: 34px;
    background: transparent url('images/csit_d4d5d7-80.png') repeat; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
}
#csit-nav .nav-logo {
    height: 23px;
    width: auto;
    display: block;
}
#csit-nav .nav-links {
    display: flex; align-items: center; gap: 44px; list-style: none;
}
#csit-nav .nav-links li a {
    font-family: 'EurostileLTStd', Arial, sans-serif;
    font-size: 13px; font-style: normal; color: #1a1a1a;
    text-decoration: none;     text-transform: uppercase; letter-spacing: 1.8px; transition: color 0.2s;
}
#csit-nav .nav-links li a:hover,
#csit-nav .nav-links li.current-menu-item a { color: #5787be; text-decoration: none; }

/* SUB-NAV */
#csit-subnav {
    position: fixed; top: 68px; left: 0; width: max-content;
    background: rgba(82, 130, 175, 0.95); z-index: 999;
    display: flex; align-items: stretch; height: 34px; padding: 0; gap: 0;
}
#csit-subnav a {
    font-family: 'EurostileLTStd', Arial, sans-serif;
    font-size: 12px; font-style: normal; color: #fff;
    letter-spacing: 0.5px; padding: 0 20px; line-height: 34px;
    text-decoration: none;     display: block; transition: background 0.15s;
}
#csit-subnav a.active, #csit-subnav a:first-child { background: rgba(50,100,148,0.65); }
#csit-subnav a:hover { background: rgba(50,100,148,0.5); text-decoration: none; }

/* MAIN CONTENT (offset 34 + nav 34 + subnav 34 = 102px) */
#csit-main { padding-top: 102px; width: 100%; }

/* SLOGAN H1 */
.csit-slogan { display: block; padding: 38px 0 16px 28px; }
.csit-slogan h1 {
    font-family: 'EurostileLTStd', Arial, sans-serif;
    font-size: 26px; font-weight: bold; font-style: italic;
    color: #1a1a1a; letter-spacing: 0.3px;
    background: transparent url('images/csit_d4d5d7-70.png') repeat;
    display: inline;
    padding: 0 30px 0 12px;
}

/* SLOGAN H2 - Artikel-Historie */
.csit-slogan-history { display: block; padding: 44px 0 0 28px; }
.csit-slogan-history h2 {
    font-family: 'EurostileLTStd', Arial, sans-serif;
    font-size: 22px; font-weight: bold; font-style: italic;
    color: #1a1a1a; letter-spacing: 0.3px;
    background: transparent url('images/csit_d4d5d7-70.png') repeat;
    display: inline;
    padding: 0 30px 0 12px;
}

/* FEATURED WRAP */
#csit-featured-wrap {
    display: flex;
    align-items: flex-start;
}

/* TWO-COLUMN LAYOUT */
#csit-blog-wrap {
    display: flex; align-items: flex-start; gap: 0;
    padding: 16px 0 80px 0;
}
#csit-blog-main { flex: 1 1 auto; min-width: 0; padding: 0 0 0 28px; }
#csit-blog-sidebar-area { flex: 1 1 auto; display: flex; align-items: flex-start; justify-content: center; padding-right: 36px; }
#csit-sidebar { width: 290px; display: flex; flex-direction: column; gap: 16px; }

/* FEATURED CARD */
.csit-featured {
    background: transparent url('images/csit_d4d5d7-80.png') repeat;
    padding: 20px 22px;
    margin-left: 28px;
    width: calc(75vw - 28px);
}
.csit-featured .featured-label {
    font-family: 'EurostileLTStd', Arial, sans-serif;
    font-size: 12px; font-weight: bold; text-transform: uppercase;
    letter-spacing: 1.5px; color: #888;
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.csit-featured .featured-label .featured-tag { color: #555; }
.csit-featured .featured-label .featured-cat { color: #5a8cbf; font-weight: bold; }
.csit-featured h2 { font-size: 18px; font-weight: bold; color: #111; margin-bottom: 9px; line-height: 1.3; }
.csit-featured h2 a { color: #111; }
.csit-featured h2 a:hover { color: #5a8cbf; text-decoration: none; }
.csit-featured .featured-excerpt { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 14px; }
.csit-featured .featured-actions { display: flex; align-items: center; gap: 16px; }

.btn-weiterlesen {
    display: inline-block; background: #5a8cbf; color: #fff;
    font-size: 12px; font-weight: bold; padding: 6px 14px;
    border: none; cursor: pointer; letter-spacing: 0.3px; transition: background 0.2s;
}
.btn-weiterlesen:hover { background: #4a7aad; text-decoration: none; color: #fff; }

.link-alle-beitraege {
    font-size: 12px; color: #888; display: flex; align-items: center; gap: 5px;
}
.link-alle-beitraege::before { content: '←'; }
.link-alle-beitraege:hover { color: #5a8cbf; text-decoration: none; }

/* ARTICLE LIST */
.csit-article-list { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.csit-article-item {
    background: transparent url('images/csit_d4d5d7-80.png') repeat; padding: 14px 22px;
    transition: background 0.15s;
}
.csit-article-item:hover { background: transparent url('images/csit_d4d5d7-50.png') repeat; }
.csit-article-item .article-meta {
    font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px;
}
.csit-article-item h3 { font-size: 15px; font-weight: bold; color: #111; margin-bottom: 5px; line-height: 1.3; }
.csit-article-item h3 a { color: #111; }
.csit-article-item h3 a:hover { color: #5a8cbf; text-decoration: none; }
.csit-article-item .article-excerpt { font-size: 12px; color: #666; line-height: 1.5; margin-bottom: 6px; }
.csit-article-item .article-readmore { font-size: 11px; color: #5a8cbf; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.csit-article-item .article-readmore:hover { color: #3a6a9d; text-decoration: none; }

/* SIDEBAR BOXES */
.csit-sidebar-box {
    background: transparent url('images/csit_d4d5d7-80.png') repeat; padding: 14px 16px;
}
.csit-sidebar-box h4 {
    font-family: 'EurostileLTStd', Arial, sans-serif;
    font-size: 12px; font-weight: bold; color: #333; text-transform: uppercase;
    letter-spacing: 1.2px; margin-bottom: 10px;
}
.csit-tags { display: flex; flex-direction: column; gap: 0; padding: 4px 0 6px 0; }
.csit-tag {
    font-family: 'EurostileLTStd', Arial, sans-serif;
    font-size: 12px; color: #3d6fa0;
    text-transform: lowercase;
    padding: 2px 0;
    display: block;
    transition: color 0.15s;
}
.csit-tag:hover { color: #5787be; text-decoration: none; }
.csit-sidebar-box.box-themen { min-height: 200px; }
.csit-about-text { font-size: 12px; color: #555; line-height: 1.6; margin-bottom: 12px; }
.btn-zum-unternehmen {
    font-family: 'EurostileLTStd', Arial, sans-serif;
    font-size: 12px; color: #3d6fa0;
    text-transform: lowercase;
    display: block;
    padding: 2px 0;
    transition: color 0.2s;
}
.btn-zum-unternehmen:hover { color: #5787be; text-decoration: none; }

/* SOCIAL BAR */
#csit-social-bar {
    position: fixed; right: 0; top: 187px; transform: none;
    z-index: 900; display: flex; flex-direction: column; gap: 6px;
    padding: 8px;
    background: transparent url('images/csit_d4d5d7-80.png') repeat;
}
.csit-social-icon {
    display: block;
    transition: opacity 0.2s;
}
.csit-social-icon:hover { opacity: 0.7; text-decoration: none; }

/* FOOTER */
#csit-footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: transparent url('images/csit_d4d5d7-80.png') repeat;
    color: #333; font-size: 12px; padding: 16px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
#csit-footer a { color: #333; transition: color 0.2s; }
#csit-footer a:hover { color: #5787be; text-decoration: none; }

/* COOKIE BANNER */
#csit-cookie {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(18,18,18,0.95); color: #ddd; font-size: 12px;
    padding: 12px 28px; z-index: 2000;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
#csit-cookie a { color: #6ab0e0; }
#csit-cookie button {
    background: #5a8cbf; color: #fff; border: none;
    padding: 6px 18px; font-size: 12px; cursor: pointer; transition: background 0.2s;
}
#csit-cookie button:hover { background: #4a7aad; }

/* ADMIN BAR OFFSET */
.admin-bar #csit-nav { top: calc(var(--wp-admin--admin-bar--height, 32px) + 68px); }
.admin-bar #csit-subnav { top: calc(var(--wp-admin--admin-bar--height, 32px) + 68px); }
.admin-bar #csit-main { padding-top: calc(102px + var(--wp-admin--admin-bar--height, 32px)); }

/* RESPONSIVE TABLET */
@media (max-width: 1135px) {
    #csit-blog-wrap { flex-direction: column; padding-right: 50px; }
    #csit-blog-sidebar-area { width: 100%; padding: 0 0 0 28px; }
    #csit-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .csit-sidebar-box { flex: 1 1 240px; }
    #csit-social-bar { top: auto; bottom: 60px; transform: none; }
}

/* RESPONSIVE MOBILE */
@media (max-width: 767px) {
    #csit-nav { padding: 0 12px; }
    #csit-nav .nav-links { gap: 16px; }
    #csit-nav .nav-links li a { font-size: 11px; letter-spacing: 0.5px; }
    #csit-subnav { overflow-x: auto; padding: 0; }
    .csit-slogan { padding: 28px 0 12px 16px; }
    .csit-slogan h1 { font-size: 20px; }
    .csit-slogan-history { padding: 32px 0 0 16px; }
    .csit-slogan-history h2 { font-size: 17px; }
    #csit-blog-wrap { padding-right: 44px; }
    #csit-blog-main { padding-left: 16px; }
    .csit-featured { margin-left: 16px; }
    .csit-featured h2 { font-size: 16px; }
    .csit-sidebar-box { flex: 1 1 100%; }
    #csit-social-bar { position: static; flex-direction: row; transform: none; justify-content: flex-end; }
    #csit-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}