/*
Theme Name:   Out of Canada Child
Theme URI:    https://olehelmhausen.de
Description:  Child Theme für Out of Canada – basierend auf GeneratePress Pro
Author:       Ole Helmhausen
Author URI:   https://olehelmhausen.de
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  olehelmhausen-child
*/

/* ============================================================
   INHALTSVERZEICHNIS
   0.  Webfonts (@font-face, self-hosted / DSGVO-konform)
   1.  CSS-Variablen (Light Mode)
   2.  Dark Mode
   3.  Reset & Base
   4.  GeneratePress Overrides
   5.  Scroll Progress & Back to Top
   6.  Header & Navigation
   7.  Search Overlay
   8.  Hero Section
   9.  Author Banner
   10. Section Layout (Wrapper, Header, Labels)
   11. Cards: Landscape (16/9)
   12. Cards: Portrait (3/4)
   13. Hover Underline Effect
   14. Parallax Quote Section
   15. Asymmetrisches Grid (Essays + Sidebar)
   16. Footer
   17. Single Post (Artikel-Seite)
   18. Archive / Kategorie-Seiten
   19. Autor-Box (unter Artikel)
   20. Related Posts
   21. Author Archive Page
   22. Suchseite
   23. Statische Seiten (Page)
   24. 404-Seite
   25. Pagination
   26. Responsive
   27. Kommentare
   28. Grounding Page → assets/grounding-page.css (conditional)
   29. Barrierefreiheit: Reduzierte Bewegung
============================================================ */


/* ============================================================
   0. WEBFONTS – SELF-HOSTED (DSGVO-KONFORM)
   Dateien müssen unter assets/fonts/ abgelegt werden.
   Varianten: Inter Variable + Lora Variable (je normal + italic)
   Download-Anleitung: assets/fonts/DOWNLOAD.md
============================================================ */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter/Inter-Variable-Italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Lora';
    src: url('assets/fonts/lora/Lora-Variable.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lora';
    src: url('assets/fonts/lora/Lora-Variable-Italic.woff2') format('woff2');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}


/* ============================================================
   1. CSS-VARIABLEN (LIGHT MODE)
============================================================ */
:root {
    --bg-color:        #fafafa;
    --text-main:       #111111;
    --text-muted:      #555555;
    --text-footer:     #222222;
    --accent:          #EF3340;
    --border:          rgba(0, 0, 0, 0.1);
    --header-bg:       rgba(250, 250, 250, 0.95);

    --hero-overlay: linear-gradient(
        to bottom,
        rgba(250,250,250,0.9) 0%,
        rgba(250,250,250,0.3) 40%,
        rgba(250,250,250,0.8) 80%,
        var(--bg-color) 100%
    );

    --card-shadow:       0 4px 15px rgba(0,0,0,0.06);
    --card-hover-shadow: 0 8px 20px rgba(0,0,0,0.12);

    /* ── Typoskala (Basis: 1rem = 18px via html font-size 112.5%)
       Alle rem-Werte skalieren automatisch mit der Root-Size.
       --fs-hero ist explizit gepinnt: 3.75rem würde sonst auf
       67.5px wachsen — zu groß für den Hero-Bereich.              */
    --fs-xs:     0.694rem;   /* ≈ 12.5px — Captions, Labels         */
    --fs-sm:     0.778rem;   /* ≈ 14px   — Meta, Tags, TOC-Links     */
    --fs-base:   1rem;       /* = 18px   — Fließtext                 */
    --fs-lg:     1.333rem;   /* ≈ 24px   — Karten-Titel, H3          */
    --fs-xl:     1.778rem;   /* ≈ 32px   — H2, Abschnitte            */
    --fs-hero:   3.333rem;   /* = 60px   — Hero-Überschrift (gepinnt)*/

    --topo-map: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}


