/* Westküste – Ghost-Theme im Stil grüner Highway-Schilder */
:root {
    --bg: #eef1ef; --paper: #ffffff; --ink: #18242c; --muted: #5a6b72; --line: #d3dcda;
    --sign: #1f5e46; --sign-ink: #ffffff; --accent: #c8551b;
    --land: #f4efe2; --sea: #cfe0ea; --border: #9aa7a6;
    --stay: #e6efe9; --stay-ink: #1f5e46; --drive: #f6e7dc; --drive-ink: #9a3f12;
    --warn: #fff3cf; --warn-ink: #6d5300;
    --display: var(--gh-font-heading, "Overpass", "Arial Narrow", Arial, sans-serif);
    --body: var(--gh-font-body, "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif);
    --mono: "Overpass Mono", ui-monospace, Menlo, monospace;
    --measure: 720px; --wide: 1100px;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #11181c; --paper: #182227; --ink: #e7eeec; --muted: #9db0b4; --line: #2b3a40;
        --sign: #2b7a5c; --accent: #f08a4e;
        --land: #25302f; --sea: #152a38; --border: #5d6e70;
        --stay: #1d3329; --stay-ink: #9fdcbf; --drive: #3a281d; --drive-ink: #f3b38a;
        --warn: #3a3218; --warn-ink: #f0d68a;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
[hidden] { display: none !important; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 16px 64px; }

/* Kopfzeile */
.topbar { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; }
.shield { width: 30px; height: 32px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 900; display: grid; place-items: center; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); padding-bottom: 5px; }
.nav ul { list-style: none; display: flex; gap: 4px 18px; flex-wrap: wrap; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav .nav-current a { color: var(--ink); }

/* Schild */
.hero { margin: 8px 0 32px; }
.sign { background: var(--sign); color: var(--sign-ink); border-radius: 16px; padding: 28px 28px 26px; outline: 2px solid var(--sign-ink); outline-offset: -10px; display: flex; flex-direction: column; gap: 10px; }
.sign .kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.sign h1 { font-size: clamp(34px, 6.5vw, 64px); font-weight: 900; letter-spacing: -.01em; }
.sign-sub { margin: 0; font-size: 18px; opacity: .92; max-width: 60ch; }
.sign-small h1 { font-size: clamp(30px, 5vw, 46px); }
.btn { display: inline-block; margin-top: 8px; background: var(--sign-ink); color: var(--sign); padding: 8px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.progress { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.progress-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--sign-ink); border-radius: 99px; }
.progress-text { font-family: var(--mono); font-size: 14px; }

.block { margin-bottom: 48px; }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: baseline; gap: 14px; }
.section-title::after { content: ""; flex: 1; border-bottom: 3px solid var(--ink); transform: translateY(-6px); }
.empty, .muted { color: var(--muted); }

/* Karte */
.mapcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.map svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.m-land { fill: var(--land); }
.m-sea { fill: var(--sea); }
.m-coast { fill: none; stroke: var(--border); stroke-width: 1; }
.m-border { fill: none; stroke: var(--border); stroke-width: 1.2; stroke-dasharray: 6 5; }
.m-region { fill: var(--muted); font: 600 13px var(--mono); letter-spacing: .2em; opacity: .55; text-anchor: middle; }
.m-todo { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.m-done { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.m-stop { fill: var(--paper); stroke: var(--muted); stroke-width: 2.5; }
.m-stop.done { fill: var(--accent); stroke: var(--paper); }
.m-stop.now { fill: var(--sign); stroke: var(--paper); stroke-width: 3; }
.m-pulse { fill: var(--sign); opacity: .25; animation: pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(.6); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .m-pulse { animation: none; } }
.m-label { fill: var(--ink); font: 600 15px var(--body); paint-order: stroke; stroke: var(--land); stroke-width: 4px; stroke-linejoin: round; }
.m-label.now { font-weight: 800; font-size: 19px; }
.maplegend { list-style: none; margin: 10px 4px 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.maplegend li { display: flex; align-items: center; gap: 8px; }
.maplegend i { display: inline-block; width: 26px; height: 0; }
.l-done { border-top: 4px solid var(--accent); }
.l-todo { border-top: 3px dotted var(--muted); }
.l-now { width: 12px !important; height: 12px !important; border-radius: 50%; background: var(--sign); }

/* Beitragskarten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-img { position: relative; margin: 0; aspect-ratio: 3 / 2; background: var(--land); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-empty { background: repeating-linear-gradient(135deg, var(--land) 0 14px, var(--bg) 14px 28px); }
.daybadge { position: absolute; left: 12px; top: 12px; background: var(--sign); color: var(--sign-ink); font-family: var(--display); font-weight: 900; font-size: 15px; padding: 4px 10px; border-radius: 6px; outline: 1.5px solid var(--sign-ink); outline-offset: -4px; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card-meta span:empty { display: none; }
.card-title { font-size: 21px; font-weight: 800; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Reiseplan */
.plan { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.plan-chapter { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.plan-row > a, .plan-row > div { display: grid; grid-template-columns: 34px 92px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 16px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 16px; }
.plan-row:last-child > * { border-bottom: 0; }
.plan-n { font-family: var(--display); font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-date { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.plan-stage { font-weight: 600; min-width: 0; }
.plan-stage em { font-style: normal; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: var(--sign); color: var(--sign-ink); padding: 2px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.plan-go { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.plan-row.has-post .plan-n { color: var(--accent); }
.plan-row.has-post > a:hover { background: var(--stay); }
.plan-row:not(.has-post) .plan-stage { color: var(--muted); font-weight: 400; }
.plan-row.today > * { background: var(--warn); }
@media (max-width: 560px) {
    .plan-row > a, .plan-row > div { grid-template-columns: 30px 1fr; gap: 2px 10px; }
    .plan-date { grid-column: 2; grid-row: 1; }
    .plan-stage { grid-column: 2; }
    .plan-go { grid-column: 2; }
    .plan-go:empty { display: none; }
}

/* Artikel */
.article { margin-top: 8px; }
.article-head { max-width: var(--measure); margin: 0 auto 28px; display: flex; flex-direction: column; gap: 14px; }
.daysign { display: flex; gap: 0; background: var(--sign); color: var(--sign-ink); border-radius: 14px; overflow: hidden; outline: 2px solid var(--sign-ink); outline-offset: -8px; }
.daysign-num { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 22px; border-right: 2px solid rgba(255,255,255,.35); line-height: 1; }
.daysign-num small { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.daysign-num b { font-family: var(--display); font-size: 54px; font-weight: 900; }
.daysign-info { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.daysign-date { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; opacity: .9; }
.daysign-stage { font-family: var(--display); font-size: clamp(20px, 3.4vw, 28px); font-weight: 800; line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); }
.article-title { font-size: clamp(32px, 5.5vw, 50px); font-weight: 900; letter-spacing: -.01em; }
.article-excerpt { margin: 0; font-size: 21px; color: var(--muted); line-height: 1.45; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.article-meta a { text-decoration: none; }
.article-image { margin: 0 auto 32px; max-width: var(--wide); }
.article-image img { width: 100%; border-radius: 14px; }
.article-image figcaption, .content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }

/* Inhalt aus dem Ghost-Editor */
.content { display: grid; grid-template-columns: [full-start] minmax(0, 1fr) [wide-start] minmax(0, calc((var(--wide) - var(--measure)) / 2)) [main-start] min(var(--measure), 100%) [main-end] minmax(0, calc((var(--wide) - var(--measure)) / 2)) [wide-end] minmax(0, 1fr) [full-end]; }
.content > * { grid-column: main-start / main-end; }
.content > .kg-width-wide { grid-column: wide-start / wide-end; }
.content > .kg-width-full { grid-column: full-start / full-end; }
.kg-width-full img { border-radius: 0; }
.content > * + * { margin-top: 1.1em; margin-bottom: 0; }
.content h2 { font-size: 30px; font-weight: 800; margin-top: 1.6em; }
.content h3 { font-size: 23px; font-weight: 800; margin-top: 1.4em; }
.content p, .content ul, .content ol { margin-top: 1em; }
.content li + li { margin-top: .3em; }
.content a { color: var(--accent); text-underline-offset: 3px; }
.content blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-size: 22px; font-style: italic; }
.content hr { border: 0; border-top: 2px dashed var(--line); margin: 2.4em 0; }
.content figure { margin-left: 0; margin-right: 0; }
.content img { border-radius: 10px; }
.content .kg-gallery-image img { border-radius: 4px; }
.content .kg-video-card, .content .kg-embed-card { margin-top: 1.6em; }
.content pre { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); padding: 14px; border-radius: 10px; font-size: 15px; }
.content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.content th, .content td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* Tagesfuß mit Karte */
.dayfooter { max-width: var(--wide); margin: 56px auto 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.dayfooter h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.dayfooter p { margin: 0 0 8px; font-size: 16px; }
@media (max-width: 760px) { .dayfooter { grid-template-columns: 1fr; } }

.daynav { max-width: var(--wide); margin: 24px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.daynav a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.daynav small { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.daynav span { font-weight: 700; }
.daynav-next { grid-column: 2; text-align: right; }
@media (max-width: 560px) { .daynav { grid-template-columns: 1fr; } .daynav-next { grid-column: 1; } }
.comments { max-width: var(--measure); margin: 48px auto 0; }

/* Seitennavigation */
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.pagination a { color: var(--ink); font-weight: 600; }

.foot { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot p { margin: 0; }
.foot ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.foot a { text-decoration: none; }

@media (max-width: 560px) {
    body { font-size: 17px; }
    .sign { padding: 22px 20px; }
    .daysign-num { padding: 12px 16px; }
    .daysign-num b { font-size: 42px; }
    .content h2 { font-size: 26px; }
}
