/* ============================================
   Courteny's Cakes - Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #D4627A;
  --primary-light: #E8A0B0;
  --primary-lighter: #F8E8EC;
  --primary-dark: #B84860;
  --primary-bg: #FDF5F7;
  --cream: #FAF0EB;
  --white: #FFFFFF;
  --text: #3A2A2E;
  --text-light: #6B5559;
  --text-muted: #7A6569;
  --border: #F0E0E5;
  --shadow: rgba(212, 98, 122, 0.1);
  --shadow-strong: rgba(212, 98, 122, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-heading: 'Great Vibes', cursive;
  --font-heading-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Focus Styles (Accessibility) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading-serif);
  line-height: 1.3;
  color: var(--text);
}

/* Script font for special headings */
.hero__title,
.section-title,
.about__title,
.cta-section h2,
.footer__brand {
  font-family: var(--font-heading);
  font-weight: 400;
}

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

.section {
  padding: 80px 0;
}

.section--pink {
  background-color: var(--primary-bg);
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header__nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  border-radius: 1px;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--primary);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

/* Mobile menu button */
.header__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.header__menu-btn svg {
  width: 24px;
  height: 24px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--white) 50%, #FFF0F5 100%);
  padding-top: 70px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.hero__content {
  z-index: 2;
}

.hero__title {
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--primary);
  display: block;
  font-size: 1.1em;
}

.hero__text {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  z-index: 1;
}

.hero__image img,
.hero__image svg {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px var(--shadow-strong));
}

/* Decorative elements */
.hero__decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.hero__decor--1 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  top: -50px;
  right: -50px;
}

.hero__decor--2 {
  width: 200px;
  height: 200px;
  background: var(--primary-lighter);
  bottom: 50px;
  left: -80px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px var(--shadow-strong);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--shadow-strong);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- About Section --- */
.about__inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px var(--shadow);
  overflow: hidden;
}

.about__image img,
.about__image svg {
  width: 100%;
  display: block;
}

.about__image-decor {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-light);
  border-radius: var(--radius-lg);
  top: 16px;
  left: 16px;
  z-index: -1;
}

.about__name {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.about__title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--primary-dark);
}

.about__text {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about__stat-number {
  font-family: var(--font-heading-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.about__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Recipe Cards --- */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-strong);
  color: inherit;
}

.recipe-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--primary-lighter);
}

.recipe-card__image picture {
  display: contents;
}

.recipe-card__image img,
.recipe-card__image svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .3s ease;
}

.recipe-card__image img.loaded {
  opacity: 1;
}

.recipe-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--white);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.recipe-card__body {
  padding: 24px;
}

.recipe-card__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-family: var(--font-heading-serif);
  font-weight: 600;
}

.recipe-card__desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.recipe-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-card__meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
}

/* --- Featured Recipes Section (Home) --- */
.featured-recipes .section-cta {
  margin-top: 48px;
}

/* --- Recipe List Page --- */
.recipe-list-header {
  padding-top: 110px;
  padding-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--white) 100%);
}

.recipe-list-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.recipe-list-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Search & Filter */
.recipe-controls {
  padding: 32px 0;
}

.recipe-controls__inner {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-box__input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.search-box__input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px var(--primary-lighter);
}

.search-box__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text-light);
}

.filter-tag:hover,
.filter-tag.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* Recipe list grid */
.recipe-list-grid {
  padding-bottom: 40px;
}

/* No results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  color: var(--primary-light);
}

.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0 60px;
}

.pagination__btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
}

.pagination__btn:hover,
.pagination__btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__btn--arrow {
  border: none;
  background: transparent;
  color: var(--primary);
}

.pagination__btn--arrow:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

/* --- Recipe Detail Page --- */
.recipe-detail-header {
  padding-top: 90px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--white) 100%);
}

.recipe-detail-header__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0 60px;
}

.recipe-detail__breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.recipe-detail__breadcrumb a {
  color: var(--primary);
}

