/*
Theme Name: Adventure & Lifestyle
Theme URI: https://earthlost.eu
Author: Erich Hartl
Description: Ein maßgeschneidertes, auf Performance getrimmtes WordPress-Theme im "Massively"-Stil für Motorradtouren, Klettersteige und Reisen.
Version: 2.0.0
Tags: dark, responsive-layout, photography, blog, grid-layout
Text Domain: adventure
*/

/* ── Reset & Variables ─────────────────────────────────── */

:root {
    --bg-color: #1e252d;
    --bg-surface: #242d37;
    --bg-card: #2a343f;
    --text-color: #e0e4e8;
    --text-muted: rgba(255, 255, 255, 0.45);
    --accent-color: #18bfef;
    --accent-hover: #4dd4f7;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Source Sans 3', 'Source Sans Pro', Helvetica, Arial, sans-serif;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.5);
    --radius: 4px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

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

p {
    margin: 0 0 1.5rem 0;
}

/* ── Layout Wrapper ────────────────────────────────────── */

#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0;
}

/* ── Hero / Intro ──────────────────────────────────────── */

#intro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 6rem 2rem;
    overflow: hidden;
}
#intro .hero-bg {
    position: absolute;
    inset: 0;
    background-color: #1a2128;
    background-image: url('assets/img/hero-default.jpg');
    background-size: cover;
    background-position: center center;
    z-index: 0;
}
#intro .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 37, 45, 0.15) 0%,
        rgba(30, 37, 45, 0.4) 50%,
        rgba(30, 37, 45, 0.95) 85%,
        rgba(30, 37, 45, 1) 100%
    );
}
#intro .hero-content {
    position: relative;
    z-index: 1;
    max-width: 50rem;
}
#intro h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
#intro .tagline {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: clamp(0.85rem, 2vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
    max-width: 40rem;
}
#intro .scroll-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    transition: all var(--transition);
    animation: bounceArrow 2s infinite;
    text-decoration: none;
}
#intro .scroll-arrow:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(4px);
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ── Site Header (Logo) ────────────────────────────────── */

#header {
    text-align: center;
    padding: 2.5rem 2rem 0;
}
#header .logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    border: none;
    text-decoration: none;
}
#header .logo:hover {
    color: var(--accent-color);
}

/* ── Navigation ────────────────────────────────────────── */

#nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 1.5rem 0 0;
    padding: 0 2rem;
}
#nav ul.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
#nav ul.links li {
    padding: 0;
}
#nav ul.links li a {
    display: block;
    padding: 1rem 1.3rem;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition), background-color var(--transition);
    text-decoration: none;
}
#nav ul.links li.current-menu-item a,
#nav ul.links li.current_page_item a,
#nav ul.links li.current-menu-ancestor a,
#nav ul.links li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.04);
}

/* Hamburger Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 1.4rem;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    line-height: 1;
    border-radius: var(--radius);
}
.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ── Main Content ──────────────────────────────────────── */

#main {
    flex-grow: 1;
    padding: 4rem 3rem 3rem;
}

/* ── Buttons ───────────────────────────────────────────── */

.button {
    display: inline-block;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff !important;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    padding: 0.85rem 2rem;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all var(--transition);
    border-radius: var(--radius);
}
.button:hover {
    background: #fff;
    color: var(--bg-color) !important;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.button.primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.button.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg-color) !important;
}

/* ── Posts Grid ─────────────────────────────────────────── */

.posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.posts article {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.posts article:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.posts article .image-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: none;
    text-decoration: none;
}
.posts article .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.posts article:hover .image-wrap img {
    transform: scale(1.06);
}
.posts article .image-wrap .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2128, #2a343f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.posts article .card-body {
    padding: 2rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}
