/* ============================================
   FBS PLUS e.V. — Design Tokens v1
   Farben abgeleitet aus dem Logo
   ============================================ */

:root {
  /* PRIMARY: Dunkles Petrol (FBS-Text, Regenbogen-Unterbogen) */
  --fbs-petrol: #1A4B5C;
  --fbs-petrol-light: #2E8B8B;
  --fbs-petrol-dark: #113844;

  /* ACCENT: Warmes Rot/Rost ("plus"-Text, Regenbogen-Obenbogen) */
  --fbs-rust: #B83A2B;
  --fbs-rust-light: #D44A3A;
  --fbs-rust-dark: #8F2A1E;

  /* HIGHLIGHT: Warmes Gelb/Gold (Sonne, Regenbogen-Mitte) */
  --fbs-sun: #F2B134;
  --fbs-sun-light: #F5C45C;
  --fbs-sun-dark: #D99A1E;

  /* SECONDARY: Türkis (Regenbogen-Mitte) */
  --fbs-teal: #3AAFA9;
  --fbs-teal-light: #5EC4BF;

  /* NEUTRALS */
  --fbs-white: #FDFCF8;
  --fbs-cream: #F5F1EB;
  --fbs-sand: #E8E0D5;
  --fbs-text: #2C3E50;
  --fbs-text-muted: #6B7B8D;
  --fbs-border: #D5CFC7;

  /* FONTS */
  --font-headline: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Caveat', 'Kalam', cursive;

  /* SPACING */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* LAYOUT */
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 16px;

  /* SHADOWS */
  --shadow-sm: 0 2px 8px rgba(26, 75, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 75, 92, 0.10);
  --shadow-lg: 0 16px 48px rgba(26, 75, 92, 0.12);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--fbs-text);
  background-color: var(--fbs-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fbs-rust);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--fbs-rust-dark);
  text-decoration: underline;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--fbs-petrol);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; }

.accent-text {
  font-family: 'Caveat', cursive;
  color: var(--fbs-rust);
  display: inline;
}

/* Bild-Platzhalter fuer nachgelieferte Fotos */
.image-placeholder {
  background: var(--fbs-cream);
  border: 2px dashed var(--fbs-sand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--fbs-text-muted);
  font-size: 0.9375rem;
  text-align: center;
  padding: var(--space-md);
}
.image-placeholder::before {
  content: "🖼️\A";
  white-space: pre;
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-sm);
}
.image-placeholder.small { min-height: 120px; }
.image-placeholder.large { min-height: 300px; }
.image-placeholder.rounded { border-radius: 50%; aspect-ratio: 1; }

/* Timeline fuer Anmeldeprozess */
.timeline {
  position: relative;
  padding-left: var(--space-lg);
}
.timeline::before {
  content: '';
  position: absolute;
  left: calc(var(--space-sm) / 2);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--fbs-petrol);
  opacity: 0.3;
}
.timeline-item {
  position: relative;
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-sm) / 2 - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fbs-petrol);
  border: 2px solid var(--fbs-white);
}
.timeline-item h4 {
  margin-bottom: var(--space-xs);
  color: var(--fbs-petrol);
}
.timeline-item p {
  color: var(--fbs-text-body);
}

p {
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: 1.125rem;
  color: var(--fbs-text-muted);
  line-height: 1.8;
}

/* ============================================
   LAYOUT — Container
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-cream {
  background-color: var(--fbs-cream);
}

.section-petrol {
  background-color: var(--fbs-petrol);
  color: var(--fbs-white);
}

.section-petrol h1,
.section-petrol h2,
.section-petrol h3 {
  color: var(--fbs-sun);
}

.section-petrol p {
  color: rgba(253, 252, 248, 0.9);
}

/* Info-Box in petrol section: dark text for readability */
.section-petrol .info-box,
.section-petrol .info-box p {
  color: var(--fbs-text);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  background-color: var(--fbs-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo img {
  height: 56px;
  width: auto;
}

.nav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav a {
  color: var(--fbs-petrol);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fbs-sun);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: var(--fbs-petrol);
  text-decoration: none;
}

.nav a.active {
  color: var(--fbs-rust);
}

.nav a.active::after {
  width: 100%;
  background: var(--fbs-rust);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--fbs-petrol);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--fbs-petrol) 0%, var(--fbs-petrol-dark) 100%);
  color: var(--fbs-white);
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--fbs-sun) 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero h1 {
  color: var(--fbs-white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}

.hero .accent-text {
  color: var(--fbs-sun);
  font-size: 1.5em;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(253, 252, 248, 0.85);
  margin-bottom: var(--space-lg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--fbs-rust);
  color: var(--fbs-white);
  border-color: var(--fbs-rust);
}

.btn-primary:hover {
  background-color: var(--fbs-rust-dark);
  border-color: var(--fbs-rust-dark);
  color: var(--fbs-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--fbs-sun);
  border-color: var(--fbs-sun);
}

.btn-secondary:hover {
  background-color: var(--fbs-sun);
  color: var(--fbs-petrol-dark);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--fbs-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--fbs-border);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--fbs-sun) 0%, var(--fbs-sun-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: var(--space-xs);
}

