/* =============================================
   Pizza Handwerk — Hauptstylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Serif+4:wght@300;400;600&display=swap');

:root {
  --rot: #8B1A1A;
  --rot-hell: #a52020;
  --gruen: #4A5C2A;
  --creme: #F5F0E8;
  --creme-dunkel: #ede7d9;
  --text: #2a2018;
  --text-hell: #5a4e3f;
  --weiss: #fff;
  --border: #d6ccba;
  --schatten: 0 2px 12px rgba(42,32,24,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--creme);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rot); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =============================================
   Navigation
   ============================================= */

header {
  background: var(--rot);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--weiss);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo span { color: #f0c070; }

nav ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
}

nav ul li a {
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* =============================================
   Hero
   ============================================= */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--text);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: var(--weiss);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  max-width: 680px;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9);
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 560px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.btn {
  display: inline-block;
  background: var(--rot);
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--rot-hell);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-gruen {
  background: var(--gruen);
}
.btn-gruen:hover { background: #3d4e22; }

/* =============================================
   Hauptinhalt
   ============================================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 3.5rem 0; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.7rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.section-title p {
  color: var(--text-hell);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   Karten
   ============================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--weiss);
  border-radius: 6px;
  box-shadow: var(--schatten);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42,32,24,0.13);
}

.card-body {
  padding: 1.5rem;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-hell); font-size: 0.95rem; margin-bottom: 1rem; }

.card a.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rot);
}

/* =============================================
   Rezept
   ============================================= */

.rezept-box {
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: var(--schatten);
  margin-bottom: 2rem;
}

.zutaten-liste {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
}

.zutaten-liste li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--creme-dunkel);
  font-size: 0.97rem;
}

.zutaten-liste li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--rot);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.zutaten-menge {
  font-weight: 600;
  color: var(--rot);
  min-width: 60px;
}

.schritt-liste {
  counter-reset: schritt;
  list-style: none;
  margin: 1rem 0;
}

.schritt-liste li {
  counter-increment: schritt;
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.schritt-liste li::before {
  content: counter(schritt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--rot);
  color: #fff;
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 3px;
}

.schritt-liste li strong { color: var(--rot); }

/* Varianten-Tabs */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.7rem 1.4rem;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-hell);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn.active {
  color: var(--rot);
  border-bottom-color: var(--rot);
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =============================================
   Affiliate / Produkt
   ============================================= */

.affiliate-hinweis {
  font-size: 0.82rem;
  color: var(--text-hell);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 0.8rem;
}

.produkt-karte {
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: var(--schatten);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.produkt-karte h3 { margin-bottom: 0.2rem; }
.produkt-karte p { color: var(--text-hell); font-size: 0.95rem; margin: 0; }

.produkt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* =============================================
   Info-Box / Tipp
   ============================================= */

.tipp-box {
  background: #f0ece1;
  border-left: 4px solid var(--gruen);
  padding: 1rem 1.3rem;
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.tipp-box strong { color: var(--gruen); }

.warn-box {
  background: #fdf0e8;
  border-left: 4px solid var(--rot);
  padding: 1rem 1.3rem;
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* =============================================
   Trennlinie / Dekor
   ============================================= */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* =============================================
   Footer
   ============================================= */

footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

footer a:hover { color: #fff; }

/* =============================================
   Seitenkopf (Unterseiten)
   ============================================= */

.page-hero {
  background: var(--rot);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.8rem;
}

.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: underline; }

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  nav ul {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--rot);
    flex-direction: column;
    padding: 1rem;
    gap: 0.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  nav ul.open { display: flex; }

  nav ul li a {
    display: block;
    padding: 0.6rem 1rem;
  }

  .hero { min-height: 380px; }
  .hero-content h1 { font-size: 1.8rem; }

  .cards { grid-template-columns: 1fr; }

  .produkt-meta { flex-direction: column; align-items: flex-start; }

  .zutaten-liste { grid-template-columns: 1fr; }
}

/* =============================
   THEMEN-LISTE (editorial)
   ============================= */
.themen-liste {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--dunkelrot);
  margin-top: 2rem;
}

.thema-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: start;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid #d8d0c4;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.12s;
}

.thema-item:hover { padding-left: 0.5rem; }

.thema-nummer {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dunkelrot);
  opacity: 0.45;
  line-height: 1;
  padding-top: 0.2rem;
}

.thema-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text-dunkel);
}

.thema-content p {
  color: var(--text-mittel);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

.thema-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dunkelrot);
  white-space: nowrap;
  padding-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.thema-item:hover .thema-link { text-decoration: underline; }

@media (max-width: 600px) {
  .thema-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  .thema-nummer { font-size: 1.4rem; }
  .thema-link { grid-column: 2; margin-top: 0.5rem; }
}