/* ============================================================
   2. DARK MODE
   Klasse wird auf <html> gesetzt (via FOUC-Fix-Script im <head>
   und via main.js beim Klick), damit das Inline-Script im <head>
   schon vor dem Body-Render reagieren kann.
============================================================ */
html.dark-mode {
    --bg-color:        #050505;
    --text-main:       #ffffff;
    --text-muted:      #a0a0a0;
    --text-footer:     #dddddd;
    --border:          rgba(255, 255, 255, 0.1);
    --header-bg:       rgba(5, 5, 5, 0.95);

    --hero-overlay: linear-gradient(
        to bottom,
        rgba(5,5,5,0.8) 0%,
        rgba(5,5,5,0.2) 40%,
        rgba(5,5,5,0.8) 80%,
        var(--bg-color) 100%
    );

    --card-shadow:       0 8px 20px rgba(0,0,0,0.6);
    --card-hover-shadow: 0 12px 25px rgba(0,0,0,0.9);

    --topo-map: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Dark mode color transitions */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode: Bilder leicht dimmen, damit sie nicht blenden */
html.dark-mode img:not(.author-avatar):not(.ooc-lightbox-img) {
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}
html.dark-mode img:hover {
    filter: brightness(1);
}


/* ============================================================
   3. RESET & BASE
============================================================ */
html {
    font-size: 112.5%; /* 1rem = 18px; alle rem-Werte skalieren proportional */
}

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

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Serif-Klassen */
.font-serif,
h1, h2, h3, h4,
.logo,
.author-text h2,
.parallax-quote blockquote,
.search-input,
.post-title,
.archive-title,
.single-post-title {
    font-family: 'Lora', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s, color 0.2s, background-color 0.2s;
}

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

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

/* GP-Standard-Container auf 1300px */
.grid-container {
    max-width: 1300px;
    padding: 0 20px;
}

/* Utility */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


/* ============================================================
   4. GENERATEPRESS OVERRIDES
   GP-Standardstile zurücksetzen / anpassen
============================================================ */

/* Hintergrundfarbe über GP-Body-Klasse */
.site {
    background-color: var(--bg-color);
}

/* GP setzt .site-content auf display:flex und .content-area auf width:70%
   für das Sidebar-System. Wir verwenden auf keiner Seite eine Sidebar —
   daher beides global überschreiben damit Content stets voll breit stackt.
   (Ohne diese Regeln landen alle Template-Kinder als Flex-Items nebeneinander.) */
.site-content {
    display: block;
}
.site-content .content-area {
    width: 100%;
}

/* GP Premium Secondary Navigation: wird nicht benötigt.
   remove_action() greift aufgrund von Hook-Timing nicht zuverlässig —
   CSS-Ausblendung ist die robusteste Lösung. */
.secondary-navigation {
    display: none !important;
}

/* GP-Standard-Footer-Bar: wird durch eigenen Footer ersetzt.
   CSS-Fallback falls remove_action()-Timing abweicht. */
.site-info {
    display: none !important;
}

/* GP fügt dem #page-Wrapper die Klassen .grid-container und .container hinzu,
   was unsere max-width: 1300px auf das gesamte Seiten-Wrapper anwendet.
   Hier setzen wir das zurück, damit Sektionen die volle Viewport-Breite nutzen können.
   Die Breiten-Begrenzung erfolgt innerhalb der Sektionen via .container. */
#page.site {
    max-width: none;
    padding: 0;
    width: 100%;
}

/* GP entfernt manchmal Margins – wiederherstellen */
.site-content {
    padding: 0;
    margin: 0;
}

/* GP Default-Buttons deaktivieren */
.button,
button,
input[type="submit"] {
    border-radius: 2px;
}

/* GP Default-Überschriften neutralisieren */
.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4 {
    color: var(--text-main);
    line-height: 1.2;
}

/* GP Entry-Padding auf Null für eigene Templates */
.entry-content {
    padding: 0;
}


/* ============================================================
   5. SCROLL PROGRESS & BACK TO TOP
============================================================ */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
    background: transparent;
    pointer-events: none;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s ease-out;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-5px);
}


/* ============================================================
   6. HEADER & NAVIGATION
============================================================ */
.site-header,
header#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 25px 0;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    will-change: transform;
}