.card p {
  color: var(--fbs-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-link:hover {
  text-decoration: none;
  color: inherit;
}
.card-link:hover h3 {
  color: var(--fbs-rust);
}
.partner-logo-wrap {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--space-sm);
}
.partner-logo {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.partner-logo-dark {
  background: #1a3a5c;
  padding: 8px 12px;
  border-radius: var(--radius);
  display: inline-flex;
}
.partner-logo-placeholder {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--fbs-sun) 0%, var(--fbs-sun-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ============================================
   FEATURE BOXES
   ============================================ */
.feature {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.feature-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--fbs-teal) 0%, var(--fbs-petrol-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--fbs-white);
}

.feature-content h3 {
  margin-bottom: var(--space-xs);
}

/* ============================================
   TIMELINE / ABLAUF
   ============================================ */
.timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--fbs-sun), var(--fbs-rust));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg) - 6px);
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--fbs-sun);
  border-radius: 50%;
  border: 3px solid var(--fbs-white);
  box-shadow: 0 0 0 3px var(--fbs-sun);
}

.timeline-item h4 {
  color: var(--fbs-petrol);
  margin-bottom: var(--space-xs);
}

.timeline-item p {
  color: var(--fbs-text-muted);
  font-size: 0.9375rem;
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--fbs-white);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--fbs-border);
}

th {
  background: var(--fbs-petrol);
  color: var(--fbs-white);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tr:hover td {
  background: var(--fbs-cream);
}

/* ============================================
   INFO BOXES
   ============================================ */
.info-box {
  background: linear-gradient(135deg, var(--fbs-cream) 0%, var(--fbs-sand) 100%);
  border-left: 4px solid var(--fbs-sun);
  padding: var(--space-md);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: var(--space-md);
}

.info-box h4 {
  color: var(--fbs-petrol);
  margin-bottom: var(--space-xs);
}

.info-box p:last-child {
  margin-bottom: 0;
}

.highlight-box {
  background: linear-gradient(135deg, var(--fbs-petrol) 0%, var(--fbs-petrol-light) 100%);
  color: var(--fbs-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
}

.highlight-box h3 {
  color: var(--fbs-sun);
  margin-bottom: var(--space-sm);
}

.highlight-box p {
  color: rgba(253, 252, 248, 0.9);
  margin-bottom: var(--space-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--fbs-petrol-dark);
  color: var(--fbs-white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer h4 {
  color: var(--fbs-sun);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.footer a {
  color: rgba(253, 252, 248, 0.8);
}

.footer a:hover {
  color: var(--fbs-sun);
}

.footer p {
  color: rgba(253, 252, 248, 0.7);
  font-size: 0.9375rem;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 252, 248, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  color: rgba(253, 252, 248, 0.5);
  font-size: 0.875rem;
}

.footer-credit {
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(253, 252, 248, 0.4);
}

.footer-credit a {
  color: rgba(242, 177, 52, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--fbs-sun);
}

/* ============================================
   SPONSOREN / PARTNER LOGOS
   ============================================ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  align-items: center;
  justify-items: center;
}

.partner-card {
  background: var(--fbs-white);
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  width: 100%;
  transition: all 0.3s ease;
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-card img {
  max-height: 80px;
  margin: 0 auto var(--space-xs);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.partner-card:hover img {
  opacity: 1;
}

.partner-card h4 {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-sm);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--fbs-petrol);
  font-size: 0.9375rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--fbs-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fbs-text);
  background: var(--fbs-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--fbs-teal);
  box-shadow: 0 0 0 3px rgba(58, 175, 169, 0.15);
}

/* ============================================
   QUOTE
   ============================================ */
.quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--fbs-petrol);
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.quote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--fbs-sun);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.quote-author {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-weight: 600;
  color: var(--fbs-rust);
  font-size: 1rem;
}

/* ============================================
   BANNER / CTA
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--fbs-rust) 0%, var(--fbs-rust-dark) 100%);
  color: var(--fbs-white);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
}

.cta-banner h2 {
  color: var(--fbs-white);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  color: rgba(253, 252, 248, 0.9);
  margin-bottom: var(--space-md);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) 0;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--fbs-border);
  }

  .menu-toggle {
    display: block;
  }

  .feature {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero {
    padding: var(--space-xl) 0;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

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

  .section {
    padding: var(--space-lg) 0;
  }
}
