/*
Theme Name: Graphite Diagnostic
Version: 1.0.8
Description: Eigenständiges OBD2 Diagnose-Theme für 3663333.info.
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: graphite-diagnostic
*/
:root{--bg:#14191e;--panel:#222b34;--line:#414b55;--orange:#ff9900;--text:#f4f6f8;--muted:#c4cdd5}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.65 system-ui,sans-serif}a{color:var(--orange);text-decoration:none}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ffbd54;outline-offset:3px}img{max-width:100%;height:auto}h1,h2,h3{line-height:1.25;margin:0 0 .7em}h1{font-size:clamp(27px,3vw,42px)}h2{font-size:24px}h3{font-size:19px}.wrap{width:min(1440px,94%);margin:auto}.site-header{background:linear-gradient(#30363b,#11161a);border-bottom:1px solid var(--line)}.head{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:18px 0;flex-wrap:wrap}.brand{font-size:30px;font-weight:850;color:white;line-height:1.1}.brand span{color:var(--orange)}.brand small{display:block;font-size:13px;font-weight:500;color:var(--muted);margin-top:5px}nav ul{list-style:none;padding:0;margin:0;display:flex;gap:20px;flex-wrap:wrap}nav a{color:white;font-weight:600}nav li{position:relative}nav .sub-menu{display:none;position:absolute;background:#222b34;padding:12px;min-width:180px;z-index:5}nav li:hover>.sub-menu,nav li:focus-within>.sub-menu{display:block}.hero{background:linear-gradient(90deg,#101419 0%,#101419 36%,transparent 85%),url(assets/diagnostic.svg) right center/auto 100% no-repeat,#101419;padding:45px 28px;border:1px solid var(--line);border-radius:9px;margin:22px 0 16px}.hero p{font-size:19px;max-width:650px}.searchform{display:flex;max-width:760px;gap:0;margin:20px 0 0}.searchform input{min-width:0;flex:1;padding:15px;border:1px solid var(--orange);border-radius:6px 0 0 6px;font:inherit;color:#15191d;background:white}.searchform button{border:0;background:#ff9900;color:#171717;font-weight:750;padding:12px 24px;border-radius:0 6px 6px 0;cursor:pointer}.groups{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0}.group,.panel{background:linear-gradient(150deg,#303942,#1c242c);border:1px solid var(--line);border-radius:9px;padding:20px}.group{text-align:center;color:white;display:block}.group svg{width:54px;height:54px;display:block;margin:0 auto 10px;color:var(--orange)}.group strong{display:block;font-size:23px}.group small{color:var(--muted)}.columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.panel h2{border-bottom:1px solid var(--line);padding-bottom:12px}.entry-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);color:white}.entry-row img{width:110px;aspect-ratio:16/10;object-fit:cover;border-radius:4px}.entry-row strong{color:var(--orange)}.entry-row h3{margin:0;font-size:17px}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;margin:24px 0}.article{background:#202830;padding:clamp(18px,3vw,36px);border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}.article h2,.article h3{margin-top:1.4em}.article table{border-collapse:collapse;width:100%}.article td,.article th{border:1px solid var(--line);padding:8px}.article figure{max-width:100%;margin:1em 0;overflow:auto}.article .wp-block-latest-posts{list-style:none;padding:0}.article a{text-decoration:underline}.archive{padding:24px 0}.archive-card{padding:18px 0;border-bottom:1px solid var(--line)}.archive-card h2{font-size:23px}.archive-card img{width:180px;float:left;margin:0 18px 10px 0}.archive-card:after{content:'';display:block;clear:both}.pagination{margin:25px 0}.page-numbers{padding:8px}.site-footer{border-top:1px solid var(--line);background:#101419;padding:28px 0;margin-top:30px}.site-footer nav{margin-top:12px}.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.widget{margin-bottom:24px}.widget ul{padding-left:20px}.meta{color:var(--muted);font-size:14px}.custom-logo{max-width:220px;max-height:70px;object-fit:contain}@media(max-width:800px){.groups{grid-template-columns:repeat(2,1fr)}.columns,.content-layout{grid-template-columns:1fr}.hero{padding:25px 18px;background-size:auto 85%;background-position:right bottom}.hero p{max-width:80%}.head{gap:14px}nav ul{gap:12px}.searchform button{padding:10px 14px}.panel{padding:16px}}@media(max-width:420px){.group{padding:12px}.group strong{font-size:19px}.entry-row img{width:75px}.hero{background-image:linear-gradient(90deg,#101419e8,#10141999),url(assets/diagnostic.svg)}}

/* Shared header and centered layouts */
.wrap.content-layout{width:min(1440px,94%);margin:24px auto;grid-template-columns:minmax(0,1fr) minmax(0,300px)}
.wrap.content-layout>*{min-width:0}.wrap.archive{margin-inline:auto}.head>div{min-width:0}.head nav{min-width:0;max-width:100%;flex:1 1 420px}.head nav>ul{justify-content:flex-end;overflow-wrap:anywhere}.hero{background-size:cover;background-position:center right;background-repeat:no-repeat;min-height:280px;display:flex;flex-direction:column;justify-content:center}.hero-title{font-size:clamp(27px,3vw,42px);font-weight:700;line-height:1.25;margin:0 0 .7em}.hero p{margin:0 0 4px}.hero .searchform{width:100%}.widget input{max-width:100%}.widget form{max-width:100%}.widget{overflow-wrap:anywhere}
@media(max-width:800px){.wrap.content-layout{grid-template-columns:minmax(0,1fr)}.head nav>ul{justify-content:flex-start}.hero{min-height:250px;background-position:70% center}.hero p{max-width:100%}.hero-title,.hero h1{max-width:100%;text-shadow:0 2px 6px #000}.hero p{text-shadow:0 2px 5px #000}}

/* Footer: accessible back-to-top link */
.gd-footer-layout{display:flex;align-items:center;justify-content:space-between;gap:20px}.gd-footer-layout>div{min-width:0}.gd-back-top{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;background:var(--orange);color:#14191e;border-radius:7px}.gd-back-top:hover{background:#ffb340;color:#14191e;text-decoration:none}html{scroll-behavior:smooth}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Optional footer background; keep links readable. */
.site-footer.gd-footer-image{background-size:cover;background-position:center;background-repeat:no-repeat;min-height:220px;display:flex;align-items:flex-end;padding:30px 0}.gd-footer-image .gd-footer-layout>div{background:rgba(10,14,18,.8);padding:14px 20px;border-radius:7px}.gd-footer-image .gd-footer-layout{margin:0 auto}@media(max-width:600px){.site-footer.gd-footer-image{min-height:180px;padding:20px 0}.gd-footer-image .gd-footer-layout>div{padding:10px}}

/* Full-width panoramic footer, preserve artwork proportions. */
.site-footer.gd-footer-image{background-size:100% 100%,100% auto;background-position:center,center;background-color:#080b0e;min-height:clamp(220px,16.5vw,360px)}
@media(max-width:800px){.site-footer.gd-footer-image{background-size:100% 100%,auto 100%;background-position:center,75% center;min-height:180px}}
