/* ── VARIABLEN ── */
:root {
  --red:        #B22918;
  --white:      #ffffff;
  --yt-red:     #FF0000;
  --x-white:    #ffffff;
  --font-hero:  'Antonio', sans-serif;
  --font-nav:   'Roboto', sans-serif;
  --schriftart: 'Roboto', sans-serif;
  --background-color: #FBF9F9;
  --text-color: #1a1a1a;
  --nav-color:  rgba(26,26,26,0.85);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--schriftart);
  background-color: var(--background-color);
  color: var(--text-color);
}

/* ── NAV ── */
nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  gap: 24px;
}

/* Logo */
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Nav-Links + Icons zusammen rechts */
.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-nav);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--nav-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--red);
}

/* Aktuelle Seite rot hervorheben */
.nav-links a.active {
  color: var(--red);
}

/* Social Icons – Grundfarbe: Logo-Rot */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-icons a {
  display: flex;
  align-items: center;
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease, filter 0.2s ease;
}

.nav-icons a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* X → Hover: Schwarz (Standard auf Inhaltsseiten) */
.nav-icons a.icon-x:hover {
  color: #000;
}

/* YouTube → Hover: YouTube-Rot */
.nav-icons a.icon-yt:hover {
  color: var(--yt-red);
}

/* ── HAUPTINHALT (Now / About / Writing) ── */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
  line-height: 2;
}

main h1 { margin-bottom: 0.4em; }
main h2 { margin-top: 1.4em; }
main h3 { margin-top: 1.2em; }
main ul { padding-left: 1.4em; }
main a { color: var(--red); }
main a:hover { text-decoration: underline; }

/* ── WRITING / BLOGÜBERSICHT ── */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 0.9em;
  line-height: 1.5;
}

.post-list .post-meta {
  font-family: var(--schriftart);
  font-size: 1rem;
  color: #888;
  flex-shrink: 0;
}

.post-list a.post-link {
  font-family: var(--schriftart);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-color);
  text-decoration: none;
}

.post-list a.post-link:hover {
  color: var(--red);
}

/* ── EINZELNER POST ── */
.post-header { margin-bottom: 1.5em; }
.post-header .post-meta {
  display: block;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.3em;
}
.post-content { line-height: 1.8; }
.post-content p,
.post-content ul,
.post-content ol,
.post-content pre { margin-bottom: 1em; }
.post-content pre {
  background: #f0eded;
  padding: 16px;
  overflow-x: auto;
  border-radius: 4px;
}
.back-link {
  display: inline-block;
  margin-top: 2em;
  color: var(--red);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ── HERO (Startseite) ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('/assets/Landing.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Im Hero: helle Nav-Links + Schatten */
.hero .nav-links a {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.hero .nav-links a:hover {
  color: var(--red);
}

/* Auf der Landing Page bleibt das X-Logo beim Hover weiß */
.hero .nav-icons a.icon-x:hover {
  color: var(--x-white);
}

.hero-text-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-text {
  line-height: 1;
  font-family: var(--font-hero);
  font-weight: 300;
  font-size: clamp(4rem, 11vw, 10rem);
  letter-spacing: 0.05em;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.18em;
  text-shadow: 0 5px 8px rgba(0,0,0,0.9);
}

.hero-text span {
  display: inline-block;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.hero-text .t1 { animation-delay: 0s;    }
.hero-text .t2 { animation-delay: 0.25s; }
.hero-text .t3 { animation-delay: 0.5s;  }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  .hero {
    justify-content: flex-end;
  }

  nav {
    flex-direction: column;
    align-items: center;
    padding: 20px 24px 36px;
    gap: 14px;
  }

  .nav-right {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero-text {
    font-size: clamp(3rem, 18vw, 5.5rem);
  }

  .hero-text .t3 {
    flex-basis: 100%;
    text-align: center;
  }
}
