/* =========================================================
   BLOG – NUR Page Styles (scoped)
   Hauptziel: Hero soll GENAU wie index sein (kommt aus main.css)
   ========================================================= */

/* 1) Hero: NUR feine Anpassungen, aber Index-Skalierung behalten */

/* Overlay minimal klarer als deine “milchige” Variante,
   OHNE das Index-Look zu zerstören */
.blog-page .hero.hero--blog::before {
  /* falls main.css schon hero::before macht, überschreiben wir nur für Blog */
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.72) 0%,
    rgba(255,255,255,0.55) 48%,
    rgba(255,255,255,0.38) 100%
  );
}

/* Logo rechts: exakt “index-like” */
.blog-page .hero.hero--blog .hero-logo img {
  width: 100%;
  max-width: 440px; /* wie Index */
  height: auto;
  display: inline-block;
}

/* 3) Blog Sections */
.blog-page .blog-section {
  padding: 70px 0;
}

.blog-page .blog-section--soft {
  background: #f6f6f6;
}

/* 4) Post Cards */
.blog-page .post-card {
  background: #fff;
  border: 1px solid rgba(13, 41, 74, 0.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-page .post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.10);
}

.blog-page .post-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.blog-page .post-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-page .post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-page .post-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 41, 74, 0.06);
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 12px;
}

.blog-page .post-date {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  font-weight: 700;
}

.blog-page .post-title {
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 10px 0;
  color: var(--color-default);
}

.blog-page .post-excerpt {
  margin: 0 0 14px 0;
  color: #2f2f2f;
  line-height: 1.6;
}

.blog-page .post-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--color-secondary);
  text-decoration: none;
}

.blog-page .post-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
  .blog-page .hero.hero--blog .hero-logo img {
    max-width: 320px;
    margin-top: 14px;
  }
}

/* ===== BLOG HERO (wie Index, ohne Card) ===== */
.hero.hero--simple.hero--blog {
  width: 100%;
  position: relative;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 80px 0 40px 0;
  overflow: hidden;
}

/* Overlay: lesbar + “klar” wie auf Index */
.hero.hero--simple.hero--blog::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.70) 0%,
    rgba(255,255,255,0.55) 45%,
    rgba(255,255,255,0.35) 100%
  );
  z-index: 1;
}

.hero.hero--simple.hero--blog .container {
  position: relative;
  z-index: 2;
}

/* Titel/Intro */
.hero.hero--simple.hero--blog .hero-title {
  color: var(--color-secondary);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero.hero--simple.hero--blog .hero-title span {
  color: var(--color-secondary);
}

.hero.hero--simple.hero--blog .hero-intro {
  color: #2f2f2f;
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 18px;
}

/* Logo rechts wie Index */
.hero.hero--simple.hero--blog .hero-logo img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: inline-block;
}

/* Mobile */
@media (max-width: 991px) {
  .hero.hero--simple.hero--blog {
    padding: 65px 0 30px 0;
  }

  .hero.hero--simple.hero--blog .hero-title {
    font-size: 30px;
  }

  .hero.hero--simple.hero--blog .hero-logo img {
    max-width: 320px;
    margin-top: 12px;
  }
}

/* =========================================
   NEWSLETTER / LIVE-TICKER (Blog)
   ========================================= */

.newsletter-ticker{
  position: relative;
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

/* vertikale Linie */
.newsletter-ticker::before{
  content:"";
  position:absolute;
  left: 18px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(13,41,74,0.10);
}

.ticker-item{
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

/* Punkt */
.ticker-dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--color-secondary);
  margin-left: 11px; /* zentriert über der Linie */
  margin-top: 18px;
  box-shadow: 0 0 0 5px rgba(13,41,74,0.08);
}

/* Card */
.ticker-card{
  background: #fff;
  border: 1px solid rgba(13,41,74,0.10);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.07);
  overflow: hidden;
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ticker-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
}

/* Top meta */
.ticker-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ticker-date{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
}

.ticker-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 41, 74, 0.06);
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 12px;
}

.ticker-title{
  margin: 0 0 12px 0;
  font-weight: 900;
  font-size: 18px;
  color: var(--color-default);
}

/* Body mit Bild + Text */
.ticker-body{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: start;
}

