/*
Theme Name: Bergsteiger Dieter Böhme
Theme URI: https://www.gipfelstuermer-boehme.de/
Author: RB-Design
Author URI: https://www.gipfelstuermer-boehme.de/
Description: Persönliches Bergsteiger-Theme für Dieter Böhme – dunkles, dramatisches Mountain-Design mit Touren-Grid, Foto-Galerie, Lightbox und responsivem Layout.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bergsteiger
Tags: one-page, dark, custom-menu, featured-images, translation-ready
*/

/* ===== CSS Custom Properties ===== */
:root {
  --bg: #1a1a1a;
  --surface: #232323;
  --primary: #c8a96e;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --accent: #4a7c6b;
  --nav-h: 60px;
  --ff-h: 'Playfair Display', Georgia, serif;
  --ff-b: 'Open Sans', Arial, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: var(--ff-b); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: var(--ff-h); font-weight: 700; line-height: 1.2; }
a { color: var(--primary); text-decoration: none; transition: color .3s; }
a:hover { color: #dfc28a; }
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ===== NAVIGATION ===== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h); display: flex; align-items: center; justify-content: center; z-index: 1000; transition: background .3s, box-shadow .3s; background: transparent; }
.navbar.scrolled { background: rgba(26,26,26,.97); box-shadow: 0 2px 20px rgba(0,0,0,.5); backdrop-filter: blur(10px); }
.nav-inner { width: 90%; max-width: 1200px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-family: var(--ff-h); font-size: 1.05rem; font-weight: 700; color: var(--primary); letter-spacing: .5px; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a { color: var(--text); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; padding-bottom: 4px; position: relative; }
.nav-links > li > a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width .3s; }
.nav-links > li > a:hover { color: var(--primary); }
.nav-links > li > a:hover::after { width: 100%; }

