.example {
    background-color: #f0f0f0;
    padding: 1em;
    border-radius: 5px;
    font-size: 15px;
    /* font-family: monospace; */
    font-family: "Courier New", Courier, "Lucida Console", monospace;
    overflow-x: auto;     /* ← aktiviert horizontales Scrollen bei Bedarf */
    white-space: pre;     /* ← verhindert automatischen Zeilenumbruch */
}

.post-meta {
    font-size: 0.9em;
    color: #666;
    margin-top: -1em;
    margin-bottom: 1.5em;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #222;
    background: #fff;
    margin: 0;
    padding: 0;
}

.main-content {
    max-width: 900px;
    margin: 2em auto;
    padding: 0 1em;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1.2em;
}

.site-header {
    /* position: fixed; */
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: white;
    z-index: 1000;
    height: auto;
    display: flex;
    justify-content: center;
}

.main-content {
    /* margin-top: 220px; /\* je nach Höhe deines Banners *\/ */
}

.post-header-inline {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 2em;
    flex-wrap: nowrap;
}

.post-image-inline {
    width: 30%;
    height: auto;
    flex-shrink: 0;
}

.post-title-inline {
    width: 70%;
    font-size: 2em;
    margin: 0;
}




.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 1px 1px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  background: #fff;
}

.card:hover {
  transform: translateY(-4px);
}

.card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.card-date {
  font-size: 0.85rem;
  color: #666;
}

.card-tags {
  font-size: 0.85rem;
  color: #666;
}

.card-preview {
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.5rem;
}


/* .card-image { */
/*   width: 100%; */
/*   height: 160px; */
/*   object-fit: contain; */
/*   border-radius: 8px; */
/*   margin-bottom: 0.5rem; */
/*   max-width: 100%; */
/*   max-height: 200px; /\* oder was immer du für deine Vorschau willst *\/ */
/*   overflow: hidden; */
/*   display: block; */
/* } */

.card-image-wrapper {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: #efefef;
}

.card-image {
  width: 100%;
  max-width: 300px;
  height: 100%;
  object-fit: contain;
  display: block;
}


.language-switcher {
  margin: 1rem 0;
  text-align: right;
}

.language-switcher a {
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.language-switcher a.active {
  font-weight: bold;
  background: #eef;
}





.card-grid.single {
  justify-content: center;
}

.card-grid.single > .card {
  max-width: 250px;
  width: 100%;
}

