:root {
    --theme-color: #FF6033;
    --theme-color-rgb: 255, 96, 51;
}
html,
body {
    position: relative;
    padding: 0;
    margin: 0;
}
body {
    font-size: 16px;
    line-height: 1.5;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    background: #000;
    color: #fff;
}
a {
    color: var(--theme-color);
}
h1 {
    font-size: 3em;
    line-height: 1.2;
}
h2 {
    font-size: 2.5em;
    line-height: 1.25;
    margin: 0.75em 0 0.5em;
}

main {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 40px;
    box-sizing: border-box;

}
header, section, footer {
    margin: 40px 0;
}
/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.avatar {
    border: 4px solid #444;
    border-radius: 50%;
    width: 20%;
    margin-right: 40px;
    height: auto;
}

.header-content {
    width: 100%;
    min-width: 0;
}
header h1 {
    line-height: 1.2;
    margin: 0;
}
.subtitle {
    margin: 1em 0;
}
.subtitle span.dot {
    font-size: 14px;
    opacity: 0.5;
}
.subtitle span[role="img"] {
    vertical-align: middle;
    font-size: 1.5em;
}
.contacts a {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-flex;
    font-size: 14px;
    align-items: center;
    vertical-align: middle;
}
.contacts a:hover {
    background: rgba(255,255,255,0.125);
}
.contacts a:active {
    background: rgba(255,255,255,0.075);
}
.contacts .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    margin-right: 8px;
}
.contacts img {
    max-width: 100%;
    max-height: 100%;
}

/* Widgets */
.branding {
    margin-top: -0.25em;
    margin-bottom: 2em;
}
.widget {
    --preloader-color: var(--theme-color);
}
.widget + .widget {
    margin-top: 16px;
}
codersrank-summary {
    --bg-color: transparent;
    --badge-bg-color: #161616;
    --badge-text-color: #fff;
    --badges-padding: 0px;
    --badge-padding: 8px;
    --badge-margin: 16px;
    --badge-border-radius: 8px;
    --badge-rank-font-size: 16px;
    --badge-technology-font-size: 18px;
    --badge-location-font-size: 16px;
    --badge-icon-size: 32px;
    --badge-border: 1px solid rgba(0, 0, 0, 0.1);
    --badge-box-shadow: none;
}
.activity-widget {
    padding: 8px;
    border-radius: 8px;
    background: #161616;
}
codersrank-activity {
    --bg-color-0: #111;
    --bg-color-1: rgba(var(--theme-color-rgb), 0.25);
    --bg-color-2: rgba(var(--theme-color-rgb), 0.5);
    --bg-color-3: rgba(var(--theme-color-rgb), 0.75);
    --bg-color-4: rgba(var(--theme-color-rgb), 1);
    --label-text-color: rgba(255, 255, 255, 0.54);
    --svg-width: 1080px;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    padding-top: 100px;
    margin-top: -100px;
}
codersrank-skills-chart {
    --label-text-color: rgba(255, 255, 255, 0.54);
    --chart-bg-color: #161616;
    --chart-border-radius: 8px;
    --axis-bg-color: transparent;
    --label-font-size: 12px;
    overflow: hidden;
}
codersrank-portfolio,
codersrank-work-experience,
codersrank-education {
    --item-bg-color: #161616;
    --item-border-radius: 8px;
    --item-spacing: 16px;
    --item-padding: 16px;
    --logo-size: 64px;
    --tag-bg-color: rgba(255,255,255,0.075);
}
codersrank-portfolio {
    --grid-columns: 2;

    --link-text-color: var(--theme-color);
    --link-bg-color: rgba(255,255,255,0.1);
    --link-hover-bg-color: rgba(255,255,255,0.125);
    --link-active-bg-color: rgba(255,255,255,0.075);
    --link-border-radius: 8px;
    --link-padding: 4px 8px;
    --link-text-transform: none;
    --link-font-weight: 500;
    --link-margin: 8px;
}

/* Footer */
footer {
    text-align: center;
    opacity: 0.55;
}

