/* =============================================
   SLAGLE FOODS - Main Stylesheet
   Alpenküche & Kulinarische Traditionen
   ============================================= */

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

:root {
  --brown-dark: #5c3d1e;
  --brown-mid:  #8b5e2d;
  --brown-light:#c8a06a;
  --cream-pale: #f5ede0;
  --green-dark: #2d5a27;
  --green-mid:  #4a7c43;
  --green-light:#8fba88;
  --accent:     #c8752a;
  --text-dark:  #1c1c1a;
  --text-mid:   #444;
  --text-light: #777;
  --bg:         #faf9f5;
  --white:      #fff;
  --border:     #e5ddd0;
  --font-head:  'Georgia', 'Times New Roman', serif;
  --font-body:  'Open Sans', 'Helvetica Neue', sans-serif;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --radius:     6px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; color: var(--text-dark); background: var(--bg); line-height: 1.7; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-mid); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ======== TOP BAR ======== */
.top-bar {
  background: var(--brown-dark);
  color: var(--cream-pale);
  font-size: 12px;
  text-align: center;
  padding: 6px 20px;
  letter-spacing: 0.3px;
}
.top-bar a { color: var(--cream-pale); }

/* ======== HEADER ======== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--brown-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-family: var(--font-head); font-size: 26px; font-weight: bold; color: var(--brown-dark); letter-spacing: -0.5px; }
.logo-text span { color: var(--accent); }
.logo-tagline { font-size: 11px; color: var(--text-light); font-style: italic; margin-top: -2px; }

/* NAV */
.main-nav { display: flex; gap: 0; }
.main-nav a { display: block; padding: 8px 16px; color: var(--text-dark); font-size: 14px; font-weight: 600; border-radius: var(--radius); transition: background 0.2s, color 0.2s; }
.main-nav a:hover { background: var(--cream-pale); color: var(--brown-dark); text-decoration: none; }
.main-nav a.active { color: var(--brown-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ======== HERO ======== */
.hero {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
  color: var(--white);
  padding: 70px 20px;
  text-align: center;
}
.hero h1 { font-family: var(--font-head); font-size: clamp(28px, 5vw, 52px); line-height: 1.2; margin-bottom: 16px; text-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.hero p { font-size: 18px; opacity: 0.9; max-width: 620px; margin: 0 auto 28px; }

.btn { display: inline-block; padding: 13px 32px; border-radius: 50px; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-white { background: var(--white); color: var(--brown-dark); }
.btn-brown { background: var(--brown-dark); color: var(--white); }

/* ======== CATEGORY STRIP ======== */
.category-strip { background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-strip .container { display: flex; gap: 0; padding: 0 20px; }
.category-strip a { display: inline-block; padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--text-mid); border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s; }
.category-strip a:hover, .category-strip a.active { color: var(--brown-dark); border-bottom-color: var(--brown-dark); text-decoration: none; }

/* ======== BREADCRUMB ======== */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 20px; font-size: 13px; color: var(--text-light); }
.breadcrumb .container { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--brown-mid); }
.breadcrumb span { color: var(--text-light); }

/* ======== SECTIONS ======== */
.section { padding: 50px 0; }
.section-title { font-family: var(--font-head); font-size: 26px; color: var(--text-dark); margin-bottom: 30px; padding-bottom: 12px; border-bottom: 2px solid var(--cream-pale); display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 28px; background: var(--accent); border-radius: 2px; }

/* ======== FEATURED ARTICLE ======== */
.featured-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; }
.featured-card .card-img { height: 380px; object-fit: cover; width: 100%; display: block; background-size: cover; background-position: center; }
.featured-card .card-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-card .card-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.featured-card h2 { font-family: var(--font-head); font-size: 28px; line-height: 1.3; margin-bottom: 14px; color: var(--text-dark); }
.featured-card p { color: var(--text-mid); font-size: 15px; margin-bottom: 24px; line-height: 1.7; }
.featured-card .read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--brown-dark); font-weight: 700; font-size: 14px; transition: gap 0.2s; }
.featured-card .read-more:hover { gap: 10px; text-decoration: none; }
.featured-card .read-more::after { content: '→'; }

/* ======== ARTICLE GRID ======== */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.article-card .card-img-wrap { height: 200px; overflow: hidden; }
.article-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display: block; }
.article-card:hover .card-img-wrap img { transform: scale(1.05); }
.article-card .card-img-wrap img[src] { background-size: cover; background-position: center; }
.article-card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.card-cat { display: inline-block; background: var(--cream-pale); color: var(--brown-dark); padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.card-date { color: var(--text-light); }
.article-card h3 { font-family: var(--font-head); font-size: 18px; line-height: 1.4; margin-bottom: 10px; color: var(--text-dark); }
.article-card h3 a { color: var(--text-dark); }
.article-card h3 a:hover { color: var(--brown-dark); text-decoration: none; }
.article-card p { color: var(--text-mid); font-size: 14px; line-height: 1.6; flex: 1; }
.card-footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-light); }
.read-link { color: var(--brown-dark); font-weight: 700; font-size: 13px; }
.read-link:hover { text-decoration: underline; }

