/*
Theme Name: GesundTafel
Theme URI: https://gesundtafel.de
Author: GesundTafel
Author URI: https://gesundtafel.de
Description: Professionelles Theme für gesunde Rezepte - GesundTafel.de
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: gesundtafel
*/

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

:root {
  --green: #2d6a4f;
  --green-light: #52b788;
  --green-pale: #f0faf4;
  --green-mid: #d8f3dc;
  --cream: #fdfcf7;
  --warm: #f4f1eb;
  --dark: #1b1f1c;
  --gray: #6b7280;
  --border: #e5e7e3;
  --accent: #e76f51;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ===== NAV ===== */
.gt-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.gt-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.gt-logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.gt-logo span { color: var(--accent); }
.gt-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.gt-nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.gt-nav-links a:hover { color: var(--green); }
.gt-nav-search {
  background: var(--green-pale);
  border: 1px solid var(--green-mid);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--green);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
}
.gt-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ===== HERO ===== */
.gt-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 60%, #40916c 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1490645935805-7a3af8fae3f9?auto=format&fit=crop&w=1600&q=60') center/cover;
  opacity: 0.15;
}
.gt-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.gt-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #d8f3dc;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px;
  padding: 6px 20px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}
.gt-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.gt-hero h1 em { color: #95d5b2; font-style: normal; }
.gt-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.gt-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.gt-btn-primary {
  background: #fff;
  color: var(--green);
  border: none;
  border-radius: 32px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gt-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); color: var(--green); }
.gt-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 32px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.gt-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* ===== STATS ===== */
.gt-stats { background: var(--green); padding: 20px 24px; }
.gt-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.gt-stat { text-align: center; }
.gt-stat strong { display: block; font-size: 1.4rem; color: #fff; font-family: var(--font-head); }
.gt-stat span { font-size: 0.78rem; color: #95d5b2; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== CATS BAR ===== */
.gt-cats { background: #fff; border-bottom: 1px solid var(--border); overflow-x: auto; }
.gt-cats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.gt-cat-item {
  padding: 16px 22px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}
.gt-cat-item:hover, .gt-cat-item.active { color: var(--green); border-bottom-color: var(--green); }

/* ===== LAYOUT ===== */
.gt-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gt-main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 48px 0;
  align-items: start;
}

/* ===== SECTION HEADER ===== */
.gt-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--dark);
}
.gt-section-header h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
}
.gt-section-header a {
  font-size: 0.82rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== RECIPE CARDS ===== */
.gt-recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.gt-recipe-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gt-recipe-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.gt-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--green-mid);
}
.gt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gt-recipe-card:hover .gt-card-img img { transform: scale(1.05); }
.gt-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 4px;
}
.gt-cat-badge.orange { background: var(--accent); }
.gt-time-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
}
.gt-card-body { padding: 18px; }
.gt-card-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.gt-card-body h3 a { text-decoration: none; color: var(--dark); transition: color 0.2s; }
.gt-card-body h3 a:hover { color: var(--green); }
.gt-card-meta {
  display: flex;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--gray);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.gt-card-desc {
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.gt-difficulty { font-size: 0.76rem; color: var(--gray); }
.gt-btn-sm {
  background: var(--green-pale);
  color: var(--green);
  border: 1px solid var(--green-mid);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.gt-btn-sm:hover { background: var(--green-mid); color: var(--green); }

/* FEATURED CARD */
.gt-recipe-card.gt-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.gt-recipe-card.gt-featured .gt-card-img { aspect-ratio: auto; min-height: 260px; }
.gt-recipe-card.gt-featured .gt-card-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.gt-recipe-card.gt-featured h3 { font-size: 1.4rem; margin-bottom: 12px; }
.gt-recipe-card.gt-featured .gt-card-desc { font-size: 0.92rem; -webkit-line-clamp: 4; }

/* ===== SIDEBAR ===== */
.gt-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 88px; }
.gt-widget { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.gt-widget-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--warm);
}

