/*
Theme Name: AlltagsTopf
Theme URI: https://alltagstopf.de
Author: AlltagsTopf Editorial
Author URI: https://alltagstopf.de
Description: Schnelles, DSGVO-konformes, SEO- und AdSense-optimiertes Food-Blog-Theme für AlltagsTopf mit eigenem Recipe Custom Post Type, Rank-Math-Kompatibilität, interaktivem Portionen-Rechner und modernem Magazin-Design.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alltagstopf
Tags: food-and-drink, blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --at-bg: #faf7f2;
  --at-surface: #ffffff;
  --at-surface-alt: #f2ece3;
  --at-border: #e5ddd1;
  --at-text: #1c221e;
  --at-text-muted: #5b635d;
  --at-primary: #c84b31;
  --at-primary-dark: #a33821;
  --at-primary-soft: #fdf0ec;
  --at-secondary: #264e43;
  --at-secondary-light: #336658;
  --at-secondary-soft: #eaf3f0;
  --at-accent: #d9822b;
  --at-accent-soft: #fdf4e7;
  --at-radius: 16px;
  --at-radius-sm: 10px;
  --at-shadow: 0 12px 32px rgba(28, 34, 30, 0.08);
  --at-shadow-sm: 0 3px 12px rgba(28, 34, 30, 0.04);
  --at-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --at-font-serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --at-container: 1220px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--at-bg);
  color: var(--at-text);
  font-family: var(--at-font-sans);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

svg.at-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

a {
  color: var(--at-primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--at-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--at-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--at-secondary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--at-radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.at-container {
  width: 100%;
  max-width: var(--at-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Utility Bar */
.at-topbar {
  background: var(--at-secondary);
  color: #f3f7f5;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.at-topbar span {
  opacity: 0.92;
}

/* Header & Navigation */
.at-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--at-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--at-shadow-sm);
}

body.admin-bar .at-header {
  top: 46px;
}

@media (min-width: 783px) {
  body.admin-bar .at-header {
    top: 32px;
  }
}

.at-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
}

.at-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--at-text);
  flex-shrink: 0;
}

.at-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--at-primary), var(--at-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(200, 75, 49, 0.25);
}

.at-brand-mark svg {
  width: 23px;
  height: 23px;
}

.at-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.at-brand-name {
  font-family: var(--at-font-serif);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--at-text);
  white-space: nowrap;
}

.at-brand-name span {
  color: var(--at-primary);
}

.at-brand-tagline {
  font-size: 0.7rem;
  color: var(--at-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.at-nav {
  display: none;
  min-width: 0;
}

.at-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.at-nav a {
  color: var(--at-text);
  font-weight: 600;
  font-size: 0.89rem;
  padding: 8px 2px;
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.at-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--at-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 2px;
}

.at-nav a:hover::after,
.at-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

.at-nav a:hover,
.at-nav .current-menu-item > a {
  color: var(--at-primary);
}

.at-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.at-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--at-radius-sm);
  border: 1px solid var(--at-border);
  background: var(--at-surface);
  color: var(--at-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.at-icon-btn:hover {
  border-color: var(--at-primary);
  color: var(--at-primary);
  background: var(--at-primary-soft);
}

.at-header-cta {
  display: none;
  background: var(--at-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--at-radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(200, 75, 49, 0.2);
}

.at-header-cta:hover {
  background: var(--at-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Mobile Drawer & Search Bar */
.at-mobile-drawer {
  display: none;
  background: var(--at-surface);
  border-top: 1px solid var(--at-border);
  padding: 16px 20px 24px;
}

.at-mobile-drawer.is-open {
  display: block;
}

.at-mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.at-mobile-drawer a {
  display: block;
  padding: 12px 12px;
  color: var(--at-text);
  font-weight: 600;
  border-radius: var(--at-radius-sm);
}

.at-mobile-drawer a:hover {
  background: var(--at-surface-alt);
  color: var(--at-primary);
}

.at-search-bar {
  display: none;
  background: var(--at-surface-alt);
  border-bottom: 1px solid var(--at-border);
  padding: 14px 0;
}

.at-search-bar.is-open {
  display: block;
}

.at-search-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 640px;
}

.at-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius-sm);
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--at-surface);
  color: var(--at-text);
}

.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--at-radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.at-btn-primary {
  background: var(--at-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 75, 49, 0.22);
}

.at-btn-primary:hover {
  background: var(--at-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.at-btn-secondary {
  background: var(--at-secondary);
  color: #fff;
}

.at-btn-secondary:hover {
  background: var(--at-secondary-light);
  color: #fff;
}

.at-btn-outline {
  background: var(--at-surface);
  color: var(--at-text);
  border: 1px solid var(--at-border);
}

.at-btn-outline:hover {
  border-color: var(--at-primary);
  color: var(--at-primary);
  background: var(--at-primary-soft);
}

/* AdSense Policy-Compliant Containers (Zero CLS & Clear Labeling) */
.at-ad-wrap {
  margin: 20px auto;
  text-align: center;
}

.at-ad-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--at-text-muted);
  margin-bottom: 5px;
}

.at-ad-slot {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius-sm);
  padding: 10px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.at-ad-slot--banner { min-height: 90px; }
.at-ad-slot--incontent { min-height: 250px; }
.at-ad-slot--sidebar { min-height: 280px; }

.at-ad-placeholder {
  font-size: 0.84rem;
  color: var(--at-text-muted);
  padding: 12px;
}

/* Editorial Split Hero */
.at-hero {
  padding: 36px 0 40px;
  background:
    radial-gradient(circle at 85% 15%, rgba(217, 130, 43, 0.12), transparent 45%),
    radial-gradient(circle at 12% 80%, rgba(38, 78, 67, 0.08), transparent 42%),
    linear-gradient(180deg, var(--at-surface) 0%, var(--at-bg) 100%);
  border-bottom: 1px solid var(--at-border);
}

.at-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.at-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--at-secondary-soft);
  color: var(--at-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid rgba(38, 78, 67, 0.14);
}