.site-header.scrolled,
header#main-header.scrolled {
    background-color: var(--header-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo,
.site-title a {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 4px;
    z-index: 101;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
}


/* Haupt-Navigation */
.nav-main {
    display: flex;
    align-items: center;
}

.nav-main ul,
.nav-primary ul {
    display: flex;
    gap: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-main ul li,
.nav-primary ul li {
    list-style: none;
}

.nav-main a:hover,
.nav-primary ul li a:hover {
    color: var(--accent);
}

/* Header-Steuerelemente (Dark Mode, Search, Hamburger) */
.nav-controls {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    align-items: center;
    z-index: 101;
}

.icon-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
}

.icon-btn:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
}


/* ============================================================
   7. SEARCH OVERLAY
============================================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.close-search {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.close-search:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    text-align: center;
}

.search-container p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 700;
}

.search-input {
    width: 100%;
    font-family: 'Lora', serif;
    font-size: 3rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--text-main);
    color: var(--text-main);
    padding: 10px 0;
    outline: none;
    text-align: center;
}

.search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}


/* ============================================================
   8. HERO SECTION
============================================================ */
.hero {
    position: relative;
    height: clamp(720px, 88vh, 1000px);
    background-image: var(--hero-overlay), var(--hero-bg-image, url(''));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    transition: background-image 0.3s ease;
}

/* Zackenkante am unteren Rand */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background:
        linear-gradient(-45deg, transparent 8px, var(--bg-color) 0),
        linear-gradient(45deg,  transparent 8px, var(--bg-color) 0);
    background-size: 16px 16px;
    background-position: left bottom;
    z-index: 10;
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    padding-bottom: 5vh;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    color: var(--text-main);
}

/* Tags / Badges */
.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--accent);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    letter-spacing: 1.5px;
}

.hero h1,
.hero .single-post-title {
    font-size: 3.25rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.hero-title-link {
    color: inherit;
    text-decoration: none;
}

.hero p,
.hero .hero-excerpt {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 700px;
}

/* Meta-Zeile (Datum, Autor, Lesezeit) */
.hero-meta,
.card-meta,
.portrait-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Aktualisierungsdatum — optisch vom Veröffentlichungsdatum unterscheidbar */
.meta-updated {
    opacity: 0.7;
    font-style: italic;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}


/* ============================================================
   9. AUTHOR BANNER
============================================================ */
.author-banner-wrapper {
    background-color: var(--bg-color);
    padding: 40px 0 60px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.author-banner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.author-text {
    flex: 1;
}

.author-sub {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.author-text h2 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.author-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--accent);
    color: #fff;
}

.author-image {
    flex: 0 0 45%;
    position: relative;
}

.author-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    box-shadow: var(--card-shadow);
    border: 4px solid var(--bg-color);
}


/* ============================================================
   10. SECTION LAYOUT (Wrapper, Header, Labels)
============================================================ */
.section-wrapper {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 1.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.view-all {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    white-space: nowrap;
}

.view-all:hover {
    color: var(--accent);
}

/* Karten-Badge (über dem Bild) */
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.card-badge.highlight {
    background-color: var(--accent);
}


/* ============================================================
   11. HOVER UNDERLINE EFFEKT
============================================================ */
.hover-underline {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
    display: inline;
}

a:hover .hover-underline,
.card-landscape:hover .hover-underline,
.card-portrait:hover .hover-underline,
.sidebar-item:hover .hover-underline {
    background-size: 100% 2px;
}


/* ============================================================
   12. CARDS: LANDSCAPE (16/9)
============================================================ */
.card-landscape {
    display: block;
    background-color: transparent;
    transition: transform 0.3s ease;
    position: relative;
}

.card-landscape:hover {
    transform: translateY(-5px);
}

.img-wrapper {
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
}

.img-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-landscape:hover .img-wrapper {
    box-shadow: var(--card-hover-shadow);
}

.card-landscape:hover .img-wrapper img {
    transform: scale(1.05);
}

.card-landscape h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 10px;
}

