/* HÖNIGTÖNIG MASTER CSS
   Stil: Werkstatt-Flair, stabilisiertes Layout, kompakte Listen
*/

:root {
    --bg: #fdf5e6;
    --surface: #faebd7; 
    --border: #d2b48c;
    --text: #4b3621;
    --accent: #d2691e;
    --honey: #ffb300;
    --link: #8b4513;
    --font-main: 'Crimson Text', 'Georgia', serif;
    --font-hand: 'Brush Script MT', cursive;
    --font-mono: 'Courier New', Courier, monospace;
}

/* 1. Global & Stabilität */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Verhindert horizontales Verschieben */
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 2px 2px, rgba(75,54,33,0.03) 1px, transparent 0);
    background-size: 30px 30px;
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.5;
}

header, main, footer { 
    width: 100%; 
    max-width: 800px; /* Zentrierte Schiene */
    margin: 0 auto; 
    padding: 1rem; 
    box-sizing: border-box;
}

/* 2. Header & Logo (Neutral & Zentriert) */
header {
    text-align: center;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 3px double var(--border);
}

.logo {
    display: block;
    width: 100px;
    height: auto;
    margin-bottom: 0.2rem;
    filter: none; /* Keine Abdunklung */
    mix-blend-mode: normal;
}

header h1 {
    font-family: var(--font-hand);
    font-size: 3.2rem;
    color: var(--accent);
    margin: 0;
    line-height: 1;
}

/* 3. Index-Liste (Kompakt) */
#index-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.post-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0; /* Kompakt */
    border-bottom: 1px solid rgba(210, 180, 140, 0.3);
    gap: 12px;
}

.post-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    min-width: 90px;
    flex-shrink: 0;
}

.post-item a {
    font-size: 1.1rem;
    color: var(--link);
    text-decoration: none;
}

.post-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.pin-icon {
    font-size: 0.9rem;
    margin-right: 2px;
}

/* 4. Mediathek (Saubere Quadrate) */
.media-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 1rem; 
    padding: 1rem 0;
}

.media-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 3px 3px 0px var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.media-preview {
    width: 100%;
    aspect-ratio: 1 / 1; /* Quadratisch */
    overflow: hidden;
    background: #eee;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kein Verzerren */
}

.media-info {
    padding: 6px;
    font-size: 0.8rem;
}

.file-name {
    font-weight: bold;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 5. Footer & Portrait */
footer {
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-bottom: 3rem;
}

.portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 0.5rem;
}

/* 6. Mobile Fixes */
@media (max-width: 600px) {
    header h1 { font-size: 2.4rem; }
    .post-date { min-width: 80px; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