.at-hero h1 {
  font-family: var(--at-font-serif);
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--at-text);
  letter-spacing: -0.015em;
}

.at-hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--at-text-muted);
  margin: 0 0 22px;
  max-width: 60ch;
}

.at-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.at-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--at-text);
  box-shadow: var(--at-shadow-sm);
}

.at-pill:hover {
  border-color: var(--at-primary);
  background: var(--at-primary-soft);
  color: var(--at-primary);
  transform: translateY(-1px);
}

/* Spotlight Hero Card */
.at-spotlight {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  overflow: hidden;
  box-shadow: var(--at-shadow);
  position: relative;
}

.at-spotlight-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--at-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.at-spotlight-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f3e4d7, #e4efe9);
  overflow: hidden;
  position: relative;
}

.at-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.at-spotlight-body {
  padding: 20px 22px 22px;
}

.at-spotlight-body h2 {
  font-family: var(--at-font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 8px 0 8px;
}

/* Category Worlds Strip */
.at-worlds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.at-world-card {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--at-text);
  box-shadow: var(--at-shadow-sm);
}

.at-world-card:hover {
  border-color: var(--at-primary);
  transform: translateY(-2px);
  box-shadow: var(--at-shadow);
  color: var(--at-text);
}

.at-world-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--at-primary-soft);
  color: var(--at-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.at-world-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.at-world-card span {
  display: block;
  font-size: 0.83rem;
  color: var(--at-text-muted);
  line-height: 1.45;
}

/* Trust Strip (E-E-A-T) */
.at-trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 28px 0 8px;
}

.at-trust-item {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.at-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--at-secondary-soft);
  color: var(--at-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.at-trust-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.at-trust-item span {
  font-size: 0.84rem;
  color: var(--at-text-muted);
}

/* Section Headers */
.at-section {
  padding: 32px 0;
}

.at-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.at-section-head h2 {
  font-family: var(--at-font-serif);
  font-size: clamp(1.42rem, 2.5vw, 1.95rem);
  margin: 0;
}

/* Responsive Recipe Card Grid */
.at-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.at-card {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--at-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.at-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--at-shadow);
  border-color: #d6cab9;
}

.at-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--at-surface-alt);
  overflow: hidden;
}

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

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

.at-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--at-secondary);
  background: linear-gradient(135deg, var(--at-secondary-soft), var(--at-primary-soft));
  font-weight: 600;
  font-size: 0.85rem;
}

.at-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(28, 34, 30, 0.86);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

.at-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.at-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--at-text-muted);
  margin-bottom: 10px;
}

.at-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--at-surface-alt);
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 600;
}

.at-meta-chip svg.at-ico {
  width: 14px;
  height: 14px;
}

.at-meta-chip--protein {
  background: var(--at-secondary-soft);
  color: var(--at-secondary);
}

.at-meta-chip--cost {
  background: var(--at-accent-soft);
  color: #9e5a14;
}

.at-card-title {
  font-family: var(--at-font-serif);
  font-size: 1.22rem;
  line-height: 1.32;
  margin: 0 0 8px;
}

.at-card-title a {
  color: var(--at-text);
}

.at-card-title a:hover {
  color: var(--at-primary);
}

.at-card-excerpt {
  font-size: 0.91rem;
  color: var(--at-text-muted);
  margin: 0 0 14px;
  flex: 1;
}

.at-card-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--at-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Main Content + Sidebar Layout */
.at-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 28px 0 48px;
}

.at-main-col { min-width: 0; }
.at-sidebar { min-width: 0; }

.at-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.at-widget {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 20px;
  box-shadow: var(--at-shadow-sm);
}

.at-widget-title {
  font-family: var(--at-font-serif);
  font-size: 1.15rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--at-primary-soft);
}

/* Breadcrumbs */
.at-breadcrumbs {
  font-size: 0.84rem;
  color: var(--at-text-muted);
  margin-bottom: 14px;
  overflow-x: auto;
  white-space: nowrap;
}

.at-breadcrumbs a { color: var(--at-text-muted); }
.at-breadcrumbs a:hover { color: var(--at-primary); }
.at-breadcrumbs .separator { margin: 0 6px; }

/* Single Recipe Article */
.at-article-header { margin-bottom: 22px; }

