/*
 * Theme Name: Gravarty Theme
 * Theme URI: https://gravarty.com
 * Description: Custom dark theme based on the original Gravarty.com design
 * Version: 1.0
 * Author: Gravarty
 * Author URI: https://gravarty.com
*/

/* =====================
   RESPONSIVE VIEWPORT
   ===================== */

html {
    -webkit-text-size-adjust: 100%;
}

html, body {
    min-width: 320px;
    overflow-x: auto;
}

/* =====================
   CSS Variablen
   ===================== */

:root {
    --bg-dark:#2e2e2e;
    --bg-darker:#222;
    --border-dark:#444;
    --border-soft:#555;
    --text-main:#f0f0f0;
    --text-muted:#aaa;
    --neon:#2196F3;
    --accent:#AFEEEE;
}

/* =====================
   Grundlayout
   ===================== */

* { box-sizing:border-box; }

body,
input,
select,
textarea,
button,
.button {
    font-family:Tahoma,Verdana,Arial,sans-serif;
}

body {
    padding:0 0 20px;
    margin:0;
    background-image:url('images/linen.png');
    background-attachment:fixed;
    background-color:#050806;
    text-align:center;
    color:var(--text-main);
    font-size:13px;
    line-height:1.55;
}

a {
    color:var(--text-main);
    font-weight:bold;
    text-decoration:none;
}

a:hover { color:var(--accent); }

h1,h2,h3,h4,h5,h6 { color:var(--text-main); }

h1 {
    margin-top:30px;
    position:relative;
    left:50px;
    text-align:left;
    font-size:24px;
}

p { line-height:1.6; }

img {
    max-width:100%;
    height:auto;
}

/* =====================
   Top Bar
   ===================== */

.top-bar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px;
    color:#fff;
    font-size:13px;
    border-bottom:1px solid var(--border-dark);
}

.top-bar-welcome { flex:1; }
.top-bar-welcome strong { color:var(--accent); }

@media (max-width:1053px){
    .top-bar-welcome{display:none;}
}

.top-bar-actions {
    margin-left:auto;
    display:flex;
    flex-wrap:wrap;
}

.top-bar-actions .button { margin-left:8px; }

.button-icon {
    width:16px;
    height:16px;
    vertical-align:middle;
    margin-right:6px;
    display:inline-block;
    position:relative;
    top:-1px;
}

/* =====================
   Seitencontainer
   ===================== */

.site-container {
    width:90%;
    max-width:1400px;
    margin:0 auto;
    background:rgba(37,37,37);
    text-align:left;
    border:1px solid #06121e;
    border-radius:12px;
    padding:2px;
    box-shadow:
    0 0 0 1px #06121e,
    0 0 0 1px #cdddf6 inset,
    0 0 0 1px #67859d inset,
    0 0 25px rgba(6,18,30,0.6);
}

/* =====================
   Header & Logo
   ===================== */

.site-header { position:relative; clear:both; }

.site-logo {
    text-align:center;
    padding:20px 0;
}

.site-logo img {
    display:block;
    width:50%;
    margin-left:auto;
    margin-right:auto;
}

/* =====================
   Hauptlayout
   ===================== */

.main-wrapper {
    display:flex;
    align-items:stretch;
    flex-wrap:nowrap;
}

/* =====================
   Navigation Links
   ===================== */

.sidebar-left {
    width:140px;
    flex:0 0 140px;
    font-size:12px;
    background-color:#121212;
    border-right:1px solid var(--border-dark);
    border-bottom:1px solid var(--border-dark);
    padding-bottom:10px;
}

.navi_header {
    font-weight:bold;
    letter-spacing:.5px;
    padding:5px 0 5px 10px;
    background-color:#252525;
}

.navi_sub,
.navi_content {
    padding:5px 0;
    position:relative;
}

.navi_sub a,
.navi_content a {
    display:block;
    padding:2px 10px;
    line-height:1.6;
    font-weight:normal;
    position:relative;
    z-index:2;
    margin:0;
    color:var(--text-main);
}

