/*
Theme Name: IT Portfolio
Theme URI: https://example.com/
Author: IT Portfolio
Description: Schlankes, responsives WordPress-Theme für eine statische IT-Informationswebsite mit Sicherheitsmeldungen und Wetteranzeige.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: it-portfolio
*/

:root {
    --bg: #050b14;
    --bg-soft: #081429;
    --bg-card: #09152a;
    --border: #123d5a;
    --accent: #00d9f5;
    --accent-hover: #65edff;
    --text: #edf5ff;
    --muted: #a9bdd2;
    --muted-dark: #7890aa;
    --radius: 4px;
    --content-width: 1080px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
}

.container {
    width: min(var(--content-width), calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 11, 20, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.site-logo {
    max-width: 180px;
    max-height: 46px;
}

.site-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-description {
    display: block;
    color: var(--muted-dark);
    font-size: 11px;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: var(--muted);
    font-size: 13px;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--accent);
    padding: 8px 12px;
}

.hero {
    padding: 76px 0 64px;
    text-align: center;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(16, 48, 91, 0.35),
            transparent 68%
        );
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 700;
}

.hero h1 {
    max-width: 850px;
    margin: 12px auto 16px;
    font-size: clamp(30px, 4.5vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #031019;
}

.button-primary:hover {
    background: var(--accent-hover);
    color: #031019;
}

.section {
    padding: 48px 0;
}

.section-heading {
    margin-bottom: 24px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.3;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #09152a, #071020);
}

.experience-panel {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    align-items: center;
    padding: 28px;
}

.experience-number {
    color: var(--accent);
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.experience-label {
    margin-top: 8px;
    color: var(--muted-dark);
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.experience-copy h2 {
    margin: 0 0 10px;
    font-size: 19px;
}

.experience-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

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

.skill-card {
    min-height: 145px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition:
        border-color var(--transition),
        transform var(--transition),
        background var(--transition);
}

.skill-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: #0b1b32;
}

.skill-icon {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 23px;
}

.skill-card h3 {
    margin: 0 0 7px;
    font-size: 14px;
}

.skill-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

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

.info-panel {
    min-width: 0;
    padding: 22px;
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
}

.panel-heading span {
    color: var(--accent);
}

.news-list {
    display: grid;
    gap: 0;
}

.news-item {
    padding: 13px 0;
    border-bottom: 1px solid rgba(18, 61, 90, 0.65);
}

.news-item:first-child {
    padding-top: 0;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-date {
    display: block;
    margin-bottom: 5px;
    color: var(--muted-dark);
    font-size: 11px;
}

.news-item a {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.news-item a:hover {
    color: var(--accent);
}

.news-description {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.weather-icon {
    font-size: 40px;
    line-height: 1;
}

.weather-temperature {
    color: var(--accent);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

.weather-description {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.weather-location {
    color: var(--muted-dark);
    font-size: 11px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.weather-detail {
    padding: 12px;
    border: 1px solid var(--border);
    background: rgba(5, 11, 20, 0.45);
}

.weather-detail span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.weather-detail strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 14px;
}

.updated-at {
    margin: 14px 0 0;
    color: var(--muted-dark);
    font-size: 10px;
}

.contact-section {
    padding: 56px 0 64px;
    text-align: center;
}

.contact-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 13px;
}

.contact-section .button {
    margin-top: 22px;
}

.page-content {
    min-height: 55vh;
    padding: 64px 0 80px;
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
}

.entry-content {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text);
}

.entry-content h2 {
    margin-top: 36px;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content img {
    border: 1px solid var(--border);
}

.entry-content blockquote {
    margin-inline: 0;
    padding: 12px 20px;
    border-left: 2px solid var(--accent);
    background: var(--bg-soft);
}

.entry-content input,
.entry-content textarea,
.entry-content select {
    max-width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    padding: 10px;
    border: 1px solid var(--border);
    text-align: left;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #040912;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    color: var(--muted-dark);
    font-size: 11px;
}

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

.footer-links a {
    color: var(--muted);
}

.notice {
    padding: 12px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 60px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        width: 100%;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding-top: 8px;
    }

    .site-nav li a {
        display: block;
        padding: 10px 0;
        border-top: 1px solid rgba(18, 61, 90, 0.6);
    }

    .hero {
        padding: 54px 0 44px;
    }

    .section {
        padding: 36px 0;
    }

    .experience-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 42px 0 60px;
    }
}

@media (max-width: 440px) {
    .container {
        width: min(var(--content-width), calc(100% - 28px));
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        min-height: 0;
    }

    .info-panel {
        padding: 16px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