.at-cat-tag {
  display: inline-block;
  background: var(--at-primary-soft);
  color: #7c2d12;
  font-size: 0.79rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.at-article-title {
  font-family: var(--at-font-serif);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 14px;
}

.at-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.87rem;
  color: var(--at-text-muted);
  margin-bottom: 18px;
}

.at-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.at-featured-img {
  border-radius: var(--at-radius);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--at-border);
  box-shadow: var(--at-shadow-sm);
}

.at-featured-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.at-entry-content {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: var(--at-shadow-sm);
}

.at-entry-content > * {
  max-width: 72ch;
}

.at-entry-content h2,
.at-entry-content h3 {
  font-family: var(--at-font-serif);
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}

.at-entry-content h2:first-child { margin-top: 0; }

/* Signature Recipe Card */
.at-recipe-card {
  background: var(--at-surface);
  border: 2px solid var(--at-secondary);
  border-radius: var(--at-radius);
  overflow: hidden;
  margin: 28px 0;
  box-shadow: var(--at-shadow);
}

.at-recipe-head {
  background: linear-gradient(135deg, var(--at-secondary), var(--at-secondary-light));
  color: #fff;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.at-recipe-head h2 {
  font-family: var(--at-font-serif);
  font-size: 1.55rem;
  margin: 0;
  color: #fff;
}

.at-recipe-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.at-recipe-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px 24px;
  background: var(--at-secondary-soft);
  border-bottom: 1px solid var(--at-border);
}

.at-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.at-fact-item svg.at-ico {
  color: var(--at-secondary);
  margin-top: 3px;
}

.at-fact-item strong {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--at-text-muted);
}

.at-fact-item span {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--at-text);
}

.at-recipe-body { padding: 24px; }

.at-servings-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--at-surface-alt);
  border-radius: var(--at-radius-sm);
  margin-bottom: 22px;
}

.at-scaler {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.at-scaler button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--at-border);
  background: var(--at-surface);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--at-text);
  transition: all 0.15s ease;
}

.at-scaler button:hover {
  border-color: var(--at-primary);
  color: var(--at-primary);
  background: var(--at-primary-soft);
}

.at-scaler-value {
  font-weight: 700;
  min-width: 96px;
  text-align: center;
}

.at-recipe-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.at-recipe-section-title {
  font-family: var(--at-font-serif);
  font-size: 1.25rem;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--at-primary-soft);
}

.at-ingredients-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.at-ingredients-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--at-border);
}

.at-ingredient-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.at-ingredient-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--at-secondary);
  flex-shrink: 0;
}

.at-ingredient-label.is-checked span {
  text-decoration: line-through;
  color: var(--at-text-muted);
}

.at-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step-counter;
}

.at-steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}

.at-steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--at-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.at-tips-box {
  background: var(--at-primary-soft);
  border-left: 4px solid var(--at-primary);
  padding: 16px 18px;
  border-radius: var(--at-radius-sm);
  margin-top: 22px;
}

.at-tips-box h4 {
  margin: 0 0 6px;
  color: var(--at-primary-dark);
}

.at-nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--at-border);
}

.at-macro-box {
  background: var(--at-surface-alt);
  border-radius: var(--at-radius-sm);
  border-top: 3px solid var(--at-secondary);
  padding: 12px;
  text-align: center;
}

.at-macro-box--kcal { border-top-color: var(--at-primary); }
.at-macro-box--protein { border-top-color: var(--at-secondary); }
.at-macro-box--carbs { border-top-color: var(--at-accent); }
.at-macro-box--fat { border-top-color: #6b7280; }

.at-macro-box strong {
  display: block;
  font-size: 1.18rem;
  color: var(--at-text);
}

.at-macro-box span {
  font-size: 0.78rem;
  color: var(--at-text-muted);
  font-weight: 600;
}

/* Author E-E-A-T Box */
.at-author-box {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 28px 0;
  box-shadow: var(--at-shadow-sm);
}

.at-author-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.at-author-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.at-author-box p { margin: 0; font-size: 0.9rem; color: var(--at-text-muted); }

/* Archive & Pagination */
.at-archive-header {
  background: var(--at-surface);
  border-bottom: 1px solid var(--at-border);
  padding: 30px 0;
}

.at-archive-header h1 {
  font-family: var(--at-font-serif);
  margin: 0 0 8px;
}

.at-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.at-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--at-radius-sm);
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  color: var(--at-text);
  font-weight: 600;
}

.at-pagination .page-numbers.current {
  background: var(--at-primary);
  border-color: var(--at-primary);
  color: #fff;
}

/* Footer */
.at-footer {
  background: #1a201c;
  color: #e6dfd5;
  padding: 48px 0 24px;
  margin-top: 44px;
}

