/* -------------------------------------------------
   Das Netz und ich - GeneratePress Child CSS
------------------------------------------------- */


/* -------------------------------------------------
   Desktop Navigation breiter / weniger gequetscht
------------------------------------------------- */

@media (min-width: 769px) {
  .main-navigation {
    width: 100%;
  }

  .main-navigation .inside-navigation {
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }

  .main-navigation .main-nav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .main-navigation .main-nav ul li a {
    padding-left: 14px;
    padding-right: 14px;
    white-space: nowrap;
  }
}


/* -------------------------------------------------
   Beitragsbilder / Featured Images
------------------------------------------------- */

.post-image,
.featured-image,
.inside-article .post-image,
.inside-article .featured-image {
  text-align: center;
  margin-bottom: 1.6rem;
}

.post-image img,
.featured-image img,
.wp-post-image {
  width: 100%;
  max-width: 760px;
  max-height: 430px;
  height: auto;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
}

/* Auf Startseite / Archiv etwas kompakter */
.blog .post-image img,
.archive .post-image img,
.home .post-image img {
  max-width: 680px;
  max-height: 360px;
}

/* Auf Einzelartikeln etwas größer, aber nicht riesig */
.single-post .post-image img,
.single-post .featured-image img,
.single-post .wp-post-image {
  max-width: 820px;
  max-height: 460px;
}

/* Mobil volle Breite, aber Höhe begrenzen */
@media (max-width: 768px) {
  .post-image img,
  .featured-image img,
  .wp-post-image {
    width: 100%;
    max-width: 100%;
    max-height: 260px;
    object-fit: cover;
  }
}


/* -------------------------------------------------
   Eigener Fediverse-Follow-Button
------------------------------------------------- */

.inside-right-sidebar .dni-fediverse-follow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
}

.inside-right-sidebar .dni-fediverse-follow__text {
  min-width: 0;
}

.inside-right-sidebar .dni-fediverse-follow__text strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 3px;
}

.inside-right-sidebar .dni-fediverse-follow__text span {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  opacity: 0.75;
  word-break: break-word;
}

.inside-right-sidebar .dni-fediverse-follow__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #343942;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}

.inside-right-sidebar .dni-fediverse-follow__button:hover,
.inside-right-sidebar .dni-fediverse-follow__button:focus {
  background: #1f2329;
  color: #ffffff;
  text-decoration: none;
}


/* -------------------------------------------------
   Sidebar Feinschliff
------------------------------------------------- */

.inside-right-sidebar .widget,
.inside-right-sidebar .wp-block-group {
  border-radius: 18px;
}

.inside-right-sidebar a {
  text-underline-offset: 3px;
}


/* -------------------------------------------------
   Mobile Feinschliff
------------------------------------------------- */

@media (max-width: 768px) {
  .inside-right-sidebar .dni-fediverse-follow {
    padding: 12px 14px;
  }

  .inside-right-sidebar .dni-fediverse-follow__button {
    min-height: 32px;
    padding: 0 14px;
    font-size: 13px;
  }
}

/* -------------------------------------------------
   Footer Social Links
------------------------------------------------- */

.site-info {
  text-align: center;
}

.dni-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dni-footer-social__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease, transform 0.18s ease;
}

.dni-footer-social__link:hover,
.dni-footer-social__link:focus {
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.dni-footer-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
}

.dni-footer-social__link--fediverse .dni-footer-social__icon {
  font-size: 15px;
}

.dni-footer-social__link--linkedin .dni-footer-social__icon {
  font-family: Arial, sans-serif;
}

.dni-footer-social__link--facebook .dni-footer-social__icon {
  font-family: Arial, sans-serif;
}

@media (max-width: 768px) {
  .dni-footer-social {
    gap: 8px;
    margin-top: 14px;
  }

  .dni-footer-social__link {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }
}