/* 3-Spalten Landscape Grid — gleichmäßige Zeilenhöhe */
.grid-landscape {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
/* Cards füllen die volle Zeilenhöhe, Meta wird nach unten gedrückt */
.grid-landscape > article {
    display: flex;
}
.grid-landscape .card-landscape {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.grid-landscape .card-landscape .card-meta {
    margin-top: auto;
}

/* 4-Spalten-Variante (Begegnungen) */
.grid-landscape--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-landscape .img-wrapper img {
    aspect-ratio: 16 / 9;
}


/* ============================================================
   13. CARDS: PORTRAIT (3/4)
============================================================ */
.grid-portrait {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card-portrait {
    position: relative;
    display: block;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.card-portrait:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.card-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-portrait:hover img {
    transform: scale(1.05);
}

.card-portrait .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 20px 20px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.7) 50%,
        rgba(0,0,0,0) 100%
    );
}

.card-portrait h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 10px;
}

.portrait-meta {
    color: #d0d0d0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}


/* ============================================================
   14. PARALLAX QUOTE SECTION
============================================================ */
.parallax-quote {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    margin: 60px 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        var(--parallax-bg-image, url(''));
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.parallax-quote figure {
    margin: 0;
}
.parallax-quote blockquote {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    font-style: italic;
}

.parallax-quote cite {
    display: block;
    margin-top: 25px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    font-style: normal;
}


/* ============================================================
   15. ASYMMETRISCHES GRID (Essays + Sidebar)
============================================================ */
.grid-asymmetric {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.featured-essay .card-landscape h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.featured-essay p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Sidebar */
.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: var(--text-main);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    align-items: center;
    transition: transform 0.2s;
    text-decoration: none;
}

.sidebar-item:hover {
    transform: translateX(5px);
}

.sidebar-item .img-wrapper {
    margin-bottom: 0;
    box-shadow: none;
    border-radius: 2px;
    aspect-ratio: 1 / 1;
}

.sidebar-item .img-wrapper img {
    aspect-ratio: 1 / 1;
}

.sidebar-item h4 {
    font-size: 0.9375rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}


/* ============================================================
   16. FOOTER
============================================================ */
.site-footer,
footer {
    background-color: var(--bg-color);
    background-image: var(--topo-map);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    margin-top: 50px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    position: relative;
    display: inline-block;
    font-size: 0.95rem;
    color: var(--text-footer);
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-col ul a::after {
    content: '→';
    position: absolute;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 8px;
    color: var(--accent);
}

.footer-col ul a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-col ul a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.footer-about p {
    color: var(--text-footer);
    font-size: 0.95rem;
    margin-top: 15px;
    max-width: 300px;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
    position: relative;
    z-index: 2;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-footer);
}

.footer-legal {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-legal a {
    color: var(--text-footer);
    transition: color 0.2s;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.footer-legal a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--text-main);
    color: var(--bg-color);
    border-radius: 2px;
    transition: all 0.2s;
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-social a:hover {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}


/* ============================================================
   17. SINGLE POST (ARTIKEL-SEITE)
============================================================ */

/* Hero wird über GP Element eingebunden (generate_before_content) */
.single-post-hero {
    position: relative;
    height: clamp(600px, 70vh, 700px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    margin-bottom: 60px;
}

.single-post-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background:
        linear-gradient(-45deg, transparent 8px, var(--bg-color) 0),
        linear-gradient(45deg,  transparent 8px, var(--bg-color) 0);
    background-size: 16px 16px;
    background-position: left bottom;
    z-index: 10;
}

/* ─── Single-Post Hero: Inhalt zentriert ─── */
.single-post-hero .hero-content {
    margin: 0 auto;
    text-align: center;
}

.single-post-hero .tags {
    justify-content: center;
}

.single-post-hero h1.single-post-title {
    font-size: var(--fs-hero); /* gepinnt: 60px unabhängig von der Root-Size */
    font-weight: 700;
    letter-spacing: -1.5px;
}

.single-post-hero .hero-excerpt {
    font-size: 1.3rem;
    margin-left: auto;
    margin-right: auto;
}

.single-post-hero .hero-meta {
    justify-content: center;
}

/* ─── Single-Post Layout (mit / ohne TOC) ─── */
.single-post-layout {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-layout--toc {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0 60px;
    max-width: 1060px;
    padding: 0 20px;
    align-items: start;
}

/* Artikel-Inhaltsbereich */
.post-body {
    min-width: 0; /* verhindert Grid-Overflow */
}

.single-post-layout:not(.single-post-layout--toc) .post-body {
    max-width: 720px;
    margin: 0 auto;
}

/* Scroll-Offset für fixierten Header */
.post-body h2,
.post-body h3 {
    scroll-margin-top: 90px;
}

/* ─── Table of Contents ─── */
.toc-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-bottom: 20px;
}

.toc {
    border-left: 2px solid var(--border);
    padding-left: 18px;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.toc-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 2px;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}

.toc-toggle:hover        { color: var(--text-main); }
.toc-toggle.is-collapsed { transform: rotate(180deg); }

#toc-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-item a {
    display: block;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.15s, padding-left 0.15s;
    border-left: 2px solid transparent;
    margin-left: -20px;
    padding-left: 18px;
}

.toc-item a:hover {
    color: var(--text-main);
}

.toc-item a.is-active {
    color: var(--accent);
    font-weight: 600;
    border-left-color: var(--accent);
}

.toc-h3 a {
    padding-left: 30px;
    font-size: 0.775rem;
}

/* Mobile: TOC über Content, einklappbar */
@media (max-width: 900px) {
    .single-post-layout--toc {
        grid-template-columns: 1fr;
        max-width: 760px;
    }
    .toc-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .toc {
        border-left: none;
        border-top: 2px solid var(--border);
        padding: 16px 0 0;
    }
    #toc-nav.is-collapsed {
        display: none;
    }
}

.post-body p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
}

