/**
 * RhekTec Single Post CSS v5 – New Design
 */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

:root {
    --rt-red: #E31E24; --rt-red-dark: #B71C1C;
    --rt-navy: #1A1A2E; --rt-navy-light: #0F3460;
    --rt-bg: #F2F3F7; --rt-white: #fff; --rt-border: #E2E7F0;
    --rt-text: #1A1A2E; --rt-muted: #8A8FA8;
    --rt-shadow: 0 2px 10px rgba(0,0,0,0.07);
    --rt-shadow-lg: 0 8px 28px rgba(0,0,0,0.12);
    --rt-radius: 14px; --rt-radius-sm: 10px;
    --ff-display: 'Bebas Neue', sans-serif;
    --ff-cond: 'Barlow Condensed', sans-serif;
    --ff-body: 'Barlow', -apple-system, sans-serif;
}

body.single-post { background: var(--rt-bg); }

/* Divi fullwidth overrides */
body.single-post #page-container,
body.single-post #et-main-area,
body.single-post #main-content,
body.single-post .container,
body.single-post #left-area {
    max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important;
}
body.single-post #sidebar, body.single-post .et_pb_sidebar, body.single-post aside { display: none !important; }
body.single-post article.post, body.single-post article.et_pb_post {
    max-width: 780px !important; margin: 0 auto !important; padding: 14px !important;
}
@media (min-width: 768px) {
    body.single-post article.post, body.single-post article.et_pb_post { padding: 28px 20px !important; }
}

/* TITLE */
body.single-post .entry-title, body.single-post h1.entry-title {
    font-family: var(--ff-display) !important;
    font-size: 2rem !important; letter-spacing: 1.5px !important;
    line-height: 1.05 !important; color: var(--rt-text) !important;
    margin: 0 0 14px 0 !important;
}
@media (min-width: 768px) {
    body.single-post .entry-title { font-size: 2.6rem !important; }
}

/* META */
body.single-post .entry-meta, body.single-post .et_post_meta {
    color: var(--rt-muted) !important; font-size: 0.85rem !important; margin-bottom: 16px !important;
    font-family: var(--ff-cond) !important; letter-spacing: 0.3px !important;
}

/* EINSATZ OVERVIEW */
.rhektec-single-overview {
    background: var(--rt-navy); border-radius: var(--rt-radius);
    overflow: hidden; margin-bottom: 16px; box-shadow: var(--rt-shadow-lg);
}
.rhektec-single-head { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.rhektec-eyebrow {
    font-family: var(--ff-cond) !important; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 2.5px; color: var(--rt-red); text-transform: uppercase; margin: 0 0 4px 0; display: block;
}
.rhektec-single-head h3 {
    font-family: var(--ff-display); font-size: 1.4rem; color: #fff;
    letter-spacing: 1px; margin: 0; line-height: 1;
}
.rhektec-overview-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 440px) { .rhektec-overview-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 680px) { .rhektec-overview-grid { grid-template-columns: 1fr 1fr 1fr; } }
.rhektec-overview-item {
    padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
}
.rhektec-overview-item:nth-child(2n) { border-right: none; }
@media (min-width: 680px) {
    .rhektec-overview-item:nth-child(2n) { border-right: 1px solid rgba(255,255,255,0.06); }
    .rhektec-overview-item:nth-child(3n) { border-right: none; }
}
.rhektec-overview-key {
    font-family: var(--ff-cond); font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 3px;
}
.rhektec-overview-value { font-size: 0.9rem; font-weight: 600; color: #fff; }

.rhektec-single-content {
    background: var(--rt-white); border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius); padding: 18px; box-shadow: var(--rt-shadow);
    font-family: var(--ff-body); font-size: 0.95rem; line-height: 1.75; color: #374151;
}
@media (min-width: 768px) { .rhektec-single-content { padding: 28px; } }

/* CONTENT STYLES */
body.single-post .entry-content {
    background: var(--rt-white); border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius); padding: 18px;
    font-family: var(--ff-body); font-size: 0.95rem; line-height: 1.75; color: #374151;
    box-shadow: var(--rt-shadow);
}
@media (min-width: 768px) { body.single-post .entry-content { padding: 28px; } }
body.single-post .entry-content p { margin-bottom: 1.2rem; }
body.single-post .entry-content p:last-child { margin-bottom: 0; }
body.single-post .entry-content img {
    width: 100% !important; max-width: 100% !important; height: auto !important;
    border-radius: var(--rt-radius-sm); margin: 1rem 0; box-shadow: var(--rt-shadow);
    cursor: pointer; transition: transform 0.2s;
}
body.single-post .entry-content img:hover { transform: scale(1.01); }
body.single-post .entry-content a { color: var(--rt-red); text-decoration: underline; text-underline-offset: 2px; }
body.single-post .entry-content a:hover { color: var(--rt-red-dark); }
