/*
Theme Name: Traillog
Theme URI: https://traillog.de
Author: Traillog Redaktion
Description: Leichtes Block-Theme für Touren, Outdoor-Wissen und Ausrüstung.
Version: 1.9.28
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: traillog
*/

:root {
  --tl-forest: #0f3d2e;
  --tl-sand: #d9c9b2;
  --tl-offwhite: #f8f6f1;
  --tl-copper: #c46a3a;
  --tl-sage: #8a9a85;
  --tl-ink: #18231f;
  --tl-muted: #66716c;
  --tl-line: #e2ddd2;
  --tl-shadow: 0 14px 36px rgba(15, 61, 46, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--tl-offwhite);
  color: var(--tl-ink);
  -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: .18em; }

.wp-site-blocks { overflow: hidden; }

.tl-site-header {
  background: rgba(248, 246, 241, .96);
  border-bottom: 1px solid rgba(15, 61, 46, .08);
  position: relative;
  z-index: 20;
}

.tl-header-inner { min-height: 104px; }

.tl-brand { flex: 0 0 auto; line-height: 0; }
.tl-brand img { display: block; width: 250px; max-width: 100%; height: auto; }
/* Approved vector artwork: natural aspect ratio, no cropping or font substitution. */
.tl-footer-logo { display: inline-block; padding: 14px; background: var(--tl-offwhite); border-radius: 8px; max-width: 100%; line-height: 0; }
.tl-footer-logo img { display: block; width: 250px; max-width: 100%; height: auto; }
.tl-site-header .tl-header-inner { min-height: 138px; }
@media (max-width: 600px) {
  .tl-brand img { width: 210px; }
  .tl-site-header .tl-header-inner { min-height: 114px; }
}

.tl-site-header .wp-block-navigation-item__content {
  font-weight: 650;
  text-decoration: none;
}

.tl-site-header .wp-block-navigation-item__content:hover { color: var(--tl-copper); }

/* Compact site search in the header. WordPress' native search keeps posts and pages searchable. */
.tl-header-search {
  flex: 0 1 220px;
  margin: 0;
  min-width: 150px;
  max-width: 240px;
}
.tl-header-search .wp-block-search__inside-wrapper {
  border: 1px solid rgba(15, 61, 46, .18);
  border-radius: 999px;
  overflow: hidden;
  padding: 2px;
}
.tl-header-search .wp-block-search__input {
  background: transparent;
  border: 0;
  color: var(--tl-ink);
  font-size: .9rem;
  min-width: 0;
  padding: .55rem .35rem .55rem .8rem;
}
.tl-header-search .wp-block-search__input:focus { outline: none; }
.tl-header-search .wp-block-search__button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--tl-forest);
  display: flex;
  justify-content: center;
  margin: 0;
  padding: .45rem .6rem;
}
.tl-header-search .wp-block-search__button:hover { color: var(--tl-copper); }
.tl-header-search .wp-block-search__button svg { height: 20px; width: 20px; }

/* Search results use the same card language as the magazine archives. */
.tl-search-results .wp-block-query-title {
  font-size: clamp(2rem, 3vw, 2.8rem) !important;
  line-height: 1.08;
  margin-bottom: .5rem;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: var(--wp--style--global--content-size) !important;
  text-wrap: balance;
  width: calc(100% - 2rem);
}
.tl-search-results .tl-search-intro { color: var(--tl-muted); margin-bottom: 2rem; }
.tl-search-results .wp-block-post-template {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.tl-search-results .tl-card .wp-block-post-title {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem) !important;
  hyphens: none;
  line-height: 1.22;
  margin: 0 0 .7rem;
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 700px) {
  .tl-search-results .wp-block-post-template { grid-template-columns: 1fr !important; }
}

