/* ============================================================
   so-gehts.ch — Haupt-Stylesheet
   Warm, rustikal, gemütlich – mit Augenzwinkern ✌️
   ============================================================ */

:root {
  --bg:           #fdf8f0;
  --bg-card:      #fffbf4;
  --bg-hover:     #fff5e6;
  --primary:      #7a3b10;
  --primary-dark: #4e2508;
  --accent:       #c0631e;
  --accent-light: #e8882a;
  --text:         #2c1a0e;
  --text-muted:   #7a5c3a;
  --border:       #e2cfa8;
  --border-dark:  #c8a87a;
  --nav-bg:       #3d1c00;
  --nav-text:     #fdf0dc;
  --radius:       10px;
  --shadow:       0 2px 14px rgba(44, 26, 14, 0.10);
  --shadow-hover: 0 6px 24px rgba(44, 26, 14, 0.16);
  --font-head:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:  var(--bg);
  color:       var(--text);
  line-height: 1.7;
  font-size:   16px;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ── Typografie ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color:       var(--text);
  line-height: 1.25;
}
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin:    0 auto;
  padding:   0 24px;
}

.section { padding: 60px 0; }
.section + .section { padding-top: 0; }

.section-header { margin-bottom: 36px; }
.section-header h2 { color: var(--primary); margin-bottom: 6px; }
.section-header p  { color: var(--text-muted); font-size: 1rem; }

.divider {
  width:         52px;
  height:        3px;
  background:    var(--accent);
  border-radius: 2px;
  margin:        10px 0 20px;
}

/* ── Hero (Startseite) ──────────────────────────────────── */
.hero {
  position:   relative;
  background: var(--nav-bg);
  color:      var(--nav-text);
  padding:    88px 24px 72px;
  text-align: center;
  overflow:   hidden;
}

/* Hintergrundbild: img/hero/hero-bg.jpg einsetzen */
.hero::before {
  content:             '';
  position:            absolute;
  inset:               0;
  background-image:    url('../img/hero/hero-bg.jpg');
  background-size:     cover;
  background-position: center;
  opacity:             0.25;
  transition:          opacity 0.4s;
}

.hero-content { position: relative; z-index: 1; }
.hero h1      { color: #fdf0dc; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero p       { color: #e8d5b0; font-size: 1.15rem; max-width: 560px; margin: 0 auto 28px; }

.hero-badge {
  display:        inline-block;
  background:     rgba(253, 240, 220, 0.12);
  border:         1px solid rgba(253, 240, 220, 0.3);
  color:          #e8d5b0;
  padding:        5px 16px;
  border-radius:  20px;
  font-size:      0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom:  18px;
}

/* ── Seiten-Hero (Unterseiten) ──────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color:      var(--nav-text);
  padding:    52px 24px 44px;
  text-align: center;
  position:   relative;
  overflow:   hidden;
}
.page-hero::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background-image: url('../img/hero/page-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity:    0.15;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero .page-icon { font-size: 3rem; margin-bottom: 10px; display: block; }
.page-hero h1 { color: #fdf0dc; margin-bottom: 8px; }
.page-hero p  { color: #e8d5b0; font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ── Kategorie-Karten (Startseite) ─────────────────────── */
.category-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:                   20px;
  padding:               48px 0 16px;
}

.cat-card {
  background:    var(--bg-card);
  border:        1.5px solid var(--border);
  border-radius: var(--radius);
  padding:       30px 24px 26px;
  text-decoration: none;
  color:         var(--text);
  transition:    box-shadow 0.25s, transform 0.25s, border-color 0.25s, background 0.25s;
  display:       block;
}
.cat-card:hover {
  box-shadow:   var(--shadow-hover);
  transform:    translateY(-4px);
  border-color: var(--accent);
  background:   var(--bg-hover);
  color:        var(--text);
}
.cat-icon  { font-size: 2.6rem; margin-bottom: 14px; display: block; }
.cat-card h3 { color: var(--primary); margin-bottom: 6px; font-size: 1.1rem; }
.cat-card p  { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── Tipp-Karten ────────────────────────────────────────── */
.tips-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap:                   24px;
  padding:               8px 0 32px;
}

.tip-card {
  background:    var(--bg-card);
  border:        1.5px solid var(--border);
  border-radius: var(--radius);
  overflow:      hidden;
  transition:    box-shadow 0.25s, transform 0.25s;
  display:       flex;
  flex-direction: column;
}
.tip-card:hover {
  box-shadow: var(--shadow-hover);
  transform:  translateY(-3px);
}

