/*
Theme Name: csit
Theme URI: https://cs-it-solutions.de
Author: cs/IT solutions
Author URI: https://cs-it-solutions.de
Description: Custom theme for cs/IT solutions - replicating the original MODX design with Eurostile fonts, full-screen background and transparent navigation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: csit
*/

/* ============================================================
   FONT FACE — Eurostile LT Std (Navigation + Headings)
   Font files must be uploaded to /wp-content/themes/csit/fonts/
   ============================================================ */

@font-face {
    font-family: 'EurostileLTStd';
    src: url('fonts/EurostileLTStd.eot');
    src: url('fonts/EurostileLTStd.eot?#iefix') format('embedded-opentype'),
         url('fonts/EurostileLTStd.woff') format('woff'),
         url('fonts/EurostileLTStd.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EurostileLTStdBoldItalic';
    src: url('fonts/EurostileLTStdBoldItalic.eot');
    src: url('fonts/EurostileLTStdBoldItalic.eot?#iefix') format('embedded-opentype'),
         url('fonts/EurostileLTStdBoldItalic.woff') format('woff'),
         url('fonts/EurostileLTStdBoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html, body {
    height: 100%;
    width: 100%;
    font-size: 12px;
    font-family: Arial, sans-serif;
    line-height: 18px;
    letter-spacing: 0.07em;
}

/* ============================================================
   FULL-SCREEN BACKGROUND
   ============================================================ */

body {
    position: relative;
    background: #fff url('images/csit_body_bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-width: 1136px;
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */

#csit-wrap {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   COOKIE NOTICE (ersetzt CookieConsent)
   ============================================================ */

#cookie-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 6px 20px;
    font-size: 11px;
    text-align: center;
}

#cookie-notice a { color: #000; }

#cookie-notice button {
    background: #7b4ea0;
    color: #fff;
    border: none;
    padding: 4px 14px;
    cursor: pointer;
    font-size: 11px;
    margin-left: 12px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

#csit-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

/* Logo text top-right */
#csit-logo {
    position: fixed;
    top: 6px;
    right: 10px;
    font-family: 'EurostileLTStdBoldItalic', Arial, sans-serif;
    font-size: 22px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.02em;
    z-index: 101;
    text-decoration: none;
}

/* Main navigation */
#mainnavi {
    width: 700px;
}

#mainnavi ul {
    list-style: none;
    display: flex;
    gap: 0;
}

#mainnavi ul li a {
    font-family: 'EurostileLTStd', Arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    font-style: normal;
    text-transform: uppercase;
    color: #222;
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    letter-spacing: 0.08em;
}

#mainnavi ul li a:hover,
#mainnavi ul li.current-menu-item > a,
#mainnavi ul li.current_page_item > a {
    font-style: italic;
    color: #000;
}

/* Social bookmarks */
#socialbookmarks {
    margin-left: auto;
    padding-top: 5px;
    padding-right: 6px;
    display: flex;
    gap: 4px;
}

#socialbookmarks img {
    width: 20px;
    height: 20px;
}

/* Sub-navigation background strip */
#navi_sub {
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent url('images/csit_5785BE-70.png') repeat;
    z-index: 99;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

#csit-main {
    flex: 1;
    margin-top: 60px; /* below fixed header + sub-nav */
    padding: 30px 20px 60px;
    display: flex;
    gap: 0;
    max-width: 1136px;
}

/* Slogan / Hero */
#slogan {
    width: 100%;
    padding: 20px 0 10px 0;
}

#slogan h1 {
    font-family: 'EurostileLTStdBoldItalic', Arial, sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #111;
    letter-spacing: 0.02em;
}

/* Two-column layout */
#content_links {
    width: 50%;
    padding: 20px 30px 20px 0;
    background: rgba(255,255,255,0.75);
}

#content_rechts {
    width: 50%;
    padding: 20px 0 20px 30px;
    background: rgba(255,255,255,0.75);
}

/* Single column pages */
#content_full {
    width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.75);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'EurostileLTStdBoldItalic', Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
}

h2 { font-size: 1.6em; line-height: 1.875em; }
h3 { font-size: 1.4em; line-height: 1.07em; }
h4 { font-size: 1.2em; line-height: 1.25em; }
h5 { font-size: 1em;   line-height: 1.5em; }

p {
    font-family: Arial, sans-serif;
    font-size: 1em;
    line-height: 1.5em;
    margin-bottom: 1.5em;
}

a { color: #000; }
a:hover { color: #333; }

ul, ol { margin-left: 20px; line-height: 1.5em; margin-bottom: 1em; }

b, strong { font-weight: bold; }

/* ============================================================
   BLOG — Post list
   ============================================================ */

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

.post-list .post-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.post-list .post-title {
    font-family: 'EurostileLTStdBoldItalic', Arial, sans-serif;
    font-size: 1.4em;
    margin-bottom: 6px;
}

.post-list .post-title a { text-decoration: none; color: #111; }
.post-list .post-title a:hover { color: #444; }

.post-meta {
    font-size: 10px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-excerpt { font-size: 11px; line-height: 1.6em; }

.read-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

/* Blog tags */
.post-tags { font-size: 10px; color: #666; margin-top: 6px; }
.post-tags a { color: #444; text-decoration: none; }

/* Single post */
.single-post-header { margin-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.15); padding-bottom: 15px; }
.single-post-content p { font-size: 12px; line-height: 1.8em; }

/* SyntaxHighlighter code blocks */
pre { font-size: 11px; line-height: 1.5em; background: #f5f5f5; padding: 12px; border: 1px solid #ddd; overflow-x: auto; }

/* ============================================================
   CONTACT FORM
   ============================================================ */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 260px;
    border: 1px solid #999;
    margin: 0;
    padding: 5px;
    background: #fff;
    font-size: 12px;
    font-family: Arial, sans-serif;
}

.wpcf7 textarea { height: 120px; resize: none; }

.wpcf7 input[type="submit"] {
    background: #efefef;
    border: 1px solid #ccc;
    padding: 4px 16px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 6px;
}

.wpcf7 input[type="submit"]:hover { background: #dadada; }

/* ============================================================
   FOOTER
   ============================================================ */

#csit-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5em;
    background: transparent url('images/csit_d4d5d7-80.png') repeat;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#csit-footer ul {
    list-style: none;
    display: flex;
    gap: 0;
}

#csit-footer ul li a {
    font-size: 11px;
    color: #333;
    text-decoration: none;
    text-transform: lowercase;
    padding: 0 12px;
}

#csit-footer ul li a:hover { color: #000; }

/* Search box footer right */
#csit-search {
    position: absolute;
    right: 20px;
}

#csit-search input[type="text"] {
    border: 1px solid #aaa;
    padding: 2px 6px;
    font-size: 11px;
    width: 120px;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.clear { clear: both; }
.alignleft { float: left; margin: 0 15px 10px 0; }
.alignright { float: right; margin: 0 0 10px 15px; }
.aligncenter { display: block; margin: 0 auto 10px; }

/* Admin Bar Fix */
.admin-bar #csit-header { top: 32px; }
.admin-bar #csit-logo { top: 38px; }
.admin-bar #navi_sub { top: 74px; }
.admin-bar #csit-main { margin-top: 92px; }