.post-body h3 {
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem;
}

/* Blockquotes im Artikel */
.post-body blockquote {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding: 10px 0 10px 25px;
    margin: 2rem 0;
    color: var(--text-main);
}

/* Pull Quote (zentriert, wie Parallax) */
.post-body .pull-quote {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-style: italic;
    text-align: center;
    color: var(--accent);
    padding: 2rem 0;
    margin: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Bilder im Artikel */
.post-body figure,
.post-image-figure {
    margin: 2.5rem calc(-1 * 20px);
}

.post-body figure img,
.post-image-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body figcaption,
.post-image-figure figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 20px 0;
    font-style: italic;
}

/* GPS-Koordinaten-Box */
.gps-box {
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 15px 20px;
    margin: 2rem 0;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-radius: 2px;
}

/* Ausrüstungs-Liste */
.equipment-list {
    background: var(--bg-color);
    border: 1px solid var(--border);
    padding: 20px 25px;
    margin: 2rem 0;
    border-radius: 2px;
}

.equipment-list h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.equipment-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipment-list ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.equipment-list ul li:last-child {
    border-bottom: none;
}

/* Tags / Regionen */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2.5rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-tag {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.2s;
}

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


/* ============================================================
   18. AUTOR-BOX (unter Artikel)
============================================================ */
.author-box {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 25px;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 2px;
    margin: 3rem 0;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-color);
}

.author-box img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-color);
    box-shadow: var(--card-shadow);
}

.author-box-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 5px;
}

.author-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.author-box a.btn-secondary {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
    transition: color 0.2s, border-color 0.2s;
}

.author-box a.btn-secondary:hover {
    color: var(--accent);
    border-color: var(--accent);
}


/* ============================================================
   19. RELATED POSTS
============================================================ */
.related-posts {
    padding: 40px 0;
    border-top: 2px solid var(--text-main);
    margin-top: 20px;
}

.related-posts h2 {
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.related-posts .grid-landscape {
    grid-template-columns: repeat(3, 1fr);
}


/* ============================================================
   20. ARCHIVE / KATEGORIE-SEITEN
============================================================ */
.archive-hero {
    padding: 120px 0 50px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.archive-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.archive-title {
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.archive-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
}

.archive-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 10px;
}

/* Archiv-Grid entspricht dem jeweiligen Kategorie-Layout */
.archive-grid {
    padding: 0 0 60px;
}


/* ============================================================
   21. AUTHOR ARCHIVE PAGE
============================================================ */
.author-archive-hero {
    padding: 120px 0 60px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 50px;
}

.author-archive-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
}

