/* ===== Blog (aufgeräumt, 1 Spalte, kein Grid) ===== */

/* Basisschutz */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 3.5vw, 16px);
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* Breite nur hier steuern (main macht nur Rahmen in style.css) */
.content {
  max-width: clamp(960px, 82vw, 1200px);
  /* stabil + flexibel */
  width: 100%;
  margin: 0 auto;
  padding: 16px;
}

/* Listen-Einzug im Text */
.content li {
  margin-left: 3em;
}

/* --- Blog-Liste: einfache Spalte, Abstand zwischen Karten --- */
.blog-list {
  display: block;
  /* kein Grid */
}

.blog-list>* {
  margin: 20px 0;
  /* Abstand zwischen Einträgen */
  min-width: 0;
  /* gegen Shrink/Overflow in Flex/Grids */
}

/* --- Karte im Retro-Terminal-Stil --- */
.blog-entry {
  background: #111;
  color: #0f0;
  font-family: 'VT323', monospace;
  border: 2px solid #0f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 0 8px #0f0;
}

.blog-entry h2 {
  font-size: clamp(1.25rem, 6vw, 1.8rem);
  line-height: 1.2;
  margin: 0 0 12px;
}

.blog-entry p {
  font-size: clamp(1rem, 5.2vw, 1.6rem);
  line-height: 1.35;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-entry ul {
  list-style: square;
  margin: 0 0 16px 20px;
}

/* Toggle/Teaser */
.blog-toggle {
  display: block;
}

.blog-toggle>summary {
  list-style: none;
  cursor: pointer;
  display: block;
  padding: 4px 6px;
  border-radius: 8px;
}

.blog-toggle>summary::-webkit-details-marker {
  display: none;
}

.blog-toggle>summary::marker {
  content: "";
}

.teaser {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: clip;
  overflow: hidden;         /*fallback falls   */
  text-overflow: ellipsis;  /*der Browser line-clamp noch nicht kennt*/
}

.blog-body {
  padding-top: 8px;
  border-top: 1px dashed #444;
  margin-top: 8px;
}

.blog-toggle[open] .blog-body {
  animation: fadeIn 160ms ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    translate: 0 -4px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.blog-toggle>summary:hover,
.blog-toggle>summary:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  transition: background 120ms;
}

/* Codeblöcke lesbar + umbrechbar */
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  tab-size: 2;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow-x: auto;
  max-width: 100%;
}

pre code {
  display: block;
  font: 0.95rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Früchte-Galerie (wie gehabt, nur leicht entschlackt) */
.fruits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.fruits img {
  width: calc(50% - 8px);
  aspect-ratio: 1/1;
  border: 2px solid #0f0;
  border-radius: 8px;
  box-shadow: 0 0 8px #0f0;
}

/* Kleinbildschirm-Feinschliff */
@media (max-width: 430px) {
  .content {
    padding: 12px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* letzte Sicherheitsleine */
}