/* ======== CTA BANNER ======== */
.cta-banner { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%); color: var(--white); padding: 60px 20px; text-align: center; }
.cta-banner h2 { font-family: var(--font-head); font-size: 30px; margin-bottom: 12px; }
.cta-banner p { font-size: 17px; opacity: 0.9; max-width: 560px; margin: 0 auto 28px; }

/* ======== ARTICLE PAGE ======== */
.article-page { padding: 50px 0; }
.article-header { max-width: 800px; margin: 0 auto 36px; }
.article-header .article-cat { display: inline-block; background: var(--cream-pale); color: var(--brown-dark); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.article-header h1 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 42px); line-height: 1.25; color: var(--text-dark); margin-bottom: 14px; }
.article-header .subtitle { font-size: 18px; color: var(--text-mid); margin-bottom: 20px; line-height: 1.6; }
.article-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-light); flex-wrap: wrap; align-items: center; }
.article-meta strong { color: var(--text-dark); }
.article-hero-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin: 30px 0; }
.article-body { max-width: 800px; margin: 0 auto; font-size: 17px; line-height: 1.85; color: var(--text-mid); }
.article-body h2 { font-family: var(--font-head); font-size: 24px; color: var(--text-dark); margin: 40px 0 16px; padding-top: 10px; border-top: 1px solid var(--border); }
.article-body h3 { font-family: var(--font-head); font-size: 20px; color: var(--text-dark); margin: 28px 0 12px; }
.article-body p { margin-bottom: 22px; }
.article-body ul, .article-body ol { padding-left: 28px; margin-bottom: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text-dark); font-weight: 700; }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 16px 24px; background: var(--cream-pale); border-radius: 0 var(--radius) var(--radius) 0; margin: 30px 0; font-style: italic; font-size: 17px; color: var(--text-dark); }

/* ======== RECIPE BOX ======== */
.recipe-box { background: var(--cream-pale); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; margin: 30px auto; max-width: 800px; }
.recipe-box h3 { font-family: var(--font-head); font-size: 20px; color: var(--brown-dark); margin-bottom: 16px; border-bottom: 2px solid var(--brown-light); padding-bottom: 8px; }
.recipe-meta { display: flex; gap: 28px; font-size: 13px; color: var(--text-mid); margin-bottom: 20px; flex-wrap: wrap; }
.recipe-meta span { display: flex; align-items: center; gap: 5px; }
.recipe-meta strong { color: var(--brown-dark); }
.recipe-box ul, .recipe-box ol { padding-left: 22px; }
.recipe-box li { margin-bottom: 6px; font-size: 15px; color: var(--text-dark); }

/* ======== STATIC / LEGAL PAGES ======== */
.static-page { padding: 50px 0; max-width: 820px; }
.static-page h1 { font-family: var(--font-head); font-size: 36px; margin-bottom: 10px; color: var(--text-dark); }
.static-page .last-updated { color: var(--text-light); font-size: 13px; margin-bottom: 36px; }
.static-page h2 { font-family: var(--font-head); font-size: 22px; margin: 36px 0 12px; color: var(--text-dark); padding-top: 10px; border-top: 1px solid var(--border); }
.static-page p { margin-bottom: 18px; color: var(--text-mid); }
.static-page ul { padding-left: 24px; margin-bottom: 18px; }
.static-page li { margin-bottom: 8px; color: var(--text-mid); }
.static-page a { color: var(--brown-dark); }

.article-container { padding: 50px 0; }
.article-container .article-header h1 { font-family: var(--font-head); font-size: 32px; margin-bottom: 10px; }

/* ======== CONTACT GRID ======== */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 50px; padding: 50px 0; align-items: start; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 15px; margin-bottom: 14px; background: var(--white); color: var(--text-dark); transition: border-color 0.2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brown-mid); }
.contact-form textarea { height: 140px; resize: vertical; }
.contact-info-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-info-box h3 { font-family: var(--font-head); font-size: 20px; margin-bottom: 20px; color: var(--text-dark); }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; font-size: 14px; }
.contact-info-item span { font-size: 20px; }
.contact-info-item div strong { display: block; color: var(--text-dark); margin-bottom: 2px; }

/* ======== FOOTER ======== */
.site-footer { background: var(--brown-dark); color: #ddd; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-head); font-size: 22px; color: var(--white); margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 13px; line-height: 1.7; color: #bbb; max-width: 320px; }
.footer-address { font-size: 12px; line-height: 1.8; color: #aaa; margin-top: 14px; }
.footer-address a { color: #bbb; }
.footer-col h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #bbb; font-size: 13px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #999; }
.footer-bottom a { color: #bbb; }
.footer-bottom a:hover { color: var(--white); }

/* ======== COOKIE BANNER ======== */
#cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(28,28,26,0.97); color: #ddd; padding: 16px 24px; z-index: 9999; font-size: 13px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
#cookie-banner a { color: var(--brown-light); }
#cookie-accept { background: var(--accent); color: #fff; border: none; padding: 9px 22px; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: 13px; }
#cookie-reject { background: transparent; color: #aaa; border: 1px solid #555; padding: 9px 18px; border-radius: 20px; cursor: pointer; font-size: 13px; margin-left: 8px; }

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .card-img { height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,0.1); padding: 10px 0; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 20px; }
  .hero h1 { font-size: 28px; }
}
