/*
Theme Name: Endlich Alt Magazin
Author: Marie
Version: 1.1
*/
 
/* ── CSS-Variablen ──────────────────────────────────────────────────────── */
:root {
  --cream:      #faf6f0;
  --warm-white: #fff9f3;
  --blush:      #e8b89a;
  --terracotta: #cb6d51;
  --deep:       #2a3d30;
  --sage:       #5a8f6a;
  --sage-light: #c4d9cb;
  --text:       #2a2030;
  --text-light: #6a5f72;
}
 
/* ── Basis ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
 
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}
 
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  margin-top: 0;
}
 
a { color: inherit; }
 
img { max-width: 100%; height: auto; display: block; }
 
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
 
/* ── HEADER ─────────────────────────────────────────────────────────────── */
header {
  background: var(--warm-white);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--sage-light);
  padding: 14px 0;
}
 
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
 
.logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
 
.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 700;
}
 
.logo-tagline {
  font-family: 'Playfair Display', serif;
  font-size: .9rem;
  color: var(--text-light);
  font-weight: 300;
  font-style: italic;
  letter-spacing: .05em;
  margin-left: 30px;
}
 
/* WordPress-Navigationsmenü */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.menu a {
  text-decoration: none;
  color: var(--text);
  font-size: .95rem;
  font-weight: 400;
  transition: color .2s;
}
.menu a:hover { color: var(--terracotta); }
 
/* ── HERO / TITELSTORY ──────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 48px 0 40px;
}
 
.hero-image-link { display: block; overflow: hidden; border-radius: 12px; }
.hero-image-link img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform .4s ease;
}
.hero-image-link:hover img { transform: scale(1.03); }
 
.hero-content { padding: 8px 0; }
 
/*
.hero-label {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
*/ 

.hero-content h1 {
  font-size: 2.4rem;
  margin-bottom: .8rem;
  color: var(--text);
}
.hero-content h1 a { text-decoration: none; color: inherit; }
.hero-content h1 a:hover { color: var(--terracotta); }
 
.hero-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
 
/* ── CAROUSEL ───────────────────────────────────────────────────────────── */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 50px;
}
 
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  padding-bottom: 12px;
  flex: 1;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
 
.carousel .card {
  min-width: 280px;
  max-width: 280px;
  flex: 0 0 280px;
  scroll-snap-align: start;
}
 
/* Pfeil-Buttons */
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--terracotta);
  background: var(--warm-white);
  color: var(--terracotta);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.carousel-btn:hover {
  background: var(--terracotta);
  color: #fff;
}
 
/* ── KARTEN (allgemein) ─────────────────────────────────────────────────── */
.card {
  background: var(--warm-white);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
 
.card-image-link { display: block; overflow: hidden; }
.card-image-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .35s ease;
}
.card-image-link:hover img { transform: scale(1.05); }
 
.card-content { padding: 16px; }
.card-content h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card-content h3 a { text-decoration: none; color: var(--text); }
.card-content h3 a:hover { color: var(--terracotta); }
.card-content p { color: var(--text-light); font-size: .9rem; margin-bottom: .9rem; }
 
/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn:hover {
  background: #b55c41;
  transform: translateY(-1px);
}
.btn-small {
  padding: 6px 12px;
  font-size: .8rem;
}
 
/* ── KATEGORIE-SEKTIONEN ────────────────────────────────────────────────── */
.section { margin-bottom: 56px; }
.section h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sage-light);
}
.section h2 a {
  text-decoration: none;
  color: var(--text);
  transition: color .2s;
}
.section h2 a:hover { color: var(--terracotta); }
 
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
 
