/* ============================================
   KIRBY REISEBLOG – Warm & Reisetagebuch-Stil
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap");

/* === VARIABLEN === */
:root {
    --color-bg: #faf7f2;
    --color-surface: #ffffff;
    --color-primary: #8b5e3c;
    --color-primary-dk: #6b4428;
    --color-accent: #c8845a;
    --color-text: #2c2016;
    --color-muted: #7a6a5a;
    --color-border: #e8ddd0;
    --color-tag-bg: #f0e8df;

    --font-serif: "Playfair Display", Georgia, serif;
    --font-sans: "Lato", Arial, sans-serif;

    --radius: 8px;
    --shadow: 0 2px 16px rgba(139, 94, 60, 0.1);
    --max-w: 1100px;
    --gap: 2rem;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.8;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--color-primary-dk);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}

/* === LAYOUT === */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === HEADER === */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
}

.site-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--color-muted);
    font-style: italic;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-list .active a,
.nav-list a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, #f5ede3 0%, #eedfc8 100%);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-style: italic;
    color: var(--color-primary-dk);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--color-muted);
    font-weight: 300;
}

/* === SECTIONS === */
.latest-posts {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
    font-style: italic;
    color: var(--color-primary);
}

/* === POST GRID === */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--gap);
    margin-bottom: 3rem;
}

/* === POST CARD === */
.post-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(139, 94, 60, 0.15);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    overflow: hidden;
    aspect-ratio: 3/2;
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-body {
    padding: 1.25rem;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.post-card-location {
    font-style: italic;
}

.post-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    line-height: 1.3;
}

.post-card-intro {
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.post-card-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.03em;
}

/* === TAGS === */
.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    background: var(--color-tag-bg);
    color: var(--color-muted);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 400;
    transition:
        background 0.2s,
        color 0.2s;
}

.tag:hover,
.tag.active {
    background: var(--color-primary);
    color: #fff;
}

/* === PAGE HEADER === */
.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-style: italic;
    color: var(--color-primary-dk);
}

/* === SINGLE POST === */
.post-hero {
    max-height: 520px;
    overflow: hidden;
}

.post-hero-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.post-header {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-primary-dk);
}

.post-intro {
    font-size: 1.15rem;
    color: var(--color-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* === POST CONTENT === */
.post-content {
    max-width: 760px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

.post-content h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    font-style: italic;
    color: var(--color-primary);
}

.post-content h3 {
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
    width: 100%;
    box-shadow: var(--shadow);
}

.post-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--color-tag-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--color-muted);
}

/* === POST GALLERY === */
.post-gallery {
    max-width: 760px;
    margin: 2rem auto 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.post-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.25s;
}

.post-gallery img:hover {
    transform: scale(1.02);
}

.post-gallery img:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
    height: 360px;
}

/* === POST NAVIGATION === */
.post-navigation {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-nav-prev,
.post-nav-next {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.back-link {
    display: inline-block;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* === BUTTON === */
.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition:
        background 0.2s,
        transform 0.15s;
}

.btn-primary:hover {
    background: var(--color-primary-dk);
    color: #fff;
    transform: translateY(-1px);
}

.all-posts-link {
    text-align: center;
}

/* === FOOTER === */
.site-footer {
    background: var(--color-text);
    color: #c8b8a8;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-about {
    max-width: 500px;
    margin: 0 auto 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-copy {
    font-size: 0.78rem;
    color: #7a6a5a;
}

/* === NO POSTS === */
.no-posts {
    text-align: center;
    color: var(--color-muted);
    padding: 3rem 0;
    font-style: italic;
}

/* === PAGE CONTENT === */
.page-content {
    padding: 2rem 0;
    max-width: 760px;
}

/* === SITE MAIN === */
.site-main {
    min-height: 60vh;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        gap: 0;
    }

    .nav-list.open {
        display: flex;
    }
    .nav-list li {
        border-bottom: 1px solid var(--color-border);
    }
    .nav-list li:last-child {
        border-bottom: none;
    }
    .nav-list a {
        display: block;
        padding: 0.75rem 0;
    }

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

    .hero {
        padding: 3rem 0;
    }

    .post-hero-img {
        height: 280px;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-gallery {
        grid-template-columns: 1fr;
    }

    .post-gallery img,
    .post-gallery img:first-child:nth-last-child(odd) {
        height: 240px;
        grid-column: auto;
    }
}