.navi_sub a::before,
.navi_content a::before {
    content:'';
    position:absolute;
    top:0;
    left:-1px;
    right:1px;
    bottom:0;
    z-index:-1;
    background-color:var(--accent);
    opacity:0;
}

.navi_sub a:hover::before,
.navi_content a:hover::before { opacity:1; }

.navi_sub a:hover,
.navi_content a:hover {
    color:#000;
    text-decoration:none;
}

.navi_sub a.current-menu-item,
.navi_content a.current-menu-item {
    color:var(--neon);
    font-weight:bold;
}

.navi_sub i,
.navi_content i {
    display:inline-block;
    width:16px;
    text-align:center;
    margin-right:4px;
}

/* =====================
   Navigation Rechts
   ===================== */

.sidebar-right {
    width:140px;
    flex:0 0 140px;
    font-size:12px;
    background:linear-gradient(-90deg,rgba(0,0,0,1) 25%,rgba(37,37,37,0) 100%);
    border-left:1px solid var(--border-dark);
    border-bottom:1px solid var(--border-dark);
    padding:0;
}

/* =====================
   Content Bereich
   ===================== */

.site-content {
    flex:1 1 auto;
    min-height:1100px;
}

.content-wrapper {
    max-width:95%;
    margin:0 auto;
    padding:2px 27px;
}

/* =====================
   WordPress Posts
   ===================== */

article.post,
article.page {
    width:100%;
    margin:15px 0;
    padding:2% 2% 0;
    background:var(--bg-dark);
    border-top:1px solid var(--border-dark);
    border-bottom:1px solid var(--border-dark);
    border-radius:4px;
}

.entry-header { padding:18px 0 0 0; }

.entry-body { padding:0 22px 18px 22px; }

h1.entry-title {
    font-size:18px;
    letter-spacing:.3px;
    margin:0 0 10px;
}

.entry-title a { color:var(--text-main); }
.entry-title a:hover { color:var(--accent); }

.entry-meta {
    font-size:10.5px;
    color:var(--text-muted);
    margin:0 0 15px;
}

.entry-content p {
    margin:0 0 12px;
    line-height:1.6;
}

.entry-footer {
    font-size:11px;
    color:var(--text-muted);
    margin-top:15px;
    padding-top:10px;
    padding-bottom:10px;
    border-top:1px solid var(--border-dark);
}

/* =====================
   YouTube Embed
   ===================== */

.wp-block-embed iframe {
    display:block;
    margin-left:auto;
    margin-right:auto;
}

/* Featured Image */

.post-thumbnail { margin-bottom:15px; }

.post-thumbnail img {
    display:block;
    width:100%;
    height:auto;
    border-radius:4px;
}

/* =====================
   Widgets
   ===================== */

.widget { margin-bottom:20px; }

.widget-title {
    font-weight:bold;
    padding:7px 0 7px 10px;
    background:#000;
    background:linear-gradient(0deg,rgba(0,0,0,1) 0%,rgba(0,0,0,1) 50%,rgba(40,40,40,1) 50%,rgba(130,130,130,1) 100%);
    margin:0 0 10px;
}

.widget ul {
    list-style:none;
    padding:3px 0 10px;
    margin:0;
}

.widget li {
    padding:2px 10px;
    line-height:1.6;
}

.widget a {
    color:#ffffff;
    color:var(--text-main);
    font-weight:normal;
}

.widget a:hover {
    color:#ff0000;
    color:var(--accent);
}

/* =====================
   Buttons & Forms
   ===================== */

input,select,textarea {
    font-size:12px;
    color:var(--text-main);
    background:#333;
    border:1px solid var(--border-soft);
    padding:6px;
}

textarea {
    width:100%;
    min-height:100px;
}