.at-footer a { color: #e6dfd5; }
.at-footer a:hover { color: #fff; text-decoration: underline; }

.at-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.at-footer h3 {
  font-family: var(--at-font-serif);
  color: #fff;
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.at-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.at-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: #b8b3aa;
}

/* Tablet Breakpoint (>= 640px) */
@media (min-width: 640px) {
  .at-grid { grid-template-columns: repeat(2, 1fr); }
  .at-worlds-grid { grid-template-columns: repeat(2, 1fr); }
  .at-trust-strip { grid-template-columns: repeat(3, 1fr); }
  .at-recipe-facts { grid-template-columns: repeat(4, 1fr); }
  .at-nutrition-grid { grid-template-columns: repeat(4, 1fr); }
  .at-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop & Large Tablet Breakpoint (>= 992px) */
@media (min-width: 992px) {
  .at-nav { display: block; }
  #at-menu-toggle { display: none; }

  .at-hero-grid { grid-template-columns: 1.18fr 0.82fr; gap: 36px; }
  .at-worlds-grid { grid-template-columns: repeat(5, 1fr); }
  .at-world-card { flex-direction: column; gap: 10px; }
  .at-grid { grid-template-columns: repeat(3, 1fr); }

  .at-layout {
    grid-template-columns: minmax(0, 1fr) 336px;
    align-items: start;
  }

  .at-layout .at-grid { grid-template-columns: repeat(2, 1fr); }
  .at-sidebar-sticky { position: sticky; top: 104px; }
  body.admin-bar .at-sidebar-sticky { top: 132px; }
  .at-recipe-columns { grid-template-columns: 0.95fr 1.35fr; }
  .at-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 1120px) {
  .at-header-cta { display: inline-flex; }
}

/* Print-Friendly Recipe View */
@media print {
  .at-topbar,
  .at-header,
  .at-footer,
  .at-sidebar,
  .at-ad-wrap,
  .at-quick-actions,
  .at-recipe-head-actions,
  .at-author-box,
  .at-related-recipes,
  #comments {
    display: none !important;
  }

  body { background: #fff; color: #000; }
  .at-recipe-card { border: 1px solid #000; box-shadow: none; }
  .at-recipe-head { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .at-recipe-head h2 { color: #000; }
}


/* =========================================================
   v1.2 – Editorial Upgrade: Recipe Page, Pages, Archives
   ========================================================= */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.at-muted { color: var(--at-text-muted); }

/* Reading progress */
.at-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
}

body.admin-bar .at-progress { top: 46px; }
@media (min-width: 783px) { body.admin-bar .at-progress { top: 32px; } }

.at-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--at-primary), var(--at-accent));
  transition: width 0.1s linear;
}

/* Back to top */
.at-back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--at-secondary);
  color: #fff;
  box-shadow: var(--at-shadow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
}

.at-back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.at-back-top:hover { background: var(--at-primary); }

/* Tags */
.at-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.at-hero-tags .at-cat-tag { margin-bottom: 0; }
.at-cat-tag--green { background: var(--at-secondary-soft); color: var(--at-secondary); }
.at-cat-tag:hover { filter: brightness(0.96); }

/* ---------- Recipe Hero ---------- */
.at-recipe-hero {
  padding: 22px 0 36px;
  background:
    radial-gradient(circle at 92% 8%, rgba(217, 130, 43, 0.12), transparent 40%),
    linear-gradient(180deg, var(--at-surface) 0%, var(--at-bg) 100%);
  border-bottom: 1px solid var(--at-border);
}

.at-recipe-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.at-recipe-hero-media {
  margin: 0;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 50px rgba(28, 34, 30, 0.14);
  border: 6px solid #fff;
  order: -1;
}

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

.at-media-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--at-text);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--at-shadow-sm);
}

.at-hero-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--at-secondary);
  font-family: var(--at-font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 55%),
    linear-gradient(135deg, #f6e3d6 0%, #eaf3f0 100%);
}

.at-article-lead {
  font-size: clamp(1.02rem, 1.7vw, 1.14rem);
  color: var(--at-text-muted);
  margin: 0 0 18px;
  max-width: 62ch;
}

.at-byline { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.at-byline-avatar { border-radius: 50%; border: 2px solid #fff; box-shadow: var(--at-shadow-sm); }
.at-byline strong { display: block; font-size: 0.95rem; }
.at-byline span { font-size: 0.84rem; color: var(--at-text-muted); }

.at-stat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.at-stat {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  box-shadow: var(--at-shadow-sm);
}

.at-stat svg.at-ico { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--at-primary); }
.at-stat strong { font-size: 1.05rem; line-height: 1.2; }
.at-stat span { font-size: 0.74rem; color: var(--at-text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.at-stat--green svg.at-ico { color: var(--at-secondary); }
.at-stat--amber svg.at-ico { color: var(--at-accent); }

/* ---------- TOC ---------- */
.at-toc {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-left: 4px solid var(--at-accent);
  border-radius: var(--at-radius);
  padding: 4px 20px;
  margin-bottom: 24px;
  box-shadow: var(--at-shadow-sm);
}

.at-toc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-family: var(--at-font-serif);
  font-weight: 700;
  font-size: 1.08rem;
}

.at-toc summary::-webkit-details-marker { display: none; }
.at-toc summary svg { transition: transform 0.2s ease; }
.at-toc[open] summary svg { transform: rotate(180deg); }

.at-toc-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  border-top: 1px dashed var(--at-border);
  padding-top: 10px;
}

.at-toc-list li { margin: 2px 0; }
.at-toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--at-text);
  font-size: 0.93rem;
}