.author-archive-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--card-shadow);
}

.author-archive-info .author-sub {
    margin-bottom: 8px;
}

.author-archive-info h1 {
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.author-archive-info .author-quote {
    margin-bottom: 20px;
}

.author-stats {
    display: flex;
    gap: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.author-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Lora', serif;
}


/* ============================================================
   22. SUCHSEITE
============================================================ */
.search-results-header {
    padding: 120px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.search-results-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.search-results-header h1 span {
    color: var(--accent);
}

.search-results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Ergebnisliste: Landscape Cards, 1-spaltig mit etwas mehr Größe */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 60px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.search-result-item .img-wrapper img {
    aspect-ratio: 16 / 9;
}

.search-result-item h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.search-result-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Innerer Content-Bereich eines Suchergebnisses */
.search-result-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Keine Ergebnisse */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}


/* ============================================================
   23. STATISCHE SEITEN (PAGE)
============================================================ */
.page-hero {
    padding: 120px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 50px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--text-muted);
    font-weight: 500;
}

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

.breadcrumb span {
    margin: 0 8px;
}

/* Breadcrumb im Artikel-Hero — schlank, unter dem Titel */
.single-post-hero .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 3px 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 10px;
    margin-bottom: 5px;
}

.single-post-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
}

.single-post-hero .breadcrumb a:hover {
    color: #fff;
}

.single-post-hero .breadcrumb span {
    margin: 0 5px;
}

/* Seiteninhalt */
.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.page-content h2 {
    font-size: 1.6rem;
    margin: 2rem 0 0.75rem;
}

.page-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem;
}

.page-content p {
    margin-bottom: 1.2rem;
}

.page-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.page-content a:hover {
    text-decoration-color: var(--accent);
}


/* ============================================================
   24. 404-SEITE
============================================================ */
.error-404-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.error-404-inner {
    max-width: 600px;
}

.error-404-number {
    font-family: 'Lora', serif;
    font-size: 10rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    opacity: 0.15;
    margin-bottom: -40px;
}

.error-404-inner h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.error-404-inner p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Suchfeld auf 404 */
.error-search-form {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin: 0 auto 40px;
    border-bottom: 2px solid var(--text-main);
}

.error-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px 0;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

.error-search-form button {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 10px;
    transition: color 0.2s;
}

.error-search-form button:hover {
    color: var(--accent);
}

/* Empfehlungen auf 404 */
.error-404-suggestions {
    padding: 50px 0 40px;
}

.error-404-suggestions h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}


/* ============================================================
   25. PAGINATION
============================================================ */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 50px 0;
}

.page-numbers,
.nav-links a,
.nav-links span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-main);
    transition: all 0.2s;
}

.page-numbers:hover,
.nav-links a:hover {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

.page-numbers.current,
.nav-links span.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.page-numbers.dots {
    border: none;
    background: transparent;
}


/* ============================================================
   26. SOCIAL SHARING BUTTONS
============================================================ */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 40px 0 30px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color, #e5e5e5);
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.share-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted, #888);
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    color: #fff;
    font-family: inherit;
}

