/* === KARTOFFEL-RATGEBER.DE — Design System === */

:root {
  --primary: #3d7a4a;
  --primary-d: #2d5e38;
  --accent: #d4952a;
  --accent-d: #b57d1f;
  --text: #2c2418;
  --muted: #6b6054;
  --bg: #fefcf8;
  --bg-light: #f5f0e8;
  --bg-dark: #1e2e1a;
  --border: #e0d8cc;
  --highlight: #e8f5e0;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-d); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.site-header {
  background: var(--bg-dark);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.site-logo {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-logo span { color: var(--accent); }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: rgba(255,255,255,.8);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* === AD DISCLOSURE === */
.ad-disclosure {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.ad-disclosure a { color: var(--primary); }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a4a25 50%, var(--primary) 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .9;
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-badges span {
  background: rgba(255,255,255,.12);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .9rem;
  backdrop-filter: blur(4px);
}

/* === HERO IMAGE === */
.hero-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-with-image h1 { margin-bottom: 16px; }
.hero-with-image p { margin: 0 0 28px; }
.hero-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.hero-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); color: #fff; }

.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-green { background: var(--primary); color: #fff; }
.btn-green:hover { background: var(--primary-d); color: #fff; }

.btn small { font-size: .75em; font-weight: 400; opacity: .8; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* === SECTIONS === */
section { padding: 64px 20px; }
section.alt { background: var(--bg-light); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.section-header .eyebrow {
  display: inline-block;
  background: var(--highlight);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* === CARDS === */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }

.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
}
.card-link:hover { color: var(--primary-d); }

/* === SORTEN CARDS === */
.sorten-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }

.sorten-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.sorten-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.1); }

.sorten-card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.sorten-card-header h3 { font-size: 1.1rem; margin: 0; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
}
.badge-fest { background: #3d7a4a; }
.badge-vorw { background: #c4960c; }
.badge-mehlig { background: #c06420; }

.sorten-card-body {
  padding: 16px 20px;
}
.sorten-card-body dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4px 12px;
  font-size: .9rem;
}
.sorten-card-body dt { color: var(--muted); font-weight: 600; }
.sorten-card-body dd { margin: 0; }

.sorten-card-footer {
  padding: 12px 20px;
  background: var(--bg-light);
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.sorten-card-footer strong { color: var(--text); }

/* === FILTER BUTTONS === */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: #fff;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* === ARTICLE CONTENT === */
.article-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px 20px;
  background: linear-gradient(transparent, rgba(30,46,26,.85));
  color: #fff;
}
.article-hero-overlay h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  max-width: 1100px;
  margin: 0 auto;
}

.breadcrumb {
  padding: 12px 20px;
  font-size: .85rem;
  color: var(--muted);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb .wrap { display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span.sep { color: var(--border); }

.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 20px;
}
.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--text);
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 12px;
}
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
  margin: 0 0 16px 24px;
}
.article-content li { margin-bottom: 6px; }

/* === INFO BOX === */
.info-box {
  background: var(--highlight);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.info-box strong { color: var(--primary); }

.warning-box {
  background: #fff8e6;
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.warning-box strong { color: var(--accent-d); }

/* === AFFILIATE BOX === */
.affiliate-box {
  background: linear-gradient(135deg, var(--highlight), #f0fae8);
  border: 1px solid #c8e6b8;
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  text-align: center;
}
.affiliate-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.affiliate-box p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }

/* === TABLE === */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead { background: var(--bg-dark); color: #fff; }
th { padding: 12px 16px; text-align: left; font-weight: 600; }
td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg-light); }
tbody tr.highlight { background: var(--highlight); }

/* === FAQ ACCORDION === */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: background .15s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question::after {
  content: '\25BC';
  font-size: .7rem;
  transition: transform .2s;
  color: var(--muted);
}
.faq-item.open .faq-question::after { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.7;
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a4a25 50%, var(--primary) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}
.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}
.cta-banner p {
  opacity: .85;
  max-width: 560px;
  margin: 0 auto 24px;
}

/* === FOOTER === */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 48px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-grid a { color: rgba(255,255,255,.7); display: block; padding: 4px 0; font-size: .9rem; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: .9rem; line-height: 1.6; }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .8rem;
}
.footer-affiliate-note {
  margin-top: 12px;
  font-size: .78rem;
  opacity: .6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* === STICKY CTA (mobile) === */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  padding: 12px 20px;
  text-align: center;
  z-index: 99;
  box-shadow: 0 -2px 12px rgba(0,0,0,.15);
}
.sticky-cta a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
}
.sticky-cta small { font-size: .7em; opacity: .7; }

/* === COMPARISON GRID === */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.comparison-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.comparison-item .icon { font-size: 2.5rem; margin-bottom: 12px; }
.comparison-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.comparison-item ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  text-align: left;
  font-size: .9rem;
}
.comparison-item li { padding: 4px 0; }
.comparison-item li::before { content: ''; margin-right: 6px; }

/* === STEP LIST === */
.steps { max-width: 780px; margin: 0 auto; counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  background: var(--primary);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-content h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step-content p { color: var(--muted); font-size: .95rem; }

/* === KOCHTIPPS GRID === */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.method-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.method-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.method-card ul { margin-left: 20px; font-size: .9rem; }
.method-card li { margin-bottom: 4px; color: var(--muted); }
.method-card .time-badge {
  display: inline-block;
  background: var(--highlight);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-top: 12px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }

  .hero { padding: 48px 20px; }
  .hero-with-image {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-img img { height: 220px; }

  section { padding: 44px 20px; }

  .article-hero { height: 240px; }

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

  .sticky-cta { display: block; }
  .site-footer { padding-bottom: 72px; }
}