/* Chef Bio */
.gt-chef-bio { padding: 24px 20px; text-align: center; }
.gt-chef-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-mid);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 3px solid var(--green);
}
.gt-chef-bio h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
.gt-chef-title { font-size: 0.78rem; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.gt-chef-bio p { font-size: 0.85rem; color: var(--gray); line-height: 1.65; }
.gt-chef-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.gt-chef-stat { background: var(--green-pale); border-radius: 8px; padding: 10px 6px; text-align: center; }
.gt-chef-stat strong { display: block; font-size: 1rem; color: var(--green); font-family: var(--font-head); }
.gt-chef-stat span { font-size: 0.7rem; color: var(--gray); }

/* Popular */
.gt-popular-list { padding: 4px 0; }
.gt-popular-item {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.gt-popular-item:last-child { border-bottom: none; }
.gt-popular-item:hover { background: var(--green-pale); }
.gt-pop-img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--green-mid);
}
.gt-pop-info h4 { font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.gt-pop-info span { font-size: 0.74rem; color: var(--gray); }

/* Newsletter */
.gt-newsletter { padding: 24px 20px; background: linear-gradient(135deg, var(--green), #40916c); text-align: center; }
.gt-newsletter h3 { font-family: var(--font-head); color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.gt-newsletter p { font-size: 0.82rem; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.gt-newsletter input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.87rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.gt-newsletter button {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.2s;
}
.gt-newsletter button:hover { opacity: 0.9; }

/* Tags */
.gt-tags-cloud { padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.gt-tag {
  background: var(--green-pale);
  color: var(--green);
  border: 1px solid var(--green-mid);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.gt-tag:hover { background: var(--green-mid); color: var(--green); }

/* ===== CATEGORIES SECTION ===== */
.gt-cat-section { padding: 48px 0; background: var(--warm); border-top: 1px solid var(--border); }
.gt-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.gt-cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
}
.gt-cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.08); border-color: var(--green-light); color: inherit; }
.gt-cat-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.gt-cat-card h3 { font-family: var(--font-head); font-size: 0.92rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.gt-cat-card span { font-size: 0.74rem; color: var(--gray); }

/* ===== BANNER ===== */
.gt-banner {
  background: linear-gradient(120deg, #1b4332 0%, #2d6a4f 100%);
  padding: 60px 24px;
  text-align: center;
}
.gt-banner h2 { font-family: var(--font-head); color: #fff; font-size: 2rem; margin-bottom: 12px; }
.gt-banner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.gt-banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== SINGLE POST ===== */
.gt-single { max-width: 820px; margin: 48px auto; padding: 0 24px; }
.gt-single .gt-post-header { margin-bottom: 32px; }
.gt-single .gt-post-cat {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  border: 1px solid var(--green-mid);
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  text-decoration: none;
}
.gt-single h1.gt-post-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.gt-single .gt-post-meta { font-size: 0.85rem; color: var(--gray); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.gt-single .gt-post-featured-img { border-radius: 12px; overflow: hidden; margin-bottom: 36px; }
.gt-single .gt-post-featured-img img { width: 100%; height: auto; }
.gt-post-content { font-size: 1rem; line-height: 1.85; }
.gt-post-content h2 { font-family: var(--font-head); font-size: 1.5rem; margin: 36px 0 14px; font-weight: 700; }
.gt-post-content h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 28px 0 10px; font-weight: 700; }
.gt-post-content p { margin-bottom: 18px; }
.gt-post-content ul, .gt-post-content ol { margin: 0 0 18px 24px; }
.gt-post-content li { margin-bottom: 6px; }
.gt-post-content strong { font-weight: 700; color: var(--dark); }
.gt-post-content img { border-radius: 10px; margin: 24px 0; }
.gt-kcal-box {
  background: var(--green-pale);
  border: 1px solid var(--green-mid);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.gt-kcal-item { text-align: center; }
.gt-kcal-item strong { display: block; font-size: 1.1rem; color: var(--green); font-family: var(--font-head); }
.gt-kcal-item span { font-size: 0.78rem; color: var(--gray); }

/* ===== ARCHIVE / BLOG ===== */
.gt-archive { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.gt-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }

/* ===== FOOTER ===== */
.gt-footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 56px 24px 32px; }
.gt-footer-inner { max-width: 1200px; margin: 0 auto; }
.gt-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.gt-footer-logo { font-family: var(--font-head); font-size: 1.5rem; color: #fff; margin-bottom: 12px; font-weight: 700; display: block; }
.gt-footer-logo span { color: #95d5b2; }
.gt-footer-desc { font-size: 0.85rem; line-height: 1.7; margin-bottom: 20px; }
.gt-social-links { display: flex; gap: 10px; }
.gt-social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.gt-social-link:hover { background: var(--green); color: #fff; }
.gt-footer-col h4 { color: #fff; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.gt-footer-links { list-style: none; }
.gt-footer-links li { margin-bottom: 10px; }
.gt-footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.gt-footer-links a:hover { color: #95d5b2; }
.gt-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 12px;
}
.gt-footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; margin-left: 20px; }
.gt-footer-bottom a:hover { color: #95d5b2; }

/* ===== PAGINATION ===== */
.gt-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.gt-pagination a, .gt-pagination span {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  background: #fff;
  transition: all 0.2s;
}
.gt-pagination a:hover, .gt-pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .gt-main-layout { grid-template-columns: 1fr 280px; gap: 32px; }
  .gt-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .gt-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .gt-nav-links, .gt-nav-search { display: none; }
  .gt-hamburger { display: block; }
  .gt-nav-mobile { display: none; flex-direction: column; background: #fff; padding: 16px 24px; border-top: 1px solid var(--border); }
  .gt-nav-mobile.open { display: flex; }
  .gt-nav-mobile a { padding: 10px 0; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; color: var(--gray); text-decoration: none; border-bottom: 1px solid var(--border); }
  .gt-main-layout { grid-template-columns: 1fr; }
  .gt-sidebar { position: static; }
  .gt-recipes-grid { grid-template-columns: 1fr; }
  .gt-recipe-card.gt-featured { grid-template-columns: 1fr; }
  .gt-recipe-card.gt-featured .gt-card-img { min-height: 220px; aspect-ratio: 16/9; }
  .gt-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gt-archive-grid { grid-template-columns: 1fr; }
  .gt-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .gt-stats-inner { gap: 28px; }
  .gt-hero { padding: 56px 20px; }
}

@media (max-width: 480px) {
  .gt-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gt-section-header { flex-direction: column; gap: 8px; }
  .gt-footer-bottom { flex-direction: column; text-align: center; }
  .gt-footer-bottom a { margin-left: 10px; }
}
