/*
Theme Name: MTB Trails
Theme URI: https://schwitzstube.org
Description: Professioneller Mountainbike-Blog für Tourenberichte und Trail-Stories.
Version: 1.0
Author: Schwitzstube Crew
Text Domain: mtb-trails
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1117;
  --surface:   #161b27;
  --card:      #1e2535;
  --border:    #2a3347;
  --green:     #3d8b37;
  --green-lt:  #52b84a;
  --orange:    #e8650a;
  --orange-lt: #ff7c24;
  --text:      #dde3ee;
  --muted:     #7a8599;
  --white:     #ffffff;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-lt); }

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

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .03em;
  color: var(--white);
}

p { margin-bottom: 1.1em; }

.entry-content h2 { font-size: 1.7rem; margin: 1.8em 0 .5em; color: var(--green-lt); }
.entry-content h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; }
.entry-content ul, .entry-content ol { margin: .6em 0 1em 1.4em; }
.entry-content li { margin-bottom: .3em; }
.entry-content blockquote {
  border-left: 4px solid var(--orange);
  padding: .6em 1.2em;
  margin: 1.2em 0;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}
.entry-content pre {
  background: #0a0e17;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1em 1.2em;
  overflow-x: auto;
  font-size: .87rem;
}

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
}
.site-logo span { color: var(--orange); }
.site-logo svg { width: 34px; height: 34px; flex-shrink: 0; }

.main-nav ul { list-style: none; display: flex; gap: 8px; }
.main-nav a {
  color: var(--text);
  font-family: var(--font-head);
  font-size: .95rem;
  letter-spacing: .05em;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--card);
  color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1a0a 0%, #0d1117 40%, #0f1520 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(61,139,55,.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 20% 60%, rgba(232,101,10,.10) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,101,10,.15);
  border: 1px solid rgba(232,101,10,.35);
  color: var(--orange);
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .1em;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title .accent { color: var(--orange); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: .06em;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s, background .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.4); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-lt); color: var(--white); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green-lt);
  font-weight: 700;
}
.stat-label {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Section Headers ── */
.section { padding: 80px 0; }
.section-label {
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--muted);
  max-width: 500px;
  font-size: .97rem;
  margin-bottom: 48px;
}

/* ── Tour Cards ── */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tour-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}

.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2e1a, #0d1117);
  position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tour-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #162016 0%, #1a2535 100%);
}
.card-thumb-placeholder svg { width: 64px; height: 64px; opacity: .3; }

.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.card-meta span { display: flex; align-items: center; gap: 5px; }
.card-meta svg { width: 13px; height: 13px; flex-shrink: 0; }

.card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.25;
}
.card-title a { color: var(--white); }
.card-title a:hover { color: var(--orange); }

.card-excerpt { color: var(--muted); font-size: .88rem; flex: 1; margin-bottom: 18px; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
}
.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: .75rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.card-read-more {
  font-family: var(--font-head);
  font-size: .82rem;
  color: var(--orange);
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-read-more:hover { color: var(--orange-lt); }

/* ── Trail Stats Bar (on cards) ── */
.trail-stats {
  display: flex;
  gap: 16px;
  background: rgba(0,0,0,.25);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.trail-stat {
  text-align: center;
  flex: 1;
}
.trail-stat-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--green-lt);
  font-weight: 600;
}
.trail-stat-key {
  display: block;
  font-size: .68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Difficulty Badge ── */
.difficulty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
}
.difficulty--easy   { background: rgba(61,139,55,.2); color: #52b84a; border: 1px solid rgba(82,184,74,.3); }
.difficulty--medium { background: rgba(232,180,10,.15); color: #e8b40a; border: 1px solid rgba(232,180,10,.3); }
.difficulty--hard   { background: rgba(232,80,10,.15);  color: #e8500a; border: 1px solid rgba(232,80,10,.3); }
.difficulty--expert { background: rgba(180,10,10,.2);   color: #e83030; border: 1px solid rgba(220,30,30,.3); }

/* ── Crew / About Section ── */
.crew-section { background: var(--surface); }
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.crew-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.crew-card:hover { border-color: var(--green); transform: translateY(-3px); }
.crew-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--green), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--white);
  font-weight: 700;
  overflow: hidden;
  border: 3px solid var(--border);
}
.crew-avatar img { width: 100%; height: 100%; object-fit: cover; }
.crew-name { font-size: 1.05rem; margin-bottom: 4px; }
.crew-role { font-size: .78rem; color: var(--muted); }
.crew-fav {
  margin-top: 12px;
  font-size: .78rem;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ── Single Post ── */
.post-hero {
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1a0a 0%, #0d1117 100%);
}
.post-hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .55;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,1) 0%, rgba(13,17,23,.4) 50%, transparent 100%);
}
.post-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0 48px;
  width: 100%;
}
.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.post-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  margin-bottom: 18px;
  max-width: 760px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .85rem;
}
.post-meta .sep { opacity: .4; }

.post-trail-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.post-trail-inner {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.post-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.post-stat-val {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--green-lt);
  font-weight: 700;
}
.post-stat-key {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 60px 0 80px;
  align-items: start;
}

.entry-content { font-size: 1.02rem; line-height: 1.8; }

.post-sidebar {}
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.widget-title {
  font-family: var(--font-head);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.route-info li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .87rem;
}
.route-info li:last-child { border-bottom: none; }
.route-info li strong { color: var(--green-lt); font-family: var(--font-head); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .77rem;
  padding: 4px 10px;
  border-radius: 4px;
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--orange); color: var(--orange); }

/* ── Archive / Blog ── */
.archive-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 40px;
}
.archive-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.archive-sub { color: var(--muted); font-size: .97rem; }

.archive-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0 40px;
}
.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .06em;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-head);
  font-size: .9rem;
  transition: all .2s;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--orange); }
.footer-desc { color: var(--muted); font-size: .88rem; line-height: 1.65; max-width: 300px; }
.footer-heading {
  font-family: var(--font-head);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--text); font-size: .88rem; transition: color .2s; }
.footer-nav a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--orange); }

/* ── No Posts ── */
.no-posts {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.no-posts svg { width: 64px; height: 64px; margin: 0 auto 20px; opacity: .3; }

/* ── Comments ── */
#comments { margin-top: 60px; padding-top: 48px; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 32px; }
.comment-list { list-style: none; }
.comment {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.comment-author-name { font-family: var(--font-head); font-size: .95rem; color: var(--white); }
.comment-date { font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.comment-text { font-size: .9rem; }

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: .92rem;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 5px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 680px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 20px; }
  .main-nav.open ul { flex-direction: column; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .post-trail-inner { gap: 24px; }
  .tours-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; padding-top: 28px; margin-top: 40px; }
}