.at-toc-l2 { counter-increment: toc; }
.at-toc-l2 > a::before { content: counter(toc) ". "; color: var(--at-primary); font-weight: 700; }
.at-toc-l3 a { padding-left: 30px; font-size: 0.87rem; color: var(--at-text-muted); }
.at-toc-list a:hover, .at-toc-list a.is-active { background: var(--at-primary-soft); color: var(--at-primary); }
.at-toc-extra a { font-weight: 600; }

/* ---------- Prose ---------- */
.at-prose { font-size: 1.04rem; }
.at-prose p { margin: 0 0 1.1em; }
.at-prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--at-primary-soft);
  scroll-margin-top: 120px;
}
.at-prose h3 { font-size: 1.2rem; scroll-margin-top: 120px; }
.at-prose ul, .at-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.at-prose li { margin-bottom: 0.45em; }
.at-prose ul li::marker { color: var(--at-primary); }
.at-prose strong { color: var(--at-text); }
.at-prose a { text-decoration: underline; text-decoration-color: rgba(200, 75, 49, 0.35); text-underline-offset: 3px; }
.at-prose blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  background: var(--at-accent-soft);
  border-left: 4px solid var(--at-accent);
  border-radius: 0 var(--at-radius-sm) var(--at-radius-sm) 0;
  font-style: italic;
}
.at-prose img, .at-prose figure { border-radius: var(--at-radius-sm); }
.at-prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.94rem; }
.at-prose th, .at-prose td { border: 1px solid var(--at-border); padding: 10px 12px; text-align: left; }
.at-prose th { background: var(--at-surface-alt); }

/* ---------- Recipe Card v1.2 ---------- */
#rezept-karte, #naehrwerte, #teilen { scroll-margin-top: 110px; }

.at-recipe-eyebrow {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 4px;
}

.at-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.at-chip-btn:hover { background: rgba(255, 255, 255, 0.24); }
.at-chip-btn[aria-pressed="true"] { background: #fff; color: var(--at-secondary); }
.at-chip-btn svg.at-ico { width: 15px; height: 15px; }

.at-col-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.at-col-head .at-recipe-section-title { flex: 1; }
.at-hint { font-size: 0.76rem; color: var(--at-text-muted); }

.at-ingredients-col {
  background: var(--at-bg);
  border-radius: var(--at-radius-sm);
  padding: 18px;
  align-self: start;
}

.at-servings-bar { background: var(--at-surface); border: 1px solid var(--at-border); margin-bottom: 12px; }

.at-steps-list li {
  cursor: pointer;
  padding: 4px 8px 12px 48px;
  border-radius: var(--at-radius-sm);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.at-steps-list li:hover { background: var(--at-bg); }
.at-steps-list li::before { top: 4px; left: 6px; }
.at-steps-list li.is-done { opacity: 0.5; text-decoration: line-through; }
.at-steps-list li.is-done::before { content: "✓"; background: var(--at-secondary); }

.at-tips-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: none;
  border: 1px solid rgba(200, 75, 49, 0.18);
}

.at-tips-box p { margin: 0; }
.at-tips-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  color: var(--at-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.at-nutrition { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--at-border); }
.at-nutrition .at-nutrition-grid { margin-top: 0; padding-top: 0; border-top: none; }

.at-macro-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 10px;
  background: var(--at-surface-alt);
}

.at-macro-bar span { display: block; height: 100%; }
.at-macro-bar .is-protein, .at-macro-legend i.is-protein { background: var(--at-secondary); }
.at-macro-bar .is-carbs, .at-macro-legend i.is-carbs { background: var(--at-accent); }
.at-macro-bar .is-fat, .at-macro-legend i.is-fat { background: #8b939b; }

.at-macro-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--at-text-muted); font-weight: 600; }
.at-macro-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.at-disclaimer { margin: 12px 0 0; font-size: 0.76rem; color: var(--at-text-muted); }

/* Cook mode – larger type for reading at the stove */
body.at-cook-mode .at-ingredients-list li,
body.at-cook-mode .at-steps-list li { font-size: 1.14rem; line-height: 1.8; }

/* ---------- Share ---------- */
.at-share-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, var(--at-secondary), var(--at-secondary-light));
  color: #fff;
  border-radius: var(--at-radius);
  padding: 26px 28px;
  margin: 28px 0;
  box-shadow: var(--at-shadow);
}

