/* ============================================================
   Dorlav Schmankerl, Bavarian recipes without vegetable oil
   Palette: Bavarian Rauten blue and white, pretzel crust brown,
   butter gold. Type: Vollkorn (display serif) + Karla (sans).
   ============================================================ */

:root {
  --porcelain: #F7F6F1;
  --white: #FFFFFF;
  --ink: #152F49;
  --ink-deep: #0E2336;
  --blue: #2E5E8E;
  --blue-soft: #A9C4DC;
  --blue-mist: #E2EAF2;
  --pretzel: #87491C;
  --pretzel-dark: #683710;
  --butter: #E9B94F;
  --butter-soft: #F4D68C;
  --text: #34424F;
  --text-soft: #5D6C79;
  --serif: 'Vollkorn', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-soft: 0 6px 24px rgba(21, 47, 73, 0.08);
  --shadow-lift: 0 18px 44px rgba(21, 47, 73, 0.14);
  --radius: 14px;
  --arch: 270px 270px 18px 18px;
  --rauten-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M12 0L24 12 12 24 0 12Z' fill='%232E5E8E'/%3E%3Cpath d='M36 0L48 12 36 24 24 12Z' fill='%23A9C4DC'/%3E%3C/svg%3E");
  --rauten-ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='52' viewBox='0 0 104 52'%3E%3Cpath d='M26 0L52 26 26 52 0 26Z' fill='%23FFFFFF' fill-opacity='0.045'/%3E%3Cpath d='M78 0L104 26 78 52 52 26Z' fill='%23FFFFFF' fill-opacity='0.028'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 3px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Kickers and ornaments ---------- */

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.kicker--left {
  text-align: left;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: 68px;
  background: var(--blue-soft);
}

.ornament span {
  width: 11px;
  height: 11px;
  background: var(--butter);
  transform: rotate(45deg);
  display: inline-block;
}

.rauten-band {
  height: 24px;
  background-image: var(--rauten-band);
  background-size: 48px 24px;
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 35, 54, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: var(--ink-deep);
  box-shadow: 0 4px 18px rgba(10, 24, 38, 0.35);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo-mark {
  font-size: 26px;
  line-height: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--butter);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  padding: 6px 10px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(158deg, var(--ink-deep) 0%, #1A3C5E 52%, var(--blue) 100%);
  color: var(--white);
  padding: 168px 0 116px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--rauten-ghost);
  background-size: 104px 52px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(233, 185, 79, 0.16) 0%, rgba(233, 185, 79, 0) 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.hero-copy .kicker {
  color: var(--butter);
}

.hero h1 {
  font-family: var(--serif);
  font-size: 62px;
  line-height: 1.08;
  font-weight: 700;
  margin: 20px 0 26px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--butter);
}

.hero-lede {
  font-size: 19px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  background: var(--pretzel);
  padding: 17px 38px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(14, 35, 54, 0.35);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: var(--pretzel-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(14, 35, 54, 0.45);
}

.hero-fats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--blue-soft);
}

.hero-fats .dot {
  width: 7px;
  height: 7px;
  background: var(--butter);
  transform: rotate(45deg);
  display: inline-block;
  font-size: 0;
  line-height: 0;
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-frame {
  position: absolute;
  inset: 0;
  transform: translate(22px, 22px);
  border: 2px solid rgba(233, 185, 79, 0.5);
  border-radius: var(--arch);
  pointer-events: none;
}

.hero-tile {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 26px 60px rgba(8, 20, 33, 0.5);
}

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

.hero-caption {
  position: absolute;
  left: -26px;
  bottom: 30px;
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lift);
}

.cap-mark {
  width: 12px;
  height: 12px;
  background: var(--butter);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
}

.cap-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.cap-sub {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.03em;
}

/* Hero entrance */

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy > * {
  animation: riseIn 0.8s ease both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

.hero-figure {
  animation: riseIn 0.9s ease 0.2s both;
}

/* ---------- Principles ---------- */

.principles {
  background: var(--white);
  padding: 84px 0;
}

.principles-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.principle {
  padding: 8px 44px;
  text-align: center;
}

.principle + .principle {
  border-left: 1px solid var(--blue-mist);
}

.p-word {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
}

.p-word::after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  background: var(--butter);
  transform: rotate(45deg);
  margin: 16px auto 0;
}

.principle h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 18px 0 14px;
}

.principle p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ---------- Recipes ---------- */

.recipes-section {
  background: var(--porcelain);
  padding: 104px 0 116px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-head .kicker {
  margin-top: 22px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 14px 0 18px;
}

.section-head h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--pretzel);
}

.section-head p {
  font-size: 18px;
  color: var(--text-soft);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: start;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.recipe-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.recipe-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background-image: var(--rauten-band);
  background-size: 48px 24px;
  background-position: center bottom;
  opacity: 0.9;
}

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

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

