/* r49 – Nachbesserungen für Logbuch, Galerie, Community-Regeln, Chat und Preloader */

/* Bilder überall vollständig sichtbar, mittig ausgerichtet und nie versehentlich angeschnitten. */
.story-feature > img,
.editorial-lead > img,
.editorial-card figure img,
.feature-card img,
.gallery-card img,
.gallery-empty-state img,
.news-hero__media img,
.news-feature__media img,
.news-card__media img,
.article-cover img,
.logbook-overview__media img,
.professional-visual img,
img.mhl-media-contain,
figure > img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

.story-feature,
.editorial-lead,
.news-hero,
.news-feature,
.gallery-hero,
.gallery-empty-state,
.logbook-overview {
  align-items: stretch;
}

.story-feature > img,
.editorial-lead > img,
.news-hero__media,
.news-feature__media,
.gallery-hero__media,
.gallery-empty-state__media,
.logbook-overview__media {
  align-self: stretch;
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(11, 64, 88, .82), rgba(4, 27, 39, .92));
  border: 1px solid rgba(120, 228, 241, .18);
}

.news-hero__media img,
.news-feature__media img,
.gallery-hero__media img,
.gallery-empty-state__media img,
.logbook-overview__media img {
    aspect-ratio:16/10;
    padding:clamp(.5rem,1.4vw,1rem);
    border-radius:20px;
    overflow:hidden;
}

/* Logbuch / News */
.news-hero,
.news-feature,
.logbook-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(1rem, 2vw, 2rem);
}

.news-hero__copy,
.news-feature__copy,
.logbook-overview__copy {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.news-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .85rem;
}

.news-stat {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(132, 229, 242, .16);
  background: rgba(8, 45, 63, .48);
}

.news-stat strong {
  display: block;
  font-size: 1.25rem;
  color: #ecfbfd;
}

.news-grid,
.news-rich-grid,
.guideline-grid,
.gallery-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: clamp(.9rem, 1.5vw, 1.4rem);
}

.news-card,
.guideline-card,
.gallery-story-card {
  display: grid;
  gap: .8rem;
  align-content: start;
}

.news-card__media {
  min-height: 215px;
  background: rgba(5, 26, 36, .65);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(120, 228, 241, .14);
}

.news-card__media img {
  aspect-ratio: 16 / 10;
  padding: .65rem;
}

.news-card__meta,
.article-meta-line,
.guideline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  align-items: center;
  font-size: .92rem;
  color: #a8dce4;
}

.news-card h2,
.news-card h3,
.gallery-story-card h3,
.guideline-card h3 {
  text-wrap: balance;
  line-height: 1.08;
  margin: 0;
}

.news-card h2,
.news-card h3 {
  min-height: 2.4em;
}

.news-card__excerpt,
.gallery-story-card p,
.guideline-card p {
  margin: 0;
  text-wrap: pretty;
}

.news-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.logbook-chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: .85rem;
}

.logbook-chapter {
  display: grid;
  gap: .4rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(7, 42, 58, .52);
  border: 1px solid rgba(130, 228, 241, .16);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.logbook-chapter:hover,
.logbook-chapter:focus-visible,
.news-card:hover,
.news-card:focus-within,
.guideline-card:hover,
.guideline-card:focus-within,
.gallery-story-card:hover,
.gallery-story-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(137, 236, 247, .36);
  box-shadow: 0 18px 30px rgba(2, 11, 18, .26);
}

.logbook-chapter span,
.news-badge,
.guideline-card .story-kicker,
.gallery-story-card .story-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: fit-content;
  padding: .28rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(134, 232, 243, .26);
  background: rgba(13, 61, 84, .54);
  color: #9ee9f4;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Artikelansicht */
.article-cover {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(10, 56, 79, .84), rgba(5, 27, 39, .92));
  border: 1px solid rgba(132, 229, 242, .18);
}

.article-cover img {
  aspect-ratio: 21 / 9;
  padding: clamp(.6rem, 1.3vw, 1rem);
}

.article-layout {
  display: grid;
  gap: 1.35rem;
}

.article-body {
  display: grid;
  gap: 1rem;
}

.article-body p,
.article-sidebar p,
.chat-card p {
  text-wrap: pretty;
}

.article-sidebar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

/* Community-Regeln */
.guideline-shell {
  display: grid;
  gap: 1.3rem;
}

.guideline-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(1rem, 2vw, 2rem);
}

.guideline-summary {
  display: grid;
  gap: .9rem;
}

.guideline-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .45rem;
}

.guideline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

/* Galerie */
.gallery-hero,
.gallery-empty-state {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(1rem, 2vw, 2rem);
}

.gallery-story-grid {
  margin-top: 1rem;
}

.gallery-story-card__list {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: .4rem;
}

.gallery-empty-state__callout {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(136, 233, 245, .18);
  background: rgba(5, 33, 47, .58);
}

/* Chat professioneller und großzügiger */
.chat-shell {
  display: grid;
  gap: 1.15rem;
}

.chat-card {
  padding: clamp(1rem, 1.75vw, 1.4rem);
}

.chat-card .chat-panel,
.chat-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr) !important;
  gap: 1rem !important;
  align-items: stretch !important;
}

.chat-card .chat-transcript,
.chat-panel__messages,
.chat-thread,
.chat-messages {
  min-height: clamp(380px, 52vh, 720px) !important;
  max-height: none !important;
  border-radius: 22px !important;
  padding: 1rem !important;
  background: rgba(4, 25, 35, .72) !important;
}

.chat-card textarea,
.chat-card .message-box,
.chat-card .chat-input textarea,
.chat-panel textarea,
.chat-panel input[type="text"] {
  min-height: 170px !important;
  border-radius: 18px !important;
}

.chat-card .message-form,
.chat-card form,
.chat-panel form {
  display: grid;
  gap: .95rem;
}

.chat-card button[type="submit"],
.chat-card .btn.primary,
.chat-panel button[type="submit"] {
  min-height: 58px !important;
  font-size: 1.08rem !important;
}

/* CAPTCHA: nur eine Zeile, kein doppeltes Fragezeichen. */
.captcha-compact-question {
  display: inline-flex !important;
  align-items: center !important;
  gap: .35rem !important;
  margin-bottom: .55rem !important;
  padding: .35rem .65rem !important;
  border-radius: 12px !important;
  background: rgba(18, 99, 126, .35) !important;
  border: 1px solid rgba(141, 233, 243, .22) !important;
  color: #ecfbfd !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
}

.captcha-original-hidden {
  display: none !important;
}

/* Preloader mit Flaggenmotiv und abwechslungsreicheren Symbolen. */
.mhl-preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 19, 30, .34), rgba(4, 19, 30, .82)),
    url("/assets/backgrounds/preloader-desktop.webp") center center / cover no-repeat;
  opacity: .95;
}

.mhl-preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(166, 238, 244, .18), transparent 38%), radial-gradient(circle at 72% 76%, rgba(255, 196, 115, .14), transparent 34%);
}

.mhl-preloader__glass {
  position: relative;
  overflow: hidden;
}

.preloader-symbol-stage {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem !important;
  width: min(100%, 320px);
}

.preloader-symbol-stage > span {
  min-height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(2, 24, 35, .32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

/* Überschriften schöner umbrechen. */
.latest-entry h2,
.news-card h2,
.news-card h3,
.story-card h2,
.story-entry h2,
.editorial-card h3 {
  text-wrap: balance;
}





