/* wander-ratgeber.de – Stylesheet 2026
   Keine externen Fonts (DSGVO + Performance): System-Schriften */

:root {
  --forest: #1f5c3d;
  --forest-2: #2f7d4a;
  --moss: #7cbf5a;
  --sky: #d6ecf5;
  --sand: #f5f1e8;
  --paper: #ffffff;
  --ink: #1e2a23;
  --ink-2: #4d5b52;
  --line: #e2ddd0;
  --amber: #a85d14;
  --amber-2: #8a4b0f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 42, 35, .06), 0 6px 20px rgba(30, 42, 35, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 18px/1.65 var(--sans);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------------------------------------------------------- Header */
.site-header {
  position: relative; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { font: 700 1.25rem/1 var(--serif); letter-spacing: -.01em; }
.brand__text span { color: var(--forest-2); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { background: var(--forest); color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: transform .2s;
  }
  .nav-toggle__bar::before { position: absolute; top: -6px; }
  .nav-toggle__bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { position: absolute; inset: 64px 0 auto; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; }
}

/* ---------------------------------------------------------- Hero */
.hero { position: relative; color: #fff; min-height: clamp(420px, 62vh, 620px); display: grid; align-items: end; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 20, .05) 20%, rgba(10, 30, 20, .72) 100%); }
.hero__body { position: relative; z-index: 1; padding: 48px 0 56px; max-width: 760px; margin-left: max(16px, calc((100% - 1180px) / 2)); }
.hero__kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; margin: 0 0 8px; opacity: .9; }
.hero h1 { font: 700 clamp(2rem, 5vw, 3.4rem)/1.08 var(--serif); margin: 0 0 14px; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero__lead { font-size: 1.15rem; margin: 0 0 22px; max-width: 620px; }
.hero .search { max-width: 560px; }

/* ---------------------------------------------------------- Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 32px 0 56px; align-items: start; }
.is-home .layout { padding-top: 40px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

.content { background: var(--paper); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); min-width: 0; }
.content > h1 { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.15 var(--serif); margin: 6px 0 8px; letter-spacing: -.01em; }
.meta { color: var(--ink-2); font-size: .9rem; margin: 0 0 18px; }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: #a9a294; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--forest); text-decoration: underline; }

/* ---------------------------------------------------------- Fließtext */
.prose { max-width: 72ch; }
.prose h2 { font: 700 1.55rem/1.25 var(--serif); margin: 2em 0 .5em; color: var(--forest); }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose figure { margin: 1.5em 0; }
.prose figure img { border-radius: 10px; width: 100%; }
.prose figcaption { font-size: .88rem; color: var(--ink-2); margin-top: 8px; }
.lead { font-size: 1.15rem; color: #34433a; }
.small { font-size: .88rem; color: var(--ink-2); }
.prose strong { color: #17231c; }

.liste { padding-left: 1.2em; }
.liste li { margin-bottom: .5em; }
.liste li::marker { color: var(--forest-2); }

.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--moss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: .9em; min-height: 32px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

.table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--sand); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
.dot--blue { background: #2a6fd6; } .dot--red { background: #d33; } .dot--black { background: #111; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0 0 1.4em; }
.facts > div { background: var(--sand); border-radius: 10px; padding: 12px 14px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts--wide { grid-template-columns: 1fr; }
.facts--wide dd { font-weight: 400; }
.facts--wide dt { font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--forest); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1em 0 1.5em; }
.gallery img { border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.03); }

textarea.code { width: 100%; font: .85rem/1.4 ui-monospace, Menlo, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--sand); }

/* ---------------------------------------------------------- Buttons & Suche */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--forest); color: #fff; font: 700 .95rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--forest-2); color: #fff; text-decoration: none; }
.btn--shop { background: var(--amber); }
.btn--shop:hover { background: var(--amber-2); }
.btn sup { font-size: .7em; }

.search { display: flex; gap: 8px; margin: 0 0 1.4em; }
.search input {
  flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.search input:focus { outline: 3px solid rgba(124, 191, 90, .45); border-color: var(--forest-2); }
.hero .search input { border: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); }
.hero .search .btn { background: var(--amber); }

/* ---------------------------------------------------------- Karten */
.cards { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; max-width: none; }
.card a {
  display: flex; flex-direction: column; height: 100%; gap: 4px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card a:hover { border-color: var(--moss); transform: translateY(-2px); box-shadow: var(--shadow); }
.card strong { color: var(--forest); font-size: 1.05rem; line-height: 1.3; }
.card span { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.card--img a { padding: 0 0 16px; overflow: hidden; }
.card--img img, .card--img picture { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 8px; }
.card--img strong, .card--img span { padding: 0 16px; }
.prose .cards { max-width: none; }

.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { margin: 0; }
.tag-list a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--sand); text-decoration: none; color: var(--ink); font-size: .92rem; }
.tag-list a:hover { background: #e9f3e2; color: var(--forest); }
.tag-list .count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--forest); font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.5; }
.tag-list a:hover .count { background: var(--forest); color: #fff; }

.trail-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.trail-list a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); height: 100%; }
.trail-list a:hover { border-color: var(--moss); background: #fbfdf9; }
.trail-list strong { display: block; color: var(--forest); }
.trail-list span { font-size: .85rem; color: var(--ink-2); }

/* ---------------------------------------------------------- Shop-Box (Amazon) */
.shop-box { border: 2px solid #f0dcc4; background: #fffaf3; border-radius: var(--radius); padding: 18px 20px; margin: 1.8em 0; max-width: 72ch; }
.shop-box__title { font: 700 1.2rem/1.3 var(--serif); margin: 0 0 4px; color: #6b3d10; }
.shop-box__intro { margin: 0 0 8px; font-size: .95rem; color: var(--ink-2); }
.shop-box__list { list-style: none; padding: 0; margin: 8px 0; }
.shop-box__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed #ecd7bd; }
.shop-box__list li:first-child { border-top: 0; }
.shop-box__list strong { display: block; }
.shop-box__list span { font-size: .88rem; color: var(--ink-2); }
.shop-box__note { font-size: .78rem; color: #6b5f4e; margin: 6px 0 0; }
@media (max-width: 520px) { .shop-box__list li { flex-direction: column; align-items: stretch; } }
.aff-mark { color: var(--amber-2); }

/* ---------------------------------------------------------- Werbung */
.ad { margin: 1.8em 0; min-height: 280px; } /* Platz reservieren gegen Layout-Verschiebungen */
.ad__label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #a9a294; margin-bottom: 4px; }
.ad--sidebar { min-height: 280px; }

/* ---------------------------------------------------------- Sidebar */
.sidebar { display: grid; gap: 18px; position: sticky; top: 16px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.box { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.box--muted { background: #eef4ea; box-shadow: none; }
.box__title { font: 700 1.05rem/1.2 var(--serif); margin: 0 0 10px; color: var(--forest); }
.box .search { flex-direction: column; margin: 0; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { display: block; padding: 8px 0; text-decoration: none; color: var(--ink); }
.link-list a::after { content: " →"; color: var(--moss); }
.link-list a:hover { color: var(--forest); }

/* ---------------------------------------------------------- Verwandte */
.related { margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.related h2 { font: 700 1.3rem/1.3 var(--serif); margin: 0 0 14px; }

/* ---------------------------------------------------------- Footer */
.site-footer { background: #17271e; color: #c8d3cb; padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: #e7efe9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > :first-child { grid-column: 1/-1; } }
.site-footer__brand { font: 700 1.3rem/1 var(--serif); color: #fff; margin: 0 0 8px; }
.site-footer__title { font-weight: 700; color: #fff; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: .82rem; color: #93a399; }
.site-footer__legal p { margin: 0 0 6px; }

@media print {
  .site-header, .sidebar, .site-footer, .ad, .shop-box, .related, .hero picture { display: none !important; }
  .layout { display: block; } .content { box-shadow: none; padding: 0; }
}

/* Tabellen auf dem Handy als gestapelte Zeilen */
@media (max-width: 600px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 2px 0; }
  .table td:first-child { font-weight: 700; color: var(--forest); }
}

/* Mobil: kürzere Seiten und ruhigeres Scrollen */
@media (max-width: 960px) {
  .sidebar { display: none; }               /* Inhalte stehen schon in "Das könnte Sie auch interessieren" */
  .layout { padding: 16px 0 32px; gap: 0; }
  .content { padding: 20px 18px; border-radius: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { width: min(1180px, 100% - 20px); }
  .prose h2 { margin-top: 1.5em; }
}

/* Einleitung auf Wanderwege-Listen */
.intro p { margin: 0 0 1em; }
.intro p:first-child { font-size: 1.12rem; color: #34433a; }
