/* ==================================================
   BUDDY LAB – CENTRAL DESIGN SYSTEM
   BUILD. BREAK. LEARN. REPEAT.
   ================================================== */

:root {
    --bl-bg: #101915;
    --bl-surface: #19251f;
    --bl-surface-alt: #213128;
    --bl-text: #e7eee9;
    --bl-muted: #a6b8ac;
    --bl-accent: #69d695;
    --bl-border: #33463a;
    --bl-radius: 10px;
    --bl-content-width: 900px;
}

/* GRUNDLAYOUT */

body {
    background: var(--bl-bg);
    color: var(--bl-text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.site,
.site-content {
    background: var(--bl-bg);
}

.site-header,
.site-footer {
    background: var(--bl-surface);
    color: var(--bl-text);
}

.site-header a,
.site-footer a {
    color: var(--bl-text);
}

.site-header a:hover,
.site-footer a:hover {
    color: var(--bl-accent);
}

/* ARTIKELBREITE */

.single .inside-article,
.page .inside-article {
    max-width: var(--bl-content-width);
    margin-left: auto;
    margin-right: auto;
}

/* ÜBERSCHRIFTEN */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-title {
    color: var(--bl-text);
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.entry-title {
    font-size: clamp(28px, 3vw, 38px);
}

.entry-content h2 {
    font-size: 25px;
    margin-top: 2em;
    margin-bottom: 0.7em;
}

.entry-content h3 {
    font-size: 20px;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.entry-content h4 {
    font-size: 17px;
    margin-top: 1.4em;
}

/* TEXTE UND LINKS */

.entry-content p,
.entry-content li {
    color: var(--bl-text);
}

.entry-content a {
    color: var(--bl-accent);
    text-underline-offset: 3px;
}

.entry-content a:hover {
    text-decoration: underline;
}

/* BILDER */

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bl-radius);
}

.entry-content figure {
    margin-top: 1.8em;
    margin-bottom: 1.8em;
}

.entry-content figcaption {
    color: var(--bl-muted);
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

/* TABELLEN */

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.entry-content th,
.entry-content td {
    padding: 11px 14px;
    border: 1px solid var(--bl-border);
}

.entry-content th {
    background: var(--bl-surface-alt);
    color: var(--bl-text);
}

/* CODE */

.entry-content pre,
.entry-content .wp-block-code {
    background: #0a110d;
    color: #d6f5df;
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    padding: 18px;
    overflow-x: auto;
    font-size: 14px;
}

.entry-content code {
    font-family: "SFMono-Regular", Consolas, monospace;
}

/* ZITATE */

.entry-content blockquote {
    background: var(--bl-surface);
    border-left: 4px solid var(--bl-accent);
    padding: 15px 22px;
    margin-left: 0;
}

/* ARTIKEL UND ÜBERSICHTEN */

.separate-containers .inside-article,
.one-container .site-content {
    background: var(--bl-surface);
    color: var(--bl-text);
    border-radius: var(--bl-radius);
}

.entry-summary,
.entry-meta,
.entry-meta a {
    color: var(--bl-muted);
}

/* MOBILE */

@media (max-width: 768px) {
    .entry-content h2 {
        font-size: 22px;
    }

    .entry-content h3 {
        font-size: 19px;
    }

    .entry-title {
        font-size: 28px;
    }
}

/* BUDDY LAB – GLOBAL LINK COLORS */

body a,
body a:visited,
.entry-title a,
.entry-title a:visited,
.main-navigation .main-nav ul li a {
    color: #69d695;
}

body a:hover,
body a:focus,
.entry-title a:hover,
.main-navigation .main-nav ul li a:hover {
    color: #a5f2bf;
}

/* Textfarben auf dunklen Flächen */
.site-content,
.inside-article,
.entry-summary,
.entry-content {
    color: #e7eee9;
}

/* BUDDY LAB – FOOTER */

.site-info {
    background: #19251f;
    color: #a6b8ac;
    border-top: 1px solid #33463a;
}

.site-info .inside-site-info {
    display: block;
}

.bl-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}

.bl-footer-brand {
    color: #a6b8ac;
}

.bl-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.bl-footer a,
.bl-footer a:visited {
    color: #69d695;
    text-decoration: none;
}

.bl-footer a:hover {
    color: #a5f2bf;
}

@media (max-width: 768px) {
    .bl-footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .bl-footer-links {
        justify-content: center;
    }
}

/* BUDDY LAB – SIDEBAR */

.sidebar .widget {
    background: #19251f;
    color: #e7eee9;
    border-radius: 10px;
}

.sidebar .widget-title {
    color: #e7eee9;
    font-size: 18px;
}

.sidebar .widget a,
.sidebar .widget a:visited {
    color: #69d695;
}

/* BUDDY LAB – NAVIGATION */

.main-navigation,
.main-navigation .main-nav ul li a,
.main-navigation .main-nav ul li.current-menu-item > a {
    background: #19251f;
}

.main-navigation .main-nav ul li a:hover {
    background: #213128;
}

/* BUDDY LAB – SEARCH */

.sidebar input[type="search"] {
    background: #101915;
    color: #e7eee9;
    border: 1px solid #33463a;
}

.sidebar input[type="submit"] {
    background: #33463a;
    color: #ffffff;
}

/* BUDDY LAB – ARTICLE TAGS */

.bl-article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--bl-border);
}

