/* ============================================================
   Style_1_Startseite.css
   Startseite – LinguaBosna
   Designvorgaben:
     Primär:      #0A3D62  (Dunkelblau)
     Akzent:      #F4C542  (Goldgelb)
     Sekundär:    #2E5E2E  (Dunkelgrün)
     Hintergrund: #F8F5F0
     Neutral:     #E6E6E6
   Schriften:
     Überschriften: Montserrat (700/600)
     Fließtext:     Open Sans (400/600)
   ============================================================ */


/* ────────────────────────────────────────────────────────────
   ALLGEMEINE HILFSKLASSEN (Buttons)
   ──────────────────────────────────────────────────────────── */

/* Standard-Button (Goldgelb → Hover Dunkelblau) */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

/* Hero-Button: Goldgelb mit blauer Schrift */
.btn-hero {
  background-color: var(--accent);
  color: var(--primary);
  font-size: 1.05rem;
  padding: 14px 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero:hover {
  background-color: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Blog-Button: nur Umrandung (Outline) */
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--accent);
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--primary);
}

/* Primärer Button (z.B. "Alle Artikel") */
.btn-primary {
  background-color: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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


/* ────────────────────────────────────────────────────────────
   SECTION INTRO – Wiederverwendbarer Titel-Block
   ──────────────────────────────────────────────────────────── */

.section-intro {
  text-align: center;
  margin-bottom: 40px;
}

.section-intro h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;         /* Desktop */
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-intro p {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
}


/* ────────────────────────────────────────────────────────────
   HERO – Hauptbanner oben
   ──────────────────────────────────────────────────────────── */

.hero {
  /* Hintergrundbild – Fallback: Dunkelblau-Farbverlauf falls kein Bild vorhanden */
  background-image: url('/Bilder/Hintergrundbild_Mostar_neu.jpg');
  background-color: var(--primary);       /* Fallback-Farbe */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  margin-top: 62px;   /* Platz für den fixen Header */
  min-height: 55vh;   /* Mindesthöhe: 55% der Bildschirmhöhe */

  /* Flexbox: Inhalt zentrieren */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* Damit das Overlay funktioniert */
  padding: 60px 20px;
}

/* Dunkles Overlay über dem Hintergrundbild – verbessert Textlesbarkeit */
.hero-overlay {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(10, 61, 98, 0.60); /* Dunkelblau mit 60% Transparenz */
}

/* Text-Container im Hero */
.hero-content {
  position: relative; /* Über dem Overlay */
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  /* Textschatten für Lesbarkeit auf Bildhintergründen */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent); /* Goldgelb – auffällig und im Design */
  margin-bottom: 30px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}


/* ────────────────────────────────────────────────────────────
   FEATURES – „Was du bei LinguaBosna lernst"
   ──────────────────────────────────────────────────────────── */

.features {
  padding: 70px 5%;
  background-color: #fff;
}

/* Die drei Karten nebeneinander (Grid) */
.features-grid {
  display: grid;
  /* auto-fit: passt die Spaltenanzahl automatisch an die Breite an */
  /* minmax: jede Karte ist mindestens 220px, maximal gleich groß */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* Einzelne Feature-Karte */
.feature {
  background: var(--bg-light);
  border: 1px solid var(--neutral);
  border-radius: 12px;
  text-align: center;
  padding: 36px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  color: var(--primary);
  display: block; /* Wichtig: Link-Element als Block */
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(10, 61, 98, 0.12);
  background-color: var(--primary);
  color: #fff;
}

/* Icon-Container */
.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: background-color 0.3s ease;
}

.feature:hover .feature-icon {
  background-color: var(--accent); /* Goldgelb bleibt beim Hover */
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.feature h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  /* Farbe wird über .feature:hover #fff geerbt */
}

.feature p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #555; /* Etwas weicher als reines Schwarz */
  transition: color 0.3s;
}

.feature:hover p {
  color: rgba(255, 255, 255, 0.85);
}


/* ────────────────────────────────────────────────────────────
   BLOG-VORSCHAU – Startseite
   ──────────────────────────────────────────────────────────── */

.home-blog {
  padding: 70px 5%;
  background-color: var(--bg-light);
}

/* Blog-Karten: 3 Spalten → auf schmalen Screens 1 Spalte */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 0;
}

/* Einzelne Blog-Karte */
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column; /* Inhalt vertikal anordnen */
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.13);
}

/* Bild-Container mit fixer Höhe */
.blog-card-img {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background-color: var(--neutral); /* Platzhalter-Farbe wenn kein Bild */
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* Bild füllt den Container ohne zu verzerren */
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04); /* Dezentes Zoom beim Hover */
}

/* Fallback: wenn Bild nicht geladen werden kann */
.blog-card-img.img-fallback {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5c8f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img.img-fallback::after {
  content: '📰';
  font-size: 2.5rem;
  opacity: 0.4;
}

/* Textbereich der Blog-Karte */
.blog-content {
  padding: 22px;
  flex: 1;              /* Füllt den Rest der Karte */
  display: flex;
  flex-direction: column;
}

/* Datum */
.blog-content .date {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-content p {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1; /* Schiebt den Button nach unten */
}

/* "Alle Artikel"-Button */
.more-blog {
  text-align: center;
  margin-top: 40px;
}


/* ────────────────────────────────────────────────────────────
   RESPONSIVE – Tablet (max. 900px)
   ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-intro h2 {
    font-size: 1.75rem;
  }

}


/* ────────────────────────────────────────────────────────────
   RESPONSIVE – Mobile (max. 768px)
   ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* Hero: etwas kompakter auf kleinen Screens */
  .hero {
    min-height: 50vh;
    padding: 50px 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 24px;
  }

  .btn-hero {
    font-size: 0.95rem;
    padding: 12px 22px;
  }

  /* Features: 1 Spalte auf Mobile */
  .features {
    padding: 50px 5%;
  }

  .features-grid {
    grid-template-columns: 1fr; /* Eine Spalte */
  }

  /* Blog: weniger Abstand */
  .home-blog {
    padding: 50px 5%;
  }

  .section-intro h2 {
    font-size: 1.5rem;
  }

  .section-intro p {
    font-size: 0.95rem;
  }

}


/* ────────────────────────────────────────────────────────────
   RESPONSIVE – Sehr kleine Screens (max. 480px)
   ──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {

  .hero-content h1 {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .features {
    padding: 40px 4%;
  }

  .home-blog {
    padding: 40px 4%;
  }

  .section-intro h2 {
    font-size: 1.35rem;
  }

  /* Blog-Karten etwas kompakter */
  .blog-card-img {
    height: 160px;
  }

  .blog-content {
    padding: 16px;
  }

  .blog-content h3 {
    font-size: 1rem;
  }

}
