/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================================================== */

:root {
  /* Font Families */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;

  /* Global Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Light Theme Colors (Default) */
  --bg-primary: #f4f6f4;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9ece9;
  --text-primary: #1c271e;
  --text-secondary: #58665b;
  --accent: #2e6244;
  --accent-hover: #1e452e;
  --accent-light: #e6f1ea;
  --accent-yellow: #d59f1c;
  --accent-yellow-light: #fdf6e2;
  --border: #dee4df;

  /* Gradient & Glow Effects */
  --gradient-accent: linear-gradient(135deg, #2e6244, #3d9970);
  --gradient-hero: linear-gradient(135deg, rgba(10, 30, 18, 0.85), rgba(20, 50, 35, 0.7));
  --gradient-card-border: linear-gradient(135deg, var(--accent), var(--accent-yellow));
  --glow-accent: 0 0 20px rgba(46, 98, 68, 0.25);
  --glow-yellow: 0 0 20px rgba(213, 159, 28, 0.2);
  
  /* Glassmorphism settings */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(46, 98, 68, 0.05);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --card-badge-bg: #e2e8f0;
  --card-badge-text: #475569;
}

/* Dark Theme Colors */
html[data-theme="dark"] {
  --bg-primary: #0a0e0b;
  --bg-secondary: #121814;
  --bg-tertiary: #19211b;
  --text-primary: #f0f4f1;
  --text-secondary: #a0ada3;
  --accent: #43a06a;
  --accent-hover: #58b981;
  --accent-light: #162a1e;
  --accent-yellow: #f2ba32;
  --accent-yellow-light: #2c2512;
  --border: #212c24;

  --gradient-accent: linear-gradient(135deg, #43a06a, #68d391);
  --gradient-hero: linear-gradient(135deg, rgba(5, 12, 8, 0.9), rgba(10, 25, 15, 0.75));
  --gradient-card-border: linear-gradient(135deg, var(--accent), var(--accent-yellow));
  --glow-accent: 0 0 25px rgba(67, 160, 106, 0.3);
  --glow-yellow: 0 0 25px rgba(242, 186, 50, 0.25);
  
  --glass-bg: rgba(18, 24, 20, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
  --card-badge-bg: #2d3748;
  --card-badge-text: #cbd5e1;
}

/* ==========================================================================
   GLOBAL RESET & BASIC STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.no-top-padding {
  padding-top: 0 !important;
}

.no-bottom-padding {
  padding-bottom: 0 !important;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 25%;
  width: 50%;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px auto;
}

.subsection-title {
  font-size: 1.75rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.subsection-title i {
  color: var(--accent);
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-divider {
  border: 0;
  height: 1px;
  background-color: var(--border);
  margin: 60px 0;
}

.margin-top-lg {
  margin-top: 48px !important;
}

.margin-bottom-md {
  margin-bottom: 24px !important;
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 98, 68, 0.25);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.btn-text:hover {
  color: var(--accent-hover);
}

/* ==========================================================================
   HEADER / STICKY GLASS NAVIGATION
   ========================================================================== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--accent);
  width: 28px;
  height: 28px;
}

.accent-text {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.nav-link i {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background-color: var(--accent-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search bar styling */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 98, 68, 0.15);
}

.search-box input {
  border: none;
  background: none;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  width: 180px;
  transition: var(--transition-smooth);
}

.search-box input:focus {
  width: 240px;
}

.search-box button {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-box button:hover {
  color: var(--accent);
}

/* Dark Mode Switcher */
.theme-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-btn:hover {
  color: var(--accent);
  background-color: var(--bg-tertiary);
  border-color: var(--accent);
}

.theme-btn i {
  width: 18px;
  height: 18px;
}

html[data-theme="light"] .sun-icon {
  display: none;
}
html[data-theme="dark"] .moon-icon {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   SPA VIEWS (SECTIONS SWITCHING)
   ========================================================================== */

.spa-section {
  display: none;
}

.spa-section.active-section {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SECTION 1: STARTSEITE
   ========================================================================== */

/* Hero Banner */
.hero {
  height: calc(85vh - 72px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 650px;
  margin-left: calc((100% - 1200px) / 2 + 24px);
  color: #ffffff;
  padding: 0 24px 0 0;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(46, 98, 68, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 36px;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Quick Stats Section */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stat-card {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}

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

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrapper i {
  width: 24px;
  height: 24px;
}

.stat-details h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.stat-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Intro Grid */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.intro-feature-item {
  position: relative;
  padding-left: 28px;
}

.intro-feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-feature-item h4 i {
  color: var(--accent);
  width: 18px;
  height: 18px;
  position: absolute;
  left: 0;
}

.intro-feature-item p {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.image-wrapper-glass {
  padding: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.intro-img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
  height: 380px;
}

.image-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 12px;
  text-align: center;
  font-style: italic;
}

/* ==========================================================================
   SECTION 2: INTERAKTIVE PARKKARTE
   ========================================================================== */

.map-layout {
  display: flex;
  height: calc(100vh - 72px);
  padding: 0;
}

.map-sidebar {
  width: 420px;
  min-width: 420px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 28px;
}

.sidebar-header h2 {
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sidebar-header h2 i {
  color: var(--accent);
}

.sidebar-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Search indication inside map panel */
.search-indicator {
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  animation: fadeIn 0.3s ease-out;
}

.search-indicator p {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Checkbox Filters style */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.filter-checkbox-container:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--accent);
}

.filter-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkmark {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: transparent;
  transition: var(--transition-fast);
}

.custom-checkmark i {
  width: 14px;
  height: 14px;
  stroke-width: 3px;
}

.filter-checkbox-container input:checked ~ .custom-checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-icon {
  width: 16px;
  height: 16px;
}

/* Detail Panel in Sidebar */
.detail-panel {
  flex-grow: 1;
  border-top: 1px dashed var(--border);
  padding-top: 24px;
}

.detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  text-align: center;
  color: var(--text-secondary);
  gap: 12px;
  font-size: 0.85rem;
}

.detail-placeholder i {
  width: 48px;
  height: 48px;
  stroke-width: 1.2;
  color: var(--border);
}

.detail-content {
  animation: fadeIn 0.3s ease-out;
}

.detail-content h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.detail-img-wrapper {
  margin: 16px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  border: 1px solid var(--border);
}

.detail-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.map-container-wrapper {
  flex-grow: 1;
  height: 100%;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Custom leaflet popup stylings */
.leaflet-popup-content-wrapper {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--glass-shadow) !important;
  border: 1px solid var(--border) !important;
}

.leaflet-popup-tip {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
}

.leaflet-popup-content {
  font-family: var(--font-body) !important;
  font-size: 0.85rem;
}

.leaflet-popup-content h4 {
  font-family: var(--font-heading) !important;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.leaflet-popup-content p {
  margin: 4px 0 8px 0;
}

/* ==========================================================================
   SECTION 3: PARK GUIDE
   ========================================================================== */

.guide-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tab-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(46, 98, 68, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active-tab-content {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

/* History Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: var(--radius-full);
  z-index: 1; /* Fix: stack below badges */
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  z-index: 2; /* Fix: stack above timeline line */
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-badge {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  z-index: 10;
  box-shadow: 0 0 0 6px var(--bg-primary), 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-badge {
  right: -34px;
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -34px;
}

.timeline-panel {
  padding: 24px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-panel:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.timeline-panel h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.timeline-panel p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Architecture Cards Grid */
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.architecture-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.architecture-card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 28px;
}

.card-body h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body h4 i {
  color: var(--accent);
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Image Gallery Layout */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 98, 68, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: #ffffff;
  transition: var(--transition-smooth);
}

.gallery-overlay i {
  width: 32px;
  height: 32px;
  transform: scale(0.8);
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* ==========================================================================
   SECTION 4: FORSCHUNG & ANALYSE
   ========================================================================== */

.research-intro-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 40px;
}

.question-box {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 32px;
  margin-bottom: 32px;
  text-align: center;
}

.question-box span {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.question-box blockquote {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-primary);
}

.methodology-block h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.method-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.method-card h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--accent);
  position: relative;
  padding-bottom: 8px;
}

.method-card h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.method-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-card li {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.method-card li i {
  color: var(--accent);
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Results section and charts */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.chart-container-block {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.chart-container-block h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-wrapper {
  position: relative;
  flex-grow: 1;
  min-height: 300px;
  max-height: 380px;
}

/* Insights Info Card */
.insights-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.insights-block h3 {
  font-size: 1.5rem;
}

.highlight-info-box {
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.info-icon {
  position: absolute;
  top: 24px;
  right: 28px;
  color: var(--accent);
  width: 32px;
  height: 32px;
  opacity: 0.25;
}

.highlight-info-box blockquote {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent);
  margin-bottom: 12px;
  padding-right: 40px;
}

.highlight-info-box p {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 0;
}

.insights-details h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.insights-details ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insights-details li {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.insights-details li strong {
  color: var(--text-primary);
}

/* Case Study Section */
.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  margin-top: 24px;
}

.quote-card {
  background-color: var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border);
}

.quote-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 32px;
  left: 32px;
}

.quote-card blockquote {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  color: var(--text-primary);
}

.quote-card cite {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: normal;
}

.analysis-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 40px;
}

.analysis-card h4 {
  font-size: 1.35rem;
  margin-bottom: 24px;
}

.analysis-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analysis-list li h5 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  margin-bottom: 4px;
}

.analysis-list li p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 24px;
}

.importance-box {
  margin-top: 28px;
  border-top: 1px dashed var(--border);
  padding-top: 24px;
}

.importance-box h5 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.importance-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================================================
   SECTION 5: FORSCHUNG TRIFFT PRAXIS
   ========================================================================== */

.concept-intro {
  max-width: 700px;
  margin: 0 auto 48px auto;
}

.concept-intro h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.design-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.design-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 36px;
  text-align: center;
  transition: var(--transition-smooth);
}

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

.design-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.design-card-icon i {
  width: 28px;
  height: 28px;
}

.design-card h4 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.accent-subtitle {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-yellow);
  margin-bottom: 16px;
}

.design-card p:not(.accent-subtitle) {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Interactive Flowchart (Diagramm) */
.flowchart-section {
  max-width: 1000px;
  margin: 0 auto;
}

.flowchart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 180px;
}

.node-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 2px solid var(--border);
  transition: var(--transition-smooth);
}

.flow-node:hover .node-icon {
  transform: rotate(10deg) scale(1.05);
  border-color: var(--accent);
}

.node-icon i {
  width: 24px;
  height: 24px;
}

.flow-node h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.flow-node p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.flow-arrow {
  color: var(--accent);
  animation: pulseArrow 2s infinite ease-in-out;
}

.flow-arrow i {
  width: 28px;
  height: 28px;
}

@keyframes pulseArrow {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

/* ==========================================================================
   SECTION 6: ÜBER DAS PROJEKT / QUELLEN
   ========================================================================== */

.project-goal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 40px;
  margin-bottom: 48px;
}

.project-goal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.project-goal-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.project-goal-card p {
  color: var(--text-secondary);
}

/* Team Grid layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.team-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition-smooth);
}

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

.team-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 1px dashed var(--accent);
}

.team-avatar i {
  width: 28px;
  height: 28px;
}

.team-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Sources List styling */
.sources-list-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sources-list li {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.source-marker {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.source-content {
  color: var(--text-secondary);
}

.source-content strong {
  color: var(--text-primary);
}

/* ==========================================================================
   MODAL LIGHTBOX
   ========================================================================== */

.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 14, 11, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease-out;
  padding: 24px;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-modal img {
  border-radius: var(--radius-md);
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-height: calc(85vh - 60px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #ffffff;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.lightbox-caption {
  color: #ffffff;
  font-size: 0.95rem;
  margin-top: 16px;
  text-align: center;
  font-weight: 500;
}

/* ==========================================================================
   GLOBAL SEARCH HIGHLIGHTS
   ========================================================================== */

.search-highlight {
  background-color: rgba(213, 159, 28, 0.35); /* Yellow highlighting */
  border-bottom: 2px solid var(--accent-yellow);
  padding: 0 2px;
  border-radius: 2px;
}

/* Animation for matched layout items */
.card-matched-search {
  border-color: var(--accent-yellow) !important;
  box-shadow: 0 0 0 3px rgba(213, 159, 28, 0.15) !important;
  animation: pulseSearch 1.5s infinite alternate;
}

@keyframes pulseSearch {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.01);
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  transition: background-color 0.3s ease, border-top 0.3s ease;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE OPTIMIZATION)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-content {
    margin-left: 24px;
    padding-right: 24px;
  }
  
  .quick-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
    padding: 0 24px;
  }
  
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .intro-img {
    height: 300px;
  }

  .map-layout {
    flex-direction: column-reverse;
    height: auto;
  }

  .map-sidebar {
    width: 100%;
    min-width: 100%;
    height: 500px;
    border-right: none;
    border-top: 1px solid var(--border);
  }

  .map-container-wrapper {
    height: 400px;
    width: 100%;
  }

  .architecture-grid {
    grid-template-columns: 1fr;
  }

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

  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .design-cards-grid {
    grid-template-columns: 1fr;
  }

  .flowchart {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }
  
  @keyframes pulseArrow {
    0%, 100% {
      transform: rotate(90deg) translateX(0);
      opacity: 0.6;
    }
    50% {
      transform: rotate(90deg) translateX(4px);
      opacity: 1;
    }
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }

  .nav-menu {
    display: none; /* In JS we will toggle mobile nav overlay */
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--glass-shadow);
  }

  .nav-menu.mobile-active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .mobile-toggle {
    display: block;
  }

  .header-actions .search-box {
    display: none; /* Hide top search in mobile to save space */
  }

  .quick-stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) {
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-badge,
  .timeline-item:nth-child(even) .timeline-badge {
    left: 0;
  }

  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .image-gallery {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FEEDBACK-TOOL STYLES
   ========================================================================== */
.feedback-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  margin-top: 30px;
}

.feedback-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.feedback-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

.feedback-stats-teaser {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-teaser-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 500;
}

.stat-teaser-item i {
  color: var(--accent);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feedback-form-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 98, 68, 0.15);
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: fit-content;
}

.file-upload-label:hover {
  background: var(--accent);
  color: #ffffff;
}

.file-name-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: block;
}

.btn-full-width {
  width: 100%;
}

.form-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.success-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.success-icon-ring i {
  width: 32px;
  height: 32px;
}

.form-success-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-success-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* ==========================================================================
   DIGITALE SCHNITZELJAGD (QUIZ) STYLES
   ========================================================================== */
.quiz-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.quiz-step {
  display: none;
}

.quiz-step.active-quiz-step {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.quiz-progress {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 700;
}

.quiz-step h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quiz-option-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(4px);
}

/* Correct/Incorrect animations and colors */
.quiz-option-btn.correct-choice {
  background-color: var(--accent-light) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  font-weight: 600;
}

.quiz-option-btn.incorrect-choice {
  background-color: rgba(220, 38, 38, 0.15) !important;
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}
html[data-theme="dark"] .quiz-option-btn.incorrect-choice {
  background-color: rgba(220, 38, 38, 0.25) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

.quiz-results-step {
  text-align: center;
}

.quiz-certificate-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.cert-icon-ring {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--accent-yellow-light);
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cert-icon {
  width: 36px;
  height: 36px;
}

.quiz-score-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.certificate-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  border: 2px solid var(--accent-yellow);
  background: var(--accent-yellow-light);
  border-radius: var(--radius-md);
  margin-bottom: 25px;
  max-width: 280px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(213, 159, 28, 0.15);
  animation: pulseBadge 2s infinite ease-in-out;
}

.certificate-badge .cert-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.certificate-badge .cert-level {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 4px;
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(213, 159, 28, 0.15);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(213, 159, 28, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(213, 159, 28, 0.15);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   JAN GEHL BANNER & CHART SUBTEXT
   ========================================================================== */
.gehl-concept-banner {
  display: flex;
  gap: 20px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  align-items: flex-start;
}

.gehl-icon-wrapper {
  background: var(--accent);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gehl-icon-wrapper i {
  width: 22px;
  height: 22px;
}

.gehl-text h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

.chart-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* Heatmap-specific checkbox checkmark customization */
#toggle-heatmap:checked ~ .custom-checkmark {
  background-color: var(--accent-yellow);
  border-color: var(--accent-yellow);
}

@media (max-width: 768px) {
  .feedback-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   DESIGN UPGRADE: SCROLL REVEALS & PARTICLES
   ========================================================================== */

/* Scroll-triggered reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.15s; }

/* Floating particles in hero */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 1;
}

.hero-particle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -80px;
  animation: floatParticle 18s ease-in-out infinite;
}

.hero-particle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: 10%;
  animation: floatParticle 22s ease-in-out infinite reverse;
}

.hero-particle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 25%;
  animation: floatParticle 15s ease-in-out infinite 3s;
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.06; }
  25% { transform: translate(30px, -20px) scale(1.1); opacity: 0.1; }
  50% { transform: translate(-20px, 15px) scale(0.95); opacity: 0.08; }
  75% { transform: translate(15px, 25px) scale(1.05); opacity: 0.12; }
}