/* ── FEATURE (2-spaltig) ────────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--warm-white);
  border-radius: 16px;
  padding: 32px;
  margin: 0 0 60px;
}
 
.feature-image { overflow: hidden; border-radius: 10px; }
.feature-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform .4s ease;
}
.feature-image:hover img { transform: scale(1.03); }
 
.feature-label {
  display: inline-block;
  background: var(--deep);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
 
.feature-content h2 { font-size: 1.9rem; margin-bottom: .8rem; }
.feature-content h2 a { text-decoration: none; color: var(--text); }
.feature-content h2 a:hover { color: var(--terracotta); }
.feature-content p { color: var(--text-light); font-size: 1rem; margin-bottom: 1.4rem; }
 
/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--deep);
  color: #fff;
  padding: 48px 0 32px;
  margin-top: 60px;
}
 
.footer-inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center;
  gap: 24px;
  text-align: left;
}
 
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.footer-nav--left  {
  align-items: flex-start;
  text-align: left;
  justify-self: start;
}
.footer-nav--right {
  align-items: flex-end;
  text-align: right;
  justify-self: end;
}
 
.footer-nav a {
  color: var(--sage-light);
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s;
  display: inline-block;
}
.footer-nav a:hover { color: #fff; }
 
.footer-center {
  text-align: center;
  justify-self: center;
}
 
.footer-logo a {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--blush);
  text-decoration: none;
  font-weight: 700;
}
 
.footer-copy {
  color: var(--sage-light);
  font-size: .78rem;
  margin: 6px 0 0;
  opacity: .7;
}
 
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-nav--left,
  .footer-nav--right {
    align-items: center;
    text-align: center;
    justify-self: center;
  }
}
 
/* ── SEITEN (page.php) ──────────────────────────────────────────────────── */
.page-layout {
  max-width: 780px;
  margin: 40px auto 80px;
}
 
.page-title {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--sage-light);
}
 
.page-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}
.page-content p          { margin-bottom: 1.4em; }
.page-content h2,
.page-content h3         { margin: 2em 0 .75em; }
.page-content a          { color: var(--terracotta); text-decoration: underline; }
.page-content a:hover    { color: #b55c41; }
.page-content blockquote {
  border-left: 4px solid var(--terracotta);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}
 
/* ── EINZELSEITE (single.php) ───────────────────────────────────────────── */
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
  margin: 40px auto 80px;
}
 
.single-meta { margin-bottom: 1rem; }
 
.category-badge {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .22rem .6rem;
  border-radius: 4px;
  text-decoration: none;
  margin-right: .4rem;
}
 
.single-date { font-size: .85rem; color: var(--text-light); }
 
.single-title {
  font-size: 2.4rem;
  margin: .5rem 0 1.5rem;
  line-height: 1.2;
}
 
.single-thumbnail { margin-bottom: 2rem; }
.single-thumbnail img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 10px;
}
 
.single-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}
.single-content p          { margin-bottom: 1.4em; }
.single-content h2,
.single-content h3         { margin: 2em 0 .75em; }
.single-content blockquote {
  border-left: 4px solid var(--terracotta);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}
 
.single-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sage-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.single-author { margin: 0; font-size: .9rem; color: var(--text-light); }
.single-tags   { font-size: .85rem; color: var(--text-light); }
.single-tags a { color: var(--text-light); text-decoration: none; }
.single-tags a:hover { color: var(--terracotta); }
 
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sage-light);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.nav-prev, .nav-next {
  display: flex;
  flex-direction: column;
  max-width: 45%;
  text-decoration: none;
  color: inherit;
}
.nav-next { align-items: flex-end; text-align: right; }
.nav-label { font-size: .8rem; color: var(--text-light); margin-bottom: .2rem; }
.nav-title { font-weight: 600; font-size: .95rem; }
.nav-prev:hover .nav-title,
.nav-next:hover .nav-title { color: var(--terracotta); }
 
/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero,
  .feature           { grid-template-columns: 1fr; }
  .hero-image-link img { height: 260px; }
  .feature-image img { height: 240px; }
  .hero-content h1   { font-size: 1.8rem; }
  .grid-3            { grid-template-columns: 1fr 1fr; }
  .single-title      { font-size: 1.7rem; }
}
 
@media (max-width: 600px) {
  .grid-3            { grid-template-columns: 1fr; }
  .menu              { display: none; } /* Hamburger-Menü wäre nächster Schritt */
  .post-navigation   { flex-direction: column; }
  .nav-prev,
  .nav-next          { max-width: 100%; }
  .nav-next          { align-items: flex-start; text-align: left; }
}