/* Peter + Media — Blog-Archiv | Laura Design System */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0a0a0f;
    color: #e2e6ed;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    line-height: 1.6;
    font-size: 0.82rem;
    -webkit-font-smoothing: antialiased;
}

header {
    background: #12131a;
    border-bottom: 1px solid #1e2233;
    padding: 1rem 2rem;
}
.header-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.blog-title {
    color: #e2e6ed;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.15s;
}
.blog-title:hover { color: #60a5fa; }
.blog-subtitle {
    color: #636d83;
    font-size: 0.72rem;
    font-style: italic;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Index */
.archive-info {
    color: #8b95a8;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: #12131a;
    border: 1px solid #1e2233;
    border-radius: 8px;
    line-height: 1.8;
}
.archive-source { margin-top: 0.3rem; font-size: 0.68rem; color: #636d83; }
.archive-source a { color: #636d83; text-decoration: none; border-bottom: 1px solid #3a3f4f; }
.archive-source a:hover { color: #8b95a8; }

.year-group { margin-bottom: 1.5rem; }
.year-header {
    color: #636d83;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1e2233;
    margin-bottom: 0.3rem;
}

.post-link {
    display: grid;
    grid-template-columns: 5rem 1fr;
    grid-template-rows: auto auto;
    gap: 0 0.8rem;
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid #1a1b26;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
a.post-link:hover { background: #161822; }
.post-link.no-content { opacity: 0.5; }
.post-link.no-content .post-title-text { font-weight: 400; }

.post-date {
    color: #636d83;
    font-size: 0.72rem;
    grid-row: 1;
    grid-column: 1;
    padding-top: 0.1rem;
}
.post-title-text {
    color: #e2e6ed;
    font-weight: 600;
    grid-row: 1;
    grid-column: 2;
    transition: color 0.15s;
}
a.post-link:hover .post-title-text { color: #60a5fa; }
.index-cat {
    color: #636d83;
    font-weight: 400;
    font-size: 0.72rem;
}

.post-excerpt {
    color: #636d83;
    font-size: 0.72rem;
    grid-row: 2;
    grid-column: 2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

/* Post */
article.post {
    background: #12131a;
    border: 1px solid #1e2233;
    border-radius: 8px;
    padding: 1.8rem 2rem;
}
.post-meta {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.72rem;
    flex-wrap: wrap;
    align-items: center;
}
.post-meta time { color: #8b95a8; }
.post-categories {
    display: inline-block;
    color: #60a5fa;
    background: #1a2a3a;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

article.post h1 {
    color: #e2e6ed;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.35;
}

.post-content { color: #c8ccd4; line-height: 1.75; }
.post-content p { margin-bottom: 1rem; }
.post-content a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.25);
    transition: color 0.15s, border-color 0.15s;
}
.post-content a:hover { color: #93c5fd; border-bottom-color: #60a5fa; }
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid #1e2233;
    display: block;
}
.post-content blockquote {
    border-left: 3px solid #c084fc;
    padding: 0.6rem 1rem;
    margin: 1rem 0;
    color: #8b95a8;
    background: #0d0e14;
    border-radius: 0 6px 6px 0;
}
.post-content pre, .post-content code {
    background: #0d0e14;
    border: 1px solid #1e2233;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-size: 0.78rem;
    font-family: inherit;
}
.post-content pre { padding: 1rem; overflow-x: auto; margin: 1rem 0; line-height: 1.5; }
.post-content pre code { border: none; padding: 0; background: none; }
.post-content h2, .post-content h3, .post-content h4 { color: #e2e6ed; margin: 1.5rem 0 0.8rem; }
.post-content h2 { font-size: 1.15rem; }
.post-content h3 { font-size: 1rem; }
.post-content ul, .post-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.post-content li { margin-bottom: 0.3rem; }
.post-content iframe, .post-content embed, .post-content object { max-width: 100%; margin: 1rem 0; border-radius: 6px; }

/* Responsive YouTube Embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
    border-radius: 6px;
    border: 1px solid #1e2233;
    background: #0d0e14;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}
.post-content hr { border: none; border-top: 1px solid #1e2233; margin: 1.5rem 0; }

.post-tags {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #1a1b26;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.tag {
    color: #8b95a8;
    background: #161822;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
}

/* Nav */
.post-nav {
    margin-top: 1.5rem;
    padding: 0.8rem 1rem;
    background: #12131a;
    border: 1px solid #1e2233;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
}
.post-nav a { color: #60a5fa; text-decoration: none; padding: 0.3rem 0; transition: color 0.15s; }
.post-nav a:hover { color: #93c5fd; }
.nav-prev { text-align: left; max-width: 35%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-next { text-align: right; max-width: 35%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-index { color: #8b95a8 !important; font-weight: 600; }
.nav-index:hover { color: #c8ccd4 !important; }

footer {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    text-align: center;
    color: #3a3f4f;
    font-size: 0.68rem;
    border-top: 1px solid #1a1b26;
}

@media (max-width: 768px) {
    header { padding: 0.8rem 1rem; }
    main { padding: 1rem; }
    article.post { padding: 1.2rem; }
    .post-link { grid-template-columns: 1fr; }
    .post-date, .post-title-text, .post-excerpt { grid-column: 1; }
    .post-nav { flex-direction: column; align-items: stretch; }
    .nav-prev, .nav-next { max-width: 100%; text-align: left; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #12131a; }
::-webkit-scrollbar-thumb { background: #2a2d3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3f4f; }
::selection { background: rgba(96, 165, 250, 0.25); color: #e2e6ed; }
