@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #ffffff;
  --bg-surface: #f2f9f4;
  --bg-card: #e8f5eb;
  --bg-elevated: #ddf0e1;
  --border: #c2dfc8;
  --text-primary: #162318;
  --text-secondary: #4a6b4e;
  --text-muted: #7a9b7e;
  --accent: #2a7a38;
  --accent-dim: rgba(42, 122, 56, 0.1);
  --gradient-start: #2a7a38;
  --gradient-end: #60b86c;
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1100px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  opacity: 1;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Main Content ── */

main {
  padding-top: var(--nav-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero (Startseite) ── */

.hero {
  position: relative;
  height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22, 35, 24, 0.88) 0%,
    rgba(22, 35, 24, 0.35) 40%,
    rgba(22, 35, 24, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 151, 240, 0.3);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-stat .number {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ── Sections ── */

.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.7;
}

/* ── Cards ── */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Route Page ── */

.route-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.route-stops {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.route-stop {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.route-stop:last-child {
  border-bottom: none;
}

.route-stop-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
}

.route-stop:not(:last-child) .route-stop-marker::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 24px);
  background: var(--border);
}

.route-stop h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.route-stop p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Blog ── */

.blog-grid {
  display: grid;
  gap: 20px;
}

.blog-entry {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: border-color 0.3s;
}

.blog-entry:hover {
  border-color: var(--accent);
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 3px;
}

.blog-entry h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-entry p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.blog-empty .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ── Contact / Impressum ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

.social-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  opacity: 1;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
}

/* ── Divider Line ── */

.gradient-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gradient-start), var(--gradient-end), transparent);
  border: none;
  opacity: 0.4;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    padding-bottom: 48px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .route-overview,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .blog-entry {
    flex-direction: column;
    gap: 8px;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

/* ── Fade-in Animation ── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