.at-share-cta h2 { font-family: var(--at-font-serif); margin: 0 0 6px; font-size: 1.45rem; line-height: 1.25; color: #fff; }
.at-share-cta p { margin: 0; opacity: 0.9; font-size: 0.95rem; line-height: 1.55; max-width: 62ch; }

.at-share { display: flex; flex-wrap: wrap; gap: 8px; }

.at-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--at-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.at-share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15); color: var(--at-text); }
.at-share-btn--pinterest { background: #e60023; color: #fff; }
.at-share-btn--pinterest:hover { color: #fff; }
.at-share-btn--whatsapp svg { color: #25d366; }
.at-share-btn--facebook svg { color: #1877f2; }

.at-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* Author box v1.2 */
.at-author-box { align-items: center; background: linear-gradient(135deg, var(--at-surface), var(--at-accent-soft)); }
.at-author-avatar { border: 3px solid #fff; box-shadow: var(--at-shadow-sm); }

/* Prev / Next */
.at-post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0 8px;
}

.at-post-nav-item {
  display: block;
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 16px 18px;
  color: var(--at-text);
  box-shadow: var(--at-shadow-sm);
}

.at-post-nav-item:hover { border-color: var(--at-primary); color: var(--at-text); transform: translateY(-2px); }
.at-post-nav-item span { display: block; font-size: 0.78rem; color: var(--at-primary); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.at-post-nav-item strong { font-family: var(--at-font-serif); font-size: 1.02rem; line-height: 1.35; }
.at-post-nav-item.is-next { text-align: right; }

.at-related-recipes { margin-top: 36px; }

/* Comments */
#comments .comment-list li { padding: 14px 0; border-bottom: 1px solid var(--at-border); }
#comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
#comments .comment-author img { border-radius: 50%; }
#comments .comment-metadata { font-size: 0.8rem; }
#comments .comment-metadata a { color: var(--at-text-muted); }
#comments textarea,
#comments input[type="text"],
#comments input[type="email"],
#comments input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--at-bg);
}
#comments textarea:focus, #comments input:focus { outline: none; border-color: var(--at-primary); background: #fff; }
#comments label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
#comments .comment-form p { margin: 0 0 14px; }
#comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
#comments .comment-form-cookies-consent label { font-weight: 400; font-size: 0.84rem; }

/* ---------- Pages ---------- */
.at-page-hero {
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--at-border);
  background:
    radial-gradient(circle at 88% 20%, rgba(38, 78, 67, 0.09), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(217, 130, 43, 0.1), transparent 40%),
    var(--at-surface);
}

.at-page-hero--legal {
  background: linear-gradient(180deg, var(--at-surface-alt), var(--at-bg));
}

.at-page-title {
  font-family: var(--at-font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 10px;
}

.at-page-updated { margin: 0; font-size: 0.84rem; color: var(--at-text-muted); }

.at-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px 0 48px;
  max-width: 880px;
  margin: 0 auto;
}

.at-page-layout.has-toc { max-width: none; }
.at-page-article { min-width: 0; }
.at-page-article .at-entry-content { padding: 30px 32px; }

.at-page-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  background: var(--at-primary-soft);
  border: 1px solid rgba(200, 75, 49, 0.18);
  border-radius: var(--at-radius);
  padding: 22px 24px;
}

.at-page-cta h2 { font-family: var(--at-font-serif); margin: 0 0 4px; font-size: 1.3rem; }
.at-page-cta p { margin: 0; color: var(--at-text-muted); font-size: 0.93rem; }

/* ---------- Archive Hero ---------- */
.at-archive-hero {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--at-border);
  background:
    radial-gradient(circle at 90% 10%, rgba(217, 130, 43, 0.12), transparent 42%),
    linear-gradient(180deg, var(--at-surface) 0%, var(--at-bg) 100%);
}

.at-archive-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.at-archive-hero h1 {
  font-family: var(--at-font-serif);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 8px;
}

.at-archive-desc { color: var(--at-text-muted); max-width: 66ch; }
.at-archive-desc p { margin: 0; }

.at-archive-count {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 12px 20px;
  text-align: center;
  box-shadow: var(--at-shadow-sm);
}

.at-archive-count strong { display: block; font-family: var(--at-font-serif); font-size: 1.9rem; line-height: 1; color: var(--at-primary); }
.at-archive-count span { font-size: 0.78rem; color: var(--at-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.at-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.at-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--at-border);
  background: var(--at-surface);
  color: var(--at-text);
  font-weight: 600;
  font-size: 0.88rem;
}

.at-chip small {
  background: var(--at-surface-alt);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.72rem;
  color: var(--at-text-muted);
}

.at-chip:hover { border-color: var(--at-primary); color: var(--at-primary); }
.at-chip.is-active { background: var(--at-text); border-color: var(--at-text); color: #fff; }
.at-chip.is-active small { background: rgba(255, 255, 255, 0.18); color: #fff; }

.at-empty-state {
  max-width: 560px;
  margin: 10px auto;
  text-align: center;
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 32px 24px;
}

.at-empty-ico {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--at-secondary);
  font-family: var(--at-font-serif);
  font-weight: 700;
}

/* ---------- Responsive v1.2 ---------- */
@media (min-width: 640px) {
  .at-stat-tiles { grid-template-columns: repeat(4, 1fr); }
  .at-stat { grid-template-columns: 1fr; text-align: left; }
  .at-stat svg.at-ico { grid-row: auto; margin-bottom: 6px; }
  .at-post-nav { grid-template-columns: 1fr 1fr; }
  .at-page-cta { grid-template-columns: 1fr auto; }
}

@media (min-width: 992px) {
  .at-recipe-hero { padding: 26px 0 44px; }
  .at-recipe-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 44px; }
  .at-recipe-hero-media { order: 0; transform: rotate(1.2deg); }
  .at-page-layout.has-toc { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; }
  .at-page-aside-sticky { position: sticky; top: 110px; }
  body.admin-bar .at-page-aside-sticky { top: 142px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .at-progress, .at-back-top, .at-toc, .at-share-cta, .at-post-nav, .at-recipe-hero-media, .at-stat-tiles, .at-tag-cloud { display: none !important; }
  .at-recipe-hero { background: #fff; padding: 0; }
}


/* =========================================================
   v1.3 – Editorial Footer
   ========================================================= */
.at-footer {
  position: relative;
  background: #17201b;
  background-image:
    radial-gradient(circle at 8% 0%, rgba(200, 75, 49, 0.16), transparent 38%),
    radial-gradient(circle at 95% 100%, rgba(38, 78, 67, 0.55), transparent 45%);
  color: #cfc8bc;
  padding: 0 0 22px;
  margin-top: 80px;
}

.at-footer-wave {
  position: absolute;
  top: -38px;
  left: 0;
  width: 100%;
  height: 40px;
  color: #17201b;
  display: block;
}

.at-footer a { color: #d9d2c6; text-decoration: none; }
.at-footer a:hover { color: #fff; text-decoration: none; }

/* CTA band */
.at-footer-cta {
  position: relative;
  top: -30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, var(--at-primary) 0%, #d9662f 55%, var(--at-accent) 100%);
  color: #fff;
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 22px 50px rgba(200, 75, 49, 0.32);
  overflow: hidden;
}

.at-footer-cta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.at-footer-cta-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.at-footer-cta-ico svg { width: 30px; height: 30px; }
.at-footer-cta h2 { font-family: var(--at-font-serif); font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: 0 0 6px; color: #fff; }
.at-footer-cta p { margin: 0; opacity: 0.92; font-size: 0.95rem; max-width: 60ch; }

.at-footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.at-footer-cta .at-btn-primary { background: #fff; color: var(--at-primary); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14); }
.at-footer-cta .at-btn-primary:hover { background: #fff7f3; color: var(--at-primary-dark); }
.at-footer-btn-pin { background: #e60023; color: #fff !important; }
.at-footer-btn-pin:hover { background: #c4001d; }
.at-footer-btn-pin svg.at-ico { color: #fff; }

/* Grid */
.at-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 6px 0 34px;
  margin-bottom: 0;
}

.at-footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.at-footer-logo .at-brand-mark { width: 40px; height: 40px; }
.at-footer-logo .at-brand-mark svg { width: 22px; height: 22px; }
.at-footer-logo .at-brand-name { color: #fff; font-size: 1.45rem; }
.at-footer-brand p { margin: 0 0 18px; font-size: 0.92rem; line-height: 1.7; max-width: 42ch; }

.at-footer-facts {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
}

.at-footer-facts li {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.at-footer-facts strong { display: block; color: #fff; font-family: var(--at-font-serif); font-size: 1.15rem; line-height: 1.2; }
.at-footer-facts span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #a9a296; }

.at-footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.at-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.at-footer-social a:hover { transform: translateY(-3px); background: var(--at-primary); border-color: var(--at-primary); }
.at-footer-social .at-social-pinterest:hover { background: #e60023; border-color: #e60023; }

.at-footer h3 {
  font-family: var(--at-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin: 4px 0 16px;
  padding-bottom: 10px;
  position: relative;
}

.at-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--at-accent);
}

.at-footer-col ul { gap: 4px; }
.at-footer-col > ul a,
.at-footer-col .menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.93rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.at-footer-col > ul a::before,
.at-footer-col .menu a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease;
}

.at-footer-col > ul a:hover,
.at-footer-col .menu a:hover { transform: translateX(3px); }
.at-footer-col > ul a:hover::before,
.at-footer-col .menu a:hover::before { background: var(--at-accent); }

/* Latest recipes */
.at-footer-recipes { gap: 12px !important; }
.at-footer-recipes a { display: flex !important; align-items: center; gap: 12px; }
.at-footer-recipes a::before { display: none !important; }
.at-footer-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(200, 75, 49, 0.35), rgba(38, 78, 67, 0.6));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.at-footer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.at-footer-thumb svg { width: 24px; height: 24px; opacity: 0.85; }
.at-footer-recipe-text strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #ece6dc;
  font-weight: 600;
}
.at-footer-recipe-text small { font-size: 0.75rem; color: #a9a296; }
.at-footer-recipes a:hover strong { color: #fff; }

.at-footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.at-footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(38, 78, 67, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d6eee6;
}
.at-footer-badges svg.at-ico { width: 14px; height: 14px; }

.at-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.83rem;
  color: #9d968a;
}
.at-footer-made span { color: var(--at-primary); }

@media (min-width: 640px) {
  .at-footer-cta { grid-template-columns: auto 1fr; padding: 30px 32px; }
  .at-footer-cta-actions { grid-column: 1 / -1; }
  .at-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .at-footer-cta { grid-template-columns: auto 1fr auto; }
  .at-footer-cta-actions { grid-column: auto; justify-content: flex-end; }
  .at-footer-grid { grid-template-columns: 1.45fr 0.9fr 1.25fr 1fr; gap: 40px; }
}


/* v1.3.1 – Legal page placeholders (visible only until replaced) */
mark.at-placeholder {
  background: #fff3cd;
  color: #7a4f00;
  border: 1px dashed #e0b84a;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
  font-weight: 600;
}

.at-prose table { display: block; overflow-x: auto; }
@media (min-width: 640px) { .at-prose table { display: table; } }

/* v1.3.2 – Narrow Page Hero alignment & Contact Form */
.at-page-narrow { max-width: 880px; margin: 0 auto; }

.at-contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.at-form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .at-form-row { grid-template-columns: 1fr 1fr; } }

.at-contact-form label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 5px; }
.at-contact-form input[type="text"],
.at-contact-form input[type="email"],
.at-contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--at-bg);
  color: var(--at-text);
}
.at-contact-form input:focus,
.at-contact-form textarea:focus { outline: none; border-color: var(--at-primary); background: #fff; }

.at-form-consent { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: 0.86rem !important; color: var(--at-text-muted); cursor: pointer; }
.at-form-consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--at-secondary); flex-shrink: 0; }

.at-form-alert { padding: 12px 16px; border-radius: var(--at-radius-sm); font-weight: 600; margin-bottom: 14px; }
.at-form-alert.is-success { background: var(--at-secondary-soft); color: var(--at-secondary); border: 1px solid rgba(38, 78, 67, 0.25); }
.at-form-alert.is-error { background: var(--at-primary-soft); color: var(--at-primary-dark); border: 1px solid rgba(200, 75, 49, 0.25); }

/* v1.4.0 – Step-by-step & Ingredients recipe images */
.at-ingredients-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--at-radius-sm);
  border: 1px solid var(--at-border);
  margin-bottom: 14px;
  box-shadow: var(--at-shadow-sm);
}
.at-step-text { display: block; }
.at-step-img {
  margin-top: 10px;
  border-radius: var(--at-radius-sm);
  border: 1px solid var(--at-border);
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: var(--at-shadow-sm);
}
@media print { .at-step-img, .at-ingredients-img { display: none !important; } }

/* v1.5.0 – Category Filter Toolbar & Bottom SEO Guide */
.at-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--at-border);
}

.at-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.at-toolbar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--at-text-muted);
  margin-right: 4px;
}