/* Staggered hero text entrance */
.hero-content .hero-badge {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-content h1 {
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.hero-content p {
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.hero-content .hero-buttons {
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* ==========================================================================
   DESIGN UPGRADE: ENHANCED NAVIGATION
   ========================================================================== */

.main-header {
  transition: background-color 0.3s ease, border-bottom 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.main-header.scrolled .header-container {
  height: 58px;
  transition: height 0.3s ease;
}

.main-header.scrolled .logo {
  font-size: 1.2rem;
  transition: font-size 0.3s ease;
}

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   DESIGN UPGRADE: SHIMMER BUTTONS
   ========================================================================== */

.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-primary:hover::after {
  left: 100%;
}

/* ==========================================================================
   DESIGN UPGRADE: ENHANCED CARDS
   ========================================================================== */

/* Stat cards glow on hover */
.stat-card:hover {
  box-shadow: var(--glow-accent), var(--card-shadow);
}

/* Architecture cards top accent stripe */
.architecture-card {
  position: relative;
}

.architecture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.architecture-card:hover::before {
  opacity: 1;
}

/* Design cards gradient icon ring on hover */
.design-card:hover .design-card-icon {
  background: var(--gradient-accent);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: var(--glow-accent);
  transition: all 0.3s ease;
}

.design-card-icon {
  transition: all 0.3s ease;
}

/* Team cards gradient ring */
.team-avatar {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--accent-light), var(--accent-light)), var(--gradient-accent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
  transform: scale(1.1);
  box-shadow: var(--glow-accent);
}

/* ==========================================================================
   DESIGN UPGRADE: TIMELINE
   ========================================================================== */

/* Gradient timeline line */
.timeline::after {
  background: linear-gradient(to bottom, var(--accent), var(--accent-yellow), transparent) !important;
}

/* Timeline badge glow on hover */
.timeline-item:hover .timeline-badge {
  box-shadow: 0 0 0 6px var(--bg-primary), var(--glow-accent);
  transform: scale(1.08);
}

.timeline-badge {
  transition: all 0.3s ease;
}

/* Timeline panel accent stripe */
.timeline-item:nth-child(odd) .timeline-panel {
  border-right: 3px solid var(--accent);
}

.timeline-item:nth-child(even) .timeline-panel {
  border-left: 3px solid var(--accent);
}

/* ==========================================================================
   DESIGN UPGRADE: PREMIUM FOOTER
   ========================================================================== */

.main-footer {
  background: linear-gradient(to top, var(--bg-tertiary), var(--bg-secondary));
  border-top: none;
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* ==========================================================================
   DESIGN UPGRADE: TAB BUTTONS & QUIZ
   ========================================================================== */

.tab-btn.active {
  background: var(--gradient-accent);
  border-color: transparent;
}

/* Quiz container gradient border */
.quiz-container {
  border: none;
  position: relative;
}

.quiz-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

/* Feedback form card gradient border */
.feedback-form-card {
  border: none;
  position: relative;
}

.feedback-form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
}

/* Gehl banner upgrade */
.gehl-concept-banner {
  border-left: 4px solid;
  border-image: var(--gradient-accent) 1;
  border-top: none;
  border-right: none;
  border-bottom: none;
}

/* Hero badge glow */
.hero-badge {
  box-shadow: 0 0 30px rgba(46, 98, 68, 0.3);
}

/* Section title gradient underline */
.section-title::after {
  background: var(--gradient-accent);
  height: 3px;
}

/* Question box blockquote gradient text effect (accent color stays) */
.question-box blockquote {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Highlight info box upgrade */
.highlight-info-box {
  border: none;
  position: relative;
}

.highlight-info-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* Flowchart node hover glow */
.flow-node:hover .node-icon {
  box-shadow: var(--glow-accent);
}

/* Research note upgrade */
.research-note {
  border-left: 4px solid;
  border-image: var(--gradient-accent) 1;
}

/* Project goal card accent */
.project-goal-card {
  border-top: 3px solid;
  border-image: var(--gradient-accent) 1;
}

/* Sources list accent */
.source-marker {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-panel,
  .timeline-item:nth-child(even) .timeline-panel {
    border-right: none;
    border-left: 3px solid var(--accent);
  }
}

/* Smooth image loading */
.gallery-item img,
.card-image img,
.intro-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.gallery-item:hover img {
  filter: brightness(1.05);
}

/* Detail panel image hover */
.detail-img-wrapper:hover img {
  transform: scale(1.03);
}

.detail-img-wrapper {
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.detail-img-wrapper:hover {
  box-shadow: var(--glow-accent);
}