@media (max-width: 768px) {
    header {
        display: block;
    }
    .avatar {
        width: 160px;
        margin-bottom: 20px;
    }
    codersrank-portfolio,
    codersrank-work-exprerience,
    codersrank-education {
        --grid-columns: 1;
        --item-spacing: 8px;
        --logo-size: 48px;
    }
}
@media (max-width: 640px) {
    main {
        padding-left: 20px;
        padding-right: 20px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }

    .widget + .widget {
        margin-top: 8px;
    }
    codersrank-summary {
        --badge-margin: 8px;
    }
    codersrank-activity {
        --svg-width: 640px
    }
}
/* === Article & Series Styles === */

.page-header, .prose, .cards-grid, .quick-nav, .highlight {
    background: #111;
    border-radius: 12px;
    padding: 24px 32px;
    box-sizing: border-box;
}

.page-header h1 {
    font-size: 2.2em;
    color: var(--theme-color);
    margin-bottom: 0.25em;
}

.page-header p.muted {
    color: rgba(255,255,255,0.6);
    font-size: 0.95em;
}

.breadcrumbs {
    font-size: 0.9em;
    margin-bottom: 1em;
}
.breadcrumbs a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: var(--theme-color);
}

.prose h2 {
    color: var(--theme-color);
    margin-top: 2em;
    font-size: 1.6em;
}
.prose h3 {
    color: #fff;
    font-size: 1.2em;
    margin-top: 1.2em;
}
.prose p, .prose li {
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}
.prose ul, .prose ol {
    padding-left: 1.2em;
}
.prose strong {
    color: var(--theme-color);
}

/* === Buttons & Links === */
.btn {
    display: inline-block;
    padding: 10px 18px;
    background: var(--theme-color);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.btn:hover {
    background: rgba(var(--theme-color-rgb), 0.85);
}

/* === Cards grid === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.card {
    background: #161616;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}
.card h3 {
    color: var(--theme-color);
}
.card p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95em;
}

/* === Highlight sections === */
.highlight {
    background: rgba(var(--theme-color-rgb), 0.1);
    border: 1px solid rgba(var(--theme-color-rgb), 0.3);
}

/* === Code blocks === */
pre {
    background: #161616;
    border-radius: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    margin: 1em 0;
}
code {
    color: #ff9966;
    font-family: "Fira Code", monospace;
    font-size: 0.95em;
}

/* === Quick navigation === */
.quick-nav {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}
.quick-nav li {
    margin: 0.5em 0;
}
.quick-nav a {
    color: var(--theme-color);
    text-decoration: none;
}
.quick-nav a:hover {
    text-decoration: underline;
}

/* === Responsive layout for articles === */
@media (max-width: 768px) {
    .page-header, .prose, .cards-grid, .highlight {
        padding: 16px 20px;
    }
}

/* main.css */
.btn {
    background:#0b57d0; /* hoher Kontrast */
    color:#fff;
    padding:.6rem .9rem;
    border-radius:.5rem;
    text-decoration:none;
    font-weight:600;
}
.btn:hover { filter:brightness(0.95); }
a { color:#0b57d0; }  /* statt blassgrau */

.avatar {
    display:inline-block;
    width:160px; height:160px; /* muss zu width/height im <img> passen */
    border-radius:50%;
    object-fit:cover;
}
@media (max-width:640px){ .avatar{ width:160px; height:160px; } }

.btn { background:#0b57d0; color:#fff; font-weight:600; } /* WCAG-Kontrast */
a { color:#0b57d0; } /* ebenfalls guter Kontrast */
.meta {
    font-size: .9rem;
    opacity: .9;
    margin-top: .4rem;
}
.meta a {
    color: #0b57d0;
    font-weight: 500;
}

footer .meta {
    font-size: 0.85rem;
    opacity: 0.75;
}
footer .meta a {
    color: #0b57d0;
    font-weight: 500;
}
footer .meta a:hover {
    opacity: 1;
}

.nav-separator {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 1rem 0;
}

.social-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.social-label {
    font-weight: 500;
    margin-right: 0.25rem;
}

.social-bar img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
    font-weight: 500;
}

.primary-nav a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    border-bottom-color: currentColor;
}

.header-separator {
    margin: 1.25rem 0 0.75rem;
    border-top: 1px solid #e5e5e5;
    width: 100%;
}



.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    margin: 0.3rem 0;
}

.footer-meta {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    opacity: 0.85;
}
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9rem;
    color: #555;
}

.site-footer p {
    margin: 0.25rem 0;
}

.footer-main {
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
}

.footer-meta {
    font-size: 0.85rem;
    opacity: 0.85;
}