.recipe-detail__category {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.recipe-detail__title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.recipe-detail__desc {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.recipe-detail__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.recipe-detail__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.recipe-detail__meta-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.recipe-detail__meta-item strong {
  color: var(--text);
}

.recipe-detail__hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow);
}

.recipe-detail__hero-image img,
.recipe-detail__hero-image svg {
  width: 100%;
  display: block;
}

/* Recipe Content */
.recipe-content {
  padding: 60px 0;
}

.recipe-content__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

/* Ingredients */
.recipe-ingredients {
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 90px;
}

.recipe-ingredients h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-ingredients h2 svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.recipe-ingredients ul {
  list-style: none;
}

.recipe-ingredients li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.recipe-ingredients li:last-child {
  border-bottom: none;
}

.recipe-ingredients li .amount {
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
  margin-right: 12px;
}

.ingredient-separator {
  font-weight: 700;
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary-light) !important;
  justify-content: center !important;
  padding-top: 20px !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Steps */
.recipe-steps__title {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.recipe-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.recipe-step__number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
}

.recipe-step__text {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}

/* Tips box */
.recipe-tips {
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
  border-left: 4px solid #FFB74D;
}

.recipe-tips h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-tips p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Newsletter / CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn--outline {
  border-color: var(--white);
  color: var(--white);
}

.cta-section .btn--outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--primary-light);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer__bottom-links a:hover {
  color: var(--primary-light);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  border-top: 3px solid var(--primary);
  will-change: transform;
  contain: layout style;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner__text h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 4px;
}

.cookie-banner__text p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.cookie-banner__btn--accept {
  background: var(--primary);
  color: var(--white);
}

.cookie-banner__btn--accept:hover {
  background: var(--primary-dark);
}

.cookie-banner__btn--decline {
  background: var(--primary-lighter);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.cookie-banner__btn--decline:hover {
  background: var(--primary-light);
  color: var(--white);
}

/* --- Legal Pages --- */
.legal-page {
  padding-top: 110px;
  padding-bottom: 60px;
  min-height: 60vh;
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 32px;
  color: var(--primary);
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-page ul {
  color: var(--text-light);
  margin-bottom: 12px;
  padding-left: 24px;
  font-size: 0.95rem;
}

.legal-page li {
  margin-bottom: 6px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    margin: 0 auto 32px;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .about__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__image-wrapper {
    max-width: 350px;
    margin: 0 auto;
  }

  .about__stats {
    justify-content: center;
  }

  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recipe-detail-header__inner {
    grid-template-columns: 1fr;
  }

  .recipe-detail__hero-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .recipe-content__inner {
    grid-template-columns: 1fr;
  }

  .recipe-ingredients {
    position: static;
  }

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

@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    border-bottom: 2px solid var(--primary-light);
  }

  .header__nav.open {
    display: flex;
  }

  .header__menu-btn {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .recipe-detail__title {
    font-size: 1.8rem;
  }

  .recipe-detail__meta {
    gap: 12px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__buttons {
    width: 100%;
    justify-content: center;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Print Styles --- */
@media print {
  .header, .footer, .cookie-banner, .cta-section {
    display: none !important;
  }

  .recipe-detail-header {
    padding-top: 0;
  }

  body {
    font-size: 12pt;
  }

  .maggie-cat {
    display: none !important;
  }
}

/* --- Maggie die Katze (Lauf-Animation) --- */
.maggie-cat {
  position: fixed;
  bottom: 0;
  left: -80px;
  width: 60px;
  height: 50px;
  z-index: 999;
  cursor: pointer;
}

.maggie-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(8px);
}

.maggie-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--white);
}

.maggie-bubble.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes maggie-run {
  0%   { left: -80px; }
  100% { left: calc(100% + 80px); }
}

@keyframes maggie-run-back {
  0%   { left: calc(100% + 80px); }
  100% { left: -80px; }
}

@keyframes maggie-bounce {
  0%, 100% { transform: translateY(0); }
  30%      { transform: translateY(-12px); }
  50%      { transform: translateY(-6px); }
  70%      { transform: translateY(-14px); }
}