.at-mini-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--at-bg);
  border: 1px solid var(--at-border);
  color: var(--at-text);
}

.at-mini-pill:hover {
  border-color: var(--at-secondary);
  color: var(--at-secondary);
}

.at-mini-pill.is-active {
  background: var(--at-secondary);
  border-color: var(--at-secondary);
  color: #fff;
}

.at-cat-seo-guide {
  margin-top: 40px;
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 28px 30px;
  box-shadow: var(--at-shadow-sm);
}

.at-cat-seo-guide > * { max-width: 74ch; }
.at-cat-seo-guide h2:first-child { margin-top: 0; }

/* v1.6.0 – Split Category Hero with Artwork Card */
.at-cat-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.at-archive-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.at-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  color: var(--at-text);
  box-shadow: var(--at-shadow-sm);
}

.at-stat-pill strong { color: var(--at-primary); }

.at-cat-visual-wrap {
  order: -1;
}

.at-cat-visual-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 18px 44px rgba(28, 34, 30, 0.12);
  aspect-ratio: 10 / 7;
  background: var(--at-surface-alt);
}

.at-cat-visual-card svg,
.at-cat-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.at-cat-visual-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(28, 34, 30, 0.84);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
}

@media (min-width: 992px) {
  .at-cat-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 38px;
  }
  .at-cat-visual-wrap { order: 0; }
  .at-cat-visual-card { transform: rotate(1deg); }
}

