/* ============================================
   Flugplatz Höxter-Holzminden (EDVI)
   Modern Static Redesign
   ============================================ */

:root {
  --color-primary: #0b3b4f;
  --color-primary-light: #166880;
  --color-accent: #4ca4bf;
  --color-accent-light: #7ec8dd;
  --color-text: #1e2e36;
  --color-text-light: #5a6e78;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f9;
  --color-bg-dark: #0b2b38;
  --color-border: #dce4e8;
  --color-white: #ffffff;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-primary-light);
}

ul { list-style: none; }
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Top Bar ---- */
.topbar {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.875rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}
.topbar a {
  color: var(--color-accent-light);
}
.topbar a:hover {
  color: var(--color-white);
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent-light);
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
}
.header-logo img {
  height: 48px;
  width: auto;
}
.header-logo:hover { color: var(--color-primary); }

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover,
.nav-link.active {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
  padding: 8px;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: 8px 12px;
  color: var(--color-text);
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.dropdown-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 60px 24px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 0.05em;
}
.hero-code {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-top: 12px;
  color: var(--color-accent-light);
}

/* ---- Section ---- */
.section {
  padding: 80px 0;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 48px;
}
.section-alt {
  background: var(--color-bg-alt);
}

/* ---- Welcome Section ---- */
.welcome {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 80px 24px;
}
.welcome p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 20px;
}
.welcome-signoff {
  font-style: italic;
  color: var(--color-text-light);
  margin-top: 32px;
}

/* ---- Cards Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  margin-bottom: 20px;
}
.card-icon svg {
  width: 26px;
  height: 26px;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}
.card .price-list {
  margin: 16px 0;
}
.card .price-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.95rem;
}
.card .price-list li:last-child {
  border-bottom: none;
}
.card .price-label { color: var(--color-text); }
.card .price-value {
  font-weight: 600;
  color: var(--color-primary);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 16px;
}
.btn:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ---- Webcam Grid ---- */
.webcam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.webcam-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-dark);
}
.webcam-card img {
  width: 100%;
  display: block;
}
.webcam-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---- Info Cards (for subpages) ---- */
.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
}
.info-card h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.info-card p {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
}
.info-card p:last-child { margin-bottom: 0; }

/* ---- Board Members ---- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.board-member {
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  transition: box-shadow var(--transition);
}
.board-member:hover {
  box-shadow: var(--shadow);
}
.board-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--color-bg-alt);
}
.board-member h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.board-member .role {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}
.board-member .email {
  font-size: 0.8rem;
  color: var(--color-accent);
  word-break: break-all;
}

/* ---- Data Table ---- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  max-width: 100%;
}
.table-wrapper table {
  margin: 0;
  min-width: 480px;
}

.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  max-width: 100%;
}
.page-layout main {
  min-width: 0;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.data-table th {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
  width: 200px;
}
.data-table tr:last-child td,
.data-table tr:last-child th {
  border-bottom: none;
}

/* ---- Subpage Hero ---- */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.page-hero .breadcrumb {
  font-size: 0.9rem;
  color: var(--color-accent-light);
  margin-top: 8px;
}
.page-hero .breadcrumb a {
  color: var(--color-accent-light);
}
.page-hero .breadcrumb a:hover { color: var(--color-white); }

/* Page Layout */
.page-content {
  padding: 48px 0 80px;
}

/* Sidebar subnav */
.sidebar-nav {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}
.sidebar-nav .sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  font-weight: 600;
  padding: 8px 12px 4px;
}
.sidebar-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--color-text);
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--color-white);
  color: var(--color-accent);
  font-weight: 500;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-accent-light);
}
.footer p, .footer a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}
.footer a:hover {
  color: var(--color-white);
}
.footer-links a {
  display: block;
  padding: 4px 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: 20px 24px;
  z-index: 9999;
  font-size: 0.9rem;
  line-height: 1.6;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p {
  flex: 1;
  min-width: 280px;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity var(--transition);
}
.cookie-btn:hover { opacity: 0.9; }
.cookie-btn-accept { background: var(--color-accent); color: var(--color-white); }
.cookie-btn-reject { background: rgba(255,255,255,0.15); color: var(--color-white); }

/* ---- Tabs ---- */
.tabs {
  display: block;
  margin-bottom: 24px;
}
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
}
.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--color-primary); }
.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    gap: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-toggle { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { padding: 12px 16px; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0 16px;
  }
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
  }
  .sidebar-nav .sidebar-heading {
    width: 100%;
  }
  .webcam-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- Lightbox ---- */
.lightbox-trigger {
  cursor: pointer;
  transition: opacity var(--transition);
}
.lightbox-trigger:hover {
  opacity: 0.85;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox-overlay.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: var(--color-white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox-close:hover {
  opacity: 1;
}