/* Dropdown */
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: rgba(30,30,30,.98); backdrop-filter: blur(12px); border-radius: 0 0 8px 8px; padding: .5rem 0; box-shadow: 0 8px 30px rgba(0,0,0,.5); z-index: 100; }
.nav-links > li:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: .45rem 1.2rem; color: var(--text); font-size: .78rem; font-weight: 400; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.dropdown-menu a:hover { background: rgba(200,169,110,.1); color: var(--primary); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 26px; height: 2px; background: var(--text); transition: .3s; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(180deg,rgba(0,0,0,.3) 0%,rgba(0,0,0,.15) 40%,rgba(26,26,26,.85) 100%), url('assets/images/hero-bg.jpg') center/cover no-repeat; }
.hero-content { position: relative; z-index: 2; padding: 2rem; }
.hero h1 { font-size: clamp(2.2rem,6vw,5rem); font-weight: 900; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.7), 0 1px 4px rgba(0,0,0,.5); margin-bottom: 1rem; letter-spacing: 1px; }
.hero-tagline { font-family: var(--ff-h); font-style: italic; font-size: clamp(1rem,2.5vw,1.6rem); color: var(--primary); text-shadow: 0 2px 15px rgba(0,0,0,.6); margin-bottom: 3rem; opacity: 0; animation: fadeUp 1s ease .5s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-cta { display: inline-block; padding: .9rem 2.4rem; background: var(--primary); color: var(--bg); font-family: var(--ff-b); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: 2px; border: none; border-radius: 4px; cursor: pointer; transition: all .3s; }
.hero-cta:hover { background: #dfc28a; color: var(--bg); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,169,110,.35); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-title { font-size: clamp(1.8rem,4vw,2.8rem); text-align: center; margin-bottom: .5rem; }
.section-divider { width: 60px; height: 3px; background: var(--primary); margin: 1rem auto 2rem; border-radius: 2px; }

/* Newsflash */
.newsflash { background: var(--surface); }
.newsflash-text { max-width: 800px; margin: 0 auto; text-align: center; font-size: 1.1rem; line-height: 1.9; color: var(--muted); }

/* Tour Grid */
.tour-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.tour-card { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; box-shadow: 0 4px 20px rgba(0,0,0,.4); transition: transform .3s, box-shadow .3s; }
.tour-card:hover { transform: scale(1.03); box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.tour-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tour-card:hover img { transform: scale(1.08); }
.tour-card-ov { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.1) 50%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; transition: background .3s; }
.tour-card:hover .tour-card-ov { background: linear-gradient(0deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.3) 60%); }
.tour-card h3 { font-family: var(--ff-h); font-size: 1.2rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tour-card .yr { font-size: .85rem; color: var(--primary); margin-top: 4px; }
.tour-card .cta { color: var(--primary); font-size: .85rem; font-weight: 600; letter-spacing: 1px; margin-top: 8px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.tour-card:hover .cta { opacity: 1; transform: translateY(0); }

/* Gallery */
.gallery-wrap { background: var(--surface); }
.gallery-scroll { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.gallery-item { flex: 0 0 340px; scroll-snap-align: start; border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.4); transition: transform .3s, box-shadow .3s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.gallery-item img { width: 340px; height: 230px; object-fit: cover; }
.gallery-cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(transparent,rgba(0,0,0,.85)); color: #fff; font-size: .9rem; font-weight: 600; }

/* Kontakt */
.kontakt-info { max-width: 600px; margin: 0 auto; text-align: center; color: var(--muted); }
.kontakt-info p { margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.8; }
.kontakt-info .hl { color: var(--primary); font-weight: 600; }
.contact-form { max-width: 500px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea { background: var(--surface); border: 1px solid #444; border-radius: 6px; padding: .75rem 1rem; color: var(--text); font-family: var(--ff-b); font-size: .95rem; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form button { padding: .8rem 2rem; background: var(--primary); color: var(--bg); border: none; border-radius: 6px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: all .3s; align-self: center; }
.contact-form button:hover { background: #dfc28a; transform: translateY(-2px); }

/* Partner */
.partner-text { max-width: 800px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.05rem; line-height: 1.9; margin-bottom: 2rem; }
.partner-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.partner-links a { display: inline-block; padding: .6rem 1.5rem; border: 1px solid var(--primary); border-radius: 30px; color: var(--primary); font-weight: 600; font-size: .9rem; transition: all .3s; }
.partner-links a:hover { background: var(--primary); color: var(--bg); }

/* Impressum */
.impressum-text { max-width: 800px; margin: 0 auto; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.impressum-text h3 { color: var(--text); margin: 1.5rem 0 .5rem; font-size: 1.1rem; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 8px 60px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 24px; right: 32px; font-size: 2.4rem; color: #fff; cursor: pointer; background: none; border: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .3s; }
.lightbox-close:hover { background: rgba(255,255,255,.1); }

/* Back to top */
.btt { position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px; background: var(--primary); color: var(--bg); border: none; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s; box-shadow: 0 4px 16px rgba(0,0,0,.4); z-index: 900; }
.btt.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.btt:hover { background: #dfc28a; transform: translateY(-3px); }

/* Footer */
.site-footer { background: #111; padding: 3rem 0 1.5rem; text-align: center; }
.footer-links { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--muted); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .3s; }
.footer-social a:hover { border-color: var(--primary); color: var(--primary); background: rgba(200,169,110,.1); }
.footer-copy { color: var(--muted); font-size: .8rem; }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; width: 100%; background: rgba(26,26,26,.98); backdrop-filter: blur(12px); padding: 1.5rem 0; z-index: 999; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-height: 80vh; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: .5rem 0; }
.mobile-menu a { color: var(--text); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .sub { font-size: .85rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) { .tour-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1025px) { .tour-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .tour-grid { grid-template-columns: 1fr; }
  .gallery-item { flex: 0 0 280px; }
  .gallery-item img { width: 280px; height: 190px; }
  .section { padding: 3.5rem 0; }
}
