/* ============================================
   Sauerteig-Ratgeber — Design System
   Farben: Weiß, Beige, Türkis, viele Rundungen
   ============================================ */

:root {
  --white:    #ffffff;
  --bg:       #faf8f5;
  --beige-50: #f5f0e8;
  --beige-100:#ede5d4;
  --beige-200:#d9cdb8;
  --text:     #2c2a26;
  --text-muted: #6b6560;
  --teal-400: #4db8b0;
  --teal-500: #38a89f;
  --teal-600: #2d9188;
  --teal-light: #e0f5f4;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --shadow-sm: 0 2px 8px rgba(44,42,38,.06);
  --shadow-md: 0 6px 24px rgba(44,42,38,.10);
  --shadow-lg: 0 12px 40px rgba(44,42,38,.13);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', 'Georgia', serif;
  --transition: all .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-500); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal-600); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .6rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4rem; color: var(--text-muted); }
li { margin-bottom: .4rem; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Nav ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--beige-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text) !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo span {
  color: var(--teal-500);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-500);
  background: var(--teal-light);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  background: var(--white);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-600);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 { margin-bottom: 1.2rem; }

.hero p.lead {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal-500);
  color: var(--white);
  border-color: var(--teal-500);
}

.btn-primary:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56,168,159,.35);
}

.btn-outline {
  background: transparent;
  color: var(--teal-500);
  border-color: var(--teal-400);
}

.btn-outline:hover {
  background: var(--teal-light);
  color: var(--teal-600);
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.section-header .badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-600);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--beige-100);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover .card-img img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.5rem;
}

.card-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal-600);
  background: var(--teal-light);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--teal-500);
}

.card-link::after { content: "→"; transition: var(--transition); }
.card:hover .card-link::after { transform: translateX(4px); }

/* ── Info Box / Tip ── */
.tip-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.tip-box strong {
  display: block;
  color: var(--teal-600);
  margin-bottom: .3rem;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tip-box p { color: var(--text); margin: 0; }

/* ── Feature List ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--beige-100);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* ── Steps / Timeline ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--beige-100);
  box-shadow: var(--shadow-sm);
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--teal-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-serif);
}

/* ── Table ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--beige-100);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th {
  background: var(--beige-50);
  padding: .85rem 1.2rem;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
}

td {
  padding: .85rem 1.2rem;
  border-top: 1px solid var(--beige-100);
  color: var(--text-muted);
  font-size: .95rem;
}

tr:hover td { background: var(--bg); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--beige-100);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  user-select: none;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--teal-400);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.2rem;
  color: var(--text-muted);
}

.faq-item.open .faq-answer { display: block; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 1rem 0;
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  gap: .4rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--teal-500); }
.breadcrumb span { color: var(--beige-200); }

/* ── Article Layout ── */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-content { min-width: 0; }
.article-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h3 { margin-top: 1.75rem; }

.sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--beige-100);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.toc-list a {
  color: var(--text-muted);
  font-size: .875rem;
  padding: .3rem .6rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: var(--transition);
}

.toc-list a:hover {
  color: var(--teal-500);
  background: var(--teal-light);
}

/* ── Article Hero ── */
.article-hero {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--white) !important;
  margin-bottom: 1rem;
}

.footer-brand p { color: rgba(255,255,255,.55); font-size: .9rem; }

.footer-col h5 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--teal-400); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-width: 480px; margin: 0 auto; }
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--beige-100); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ============================================
   HelloFresh Country-Widget (Multi-Country Deal)
   ============================================ */