.tl-button .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link {
  box-shadow: 0 8px 22px rgba(196, 106, 58, .22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tl-button .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  box-shadow: 0 11px 28px rgba(196, 106, 58, .30);
  transform: translateY(-2px);
}

.tl-hero {
  min-height: 640px;
  position: relative;
}

.tl-hero::after {
  background: linear-gradient(90deg, rgba(8, 27, 21, .88) 0%, rgba(8, 27, 21, .58) 48%, rgba(8, 27, 21, .10) 78%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.tl-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }

/* Keep the hero copy on the site's centered content axis while the copy itself stays left-aligned. */
.tl-hero .wp-block-group.alignwide {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1240px;
  width: 100%;
}

.tl-kicker {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.tl-hero .wp-block-group.alignwide > * {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 760px;
}

.tl-hero h1 {
  text-align: left;
  text-wrap: balance;
}

.tl-section { padding-bottom: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(3.5rem, 7vw, 6rem); }

.tl-section-heading { align-items: end; margin-bottom: 1.9rem; }

.tl-section-heading h2 { margin-bottom: 0; }

.tl-text-link {
  color: var(--tl-copper);
  font-weight: 750;
  text-decoration: none;
}

.tl-text-link:hover { text-decoration: underline; }

.tl-card {
  background: #fff;
  border: 1px solid rgba(15, 61, 46, .08);
  border-radius: 14px;
  box-shadow: var(--tl-shadow);
  height: 100%;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tl-card:hover {
  box-shadow: 0 18px 48px rgba(15, 61, 46, .15);
  transform: translateY(-4px);
}

.tl-card-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

.tl-card-body { padding: 1.25rem 1.35rem 1.45rem; }

.tl-card-body h3 { margin: .45rem 0 .65rem; }

.tl-tags { gap: .45rem; }

.tl-tag {
  background: #eef2ed;
  border-radius: 999px;
  color: var(--tl-forest);
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  padding: .24rem .58rem;
  text-transform: uppercase;
}

.tl-tag--accent { background: #f4e4d9; color: #9d4d23; }

.tl-meta {
  color: var(--tl-muted);
  font-size: .88rem;
  gap: .75rem;
}

.tl-tools {
  background: #fff;
  border: 1px solid rgba(15, 61, 46, .08);
  border-radius: 18px;
  box-shadow: var(--tl-shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.tl-tools-row {
  display: grid !important;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tl-tool {
  background: #f8faf8;
  border: 1px solid rgba(15, 61, 46, .08);
  border-radius: 14px;
  padding: 1.15rem;
}

.tl-tool--priority { grid-column: span 3; }
.tl-tool--later { grid-column: span 3; }
.tl-tool--later { opacity: .78; }

.tl-tools-note {
  color: var(--tl-sage);
  font-size: .9rem;
  margin: 0;
}

.tl-tool-status {
  color: var(--tl-copper);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  margin: 0 0 .35rem;
  text-transform: uppercase;
}

.tl-tool-icon {
  align-items: center;
  background: #eef2ed;
  border-radius: 50%;
  color: var(--tl-forest);
  display: inline-flex;
  font-size: 1.5rem;
  height: 54px;
  justify-content: center;
  margin-bottom: .7rem;
  width: 54px;
}

.tl-tool:nth-child(3) .tl-tool-icon { background: #f6e7dc; color: var(--tl-copper); }

.tl-tool--available {
  border-color: rgba(196, 106, 58, .35);
  box-shadow: 0 10px 28px rgba(15, 61, 46, .08);
}

.tl-tool--available h3 a { color: var(--tl-forest); text-decoration: none; }
.tl-tool--available h3 a:hover { color: var(--tl-copper); }

/* Interactive hiking-time calculator. */
.tl-calculator {
  background: #fff;
  border: 1px solid rgba(15, 61, 46, .1);
  border-radius: 20px;
  box-shadow: var(--tl-shadow);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  margin: 2.25rem 0;
  max-width: 960px;
  padding: clamp(1.25rem, 4vw, 2.6rem);
}

.tl-calculator__intro,
.tl-calculator__form { grid-column: 1; }
.tl-calculator__intro h2 { margin: .15rem 0 .8rem; }
.tl-calculator__intro p:last-child { margin-bottom: 0; }
.tl-calculator__form { align-self: start; }
.tl-calculator__fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tl-calculator__field { display: grid; font-weight: 700; gap: .42rem; }
.tl-calculator__field:nth-child(4) { grid-column: 1 / -1; }
.tl-calculator__input-wrap { align-items: center; display: flex; position: relative; }
.tl-calculator__input-wrap > span {
  color: var(--tl-muted);
  font-size: .88rem;
  pointer-events: none;
  position: absolute;
  right: .85rem;
}

.tl-calculator input,
.tl-calculator select {
  appearance: none;
  background: #fbfcfa;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  color: var(--tl-ink);
  font: inherit;
  font-weight: 500;
  min-height: 48px;
  padding: .7rem .85rem;
  width: 100%;
}

.tl-calculator input { padding-right: 3.25rem; }
.tl-calculator select {
  background-image: linear-gradient(45deg, transparent 50%, var(--tl-forest) 50%), linear-gradient(135deg, var(--tl-forest) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 2.4rem;
}

.tl-calculator input:focus,
.tl-calculator select:focus { border-color: var(--tl-copper); outline: 3px solid rgba(196, 106, 58, .18); }
.tl-calculator__button {
  background: var(--tl-copper);
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: 1.15rem;
  padding: .85rem 1.2rem;
}

.tl-calculator__button:hover { background: #a9552c; }
.tl-calculator__result {
  align-self: stretch;
  background: var(--tl-forest);
  border-radius: 15px;
  color: #fff;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.tl-calculator__result-label { color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 800; letter-spacing: .08em; margin: 0; text-transform: uppercase; }
.tl-calculator__result-time { color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.08; margin: .45rem 0 1.4rem; }
.tl-calculator__breakdown { border-bottom: 1px solid rgba(255,255,255,.2); border-top: 1px solid rgba(255,255,255,.2); padding: .65rem 0; }
.tl-calculator__breakdown p { display: flex; gap: 1rem; justify-content: space-between; margin: .4rem 0; }
.tl-calculator__method { color: rgba(255,255,255,.7); font-size: .78rem; line-height: 1.5; margin: 1rem 0 0; }
.tl-calculator__error { background: #fff1e8; border-left: 4px solid var(--tl-copper); color: #762f12; margin: 1rem 0 0; padding: .75rem 1rem; }

.tl-editorial-card {
  background: #fff;
  border: 1px solid rgba(15, 61, 46, .08);
  border-radius: 14px;
  box-shadow: var(--tl-shadow);
  overflow: hidden;
}

.tl-editorial-card .wp-block-image { height: 100%; margin: 0; }
.tl-editorial-card .wp-block-image img { height: 100%; object-fit: cover; width: 100%; }

/* Latest published articles on the homepage. */
.tl-home-posts { width: 100%; }
.tl-home-posts .tl-section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.tl-home-posts .tl-section-heading h2 { margin: 0; }
.tl-home-post-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
}

.tl-home-post {
  background: #fff;
  border: 1px solid rgba(15, 61, 46, .08);
  border-radius: 14px;
  box-shadow: var(--tl-shadow);
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

.tl-home-post--featured {
  grid-row: span 2;
  grid-template-columns: 48% minmax(0, 1fr);
}

.tl-home-post--featured:only-child { grid-column: 1 / -1; }
.tl-home-post-image-link { display: block; min-height: 190px; overflow: hidden; }
.tl-home-post-image { height: 100%; object-fit: cover; transition: transform .25s ease; width: 100%; }
.tl-home-post:hover .tl-home-post-image { transform: scale(1.025); }
.tl-home-post-body { align-self: center; padding: clamp(1rem, 2.5vw, 2rem); }
.tl-home-post-body h3 { font-size: clamp(1.35rem, 2.15vw, 2rem); line-height: 1.12; margin: 0; }
.tl-home-post-body h3 a { color: var(--tl-forest); text-decoration: none; }
.tl-home-post-body h3 a:hover { color: var(--tl-copper); }
.tl-home-post-body > p:last-child { margin-bottom: 0; }

/* Native latest-posts block used on the homepage. */
.tl-home-latest-posts {
  display: grid !important;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.tl-home-latest-posts > li {
  background: #fff;
  border: 1px solid rgba(15, 61, 46, .09);
  border-radius: 16px;
  box-shadow: var(--tl-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 1.25rem;
  width: auto !important;
  margin: 0 !important;
}

.tl-home-latest-posts:has(> li:only-child) {
  grid-template-columns: minmax(0, 440px);
}

.tl-home-latest-posts:has(> li:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tl-home-latest-posts .wp-block-latest-posts__featured-image { margin: 0 0 1.1rem; }
.tl-home-latest-posts .wp-block-latest-posts__featured-image a { display: block; }
.tl-home-latest-posts .wp-block-latest-posts__featured-image img {
  aspect-ratio: 16 / 10;
  display: block;
  height: auto;
  object-fit: cover;
  max-width: none;
  width: 100%;
}

.tl-home-latest-posts .wp-block-latest-posts__post-title,
.tl-home-latest-posts .wp-block-latest-posts__post-date,
.tl-home-latest-posts .wp-block-latest-posts__post-excerpt,
.tl-home-latest-posts .wp-block-latest-posts__post-full-content {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.tl-home-latest-posts .wp-block-latest-posts__post-title {
  color: var(--tl-forest);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.18;
  text-decoration: none;
}

.tl-home-latest-posts .wp-block-latest-posts__post-title:hover { color: var(--tl-copper); }
.tl-home-latest-posts .wp-block-latest-posts__post-date { color: var(--tl-sage); margin-top: .55rem; }
.tl-home-latest-posts .wp-block-latest-posts__post-excerpt { line-height: 1.55; margin-top: .75rem; }

.tl-single-main .tl-article-shell {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--tl-shadow);
  max-width: 1080px;
  width: calc(100% - 2rem);
}

.tl-single-main .tl-article-shell > .wp-block-post-title {
  font-size: clamp(2.65rem, 4.3vw, 3.7rem) !important;
  letter-spacing: -.025em;
  line-height: 1.04;
  max-width: 900px;
  text-wrap: balance;
}

.tl-single-main .tl-article-shell > .wp-block-post-featured-image {
  max-width: 920px;
}

.tl-single-main .tl-article-shell > .wp-block-post-content {
  max-width: 968px;
  width: 100%;
}

.tl-article-content > * { margin-left: auto; margin-right: auto; max-width: 760px; }
.tl-article-content > .wp-block-image,
.tl-article-content > .wp-block-table { max-width: 920px; }
.tl-article-content > .alignwide { max-width: 1120px; }
.tl-article-content > .alignfull { max-width: none; }
.tl-article-content p { line-height: 1.62; }
.tl-article-content h2 { margin-top: 2.2em; }
.tl-article-content h3 { margin-top: 1.8em; }

/* Traillog Ratgeber-Tabellen 1.9.23 */
.tl-article-content > .wp-block-table.traillog-table { max-width: 920px; }

.wp-block-table.traillog-table {
  margin: 1.5rem auto 2rem;
}

.wp-block-table.traillog-table table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
}

.wp-block-table.traillog-table th {
  background: #eef2ee;
  color: var(--tl-ink);
  font-weight: 700;
  text-align: left;
  padding: .8rem .75rem;
  border: 0;
  border-bottom: 1px solid #d8ddd8;
}

.wp-block-table.traillog-table td {
  padding: .8rem .75rem;
  border: 0;
  border-bottom: 1px solid #dfe3df;
  vertical-align: top;
}

.wp-block-table.traillog-table tbody tr:last-child td {
  border-bottom: 0;
}

.wp-block-table.traillog-table .total-row td {
  font-weight: 700;
}

@media (max-width: 700px) {
  .tl-single-main {
    padding-bottom: 2rem;
    padding-top: 1.5rem;
  }

  .tl-single-main .tl-article-shell {
    border-radius: 12px;
    padding: 1.5rem 1.15rem 2rem !important;
    width: calc(100% - 1rem);
  }

  .tl-single-main .tl-article-shell > .wp-block-post-title {
    font-size: clamp(2.1rem, 9.7vw, 2.25rem) !important;
    line-height: 1.06;
  }

  .tl-article-content p { line-height: 1.6; }
  .tl-article-content h2 { margin-top: 1.7em; }
  .tl-article-content h3 { margin-top: 1.5em; }
}

.tl-info-box {
  background: #edf2ee;
  border-left: 5px solid var(--tl-sage);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.4rem;
}

.tl-author-note,
.tl-signature-note {
  background: #f8f6f1;
  border-left: 4px solid var(--tl-copper);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
}

.tl-author-note p,
.tl-signature-note p { margin: 0; }
.tl-post-meta { color: var(--tl-sage); gap: .8rem; }
.tl-post-author { font-size: var(--wp--preset--font-size--small); }
.tl-post-author a { color: var(--tl-sage); font-weight: 700; }

.tl-author-archive > .wp-block-shortcode {
  max-width: 1100px !important;
  width: 100%;
}

.tl-author-profile {
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(15, 61, 46, .08);
  border-radius: 18px;
  box-shadow: var(--tl-shadow);
  display: flex !important;
  margin-bottom: 3rem;
  overflow: hidden;
  width: 100%;
}

.tl-author-profile > img {
  align-self: stretch;
  flex: 0 0 36%;
  min-height: 390px;
  object-fit: cover;
  width: 36%;
}
.tl-author-profile > div {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
.tl-author-profile h1 { margin: .2rem 0 .8rem; }
.tl-author-profile__description { font-size: 1.1rem; line-height: 1.65; max-width: 58ch; }
.tl-author-profile__disclosure { background: #edf2ee; border-radius: 10px; font-size: .92rem; max-width: 58ch; padding: .9rem 1rem; }
.tl-author-profile__posts { margin-bottom: 1.5rem; }
.tl-author-empty { background: #edf2ee; border-radius: 12px; padding: 1rem 1.2rem; }

/* Author team page. Images and copy remain separate, responsive elements. */
.tl-author-page { background: var(--tl-offwhite); }

.tl-author-hero {
  min-height: 430px !important;
  position: relative;
}

.tl-author-hero::after {
  background: linear-gradient(90deg, rgba(8, 27, 21, .90) 0%, rgba(8, 27, 21, .68) 47%, rgba(8, 27, 21, .14) 78%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.tl-author-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

.tl-author-hero-copy { max-width: 700px; }
.tl-author-hero h1 {
  color: #fff;
  font-size: clamp(2.75rem, 5vw, 4rem) !important;
  margin-bottom: .6rem;
  text-wrap: balance;
}
.tl-author-hero p:not(.tl-kicker) { color: rgba(255, 255, 255, .88); max-width: 640px; }

.tl-author-intro,
.tl-author-grid,
.tl-author-disclosure {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1120px;
  width: calc(100% - 3rem);
}

.tl-author-intro { padding-bottom: 2.25rem; padding-top: 3.25rem; }
.tl-author-intro p { max-width: 780px; }
.tl-author-intro .has-large-font-size { font-size: clamp(1.05rem, 1.6vw, 1.22rem) !important; }

.tl-author-grid {
  display: grid !important;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 3.25rem;
}

.tl-author-card {
  background: #fff;
  border: 1px solid rgba(15, 61, 46, .08);
  border-radius: 18px;
  box-shadow: var(--tl-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.tl-author-card .wp-block-image { margin: 0; }
.tl-author-card-image {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: center 24%;
  width: 100%;
}

.tl-author-card-body { padding: clamp(1.2rem, 2vw, 1.6rem); }
.tl-author-card-body h2 { margin: .35rem 0 .7rem; }
.tl-author-card-body p:last-child { margin-bottom: 0; }

.tl-author-disclosure {
  background: #edf2ee;
  border-left: 5px solid var(--tl-sage);
  border-radius: 0 14px 14px 0;
  margin-bottom: 4rem;
  padding: 1.25rem 1.5rem;
}

.tl-author-disclosure p { margin: 0; }

/* Automatically generated guide overview. */
.tl-ratgeber-index {
  margin-bottom: 1rem;
  margin-top: 3.25rem;
  max-width: 1120px !important;
  width: 100%;
}

.tl-ratgeber-heading { margin-bottom: 1.4rem; }
.tl-ratgeber-heading .tl-kicker,
.tl-ratgeber-category {
  color: var(--tl-copper);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.tl-ratgeber-heading h2 { margin: 0; }
.tl-ratgeber-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tl-ratgeber-card {
  background: #fff;
  border: 1px solid rgba(15, 61, 46, .09);
  border-radius: 16px;
  box-shadow: var(--tl-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.tl-ratgeber-image-link { display: block; overflow: hidden; }
.tl-ratgeber-image {
  aspect-ratio: 16 / 10;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform .25s ease;
  width: 100%;
}

.tl-ratgeber-card:hover .tl-ratgeber-image { transform: scale(1.025); }
.tl-ratgeber-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.tl-ratgeber-card h3 { font-size: 1.45rem; line-height: 1.18; margin: 0 0 .75rem; }
.tl-ratgeber-card h3 a { color: var(--tl-forest); text-decoration: none; }
.tl-ratgeber-card h3 a:hover { color: var(--tl-copper); }
.tl-ratgeber-excerpt { font-size: .96rem; line-height: 1.55 !important; margin: 0 0 1.2rem; }
.tl-ratgeber-meta {
  align-items: center;
  display: flex;
  font-size: .83rem;
  gap: .8rem;
  justify-content: space-between;
  margin-top: auto;
}

.tl-ratgeber-meta time { color: var(--tl-sage); }
.tl-ratgeber-meta a { font-weight: 700; white-space: nowrap; }
.tl-ratgeber-empty { background: #edf2ee; border-radius: 12px; padding: 1rem 1.2rem; }

.tl-site-footer { background: var(--tl-forest); color: #fff; }
.tl-site-footer a { color: #fff; }
.tl-footer-note { color: rgba(255, 255, 255, .68); }

@media (max-width: 900px) {
  .tl-hero { min-height: 570px; }
  .tl-header-search { flex-basis: 190px; max-width: 210px; }
  .tl-header-cta { display: none !important; }
  .tl-tools-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-tool--priority, .tl-tool--later { grid-column: auto; }
  .tl-home-post-grid { grid-template-columns: 1fr; }
  .tl-home-post--featured { grid-row: auto; }
  .tl-ratgeber-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-home-latest-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-calculator { grid-template-columns: 1fr; }
  .tl-calculator__result { grid-column: 1; grid-row: auto; }
}

@media (max-width: 600px) {
  .tl-header-inner { min-height: 82px; }
  .tl-header-search { flex-basis: 100%; max-width: none; order: 3; width: 100%; }
  .tl-header-search .wp-block-search__inside-wrapper { width: 100%; }
  .tl-hero { min-height: 550px; }
  .tl-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem) !important; }
  .tl-section-heading { align-items: start; flex-direction: column; }
  .tl-tools-row { grid-template-columns: 1fr; }
  .tl-home-post, .tl-home-post--featured { grid-template-columns: 1fr; }
  .tl-home-post-image-link { aspect-ratio: 16 / 9; min-height: 0; }
  .tl-card-grid { gap: 1.3rem !important; }
  .tl-author-hero { min-height: 410px !important; }
  .tl-author-hero::after { background: linear-gradient(90deg, rgba(8, 27, 21, .88), rgba(8, 27, 21, .55)); }
  .tl-author-hero h1 { font-size: clamp(2.5rem, 12vw, 3.5rem) !important; }
  .tl-author-intro, .tl-author-grid, .tl-author-disclosure { width: calc(100% - 2rem); }
  .tl-site-footer { padding-left: 1rem; padding-right: 1rem; }
  .tl-site-footer .wp-block-columns { gap: 1.75rem; }
  .tl-footer-logo img { width: 220px; }
  .tl-ratgeber-index { margin-top: 2.4rem; }
  .tl-ratgeber-grid { grid-template-columns: 1fr; }
  .tl-home-latest-posts { grid-template-columns: 1fr; }
  .tl-calculator { border-radius: 14px; margin-inline: -0.25rem; padding: 1.15rem; }
  .tl-calculator__fields { grid-template-columns: 1fr; }
  .tl-calculator__field:nth-child(4) { grid-column: auto; }
}

@media (max-width: 780px) {
  .tl-author-archive > .wp-block-shortcode { width: calc(100% - 1rem); }
  .tl-author-profile { flex-direction: column; }
  .tl-author-profile > img {
    aspect-ratio: 16 / 10;
    flex-basis: auto;
    min-height: 0;
    width: 100%;
  }
  .tl-author-profile > div { padding: 1.4rem 1.25rem 1.6rem; }
}

@media (max-width: 720px) {
  .tl-author-grid { grid-template-columns: 1fr; }
}

/* Keep the navigation usable between phone and desktop widths. */
@media (min-width: 600px) and (max-width: 1100px) {
  .tl-header-cta { display: none !important; }
  .tl-header-inner { flex-wrap: wrap !important; justify-content: center !important; padding-block: 1rem; }
  .tl-site-header .wp-block-navigation { flex-basis: 100%; justify-content: center; }
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--tl-copper); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tl-card, .tl-button .wp-block-button__link { transition: none; }
}

/* Contact page and privacy-conscious native contact form. */
.tl-contact-intro { max-width: 760px; }
.tl-contact-wrap {
  max-width: 760px;
  margin-top: 2rem;
}
.tl-contact-form {
  background: #fff;
  border: 1px solid rgba(15, 61, 46, .10);
  border-radius: 16px;
  box-shadow: var(--tl-shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.tl-contact-field { margin-bottom: 1.25rem; }
.tl-contact-field label {
  display: block;
  font-weight: 700;
  margin-bottom: .45rem;
}
.tl-contact-optional { color: var(--tl-muted); font-size: .9em; font-weight: 400; }
.tl-contact-field input,
.tl-contact-field textarea {
  background: #fff;
  border: 1px solid #b8c0bc;
  border-radius: 9px;
  color: var(--tl-ink);
  font: inherit;
  line-height: 1.45;
  padding: .8rem .9rem;
  width: 100%;
}
.tl-contact-field input:focus,
.tl-contact-field textarea:focus {
  border-color: var(--tl-forest);
  outline: 3px solid rgba(15, 61, 46, .14);
  outline-offset: 1px;
}
.tl-contact-privacy,
.tl-contact-required {
  color: var(--tl-muted);
  font-size: .9rem;
  line-height: 1.55 !important;
}
.tl-contact-required { margin-bottom: 1rem; }
.tl-contact-submit {
  background: var(--tl-copper);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: .85rem 1.2rem;
}
.tl-contact-submit:hover { filter: brightness(.94); }
.tl-contact-message {
  border-radius: 12px;
  margin-bottom: 1.2rem;
  padding: 1rem 1.15rem;
}
.tl-contact-message p { margin: .35rem 0 0; }
.tl-contact-message--success { background: #e8f2ec; border-left: 4px solid var(--tl-forest); }
.tl-contact-message--error { background: #f8e9e4; border-left: 4px solid var(--tl-copper); }
.tl-contact-hp {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}


/* Dynamic topic navigation on the Ratgeber and Ausrüstung hub pages. */
.tl-category-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .85rem;
  list-style: none;
  margin: 1rem 0 2.2rem;
  padding: 0;
}
.tl-category-links li { margin: 0; min-width: 0; }
.tl-category-links a {
  background: #fff;
  border: 1px solid var(--tl-line);
  border-radius: 12px;
  color: var(--tl-forest);
  display: block;
  min-height: 82px;
  padding: 1rem 1.05rem .9rem;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tl-category-links a:hover {
  border-color: var(--tl-copper);
  box-shadow: 0 8px 20px rgba(15, 61, 46, .08);
  transform: translateY(-1px);
}
.tl-category-link-label {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}
.tl-category-link-count {
  color: var(--tl-muted);
  display: block;
  font-size: .78rem;
  font-weight: 600;
  margin-top: .38rem;
}
@media (max-width: 760px) {
  .tl-category-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .tl-category-links { grid-template-columns: 1fr; }
}

/* Water planner: scope overrides to leave the hiking calculator unchanged. */
.tl-water-calculator [hidden] { display: none !important; }
.tl-water-calculator .tl-calculator__field:nth-child(4) { grid-column: auto; }
.tl-water-calculator .tl-calculator__field small { font-size: .8rem; font-weight: 400; line-height: 1.5; }
.tl-water-calculator .tl-calculator__breakdown p { flex-wrap: wrap; }
.tl-water-calculator .tl-calculator__breakdown strong { white-space: nowrap; }
.tl-water-calculator .tl-calculator__result-time { font-size: clamp(1.8rem, 3.5vw, 2.6rem); overflow-wrap: anywhere; }
.tl-water-calculator .tl-calculator__result p { color: #fff; }
.tl-water-calculator .tl-calculator__result-label,
.tl-water-calculator p.tl-calculator__method { color: rgba(255,255,255,.85); }

/* Keep the water planner readable within WordPress content columns. */
.tl-water-calculator { grid-template-columns: minmax(0, 1fr); }
.tl-water-calculator .tl-calculator__intro,
.tl-water-calculator .tl-calculator__form,
.tl-water-calculator .tl-calculator__result { grid-column: 1; grid-row: auto; min-width: 0; }
.tl-water-calculator .tl-calculator__result-time { white-space: nowrap; overflow-wrap: normal; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.tl-water-calculator .tl-calculator__field { min-width: 0; }
.tl-water-calculator input,
.tl-water-calculator select { box-sizing: border-box; min-width: 0; }

/* Packing tools use the complete article width on every screen. */
.tl-planner { background:#fff; border:1px solid rgba(15,61,46,.12); border-radius:20px; box-shadow:var(--tl-shadow); margin:2.25rem 0; padding:clamp(1.1rem,4vw,2.6rem); }
.tl-planner [hidden] { display:none !important; }
.tl-planner h2 { margin:.3rem 0 1rem; }
.tl-planner__fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1.5rem 0 1rem; }
.tl-planner__fields label { display:grid; align-content:start; gap:.5rem; font-weight:700; min-width:0; }
.tl-planner select,.tl-planner input[type=text] { box-sizing:border-box; width:100%; min-width:0; min-height:48px; border:1px solid #cfd8d2; border-radius:8px; background:#fbfcfa; color:var(--tl-ink); font:inherit; padding:.7rem .8rem; }
.tl-planner select:focus,.tl-planner input:focus-visible,.tl-planner button:focus-visible { outline:3px solid #c46a3a; outline-offset:2px; }
.tl-planner__check { display:flex; align-items:center; gap:.7rem; padding:.5rem 0; }
.tl-planner input[type=checkbox] { appearance:auto; flex:0 0 22px; width:22px; height:22px; margin:0; accent-color:var(--tl-forest); }
.tl-planner__note { font-size:.88rem; line-height:1.6; }
.tl-planner__status { background:#edf3ee; border-radius:8px; padding:.8rem 1rem; font-weight:700; }
.tl-pack-group { min-width:0; border:1px solid #d5dfd8; border-radius:10px; padding:.5rem 1rem; margin:1.2rem 0; }
.tl-pack-group legend { padding:0 .4rem; font-weight:800; }
.tl-pack-row { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; border-bottom:1px solid #edf1ed; }
.tl-pack-row:last-child { border-bottom:0; }
.tl-pack-row label { display:flex; align-items:flex-start; gap:.75rem; flex:1 1 220px; min-height:44px; padding:.7rem 0; cursor:pointer; }
.tl-pack-row span { min-width:0; overflow-wrap:anywhere; }
.tl-pack-row input:checked + span { color:#526258; text-decoration:line-through; }
.tl-pack-remove { min-height:44px; border:0; background:transparent; color:#762f12; text-decoration:underline; cursor:pointer; font:inherit; font-size:.8rem; }
.tl-planner__custom { margin:1.5rem 0; }
.tl-planner__custom > label { display:block; font-weight:700; margin-bottom:.5rem; }
.tl-planner__custom-row { display:flex; gap:.75rem; }
.tl-planner__custom-row .tl-calculator__button { margin:0; }
.tl-planner__actions { display:flex; flex-wrap:wrap; gap:.75rem; }
.tl-planner__actions .tl-calculator__button { margin:0; }
.tl-planner__secondary { min-height:48px; border:1px solid #cfd8d2; border-radius:7px; background:#fff; color:var(--tl-forest); font:inherit; font-weight:700; padding:.75rem 1rem; cursor:pointer; }
.tl-planner__result { background:var(--tl-forest); border-radius:15px; padding:clamp(1.2rem,3vw,2rem); margin-top:1.5rem; color:#fff; }
.tl-planner__result p,.tl-planner__result li { color:#fff; }
.tl-planner__result .tl-calculator__result-time { white-space:nowrap; font-size:clamp(1.8rem,5vw,2.6rem); }
.tl-tools-live { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; }
@media(max-width:600px) { .tl-planner__fields,.tl-tools-live { grid-template-columns:1fr; } .tl-planner__custom-row { flex-direction:column; } }

.tl-planner select,.tl-planner input[type=text] { font-weight:400; }

/* Readable hiking results within the article column. */
[data-tl-hiking-calculator] { grid-template-columns:minmax(0,1fr); }
[data-tl-hiking-calculator] .tl-calculator__intro,
[data-tl-hiking-calculator] .tl-calculator__form,
[data-tl-hiking-calculator] .tl-calculator__result { grid-column:1; grid-row:auto; min-width:0; }
[data-tl-hiking-calculator] .tl-calculator__breakdown p { flex-wrap:wrap; }
[data-tl-hiking-calculator] .tl-calculator__breakdown strong { white-space:nowrap; }
[data-tl-hiking-calculator] .tl-calculator__result p,
[data-tl-hiking-calculator] .tl-calculator__result summary { color:#fff; }
.tl-tools-live h3 a { hyphens:none; word-break:normal; overflow-wrap:normal; }
.tl-tool-title-part { white-space:nowrap; }


/* Contextual planning links in selected articles. */
.tl-article-tools { margin: 2rem 0 1.5rem; }
.tl-article-tools > p { margin-top: 0; }
.tl-article-tools ul { margin-bottom: 0; padding-left: 1.2rem; }
.tl-article-tools li + li { margin-top: .55rem; }
.tl-article-tools a { color: var(--tl-forest); }

/* On wider screens, a single recommendation should read like a compact tip
   rather than a separate content section. Mobile keeps the roomier box. */
@media (min-width: 769px) {
  .tl-article-tools--single {
    margin: 1.25rem 0 1.75rem;
    padding: .85rem 1.05rem;
    max-width: 760px;
  }
  .tl-article-tools--single > p {
    margin: 0 0 .25rem;
    font-size: .95rem;
    line-height: 1.35;
  }
  .tl-article-tools--single ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
  }
  .tl-article-tools--single li {
    margin: 0;
    line-height: 1.5;
  }
}

@media (min-width: 900px) {
    .single-post .tl-article-content > p.has-large-font-size:first-of-type {
        font-size: 1.15rem !important;
        line-height: 1.65;
    }
}
/* Category-specific featured articles (configured under Beiträge > Kategorien). */
.tl-ratgeber-featured {
  margin-bottom: 3.25rem;
}
.tl-ratgeber-heading--current {
  margin-top: 0;
}
.tl-ratgeber-grid--featured .tl-ratgeber-card {
  border-color: rgba(196, 106, 58, .22);
}
