/* ═══════════════════════════════════════════════
   AUSWANDERN-DK · Design System
   ═══════════════════════════════════════════════ */

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

:root {
  --sand:   #f5efe6;
  --warm:   #ede4d8;
  --red:    #c0392b;
  --red-dk: #922b21;
  --teal:   #2e7d7a;
  --dark:   #1a1a1a;
  --text:   #2d2d2d;
  --muted:  #7a7060;
  --border: #ddd5c8;
  --serif:  'Playfair Display', Georgia, serif;
  --body:   'Lora', Georgia, serif;
  --sans:   'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--body);
  background: var(--sand);
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── HEADER ─── */
.site-header {
  background: var(--dark);
  padding: 0 max(1rem, 5vw);
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  border-bottom: 3px solid var(--red);
}
.logo { display: flex; align-items: baseline; gap: 0.1em; }
.logo-text { font-family: var(--serif); font-size: 1.35rem; color: white; font-weight: 400; }
.logo-dk   { font-family: var(--serif); font-size: 1.35rem; color: var(--red); font-style: italic; }

nav ul { display: flex; gap: 2rem; list-style: none; }
nav a {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); transition: color 0.2s;
}
nav a:hover, nav a.active { color: white; }
.nav-new-dot{display:inline-block;width:7px;height:7px;background:var(--red);border-radius:50%;margin-left:5px;vertical-align:middle;position:relative;top:-1px;animation:pulse-dot 1.8s ease-in-out infinite;}
@keyframes pulse-dot{0%,100%{transform:scale(1);opacity:1;}50%{transform:scale(1.5);opacity:.5;}}

.menu-toggle {
  display: none; background: none; border: none;
  color: white; font-size: 1.4rem; cursor: pointer;
}

/* ─── HERO (homepage/blog) ─── */
.site-hero {
  background: var(--dark);
  min-height: 42vh;
  display: flex; align-items: flex-end;
  padding: 5vw;
  position: relative; overflow: hidden;
}
.site-hero-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: 0.3;
}
.site-hero-content { position: relative; max-width: 760px; }
.site-hero-title {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem);
  color: white; font-weight: 700; line-height: 1.1; margin-bottom: 1rem;
}
.site-hero-title em { font-style: italic; color: #e8d5c0; font-weight: 400; }
.site-hero-sub {
  font-family: var(--sans); font-size: 0.95rem;
  color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 560px;
}

/* ─── GRID LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 max(1rem, 5vw); }
.section   { padding: 4rem 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.posts-grid--featured {
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* ─── POST CARD ─── */
.post-card {
  display: flex; flex-direction: column;
  background: white; border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.post-card--big .post-card-img { height: 380px; }
.post-card-img { position: relative; height: 220px; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-cat {
  position: absolute; bottom: 0.8rem; left: 0.8rem;
  background: var(--red); color: white;
  font-family: var(--sans); font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.25rem 0.65rem; font-weight: 500;
}
.post-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.post-card-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.post-card--big .post-card-title { font-size: 1.6rem; }
.post-card-excerpt { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); line-height: 1.7; flex: 1; font-weight: 300; }
.post-card-meta { display: flex; gap: 1rem; font-family: var(--sans); font-size: 0.73rem; color: var(--muted); margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--border); }

/* ─── CATEGORY FILTER ─── */
.category-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5vw;
  background: var(--warm);
  border-bottom: 1px solid var(--border);
}
.cat-btn {
  font-family: var(--sans); font-size: 0.72rem;
  background: white; color: var(--muted);
  padding: 0.4rem 1rem; border: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
  transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active { background: var(--dark); color: white; border-color: var(--dark); }
.cat-btn.active { background: var(--red); border-color: var(--red); }

/* ─── BLOG SEARCH ─── */
.blog-search-form {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border);
  background: white;
}
.blog-search-input {
  font-family: var(--sans); font-size: 0.78rem;
  padding: 0.38rem 0.75rem; border: none; outline: none;
  background: transparent; color: var(--text);
  width: 160px; transition: width 0.2s;
}
.blog-search-input:focus { width: 220px; }
.blog-search-btn {
  background: none; border: none; border-left: 1px solid var(--border);
  padding: 0.38rem 0.65rem; cursor: pointer;
  font-size: 0.85rem; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.blog-search-btn:hover { background: var(--dark); color: white; }
.blog-search-reset {
  font-family: var(--sans); font-size: 1rem; color: var(--muted);
  line-height: 1; transition: color 0.15s; padding: 0 0.2rem;
}
.blog-search-reset:hover { color: var(--red); }
.search-result-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 5vw;
  background: var(--warm); border-bottom: 1px solid var(--border);
  font-family: var(--sans); font-size: 0.82rem; color: var(--muted);
}
.search-result-reset {
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--red); transition: opacity 0.15s;
}
.search-result-reset:hover { opacity: 0.7; }

