:root {
    --font-family: 'Teko', sans-serif;

  --bg-color: #1a1e21;
  --title-text: #b0b4b8;
  --title-title: #ffffff;

  --body-bg: #fffaeb;
  --tabbar-bg: #4c4f55;
  --tabbar-fg-activ: var(--bg-color);
  --tabbar-fg-inactiv: var(--body-bg);
}

/* ───── Basis ───── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-color);
  font-family: var(--font-family);
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 2rem 0rem;
  gap: 2rem;
  min-width: 320px;
}

/* ───── Logo & Titel ───── */
.hero { display: flex; align-items: center; gap: clamp(0.5rem, 4vw, 2.5rem); text-decoration: none; color: inherit;}

.logo-img { width: clamp(6rem, 16vw, 20rem); height: auto; }

.text-group { display: flex; flex-direction: column; line-height: 1.2; }

.greeting { color: var(--title-text); font-size: clamp(1.2rem, 2.5vw, 2.5rem); font-weight: 400; }

.title { color: var(--title-title); font-size: clamp(3rem, 7vw, 10rem); font-weight: 700; text-decoration: none;}

/* ───── Haupt‑Inhalt ───── */
.main-content {
  position: relative;
  background-color: var(--body-bg);
  width: min(90%, 1500px);
  min-height: 600px;
  border-radius: 12px;
  margin: 1.5rem;
  padding: 3.5rem 2rem 2rem;   /* oben Platz für Tabs */
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Unter 480 px: volle Breite, kein Rand */
@media (max-width: 30cm) {
  .main-content {
    width: 100%;
    margin-inline: 0;
    border-radius: 0;   /* optional: Ecken auf kleinen Screens glätten */
  }
}

/* ───── Tabs Wrapper: nur hier H‑Scroll ───── */
.tabs-wrapper {
  position: absolute;
  inset: 0;
  height: 4rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* ───── Tabs Leiste ───── */
.tabs {
  min-width: max-content;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  background-color: var(--tabbar-bg);
  height: 100%;
  align-items: center;
}

/* ───── Tab Buttons ───── */
.tab {
  background: transparent;
  border: none;
  color: var(--tabbar-fg-inactiv);
  font-weight: 600; /* fett */
  font-family: var(--font-family);
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  cursor: pointer;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  transition: color .3s, background-color .3s;
  -webkit-tap-highlight-color: transparent; /* verhindert das bläuliche Highlight */
}

.tab:not(.active):hover {
  background-color: color-mix(in srgb, var(--tabbar-bg) 90%, #ffffff 10%);
  color: var(--tabbar-fg-inactiv);
}

.tab:focus {
  color: var(--tabbar-fg-inactiv);
  outline: none;
}

.tab.active {
  background-color: var(--body-bg);
  color: var(--tabbar-fg-activ);
  font-weight: 700;
}

/* ───── Tab Inhalte ───── */
.tab-content { padding: 1rem 0; }
.hidden { display: none; }

/* ───── optionale schmale Scrollbar ───── */
.tabs-wrapper::-webkit-scrollbar { height: 6px; }
.tabs-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.3);
  border-radius: 3px;
}

/* Pfeil‑Overlays: nur so hoch wie die Tab‑Bar (4 rem) */
.tab-arrow {
  position: absolute;
  top: 0;              /* direkt am oberen Rand der Leiste */
  height: 4rem;        /* exakt Leistenhöhe */
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,.25), transparent);
  font-size: 1.2rem;
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
  z-index: 5;          /* über der Leiste */
}

.tab-arrow.left  { left: 0;  background: linear-gradient(to right, rgba(0,0,0,.25), transparent); }
.tab-arrow.right { right: 0; background: linear-gradient(to left , rgba(0,0,0,.25), transparent); }
.tab-arrow.left::before  { content: '◂'; }
.tab-arrow.right::before { content: '▸'; }

/* Sichtbar‐Klassen, vom JS gesetzt */
.main-content.scroll-left  .tab-arrow.left,
.main-content.scroll-right .tab-arrow.right { opacity: 1; }





.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0rem;
  transition: transform 0.2s ease;
  max-width: 500px;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card img {
  width: 100%;
  border-radius: 8px;
  object-fit: fill;
  aspect-ratio: 16 / 9;
}

.post-header {
  display: flex;
  align-items: baseline; /* Titel und Version schön an einer Linie */
  gap: 1rem; /* Abstand zwischen Titel und Version */
  margin-bottom: 0.25rem; /* optional, für Abstand zum Text */
  text-decoration: none; /* Unterstrich weg */
  color: inherit;
}

.post-header:hover {
  opacity: 0.85;
}

.post-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

.post-version {
  font-size: 1.7rem;
  color: #777;
}

.post-description {
  flex-grow: 1;
  font-size: 1.2rem;
  margin-top: 0rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  gap: 1rem;
}

.post-link {
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  gap: 0.5rem;
  background-color: var(--tabbar-bg);
  color: var(--tabbar-fg-inactiv);
  text-decoration: none;
  padding: 0.6rem 1rem;
  margin-top: 2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.post-link:hover {
  background-color: #333;
}

.post-link::after {
  content: '↗'; /* Link Icon */
}

.post-date {
  font-size: 1.2rem;
  color: #777;
  text-align: right;
  line-height: 1.1;      /* kleinerer Zeilenabstand */
  margin-top: auto;      /* sorgt dafür, dass es unten im flex Container sitzt */
  align-self: flex-end;  /* rechtsbündig im flex Container */
}