/* v1.6.1 – Interactive Recipe Star Rating */
.at-rating-box {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--at-surface-alt);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.at-rating-info strong {
  display: block;
  font-size: 0.96rem;
  color: var(--at-text);
}

.at-rating-summary {
  font-size: 0.85rem;
  color: var(--at-text-muted);
}

.at-rating-stars {
  display: inline-flex;
  gap: 4px;
}

.at-star-btn {
  background: none;
  border: none;
  padding: 4px;
  font-size: 1.55rem;
  line-height: 1;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.at-star-btn.is-active,
.at-star-btn:hover {
  color: #e69d2c;
}

.at-rating-box:not(.is-voted) .at-star-btn:hover {
  transform: scale(1.12);
}

.at-rating-box.is-voted .at-star-btn {
  cursor: default;
}

@media print { .at-rating-box { display: none !important; } }

/* v1.6.2 – Final Dish Showcase Section */
.at-final-dish {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 20px;
  margin: 26px 0;
  box-shadow: var(--at-shadow-sm);
}

.at-final-dish-media {
  border-radius: var(--at-radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--at-surface-alt);
}

.at-final-dish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.at-final-dish-body h2 {
  font-family: var(--at-font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 4px 0 10px;
}

.at-final-dish-body p {
  color: var(--at-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.at-final-dish-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 720px) {
  .at-final-dish {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 26px;
    padding: 24px;
  }
}