.hf-country-widget {
  background: linear-gradient(135deg, #f0f9f9 0%, #e0f5f4 100%);
  border: 2px solid #38a89f;
  border-radius: 12px;
  padding: 24px 24px 22px;
  margin: 36px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(56,168,159,.20);
}
.hf-country-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #000 0%, #2d8236 25%, #c41e1e 50%, #ffbd00 75%, #d80027 100%);
}
.hf-country-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.hf-country-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text, #222);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hf-country-widget-title::before {
  content: '';
  display: inline-block;
  width: 110px;
  height: 34px;
  background: url('../img/hellofresh-logo.png') no-repeat left center;
  background-size: contain;
  flex-shrink: 0;
}
.hf-country-widget-badge {
  display: inline-block;
  background: #38a89f;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
}
.hf-country-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 16px;
  padding: 4px;
  background: rgba(255, 255, 255, .55);
  border-radius: 10px;
}
.hf-country-tab {
  flex: 1;
  min-width: 0;
  padding: 9px 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted, #666);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.hf-country-tab:hover {
  background: rgba(255, 255, 255, .8);
  color: var(--text, #222);
}
.hf-country-tab.active {
  background: #fff;
  color: var(--text, #222);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.hf-country-tab-flag { font-size: 1.05rem; line-height: 1; }
.hf-country-panel { display: none; }
.hf-country-panel.active { display: block; }
.hf-country-offer {
  font-size: 1.35rem;
  font-weight: 800;
  color: #c41e1e;
  line-height: 1.2;
  margin-bottom: 4px;
}
.hf-country-desc {
  color: var(--text-muted, #666);
  font-size: .95rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.hf-country-code-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hf-country-code {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border: 2px dashed #c41e1e;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
.hf-country-code:hover { background: #e0f5f4; }
.hf-country-code-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted, #666);
  display: block;
  margin-bottom: 2px;
}
.hf-country-code-value {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #c41e1e;
  letter-spacing: 1px;
}
.hf-country-code-copy {
  background: transparent;
  border: none;
  color: #c41e1e;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hf-country-code-copy:hover { background: rgba(196, 30, 30, .1); }
.hf-country-code-copy.copied { color: #22c55e; }
.hf-country-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c41e1e 0%, #9b1616 100%);
  color: #fff;
  padding: 12px 26px;
  min-height: 46px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(196, 30, 30, .3);
  transition: transform .15s ease, box-shadow .2s ease;
}
.hf-country-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(196, 30, 30, .4);
}
.hf-country-cta::after { content: '→'; display: inline-block; }
.hf-country-cta small {
  font-size: .68em;
  font-weight: 400;
  opacity: .8;
  margin-left: 3px;
}
.hf-country-note {
  font-size: .78rem;
  color: var(--text-muted, #666);
  margin-top: 12px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .hf-country-tab { font-size: .8rem; padding: 8px 4px; }
  .hf-country-tab-flag { font-size: 1rem; }
  .hf-country-offer { font-size: 1.15rem; }
}

/* === OFFENE DATEN (daten.html + daten-*.html) === */
.breadcrumb > .container { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.prose h2 { margin: 2.2rem 0 .9rem; }
.prose h3 { margin: 1.6rem 0 .6rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.info-box.expert {
  background: var(--teal-light);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: .95rem;
  color: var(--text);
}
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--beige-100);
  box-shadow: var(--shadow-sm);
}
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); }
.compare-table th {
  background: var(--teal-600);
  color: #fff;
  padding: .65rem .9rem;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.compare-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--beige-100); vertical-align: top; }
.compare-table tr:nth-child(even) { background: var(--bg); }
.cell-empty { color: var(--beige-200); }
.related-articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; margin-top: 1.3rem; }
.related-card, .dataset-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--beige-100);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.related-card:hover, .dataset-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text); }
.related-card h4, .dataset-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.related-card p, .dataset-card p { font-size: .92rem; color: var(--text-muted); margin-bottom: .6rem; line-height: 1.55; }
.dataset-meta { font-size: .82rem; color: var(--text-muted); }
.changelog-list { padding-left: 0; list-style: none; }
.changelog-list li { padding: .5rem 0; border-bottom: 1px solid var(--beige-100); }
.changelog-list li strong { margin-right: .7rem; color: var(--teal-600); }
