/* ==========================================================================
   vSWISS Virtual Airline – Swiss-Design Stylesheet
   Farben: Swiss Red #E3000F · Pure White #FFFFFF · Midnight Blue #002654
   ========================================================================== */

:root {
  --swiss-red: #E3000F;
  --swiss-red-dark: #B8000C;
  --swiss-white: #FFFFFF;
  --midnight-blue: #002654;
  --midnight-blue-light: #0B3A73;
  --grey-50: #F7F8FA;
  --grey-100: #EDEFF2;
  --grey-300: #C9CED6;
  --grey-500: #6B7280;
  --grey-800: #1F2430;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 38, 84, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--grey-800);
  background: var(--swiss-white);
  line-height: 1.55;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--grey-800);
}

a {
  color: var(--swiss-red);
  text-decoration: none;
}

code {
  background: var(--grey-100);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.92em;
}

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

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-lg {
  padding: 0.85em 1.8em;
  font-size: 1.05rem;
}
.btn-primary {
  background: var(--swiss-red);
  color: var(--swiss-white);
  box-shadow: 0 6px 16px rgba(227, 0, 15, 0.35);
}
.btn-primary:hover {
  background: var(--swiss-red-dark);
}
.btn-outline {
  background: transparent;
  color: var(--midnight-blue);
  border-color: var(--grey-300);
}
.btn-outline:hover {
  border-color: var(--midnight-blue);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--swiss-white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
}
.btn-discord .discord-icon {
  width: 18px;
  height: 18px;
}

/* --- Header / Navigation ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--swiss-white);
  border-bottom: 1px solid var(--grey-100);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 92px;
}
.brand {
  flex-shrink: 0;
}
.brand-logo {
  height: 52px;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.main-nav a:not(.btn) {
  color: var(--grey-800);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:not(.btn):hover {
  color: var(--swiss-red);
  border-bottom-color: var(--swiss-red);
}

.header-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.utility-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--grey-800);
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.utility-icon svg {
  width: 20px;
  height: 20px;
}
.utility-icon:hover {
  background: var(--grey-100);
  color: var(--swiss-red);
}
.utility-icon-cta {
  color: var(--swiss-red);
}
.utility-avatar img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: block;
  border: 2px solid var(--grey-100);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--grey-800);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--swiss-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--grey-100);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    padding: 10px 0;
  }
}

/* --- Schnellfilter-Leiste (oberhalb des Hero-Bilds) -------------------------- */
.quick-filter {
  padding: 20px 24px 0;
}
.filter-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: var(--swiss-white);
  border: 1px solid var(--grey-100);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 8px 10px;
  flex-wrap: wrap;
}
.filter-field {
  flex: 1;
  min-width: 160px;
  padding: 6px 18px;
}
.filter-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-500);
}
.filter-field input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--grey-800);
  background: transparent;
  padding: 2px 0;
}
.filter-swap {
  align-self: center;
  border: 1px solid var(--grey-300);
  background: var(--swiss-white);
  color: var(--grey-500);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-shrink: 0;
}
.filter-swap:hover {
  color: var(--swiss-red);
  border-color: var(--swiss-red);
}
.filter-submit {
  flex-shrink: 0;
  align-self: center;
}

/* --- Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 380px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--midnight-blue);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--midnight-blue);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 38, 84, 0.15) 0%, rgba(0, 38, 84, 0.35) 100%);
}
.hero-card {
  position: absolute;
  z-index: 1;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 340px;
  background: var(--swiss-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.hero-card-kicker {
  color: var(--swiss-red);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}
.hero-card h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}
.hero-card-link {
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .hero {
    height: 460px;
  }
  .hero-card {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: 88%;
    max-width: none;
  }
}

/* --- Karten-Reihen (Themen / Ziele) ------------------------------------------ */
.topics, .destinations {
  padding: 56px 24px 8px;
}
.destinations-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.pill-toggle {
  display: inline-block;
  padding: 0.4em 1.1em;
  border-radius: 999px;
  background: var(--grey-100);
  color: var(--grey-800);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}