.share-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.share-btn--facebook,
.share-btn--whatsapp,
.share-btn--linkedin,
.share-btn--bluesky,
.share-btn--pinterest  { background: var(--text-main, #111); color: #fff; }

@media (max-width: 600px) {
    .share-btn span { display: none; }
    .share-btn      { padding: 9px 12px; }
}


/* ============================================================
   26b. LIGHTBOX
============================================================ */
.ooc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
}
.ooc-lightbox.is-active {
    opacity: 1;
}
.ooc-lightbox[hidden] {
    display: none;
}
.ooc-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.ooc-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.ooc-lightbox-close:hover {
    opacity: 1;
}

/* ============================================================
   26c. TOC: VERBLEIBENDE LESEZEIT
============================================================ */
.toc-remaining {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}


/* ============================================================
   27. RESPONSIVE
============================================================ */

/* 13-Zoll-Laptops & kleine Desktops */
@media (max-width: 1200px) {
    .custom-logo-link img,
    .custom-logo              { max-width: 280px; width: auto; }
    .nav-main ul              { gap: 20px; }
    .nav-controls             { gap: 12px; }
}

@media (max-width: 1024px) {
    .grid-landscape           { grid-template-columns: repeat(2, 1fr); }
    .grid-landscape--4        { grid-template-columns: repeat(2, 1fr); }
    .grid-portrait            { grid-template-columns: repeat(2, 1fr); }
    .footer-grid              { grid-template-columns: repeat(2, 1fr); }
    .related-posts .grid-landscape { grid-template-columns: repeat(2, 1fr); }
    .author-archive-inner     { grid-template-columns: 160px 1fr; }
    .author-archive-photo     { width: 160px; height: 160px; }
    .hero h1,
    .hero .single-post-title  { font-size: 2.75rem; }
    .single-post-hero h1.single-post-title { font-size: 2.75rem; }
    .archive-title            { font-size: 2rem; }

    /* Header: Logo & Nav kompakter */
    .custom-logo-link img,
    .custom-logo              { max-width: 210px; width: auto; }
    .nav-main ul              { gap: 14px; }
    .nav-controls             { gap: 10px; }
    .site-header,
    header#main-header        { padding: 18px 0; }
}

@media (max-width: 768px) {
    .hero h1,
    .hero .single-post-title  { font-size: 2rem; }
    .single-post-hero h1.single-post-title { font-size: 2rem; }
    .parallax-quote blockquote { font-size: 1.5rem; }
    .search-input             { font-size: 2rem; }
    .close-search             { top: 20px; right: 20px; }
    .mobile-toggle            { display: block; }

    /* Single-Post Hero: genug Platz für fixed Header, Höhe flexibel */
    .single-post-hero {
        height: auto;
        min-height: 70vh;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    /* Breadcrumb: Artikeltitel ausblenden (zu lang für Mobilansicht) */
    .single-post-hero .breadcrumb [aria-current="page"] {
        display: none;
    }
    /* Letzten Separator vor dem Titel ebenfalls ausblenden */
    .single-post-hero .breadcrumb .breadcrumb-sep:last-of-type {
        display: none;
    }

    .nav-main {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: -1;
    }
    .nav-main.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 100;
    }

    .grid-landscape,
    .grid-portrait,
    .grid-asymmetric          { grid-template-columns: 1fr; }

    .author-banner            { flex-direction: column-reverse; text-align: center; gap: 30px; }
    .author-quote             { border-left: none; padding-left: 0; font-size: 1.1rem; }
    .author-image             { width: 100%; }

    .footer-grid              { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-about p           { margin: 15px auto 0; }
    .footer-bottom            { flex-direction: column; justify-content: center; text-align: center; }
    .footer-bottom-left       { flex-direction: column; gap: 10px; align-items: center; }
    .footer-legal             { justify-content: center; }

    .author-box               { grid-template-columns: 1fr; text-align: center; }
    .author-box img           { margin: 0 auto; }

    .search-result-item       { grid-template-columns: 1fr; }
    .author-archive-inner     { grid-template-columns: 1fr; text-align: center; }
    .author-archive-photo     { margin: 0 auto; }
    .author-stats             { justify-content: center; }

    .error-404-number         { font-size: 7rem; }
    .error-404-inner h1       { font-size: 1.5rem; }

    .related-posts .grid-landscape { grid-template-columns: 1fr; }

    .archive-title            { font-size: 1.8rem; }
    .author-archive-info h1   { font-size: 2rem; }

    .comment-list             { padding-left: 0; }
    .comment .children        { padding-left: 1.5rem; }
}


/* ============================================================
   27. KOMMENTARE
============================================================ */

/* ---- Kommentar-Liste ---- */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.comment-list .comment:last-child {
    border-bottom: none;
}

/* Verschachtelte Antworten */
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 40px;
    border-left: 2px solid var(--border);
}

/* ---- Kommentar-Avatar ---- */
.comment-body {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
}

.comment-body .comment-author img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: block;
}