/* Bild-Container — echtes <img> ODER Platzhalter-Div einfügen */
.tip-card-img {
  width:           100%;
  height:          190px;
  background:      #f0e4d0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       3.5rem;
  overflow:        hidden;
  flex-shrink:     0;
}
.tip-card-img img {
  width:       100%;
  height:      100%;
  object-fit:  cover;
  display:     block;
}

.tip-card-body {
  padding: 20px 20px 18px;
  flex:    1;
  display: flex;
  flex-direction: column;
}
.tip-card-body h3   { margin-bottom: 8px; font-size: 1.05rem; color: var(--primary); }
.tip-card-body p    { font-size: 0.88rem; color: var(--text-muted); flex: 1; margin-bottom: 14px; }

.tag {
  display:        inline-block;
  background:     #f0e4d0;
  color:          var(--primary);
  font-size:      0.72rem;
  font-weight:    700;
  padding:        2px 10px;
  border-radius:  12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag + .tag { margin-left: 4px; }

/* ── Video-Bereich ──────────────────────────────────────── */
.video-wrap {
  position:      relative;
  padding-bottom: 56.25%; /* 16:9 */
  height:        0;
  overflow:      hidden;
  border-radius: var(--radius);
  margin:        16px 0;
  background:    #1a0a00;
}
.video-wrap iframe,
.video-wrap video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display:         inline-block;
  padding:         10px 26px;
  border-radius:   6px;
  font-family:     var(--font-body);
  font-weight:     700;
  font-size:       0.9rem;
  text-decoration: none;
  cursor:          pointer;
  border:          none;
  transition:      background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--primary);
  color:      #fdf0dc;
}
.btn-primary:hover {
  background:  var(--accent);
  color:       #fff;
  transform:   translateY(-1px);
  box-shadow:  0 4px 12px rgba(192,99,30,0.3);
}

/* ── Info-Box (Geheimtipp etc.) ─────────────────────────── */
.info-box {
  background:    #fff9f0;
  border-left:   4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding:       16px 20px;
  margin:        20px 0;
  font-size:     0.9rem;
  color:         var(--text-muted);
}
.info-box strong { color: var(--primary); }

/* ── Wandern: Routen-Karte ──────────────────────────────── */
.route-card {
  background:    var(--bg-card);
  border:        1.5px solid var(--border);
  border-radius: var(--radius);
  padding:       24px;
  display:       grid;
  grid-template-columns: 1fr auto;
  gap:           16px;
  align-items:   start;
  transition:    box-shadow 0.25s;
}
.route-card:hover { box-shadow: var(--shadow-hover); }
.route-meta       { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.route-badge {
  background:    var(--border);
  color:         var(--primary);
  font-size:     0.78rem;
  font-weight:   700;
  padding:       3px 10px;
  border-radius: 12px;
}
.route-badge.easy   { background: #d4edda; color: #1a6b35; }
.route-badge.medium { background: #fff3cd; color: #856404; }
.route-badge.hard   { background: #f8d7da; color: #721c24; }
.route-img {
  width:         100px;
  height:        80px;
  object-fit:    cover;
  border-radius: 6px;
  background:    #e8d5b0;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     2rem;
  flex-shrink:   0;
}

/* ── About-Sektion ──────────────────────────────────────── */
.about-section {
  background:    linear-gradient(135deg, #fff9f0 0%, #fdf0dc 100%);
  border:        1.5px solid var(--border);
  border-radius: 14px;
  padding:       40px 36px;
  text-align:    center;
  margin:        0 0 48px;
}
.about-section h2 { color: var(--primary); margin-bottom: 14px; }
.about-section p  { max-width: 600px; margin: 0 auto 12px; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background:  var(--nav-bg);
  color:       #c8aa84;
  padding:     44px 24px 28px;
  text-align:  center;
  margin-top:  48px;
}
.footer-logo {
  font-family:   var(--font-head);
  font-size:     1.7rem;
  color:         #fdf0dc;
  margin-bottom: 8px;
  display:       block;
}
footer > p { font-size: 0.88rem; margin-bottom: 6px; line-height: 1.5; }
footer a   { color: #c8aa84; }
footer a:hover { color: #fdf0dc; }

.footer-links { margin: 16px 0 10px; }
.footer-links a {
  margin:    0 10px;
  font-size: 0.85rem;
}

.footer-copy {
  font-size:   0.76rem;
  color:       #6a5040;
  margin-top:  18px;
  border-top:  1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
}

/* ── Utility ────────────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .tips-grid    { grid-template-columns: 1fr; }
  .route-card   { grid-template-columns: 1fr; }
  .route-img    { width: 100%; height: 150px; }
  .about-section { padding: 28px 20px; }
}
@media (max-width: 540px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .hero          { padding: 60px 16px 48px; }
}
@media (max-width: 360px) {
  .category-grid { grid-template-columns: 1fr; }
}