.card-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 20px;
  margin: 0 -4px;
}
.card-scroll::-webkit-scrollbar {
  height: 8px;
}
.card-scroll::-webkit-scrollbar-thumb {
  background: var(--grey-300);
  border-radius: 999px;
}

.topic-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
  background: var(--swiss-white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.topic-card-media {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--swiss-white);
}
.topic-media-a { background: linear-gradient(135deg, var(--swiss-red), var(--swiss-red-dark)); }
.topic-media-b { background: linear-gradient(135deg, var(--midnight-blue-light), var(--midnight-blue)); }
.topic-media-c { background: linear-gradient(135deg, #4b5563, var(--grey-800)); }
.topic-card-body {
  padding: 18px 20px 22px;
}
.topic-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.topic-card-body p {
  margin: 0 0 12px;
  color: var(--grey-500);
  font-size: 0.9rem;
}
.topic-card-link {
  font-weight: 600;
  font-size: 0.88rem;
}

.destination-tile {
  flex: 0 0 150px;
  scroll-snap-align: start;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow);
  color: inherit;
}
.destination-media {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--grey-100), var(--grey-300));
}
.destination-name {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.92rem;
}
.destination-name span {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--grey-500);
  margin-top: 2px;
}

/* --- Departure Board ---------------------------------------------------- */
.board-section {
  padding: 72px 24px;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--swiss-red);
  border-radius: 2px;
}
.board-empty {
  color: var(--grey-500);
}
.board-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-100);
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.board-table th, .board-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.95rem;
}
.board-table thead th {
  background: var(--midnight-blue);
  color: var(--swiss-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.board-table tbody tr:nth-child(even) {
  background: var(--grey-50);
}
.board-table tbody tr:hover {
  background: #FDECEE;
}

.status-badge {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}
.status-scheduled { background: #E7F0FF; color: var(--midnight-blue); }
.status-boarding  { background: #FFF3D6; color: #8A5B00; }
.status-departed  { background: #E5F7EA; color: #1E7A34; }
.status-completed { background: #E5F7EA; color: #1E7A34; }
.status-cancelled { background: #FDE7E7; color: var(--swiss-red-dark); }

.board-filter-empty {
  padding: 18px 16px;
  margin: 0;
  color: var(--grey-500);
  text-align: center;
}

/* --- Auth-/Fehlerseiten ------------------------------------------------------ */
.auth-message {
  padding: 96px 24px;
  display: flex;
  justify-content: center;
}
.auth-card {
  max-width: 520px;
  text-align: center;
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 1.5rem;
  margin-top: 0;
}
.auth-links {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--grey-500);
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.alert-error {
  background: #FDE7E7;
  color: var(--swiss-red-dark);
  border: 1px solid #F6C2C2;
}

/* --- Dashboard --------------------------------------------------------------- */
.dashboard {
  padding: 56px 24px 96px;
}
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.dashboard-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--swiss-white);
  box-shadow: var(--shadow);
}
.dashboard-header h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}
.dashboard-rank-badge {
  margin: 0;
  font-weight: 700;
  color: var(--swiss-red);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 2fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 780px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--swiss-white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--midnight-blue);
  margin: 0 0 14px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--grey-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--swiss-red), var(--swiss-red-dark));
  border-radius: 999px;
}
.progress-label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--grey-500);
}

.empty-hint {
  color: var(--grey-500);
}

.booking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.booking-item {
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--grey-50);
}
.booking-route {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--midnight-blue);
}
.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-bottom: 8px;
}
.booking-ticket {
  font-size: 0.85rem;
  color: var(--grey-500);
}

/* --- Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--midnight-blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 24px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--swiss-white);
}
.footer-brand span {
  font-weight: 400;
  opacity: 0.75;
  margin-left: 6px;
}
.footer-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
  max-width: 720px;
}
