/* =========================
   GRUNDLEGENDE STYLES
========================= */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #111;
  line-height: 1.6;
  background: #f9f9f9;
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
  margin: 0.5rem 0;
}

a {
  text-decoration: none;
  color: #002f5f;
}

a:hover {
  color: #0077cc;
}

/* =========================
   HEADER + NAVIGATION
========================= */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background: #ffdb90;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  align-items: center;
  display: flex;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li a {
  font-weight: 500;
  padding: 0.5rem 0;
}

/* Mega-Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 50;
}

.has-mega:hover .mega-menu {
  display: flex;
}

.mega-item {
  width: 120px;
  text-align: center;
  flex-shrink: 0;
}

.mega-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
}

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

.site-footer {
  background: #ffdb90;
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  text-align: center;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

/* obere Zeile */
.footer-top {
  margin-bottom: 0.8rem;
}

.footer-top a {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}
/*
.footer-top a:hover {
  color: #0077cc;
}*/

/* untere Zeile */
.footer-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom a {
  font-size: 0.9rem;
  color: #002f5f;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #0077cc;
}

/* Trenner */
.footer-bottom a:not(:last-child)::after {
  content: " | ";
}

/* =========================
   HERO-BEREICH
========================= */
.hero {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.hero-2 {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #002f5f;
  text-align: center;
  padding: 0 1rem;
  max-width: 800px;
  text-shadow: 0 4px 12px rgba(255,255,255,0.9);
}

.hero-text h1 {
  margin-bottom: 0.5rem;
}

html[lang="de"] .hero-text h1 {
    font-size: 2.5rem; /* z.B. deutscher Text passt besser */
}

html[lang="en"] .hero-text h1 {
    font-size: 2.2rem; /* englischer Text etwas länger */
}
.hero-text h2, .hero-text p {
  font-size: 1.2rem;
}

.password-requirements {
  font-size: 0.85rem;
  color: #555;
  margin: 0.25rem 0 0.5rem 0;
}
/* =========================
   TEASER SECTIONS
========================= */
.teaser-section {
  padding: 0rem 2rem;
  background: #f9f9f9;
}

.teaser-section h2 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
}

.teaser-grid {
  display: grid;
  gap: 20px;
  margin: 16px 0;
}

/* TEASER GRIDS           */
.grid-1 {
  grid-template-columns: 1fr; /* Text-Only Kachel, volle Breite */
}

.grid-2 {
  grid-template-columns: 2fr 1fr; /* Text links, Bild rechts */
}

.grid-2-left-image {
  grid-template-columns: 1fr 2fr; /* Bild links, Text rechts */
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr); /* drei Kacheln nebeneinander */
}
/* =========================
   EINHEITLICHER KACHELSTIL
========================= */
.teaser-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.teaser-blue {
  background: #cedbe2;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.teaser-card img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.teaser-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.teaser-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.teaser-card a {
  font-weight: 600;
  color: #002f5f;
}

.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* =========================
   BLOG-TEASER IMAGE OVERLAY
========================= */
.teaser-image {
  position: relative;
}

.teaser-text {
  color: black;
  text-shadow: 0 0 5px white;
}

.teaser-image .teaser-text {
  position: static;
}

/* =========================
   KACHELN MIT BILD
========================= */
.teaser-image {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.teaser-image img {
  width: 100%;        /* Bild immer gleiche Breite */
  height: auto;
  object-fit: cover; /* Bild bleibt proportional */
  border-radius: 6px;
}

.teaser-image .teaser-text {
  flex: 1;           /* Text nimmt den restlichen Platz */
  padding: 1rem;
}

/* Bild über Bildbeschreibung */
.teaser-image-column {
  flex-direction: column;
}

/* =========================
   KACHELN FÜR ARTIKEL_OVERVIEW
========================= */

.article-row{
display:flex;
border-bottom:1px solid #ddd;
padding:20px 0;
}

.article-title{
width:30%;
}

.article-teaser{
width:70%;
padding-left:20px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text h2, .hero-text p {
    font-size: 1rem;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .mega-menu {
    position: static;
    flex-wrap: wrap;
    box-shadow: none;
  }
}

@media (max-width: 600px) {

    .site-footer {
        padding: 20px 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom a:not(:last-child)::after {
        content: "";
        margin: 0;
    }

}