.posts article .category-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-decoration: none;
    border: none;
}
.posts article .category-badge:hover {
    color: var(--accent-hover);
}
.posts article .date {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}
.posts article .card-body h2 {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.posts article .card-body h2 a {
    color: #fff;
    border: none;
    text-decoration: none;
}
.posts article .card-body h2 a:hover {
    color: var(--accent-color);
}
.posts article .excerpt {
    color: var(--text-color);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.posts article .card-actions {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Section Headers ───────────────────────────────────── */

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.section-header .label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}
.section-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.8rem;
}
.section-header p {
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ── Single Post ───────────────────────────────────────── */

.single-post {
    max-width: 48rem;
    margin: 0 auto;
}
.single-post .post-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.single-post .post-header .meta {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.single-post .post-header .meta .sep {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
}
.single-post .post-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
}
.single-post .featured-image {
    margin: 0 -1rem 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.single-post .featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.single-post .post-content {
    font-size: 1.05rem;
    line-height: 1.85;
}
.single-post .post-content h2,
.single-post .post-content h3 {
    margin-top: 2.5rem;
}
.single-post .post-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}
.single-post .post-content blockquote {
    border-left: 3px solid var(--accent-color);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Post Navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}
.post-nav a {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: none;
    text-decoration: none;
    transition: color var(--transition);
}
.post-nav a:hover {
    color: var(--accent-color);
}
.post-nav .nav-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.post-nav .next {
    text-align: right;
}

/* ── Static Page ───────────────────────────────────────── */

.page-content {
    max-width: 48rem;
    margin: 0 auto;
}
.page-content .page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.page-content .page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}
.page-content .page-body {
    font-size: 1.05rem;
    line-height: 1.85;
}
.page-content .page-body img {
    border-radius: var(--radius);
}

/* ── Pagination ────────────────────────────────────────── */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.pagination .page-numbers.current {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* ── Footer / Copyright ────────────────────────────────── */

#footer {
    text-align: center;
    padding: 3rem 2rem 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
#footer .social-icons {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
#footer .social-icons li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition);
    text-decoration: none;
}
#footer .social-icons li a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}
#footer .copyright-text {
    margin: 0;
}
#footer .copyright-text a {
    color: var(--text-muted);
    border: none;
}
#footer .copyright-text a:hover {
    color: var(--accent-color);
}

/* ── Responsive: Tablet ────────────────────────────────── */

@media screen and (max-width: 980px) {
    #main {
        padding: 3rem 2rem 2rem;
    }
    .posts {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .post-nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    .post-nav .next {
        text-align: left;
    }
}

/* ── Responsive: Mobile ────────────────────────────────── */

@media screen and (max-width: 736px) {
    body, html {
        overflow-x: hidden;
    }

    #intro {
        min-height: 85vh;
        padding: 4rem 1.5rem;
    }

    #header {
        padding: 1.5rem 1.5rem 0;
    }
    #header .logo {
        font-size: 1.2rem;
    }

    /* Mobile Nav */
    #nav {
        flex-direction: column;
        padding: 0;
        margin: 1rem 0 0;
    }
    .nav-toggle {
        display: block;
        width: 100%;
        padding: 0.8rem;
        border: none;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }
    #nav ul.links {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    #nav ul.links.is-open {
        display: flex;
    }
    #nav ul.links li a {
        padding: 0.9rem 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.65rem;
    }

    /* Main */
    #main {
        padding: 2rem 1.2rem 1.5rem;
    }

    /* Cards */
    .posts article .card-body {
        padding: 1.5rem 1.5rem 1.2rem;
    }
    .posts article .card-body h2 {
        font-size: 1.05rem;
    }

    /* Single */
    .single-post .featured-image {
        margin: 0 0 2rem;
    }
    .single-post .post-header .meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    .single-post .post-header .meta .sep {
        display: none;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .button {
        padding: 0.75rem 1.5rem;
        font-size: 0.65rem;
    }
}

/* ── WordPress Block Editor Alignment ──────────────────── */

.alignwide {
    margin-left: -1rem;
    margin-right: -1rem;
    max-width: calc(100% + 2rem);
}
.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ── Gallery / WordPress Defaults ──────────────────────── */

.wp-block-gallery {
    margin: 2rem 0;
}
.wp-block-image {
    margin: 1.5rem 0;
}
.wp-block-image img {
    border-radius: var(--radius);
}

/* ── 404 ───────────────────────────────────────────────── */

.error-404 {
    text-align: center;
    padding: 4rem 0;
}
.error-404 h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.error-404 p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
