:root {
  --max-width: 520px;
  --font-main: -apple-system, BlinkMacSystemFont, "SF Mono", monospace;
  --color-bg: #ffffff;
  --color-text: #111;
  --color-muted: #777;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
}

.site {
  max-width: var(--max-width);
  margin: 80px auto;
  padding: 0 20px;
}

/* Header */
.site-header h1 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 40px;
}

/* Post list */
.post-item {
  margin-bottom: 12px;
}

.post-item a {
  text-decoration: none;
  color: inherit;
}

.post-date {
  color: var(--color-muted);
  margin-right: 10px;
}

.post-title {
  border-bottom: 1px solid transparent;
}

.post-item a:hover .post-title {
  border-bottom: 1px solid var(--color-text);
}

/* Post */
.post-header h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.post-header time {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.post-content {
  margin-top: 40px;
}

.post-content p {
  margin-bottom: 1.2em;
}

.post-content a {
  text-decoration: underline;
}

/* Pagination */

.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.pagination a {
    text-decoration: none;
    opacity: 0.7;
}

.pagination a:hover {
    opacity: 1;
}

.page-number {
    opacity: 0.5;
}

/* Post Meta & Tags */
.post-meta {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0 0.2rem;
}
.post-meta a {
    color: var(--color-muted);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
}
.post-meta a:hover {
    border-bottom-color: var(--color-muted);
}
.post-tags {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
.post-tags a {
    color: var(--color-muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-muted);
}
.post-tags a:hover {
    color: var(--color-text);
    border-bottom-style: solid;
}

/* Feature Image */
.post-image {
    margin: 2rem 0;
}
.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.post-image figcaption {
    font-size: 0.8rem;
    color: var(--color-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* Share Buttons */
.post-share {
    margin: 2rem 0 1rem;
    font-size: 0.85rem;
}
.share-label {
    color: var(--color-muted);
    margin-right: 0.75rem;
}
.post-share a {
    margin-right: 0.75rem;
    text-decoration: none;
    border-bottom: 1px dotted var(--color-muted);
}
.post-share a:hover {
    border-bottom-color: currentColor;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    gap: 2rem;
}
.nav-previous,
.nav-next {
    flex: 1;
}
.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: var(--color-text);
    display: block;
}
.nav-label {
    font-size: 0.75rem;
    color: var(--color-muted);
    display: block;
}
.nav-title {
    font-weight: 500;
    border-bottom: 1px solid transparent;
}
.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    border-bottom-color: var(--color-text);
}
.nav-next {
    text-align: right;
}

/* --- Zentrale Bildkontrolle für den gesamten Blog --- */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Stile für die Bild-Klassen des Ghost-Editors */
.kg-image {
    max-width: 100%;
    height: auto;
}

.kg-width-wide {
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}