.recipe-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(14, 35, 54, 0.85);
  color: var(--butter);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

.recipe-info {
  padding: 28px 28px 30px;
}

.recipe-info h3 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.recipe-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--blue);
  margin: 4px 0 12px;
}

.recipe-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.recipe-meta .sep {
  color: var(--butter);
}

.recipe-desc {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.btn-expand {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pretzel);
  background: none;
  border: 2px solid var(--pretzel);
  border-radius: 999px;
  padding: 11px 26px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-expand:hover {
  background: var(--pretzel);
  color: var(--white);
}

.recipe-details {
  display: none;
  border-top: 1px dashed var(--blue-soft);
  margin-top: 24px;
  padding-top: 22px;
}

.recipe-details.active {
  display: block;
}

.recipe-details h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 18px 0 10px;
}

.recipe-details h4:first-child {
  margin-top: 0;
}

.recipe-details ul,
.recipe-details ol {
  padding-left: 22px;
}

.recipe-details li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 7px;
}

/* ---------- About ---------- */

.about-section {
  background: var(--blue-mist);
  padding: 108px 0;
}

.about-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 80px;
  align-items: center;
}

.about-figure {
  position: relative;
  margin: 0;
}

.about-frame {
  position: absolute;
  inset: 0;
  transform: translate(-20px, 20px);
  border: 2px solid var(--blue-soft);
  border-radius: var(--arch);
  pointer-events: none;
}

.about-tile {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lift);
}

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

.about-copy h2 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 14px 0 24px;
}

.about-copy h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--blue);
}

.about-copy p {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.about-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink);
}

.about-sign .mahl {
  color: var(--pretzel);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink-deep);
  color: #C6D5E2;
  padding: 76px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.7fr;
  gap: 56px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(198, 213, 226, 0.85);
  max-width: 340px;
  margin-bottom: 18px;
}

.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--butter-soft);
}

.footer h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #C6D5E2;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-company p {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(198, 213, 226, 0.9);
}

.footer-company a {
  color: var(--blue-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14.5px;
  color: rgba(198, 213, 226, 0.6);
}

/* ---------- Legal pages ---------- */

.legal-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 150px 28px 90px;
}

.legal-main h1 {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 15.5px;
  color: var(--text-soft);
}

.legal-main h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
  margin: 42px 0 14px;
  line-height: 1.25;
}

.legal-main h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
}

.legal-main p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-main ul,
.legal-main ol {
  padding-left: 26px;
  margin-bottom: 18px;
}

.legal-main li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-main a {
  color: var(--blue);
}

.company-contact-box {
  background: var(--blue-mist);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 30px 32px;
  margin-top: 26px;
}

.company-contact-box p {
  margin-bottom: 8px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-copy > *,
  .hero-figure {
    animation: none;
  }
  .recipe-card,
  .recipe-img,
  .btn-primary {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero {
    padding: 150px 0 96px;
  }
  .hero-inner {
    gap: 48px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .about-inner {
    gap: 52px;
  }
  .about-copy h2 {
    font-size: 36px;
  }
  .principle {
    padding: 8px 26px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 22px;
    box-shadow: 0 18px 30px rgba(10, 24, 38, 0.4);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 17px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-figure {
    max-width: 420px;
    margin: 0 auto;
  }
  .hero-caption {
    left: 12px;
    bottom: 18px;
  }
  .principles {
    padding: 64px 0;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .principle + .principle {
    border-left: none;
    border-top: 1px solid var(--blue-mist);
    padding-top: 44px;
  }
  .recipes-section {
    padding: 80px 0 88px;
  }
  .section-head h2 {
    font-size: 37px;
  }
  .recipes-grid {
    grid-template-columns: 1fr;
  }
  .about-section {
    padding: 80px 0;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .about-figure {
    max-width: 420px;
    margin: 0 auto;
    order: 2;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal-main {
    padding-top: 128px;
  }
  .legal-main h1 {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }
  .container,
  .nav-container,
  .hero-inner,
  .principles-grid,
  .about-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding: 134px 0 78px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-lede {
    font-size: 17.5px;
  }
  .btn-primary {
    padding: 15px 30px;
    font-size: 15px;
  }
  .hero-caption {
    padding: 11px 15px;
  }
  .cap-title {
    font-size: 16px;
  }
  .section-head h2 {
    font-size: 31px;
  }
  .recipe-info {
    padding: 22px 20px 26px;
  }
  .recipe-info h3 {
    font-size: 24px;
  }
  .about-copy h2 {
    font-size: 30px;
  }
  .legal-main h1 {
    font-size: 32px;
  }
  .legal-main h2 {
    font-size: 23px;
  }
  .company-contact-box {
    padding: 24px 20px;
  }
}