button,
input[type="submit"],
input[type="button"],
.button {
    color:var(--text-main);
    background-color:var(--border-soft);
    border:1px solid var(--border-soft);
    padding:4px 8px;
    cursor:pointer;
    font-size:12px;
    border-radius:4px;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover {
    background-color:#666;
}

/* =====================
   Tables
   ===================== */

table {
    width:100%;
    border-collapse:collapse;
    background:var(--bg-dark);
    color:var(--text-main);
}

table td,
table th {
    background:var(--bg-dark);
    border:1px solid var(--border-dark);
    padding:8px;
    font-size:12px;
}

table th {
    background:#333;
    font-weight:bold;
}

/* =====================
   Footer
   ===================== */

.site-footer {
    text-align:center;
    font-size:11px;
    color:var(--text-muted);
    border-top:1px solid var(--border-dark);
}

/* =====================
   WordPress Core
   ===================== */

.alignleft { float:left; margin:0 15px 15px 0; }
.alignright { float:right; margin:0 0 15px 15px; }
.aligncenter { display:block; margin-left:auto; margin-right:auto; }

.wp-caption { max-width:100%; }

.wp-caption-text {
    font-size:11px;
    color:var(--text-muted);
    text-align:center;
    padding:5px 0;
}

.screen-reader-text {
    clip:rect(1px,1px,1px,1px);
    position:absolute!important;
    height:1px;
    width:1px;
    overflow:hidden;
}

/* =====================
   Navigation Rechts Alt
   ===================== */

.navi2 {
    width:140px;
    flex:0 0 140px;
    font-size:12px;
    background-color:#121212;
    border-left:1px solid var(--border-dark);
    border-bottom:1px solid var(--border-dark);
    padding:0;
}

/* =====================
   YouTube Stats
   ===================== */

#youtube-stats { padding:5px 10px; }

#youtube-stats p {
    padding:5px 0;
    color:#666;
    font-size:13px;
    text-align:center;
}

.stat-item { padding:0; text-align:left; }

.stat-label {
    font-size:13px;
    font-weight:bold;
    line-height:1.4;
    color:#fff;
    margin-bottom:2px;
    display:inline-block;
}

.stat-item i {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-right:4px;
}

.stat-value {
    font-size:13px;
    font-weight:500;
    line-height:1.4;
    color:#fff;
}

/* =====================
   Latest Videos Sidebar
   ===================== */

#latest-videos { padding:10px; }

#latest-videos p {
    padding:5px 0;
    color:#666;
    font-size:13px;
}

.video-item {
    margin-bottom:0;
    padding-bottom:15px;
}

.video-item:last-child {
    border-bottom:none;
    margin-bottom:0;
    padding-bottom:0;
}

.video-thumbnail {
    width:100%;
    margin-bottom:8px;
    border-radius:4px;
    overflow:hidden;
}

.video-thumbnail img {
    width:100%;
    height:auto;
    display:block;
    transition:transform .2s ease;
}

.video-info { padding:0 2px; }

.video-title {
    font-size:13px;
    font-weight:500;
    line-height:1.4;
    margin:0 0 5px;
    max-height:2.8em;
    overflow:hidden;
    text-overflow:ellipsis;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.video-title a {
    color:#ffffff;
    text-decoration:none;
}

.video-title a:hover { color:#AFEEEE; }

.video-date {
    font-size:11px;
    color:#999;
}

/* FORCE TITLE LEFT BLOCK UNCHANGED */

.entry-title, h1.entry-title {
    margin:0 0 10px 0 !important;
    padding:0 !important;
    text-indent:0 !important;
}

.entry-header h1,
.entry-header .entry-title,
.entry-header .entry-meta {
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    padding-left:22px !important;
    text-indent:0 !important;
    position:relative !important;
    left:0 !important;
}

.entry-header .entry-title { margin-bottom:10px !important; }
.entry-header .entry-meta { margin-bottom:15px !important; }

.entry-header h1 {
    font-weight:bold !important;
    line-height:normal !important;
}

.entry-header,
.post .entry-header,
article .entry-header {
    padding:18px 0 0 22px !important;
}

.entry-header h1,
.entry-header .entry-title { padding-left:0 !important; }

.entry-header .entry-meta { padding-left:0 !important; }