.bl-tags-label {
    color: var(--bl-muted);
    font-size: 13px;
    font-weight: 600;
    margin-right: 5px;
}

.bl-tag,
.bl-tag:visited {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--bl-border);
    border-radius: 6px;
    background: var(--bl-surface-alt);
    color: var(--bl-accent);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
}

.bl-tag:hover {
    background: #304b39;
    border-color: var(--bl-accent);
    color: #ffffff;
}

/* BUDDY LAB – THEMENSERIEN */

.bl-series-nav {
    margin-top: 42px;
    padding: 22px;
    background: var(--bl-surface-alt);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
}

.bl-series-heading {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--bl-border);
    font-size: 13px;
    color: var(--bl-muted);
}

.bl-series-heading strong {
    color: var(--bl-accent);
}

.bl-series-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.bl-series-links > * {
    flex: 1;
}

.bl-series-links > :last-child {
    text-align: right;
}

.bl-series-nav a,
.bl-series-nav a:visited {
    color: var(--bl-accent);
    text-decoration: none;
}

.bl-series-nav a:hover {
    color: #a5f2bf;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .bl-series-links {
        flex-direction: column;
    }

    .bl-series-links > :last-child {
        text-align: left;
    }
}

/* BUDDY LAB – SERIES ARCHIVE */

.tax-bl_series .page-header {
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    padding: 25px 30px;
    margin-bottom: 24px;
}

.tax-bl_series .page-title {
    color: var(--bl-text);
    font-size: 28px;
}

.tax-bl_series .inside-article {
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
}

.bl-chapter-number {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--bl-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* ==================================================
   BUDDY LAB – HOMEPAGE
   ================================================== */

.bl-home {
    width: 100%;
}

.bl-hero {
    padding: 42px;
    background: #19251f;
    border: 1px solid #33463a;
    border-radius: 12px;
}

.bl-eyebrow {
    color: #69d695;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.bl-hero h1 {
    margin: 16px 0 6px;
    font-size: clamp(32px, 5vw, 48px);
    color: #e7eee9;
}

.bl-hero h2 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #69d695;
}

.bl-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: #a6b8ac;
}

.bl-home-section {
    margin-top: 46px;
}

.bl-home-section > h2 {
    margin-bottom: 20px;
    color: #e7eee9;
    font-size: 25px;
}

.bl-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bl-category-card,
.bl-category-card:visited {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 22px;
    background: #19251f;
    border: 1px solid #33463a;
    border-radius: 10px;
    color: #69d695;
    text-decoration: none;
}

.bl-category-card:hover {
    background: #213128;
    border-color: #69d695;
}

.bl-category-card strong {
    font-size: 16px;
}

.bl-category-card span {
    font-size: 12px;
    color: #a6b8ac;
}

.bl-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bl-post-card {
    padding: 22px;
    background: #19251f;
    border: 1px solid #33463a;
    border-radius: 10px;
}

.bl-post-date {
    color: #a6b8ac;
    font-size: 12px;
}

.bl-post-card h3 {
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.bl-post-card h3 a {
    color: #69d695;
    text-decoration: none;
}

.bl-post-card p {
    font-size: 14px;
    color: #a6b8ac;
}

.bl-academy {
    padding: 30px;
    background: #213128;
    border: 1px solid #33463a;
    border-radius: 12px;
}

.bl-academy-heading h2 {
    color: #69d695;
    font-size: 26px;
}

.bl-academy-heading p {
    color: #a6b8ac;
}

@media (max-width: 900px) {
    .bl-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bl-post-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bl-hero {
        padding: 25px;
    }

    .bl-category-grid {
        grid-template-columns: 1fr;
    }

    .bl-academy {
        padding: 22px;
    }
}

/* BUDDY LAB – kompaktes Header-Logo */
.site-header .header-image {
    width: 260px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .site-header .header-image {
        width: 190px;
    }
}

/* BUDDY LAB – doppelten Seitennamen im Header ausblenden */
.site-header .site-branding {
    display: none;
}

/* BUDDY LAB – kompakter Header */
.site-header .inside-header {
    padding-top: 5px;
    padding-bottom: 5px;
}

.site-header .site-logo {
    line-height: 0;
}

.site-header .site-logo img {
    display: block;
}

/* BUDDY LAB – Serverinventar-Button */
.bl-inventory-link {
    margin-top: 28px;
}

/* BUDDY LAB – zentrale Button-Gestaltung */
.bl-button,
.bl-button:link,
.bl-button:visited {
    display: inline-block;
    padding: 13px 24px;
    background: #20b86a;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bl-button:hover,
.bl-button:focus {
    background: #169653;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* BUDDY LAB – überflüssigen Seitentitel auf Startseite ausblenden */
.page-id-17 .entry-header .entry-title {
    display: none;
}
