/* ============================================================
   TIVAGARO.DE – Custom CSS für Hugo + Paige Theme
   ============================================================ */

/* ------------------------------------------------------------
   SCHRIFTART – Gentium Book Plus (lokal gehostet)
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Gentium Book Plus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/gentium-book-plus-v1-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Gentium Book Plus';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/gentium-book-plus-v1-latin-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Gentium Book Plus';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/gentium-book-plus-v1-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Gentium Book Plus';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/gentium-book-plus-v1-latin-700italic.woff2') format('woff2');
}

/* ------------------------------------------------------------
   FARBVARIABLEN
   ------------------------------------------------------------ */
:root {
  --braun:      #6B4A18;
  --ocker:      #C47A0A;
  --dunkel:     #4a3a2a;
  --creme:      #fdfcf0;
  --creme-box:  #f9f7f2;
  --grau-blau:  #93a1a1;
  --text-grau:  #586e75;
  --hell:       #ffffff;
  --trennlinie: #d6c9b0;

  --header-h:   64px;
  --menu-w:     320px;
}

/* ------------------------------------------------------------
   TYPOGRAFIE – ÜBERSCHRIFTEN
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Gentium Book Plus', serif !important;
}

/* ------------------------------------------------------------
   RESET & BASIS
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Gentium Book Plus', serif;
  background-color: var(--creme);
  color: var(--dunkel);
  line-height: 1.75;
  margin: 0;
  padding-top: var(--header-h);
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Gentium Book Plus', serif;
  color: var(--braun);
  font-weight: 700;
  line-height: 1.3;
}

p {
  color: var(--dunkel);
}

hr {
  border: none;
  border-top: 1px solid var(--trennlinie);
  margin: 2rem 0;
}

a {
  color: var(--ocker);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--braun);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   PAIGE-EIGENEN HEADER AUSBLENDEN
   ------------------------------------------------------------ */
#paige-header {
  display: none !important;
}

/* ------------------------------------------------------------
   UNSER HEADER
   ------------------------------------------------------------ */
#tiva-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background-color: var(--braun);
  border-bottom: 2px solid var(--ocker);
  z-index: 1000;
}

#tiva-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

#tiva-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

#tiva-logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* ------------------------------------------------------------
   HAMBURGER BUTTON
   ------------------------------------------------------------ */
#tiva-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 28px;
  position: relative;
  z-index: 1100;
}

#tiva-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--hell);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

#tiva-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}
#tiva-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
#tiva-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

/* ------------------------------------------------------------
   MENÜ-OVERLAY (Schublade von rechts)
   ------------------------------------------------------------ */
#tiva-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--menu-w);
  max-width: 90vw;
  height: 100vh;
  background-color: var(--braun);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding-top: calc(var(--header-h) + 2rem);
  overflow-y: auto;
}

#tiva-menu-overlay.is-open {
  transform: translateX(0);
}

#tiva-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 2rem;
}

#tiva-menu-nav ul li {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

#tiva-menu-nav ul li:first-child {
  border-top: 1px solid rgba(255,255,255,0.12);
}

#tiva-menu-nav ul li a {
  display: block;
  padding: 1rem 0;
  color: var(--hell);
  font-family: 'Gentium Book Plus', serif;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s, padding-left 0.15s;
}

#tiva-menu-nav ul li a:hover,
#tiva-menu-nav ul li a[aria-current="page"] {
  color: var(--ocker);
  padding-left: 0.5rem;
}

/* ------------------------------------------------------------
   BACKDROP
   ------------------------------------------------------------ */
#tiva-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1040;
  cursor: pointer;
}

#tiva-menu-backdrop.is-open {
  display: block;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
#paige-credit {
  display: none !important;
}

#tiva-footer {
  border-top: 1px solid var(--braun);
  margin-top: 4rem;
  padding: 1.5rem;
  background-color: var(--creme);
}

#tiva-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.tiva-footer-copy {
  font-size: 0.88rem;
  color: var(--text-grau);
}

.tiva-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.tiva-footer-nav a {
  font-size: 0.88rem;
  color: var(--braun);
  text-decoration: none;
  font-weight: 700;
}

.tiva-footer-nav a:hover {
  color: var(--ocker);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   HAUPTINHALT
   ------------------------------------------------------------ */
main {
  padding: 2rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   INFO-BOXEN
   ------------------------------------------------------------ */
.info-box {
  background-color: var(--creme-box);
  border-left: 4px solid var(--grau-blau);
  padding: 1.1rem 1.4rem;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-grau);
  margin: 1.5rem 0;
}

.info-box a {
  color: var(--ocker);
  font-weight: bold;
  text-decoration: underline;
}

.info-box a:hover {
  color: var(--braun);
}

/* ------------------------------------------------------------
   101FRAGEN – ALTERSSTUFEN-ÜBERSICHT
   ------------------------------------------------------------ */
.altersstufe-section {
  margin-bottom: 3rem;
}

.altersstufe-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--braun);
  border-bottom: 2px solid var(--ocker);
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}

.folge-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--trennlinie);
}

.folge-card:last-child {
  border-bottom: none;
}

.folge-thumbnail {
  flex-shrink: 0;
  width: 160px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.folge-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.folge-info {
  flex: 1;
}

.folge-info h3 {
  font-size: 1.05rem;
  color: var(--braun);
  margin: 0 0 0.4rem 0;
}

.folge-info p {
  font-size: 0.95rem;
  color: var(--text-grau);
  margin: 0 0 0.7rem 0;
  line-height: 1.55;
}

.folge-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.folge-links a {
  font-size: 0.88rem;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.15s, color 0.15s;
}

.folge-links .link-youtube {
  background-color: var(--ocker);
  color: var(--hell);
}

.folge-links .link-youtube:hover {
  background-color: var(--braun);
  color: var(--hell);
}

.folge-links .link-blog {
  background-color: transparent;
  color: var(--braun);
  border: 1px solid var(--braun);
}

.folge-links .link-blog:hover {
  background-color: var(--braun);
  color: var(--hell);
}

/* ------------------------------------------------------------
   YOUTUBE-THUMBNAIL
   ------------------------------------------------------------ */
.yt-thumb-link {
  display: block;
  margin: 0 auto 2rem;
  max-width: 560px;
}

.yt-thumb-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: block;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 600px) {
  .folge-card {
    flex-direction: column;
  }

  .folge-thumbnail {
    width: 100%;
  }

  main {
    padding: 1.5rem 1rem 2.5rem;
  }
}