/*
Theme Name: Jung Leben
Theme URI: https://jung-leben.ch
Author: Thomas Häuselmann
Description: Individuelles WordPress-Theme für die Affiliate-Plattform Jung Leben.
Version: 0.4.4
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: jung-leben
*/

:root {
  --jl-background: #f8f7f2;
  --jl-surface: #ffffff;
  --jl-text: #243029;
  --jl-muted: #647067;
  --jl-primary: #56745f;
  --jl-border: #dfe4df;
  --jl-content-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--jl-background);
  color: var(--jl-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--jl-primary);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-container {
  width: min(100% - 2rem, var(--jl-content-width));
  margin-inline: auto;
}

.site-header {
  background: var(--jl-surface);
  border-bottom: 1px solid var(--jl-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 2rem;
}

.site-branding a {
  color: var(--jl-text);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  color: var(--jl-text);
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: var(--jl-primary);
}

.site-main {
  min-height: 60vh;
  padding-block: 4rem;
}

.page-content,
.post-content {
  max-width: 850px;
}

.site-footer {
  margin-top: 4rem;
  padding-block: 2rem;
  background: var(--jl-text);
  color: #ffffff;
}

.site-footer a {
  color: #ffffff;
}

@media (max-width: 760px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .primary-navigation ul {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}
.hero {
  max-width: 780px;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--jl-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.05;
}

.hero__text {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: var(--jl-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.archive-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.archive-title {
  margin-bottom: 0.5rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.archive-description {
  color: var(--jl-muted);
  font-size: 1.15rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.post-card {
  overflow: hidden;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: 0.75rem;
}

.post-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__content {
  padding: 1.5rem;
}

.post-card__date {
  margin-top: 0;
  color: var(--jl-muted);
  font-size: 0.875rem;
}

.post-card__title {
  margin-block: 0.5rem;
  line-height: 1.25;
}

.post-card__title a {
  color: var(--jl-text);
  text-decoration: none;
}

.post-card__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
}

.pagination {
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}