/*
Theme Name: GenialData News
Theme URI: https://genialdata.de. 
Author: GenialData GmbH
Description: News-Theme für news.genialdata.de – passend zur GenialData Corporate Identity.
Version: 1.0
*/

/* ─── VARIABLEN ─────────────────────────────────────────── */
:root {
    --gd-dark:     #000000;
    --gd-darker:   #000000;
    --gd-accent:   #5aacac;
    --gd-accent2:  #3a8f8f;
    --gd-white:    #ffffff;
    --gd-light:    #f8f9fa;
    --gd-gray:     #6c757d;
    --gd-border:   #e9ecef;
    --gd-text:     #2d2d2d;
    --gd-radius:   8px;
    --gd-shadow:   0 2px 20px rgba(0,0,0,0.08);
    --gd-font:     'Source Sans 3', sans-serif;
    --gd-font-h:   'Montserrat', sans-serif;
}

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

body {
    font-family: var(--gd-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--gd-text);
    background: var(--gd-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gd-accent2); text-decoration: none; }
a:hover { color: var(--gd-accent); }

/* ─── HEADER & NAVIGATION ───────────────────────────────── */
#masthead {
    background: var(--gd-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gd-white);
    text-decoration: none;
}

.site-branding .logo-mark {
    width: 36px;
    height: 36px;
    background: var(--gd-accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gd-font-h);
    font-weight: 700;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.site-branding .site-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-branding .brand-main {
    font-family: var(--gd-font-h);
    font-weight: 700;
    font-size: 15px;
    color: var(--gd-white);
    letter-spacing: 0.5px;
}

.site-branding .brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

.main-nav a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--gd-radius);
    transition: all 0.2s;
    display: block;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--gd-white);
    background: rgba(255,255,255,0.1);
}

.nav-cta a {
    background: var(--gd-accent) !important;
    color: var(--gd-white) !important;
    padding: 8px 16px !important;
}

.nav-cta a:hover {
    background: #3a8f8f !important;
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: var(--gd-radius);
    cursor: pointer;
    font-size: 14px;
}

/* ─── HERO BANNER (Archiv/Blog) ─────────────────────────── */
.page-hero {
    /*background: linear-gradient(135deg, var(--gd-dark) 0%, #16213e 100%);  */
	background: #000000;
    padding: 60px 24px;
    text-align: center;
    border-bottom: 3px solid var(--gd-accent);
}

.page-hero h1 {
    font-family: var(--gd-font-h);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    color: var(--gd-white);
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto;
}

.page-hero .accent-line {
    width: 48px;
    height: 3px;
    background: var(--gd-accent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ─── HAUPT-LAYOUT ──────────────────────────────────────── */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* ─── BEITRAGS-LISTE ────────────────────────────────────── */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.post-card {
    background: var(--gd-white);
    border: 1px solid var(--gd-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--gd-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.post-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card-image-placeholder {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--gd-accent), var(--gd-accent2));
}

.post-card-body {
    padding: 28px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.post-date {
    font-size: 13px;
    color: var(--gd-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--gd-accent);
    background: rgba(230,57,70,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-title {
    font-family: var(--gd-font-h);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.post-card-title a {
    color: var(--gd-text);
    text-decoration: none;
    transition: color 0.2s;
}

.post-card-title a:hover { color: var(--gd-accent); }

.post-excerpt {
    color: var(--gd-gray);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gd-accent2);
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.2s;
}

.read-more:hover { gap: 10px; color: var(--gd-accent); }
.read-more::after { content: "→"; }

/* ─── EINZELNER BEITRAG ─────────────────────────────────── */
.single-post-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.post-header {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gd-border);
}

.post-header .post-meta { margin-bottom: 16px; }

.post-header h1 {
    font-family: var(--gd-font-h);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--gd-text);
    margin-bottom: 20px;
}

.post-featured-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 36px;
    box-shadow: var(--gd-shadow);
}

/* Beitragsinhalt Typografie */
.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gd-text);
}

.entry-content p { margin-bottom: 1.4em; }

.entry-content h2,
.entry-content h3 {
    font-family: var(--gd-font-h);
    font-weight: 700;
    margin: 2em 0 0.7em;
    color: var(--gd-dark);
}

.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 21px; }

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
    margin-bottom: 1.4em;
}

.entry-content li { margin-bottom: 0.5em; }

.entry-content strong { color: var(--gd-dark); }

.entry-content blockquote {
    border-left: 4px solid var(--gd-accent);
    padding: 16px 24px;
    margin: 2em 0;
    background: var(--gd-light);
    border-radius: 0 var(--gd-radius) var(--gd-radius) 0;
    font-style: italic;
    color: var(--gd-gray);
}

/* ─── SIDEBAR ───────────────────────────────────────────── */
.sidebar {
    position: sticky;
    top: 88px;
}

.widget {
    background: var(--gd-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gd-border);
}

.widget-title {
    font-family: var(--gd-font-h);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gd-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gd-accent);
}

.widget ul { list-style: none; }

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gd-border);
    font-size: 15px;
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
    color: var(--gd-text);
    transition: color 0.2s;
}

.widget ul li a:hover { color: var(--gd-accent); }

/* CTA Widget */
.widget-cta {
    background: linear-gradient(135deg, var(--gd-dark), #16213e);
    color: white;
    border: none;
}

.widget-cta .widget-title {
    color: white;
    border-bottom-color: var(--gd-accent);
}

.widget-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.btn-cta {
    display: block;
    text-align: center;
    background: var(--gd-accent);
    color: white !important;
    padding: 12px 20px;
    border-radius: var(--gd-radius);
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.btn-cta:hover { background: #3a8f8f !important; }

/* ─── PAGINATION ────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--gd-radius);
    border: 1px solid var(--gd-border);
    color: var(--gd-text);
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--gd-accent);
    border-color: var(--gd-accent);
    color: white;
}

/* ─── FOOTER ────────────────────────────────────────────── */
#colophon {
    background: var(--gd-darker);
    color: rgba(255,255,255,0.7);
    margin-top: 80px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .logo-mark {
    width: 44px;
    height: 44px;
    background: var(--gd-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gd-font-h);
    font-weight: 700;
    font-size: 20px;
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
}

.footer-main-link {
    color: var(--gd-accent) !important;
    font-weight: 600;
    font-size: 14px;
}

.footer-col h4 {
    font-family: var(--gd-font-h);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gd-white); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.65);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}

.footer-bottom a:hover { color: white; }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
    .site-main,
    .single-post-wrap { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
    .menu-toggle { display: block; }
}

@media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; }
    .page-hero { padding: 40px 24px; }
}