.sort-toggle {
  display: flex; align-items: center; gap: 0.6rem;
  flex-shrink: 0;
}
.sort-btn {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--muted); transition: color 0.2s;
}
.sort-btn:hover { color: var(--text); }
.sort-btn.active { color: var(--red); font-weight: 500; }

/* ─── PAGINATION ─── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 3rem 0; }
.page-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.85rem;
  border: 1px solid var(--border); color: var(--muted); background: white;
  transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { background: var(--dark); color: white; border-color: var(--dark); }

/* ─── SINGLE POST HERO ─── */
.post-hero {
  position: relative; height: 62vh; min-height: 420px; overflow: hidden;
}
.post-hero img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: brightness(0.5);
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.1) 60%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 3rem clamp(1.5rem, 8vw, 6rem);
}
.post-breadcrumb {
  font-family: var(--sans); font-size: 0.7rem;
  color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem;
}
.post-breadcrumb a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.post-breadcrumb a:hover { color: var(--red); }
.post-breadcrumb span { margin: 0 0.4em; }
.post-category-badge {
  display: inline-block; background: var(--red); color: white;
  font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; margin-bottom: 1rem; font-weight: 500;
}
.post-main-title {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.8rem);
  color: white; line-height: 1.1; font-weight: 700; max-width: 800px; margin-bottom: 1.2rem;
}
.post-main-title em { font-style: italic; font-weight: 400; color: #e8d5c0; }
.post-hero-meta { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.post-hero-meta span { font-family: var(--sans); font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.author-chip { display: flex; align-items: center; gap: 0.5rem; }
.author-chip-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 0.85rem; color: white;
}

/* ─── ARTICLE LAYOUT ─── */
.article-wrapper {
  display: grid;
  grid-template-columns: 1fr min(720px, 100%) 1fr;
  padding: 4.5rem 0 3rem;
}
.article-body { grid-column: 2; padding: 0 clamp(1rem, 3vw, 2rem); }

.article-body > p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 4.2rem; font-weight: 700;
  float: left; line-height: 0.8;
  margin-right: 0.08em; margin-top: 0.12em;
  color: var(--red);
}
.article-body > p.no-dropcap::first-letter { font-size: inherit; font-weight: inherit; float: none; color: inherit; margin: 0; }
.article-body p { margin-bottom: 1.8rem; font-size: 1.05rem; line-height: 1.95; }
.section-break { text-align: center; color: var(--red); font-size: 1rem; letter-spacing: 0.5em; margin: 2.2rem 0; opacity: 0.5; }
.article-body h2 { font-family: var(--serif); font-size: 1.75rem; color: var(--dark); margin: 2.5rem 0 1rem; font-weight: 700; }
.article-body h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--dark); margin: 2rem 0 0.75rem; font-weight: 700; font-style: italic; }

/* Fullwidth elements inside grid */
.post-image { grid-column: 1 / -1; margin: 2rem 0; }
.post-image img { width: 100%; max-height: 520px; object-fit: cover; }
.post-image figcaption {
  font-family: var(--sans); font-size: 0.78rem; color: var(--muted);
  text-align: center; padding: 0.6rem clamp(1rem, 8vw, 6rem);
  font-style: italic; background: var(--warm);
}