/* ---- Kommentar-Meta ---- */
.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.comment-author .fn {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.comment-author .fn a {
    color: inherit;
    text-decoration: none;
}

.comment-author .fn a:hover {
    color: var(--accent);
}

.comment-metadata a,
.comment-metadata time {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
}

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

/* ---- Kommentar-Inhalt ---- */
.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
}

.comment-content p {
    margin: 0 0 0.8em;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* ---- Antworten-Link ---- */
.reply {
    margin-top: 10px;
}

.comment-reply-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* ---- Warten auf Freigabe ---- */
.comment-awaiting-moderation {
    display: inline-block;
    font-size: 0.78rem;
    background: rgba(239, 51, 64, 0.12);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}

/* ---- Kommentar-Formular ---- */
#respond {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

#respond h3#reply-title {
    font-size: 1.4rem;
    font-family: 'Lora', Georgia, serif;
    margin-bottom: 24px;
    color: var(--text-main);
}

#respond h3#reply-title #cancel-comment-reply-link {
    font-size: 0.82rem;
    font-weight: 400;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-muted);
    margin-left: 12px;
    text-decoration: underline;
}

#respond h3#reply-title #cancel-comment-reply-link:hover {
    color: var(--accent);
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.comment-form .comment-notes,
.comment-form .logged-in-as,
.comment-form-comment,
.form-submit {
    grid-column: 1 / -1;
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border-color 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form textarea {
    height: 140px;
    resize: vertical;
}

.comment-form input[type="submit"],
.comment-form .submit {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.comment-form input[type="submit"]:hover,
.comment-form .submit:hover {
    opacity: 0.85;
}

/* ---- Kommentare-Bereich Wrapper ---- */
.comments-area {
    max-width: 760px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.comments-area h2.comments-title {
    font-size: 1.5rem;
    font-family: 'Lora', Georgia, serif;
    margin-bottom: 32px;
    color: var(--text-main);
}


/* 28. GROUNDING PAGE → ausgelagert nach assets/grounding-page.css
   Wird nur auf der Grounding Page geladen (page-grounding.php). */


/* ============================================================
   29. DRUCK
   Bereinigt den Ausdruck von Artikeln: Navigation, Hero-Overlay,
   Sharing-Buttons und Sidebar werden ausgeblendet. Links erhalten
   ihre URL als Fußnote. Typografie bleibt lesbar auf Papier.
============================================================ */
@media print {

    /* ── Ausblenden ── */
    .site-header,
    header#main-header,
    #progress-bar,
    #back-to-top,
    #search-overlay,
    .toc-sidebar,
    .share-buttons,
    .related-posts,
    .site-footer,
    .author-box .btn-secondary,
    .breadcrumb { display: none !important; }

    /* ── Hintergrund & Farbe ── */
    *,
    *::before,
    *::after { background: transparent !important; color: #000 !important;
               box-shadow: none !important; text-shadow: none !important; }

    /* ── Hero: Overlay und Hintergrundbild entfernen ── */
    .single-post-hero {
        background-image: none !important;
        min-height: auto !important;
        padding: 1.5rem 0 1rem !important;
    }
    .single-post-hero::after { display: none !important; }

    /* ── Layout ── */
    .single-post-layout { display: block !important; }
    .container          { max-width: 100% !important; padding: 0 !important; }

    /* ── Links mit URL-Fußnote ── */
    .post-body a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.78em;
        color: #555;
        word-break: break-all;
    }

    /* ── Seitenumbrüche ── */
    h2, h3    { page-break-after: avoid; }
    img, figure { page-break-inside: avoid; max-width: 100% !important; }
    p         { orphans: 3; widows: 3; }
}


/* ============================================================
   30. BARRIEREFREIHEIT: REDUZIERTE BEWEGUNG
============================================================ */
@media (prefers-reduced-motion: reduce) {
    .parallax-quote {
        background-attachment: scroll;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