.ticker-media{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(13,41,74,0.10);
  background: #f6f6f6;
  height: 120px;
}

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

.ticker-text p{
  margin: 0 0 10px 0;
  color: #2f2f2f;
  line-height: 1.65;
  font-size: 15px;
}

.ticker-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--color-secondary);
  text-decoration: none;
}

.ticker-link:hover{
  text-decoration: underline;
}

/* Variante ohne Bild */
.ticker-body--no-media{
  grid-template-columns: 1fr;
}

/* Mobile */
@media (max-width: 575px){
  .newsletter-ticker::before{
    left: 14px;
  }

  .ticker-item{
    grid-template-columns: 30px 1fr;
    gap: 12px;
  }

  .ticker-dot{
    margin-left: 7px;
    margin-top: 16px;
  }

  .ticker-card{
    padding: 16px;
  }

  .ticker-body{
    grid-template-columns: 1fr;
  }

  .ticker-media{
    height: 170px;
  }
}

/* =========================
   BLOG MODALS (Modern + Mobile)
   ========================= */

.blog-modal{
  border: 1px solid rgba(13,41,74,0.12);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
  overflow: hidden;
}

.blog-modal__header{
  background: #fff;
  border-bottom: 1px solid rgba(13,41,74,0.10);
  padding: 16px 18px;
}

.blog-modal__header .modal-title{
  font-weight: 900;
  color: var(--color-default);
}

.blog-modal__close{
  opacity: .75;
}

.blog-modal__body{
  padding: 18px;
}

.blog-modal__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.blog-modal__pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(13,41,74,0.06);
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 12px;
}

.blog-modal__grid{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}

.blog-modal__media{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(13,41,74,0.10);
  background: #f6f6f6;
  height: 160px;
}

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

.blog-modal__text p{
  color: #2f2f2f;
  line-height: 1.7;
  margin: 0 0 10px 0;
  font-size: 15px;
}

.blog-modal__list{
  padding-left: 18px;
  margin: 10px 0 0 0;
  color: #2f2f2f;
}

.blog-modal__footer{
  background: #fff;
  border-top: 1px solid rgba(13,41,74,0.10);
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Buttons im Schema */
.blog-modal__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.blog-modal__btn--primary{
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.blog-modal__btn--primary:hover{
  transform: translateY(-2px);
  color: #fff;
}

.blog-modal__btn--ghost{
  background: #fff;
  color: var(--color-secondary);
  border-color: rgba(13,41,74,0.18);
}

.blog-modal__btn--ghost:hover{
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 575px){
  .blog-modal__grid{
    grid-template-columns: 1fr;
  }

  .blog-modal__media{
    height: 190px;
  }

  .blog-modal__footer{
    justify-content: center;
  }

  .blog-modal__btn{
    width: 100%;
    max-width: 340px;
  }
}

/* =========================
   TOPBAR FIX (sehr kleine Screens)
   iPhone SE / Galaxy S8 etc.
   ========================= */
@media (max-width: 400px) {
  #topbar .container {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  #topbar .contact-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap; /* wir kürzen lieber, statt 2 Zeilen Chaos */
    min-width: 0;      /* wichtig für ellipsis in flex */
  }

  #topbar .contact-info i {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;      /* wichtig */
    white-space: nowrap;
  }

  /* Email kürzen statt überlappen */
  #topbar .contact-info i.bi-envelope a {
    display: inline-block;
    max-width: 170px;  /* feinjustierbar */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
  }

  /* Telefon kompakter */
  #topbar .contact-info i.bi-phone a {
    font-size: 12px;
    line-height: 1.2;
  }
}

/* Einheitlicher Bildbereich */
.post-card .post-media {
  width: 100%;
  height: 200px;                 /* bewusst etwas niedriger */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f8fa;           /* leichtes Grau → edel & ruhig */
  border-radius: 18px 18px 0 0;
}

/* Logo im Placeholder */
.post-card .post-media img {
  width: auto;
  max-width: 70%;                /* 🔑 macht das Logo kleiner */
  max-height: 80px;              /* 🔑 verhindert Dominanz */
  height: auto;
  object-fit: contain;
  opacity: 0.9;                  /* minimal ruhiger */
}