.pullquote-block {
  grid-column: 1 / -1;
  background: var(--dark);
  padding: 3.5rem clamp(1.5rem, 8vw, 6rem);
  margin: 2rem 0; text-align: center;
}
.pullquote-block p {
  font-family: var(--serif); font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-style: italic; color: white; line-height: 1.5; max-width: 720px; margin: 0 auto;
}
.pullquote-block cite {
  display: block; font-family: var(--sans); font-size: 0.72rem;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
  letter-spacing: 0.18em; margin-top: 1.2rem; font-style: normal;
}

.tip-box {
  background: white; border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  padding: 1.4rem 1.8rem; margin: 2rem 0;
  font-size: 0.95rem; line-height: 1.75; color: var(--muted);
}
.tip-label {
  font-family: var(--sans); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--teal); font-weight: 500; margin-bottom: 0.4rem;
}

/* ─── POST FOOTER ─── */
.post-footer { grid-column: 2; padding: 0 clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 1rem; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tag {
  font-family: var(--sans); font-size: 0.72rem;
  background: var(--warm); color: var(--muted);
  padding: 0.3rem 0.85rem; border: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.08em; transition: all 0.2s;
}
.tag:hover { background: var(--red); color: white; border-color: var(--red); }

/* ─── AUTHOR BOX ─── */
.author-box { grid-column: 2; padding: 0 clamp(1rem, 3vw, 2rem); margin-top: 1rem; }
.author-card { background: var(--warm); border-top: 3px solid var(--dark); padding: 1.8rem; display: flex; gap: 1.5rem; align-items: flex-start; }
.author-card-av {
  width: 64px; height: 64px; border-radius: 50%; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.6rem; color: var(--red); flex-shrink: 0;
}
.author-card-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.author-card-role { font-family: var(--sans); font-size: 0.72rem; color: var(--red); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.author-card-bio { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* ─── POST NAVIGATION ─── */
.post-nav { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); margin-top: 3rem; }
.post-nav-item { padding: 1.5rem clamp(1rem, 5vw, 3rem); display: flex; flex-direction: column; gap: 0.4rem; transition: background 0.2s; }
.post-nav-item:hover { background: var(--warm); }
.post-nav-item.next { text-align: right; border-left: 1px solid var(--border); }
.nav-dir { font-family: var(--sans); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.nav-title { font-family: var(--serif); font-size: 1rem; color: var(--dark); font-weight: 700; line-height: 1.3; transition: color 0.2s; }
.post-nav-item:hover .nav-title { color: var(--red); }

/* ─── RELATED ─── */
.related-section { background: var(--warm); padding: 4rem clamp(1.5rem, 8vw, 6rem); border-top: 1px solid var(--border); }
.section-heading { font-family: var(--serif); font-size: 1.6rem; color: var(--dark); font-weight: 700; margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* ─── RECIPES STRIP ─── */
.recipes-strip { background: var(--dark); padding: 4rem 5vw; }
.recipes-strip .section-heading { color: white; }
.recipes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.recipe-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); overflow: hidden; transition: background 0.2s; }
.recipe-card:hover { background: rgba(255,255,255,0.1); }
.recipe-card img { width: 100%; height: 140px; object-fit: cover; opacity: 0.8; }
.recipe-card-body { padding: 1rem; }
.recipe-card-title { font-family: var(--serif); color: white; font-size: 0.95rem; font-weight: 700; }

/* ─── SITE FOOTER ─── */
.site-footer {
  background: var(--dark);
  padding: 2rem clamp(1.5rem, 5vw, 8vw);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  border-top: 3px solid var(--red);
  text-align: center;
}
.footer-copy { font-family: var(--sans); font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.footer-legal { font-family: var(--sans); font-size: 0.68rem; color: rgba(255,255,255,0.85); max-width: 600px; line-height: 1.6; }

/* ─── PLACEHOLDER SVG ─── */
.no-image { width: 100%; height: 100%; background: var(--warm); display: flex; align-items: center; justify-content: center; color: var(--border); font-size: 2rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid--featured { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── SPRACH-UMSCHALTER ─── */
.header-right {
  display: flex; align-items: center; gap: 0.75rem; margin-left: auto;
}
nav { margin-left: 2.5rem; }
.lang-switcher {
  display: flex; align-items: center; gap: 0;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 1rem;
}
.lang-btn {
  font-size: 1.2rem;
  padding: 0.1rem 0.25rem;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
  border-bottom: 2px solid transparent;
  line-height: 1; opacity: 0.45;
}
.lang-btn:hover { opacity: 0.85; transform: scale(1.15); }
.lang-btn.active { opacity: 1; border-bottom-color: var(--red); }

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a1a1a; color: #fff;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; z-index: 9999;
  font-family: var(--sans); font-size: 0.82rem; flex-wrap: wrap;
}
#cookie-banner a { color: var(--red); text-decoration: underline; }
#cookie-accept {
  background: var(--red); color: #fff; border: none;
  padding: 0.5rem 1.2rem; cursor: pointer;
  font-family: var(--sans); font-size: 0.82rem; white-space: nowrap;
}
#cookie-decline {
  background: transparent; color: #aaa; border: 1px solid #555;
  padding: 0.5rem 1rem; cursor: pointer;
  font-family: var(--sans); font-size: 0.82rem; white-space: nowrap;
}

@media (max-width: 640px) {
  .lang-switcher { border-left: none; padding-left: 0; }
  .site-header nav ul { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--dark); padding: 1rem 5vw; gap: 1rem; z-index: 99; }
  .site-header nav.open ul { display: flex; }
  .menu-toggle { display: block; }
  .category-bar { flex-direction: column; align-items: stretch; }
  .category-bar > div { flex-wrap: wrap; }
  .blog-search-input { width: 100%; }
  .blog-search-input:focus { width: 100%; }
  .sort-toggle { justify-content: center; width: 100%; }
  .blog-search-form { width: 100%; }
  .sort-toggle { order: 3; padding-top: 0.25rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrapper { grid-template-columns: 1fr; }
  .article-body, .post-footer, .author-box { grid-column: 1; padding: 0 1.2rem; }
  .pullquote-block, .post-image, .post-nav { grid-column: 1; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.next { border-left: none; border-top: 1px solid var(--border); text-align: left; }
}

/* ─── REZEPT-KASTEN ─── */
.recipe-box {
  grid-column: 2;
  margin: 2.5rem 2rem;
  border: 2px solid var(--border);
  border-top: 4px solid #d4a574;
  background: white;
}
.recipe-box-header {
  background: #faf5ef;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.recipe-box-icon { font-size: 1.6rem; }
.recipe-box-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  flex: 1;
}
.recipe-box-meta {
  display: flex;
  gap: 1.2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}
.recipe-box-meta span { display: flex; align-items: center; gap: 0.3rem; }
.recipe-box-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
}
.recipe-ingredients {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border);
  background: #fdfaf6;
}
.recipe-steps { padding: 1.5rem 2rem; }
.recipe-ingredients h4,
.recipe-steps h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.recipe-ingredients ul { list-style: none; }
.recipe-ingredients ul li {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.recipe-ingredients ul li:last-child { border-bottom: none; }
.recipe-steps ol { list-style: none; counter-reset: steps; }
.recipe-steps ol li {
  counter-increment: steps;
  font-size: 0.92rem;
  color: var(--text);
  padding: 0.5rem 0 0.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.6;
}
.recipe-steps ol li:last-child { border-bottom: none; }
.recipe-steps ol li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.6rem;
  height: 1.6rem;
  background: #d4a574;
  color: white;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 640px) {
  .recipe-box-body { grid-template-columns: 1fr; }
  .recipe-ingredients { border-right: none; border-bottom: 1px solid var(--border); }
}
