/* ==========================================================================
   nussMÄTHchen Chocolaterie — Design System: "The Sensory Atelier"
   ========================================================================== */

/* --- Font Faces (self-hosted, GDPR-compliant) --- */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-700-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-700-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lora-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lora-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Variables: Tonal Indulgence --- */

:root {
  /* Logo-coherent palette: burgundy primary from the logo oval */
  --primary: #7A1B2D;
  --primary-container: #9B2540;
  --on-primary: #ffffff;

  /* Deep Cacao — text and dark surfaces */
  --on-surface: #361f1a;
  --on-surface-variant: #5a4a3f;

  /* Chantilly Cream — surfaces */
  --surface: #fbf9f5;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f5ede0;
  --surface-container: #efe5d6;

  /* Liquid Gold — accent */
  --secondary: #C9A96E;
  --secondary-hover: #d4b87a;

  /* Tertiary — deep warm brown */
  --tertiary: #352017;
  --tertiary-fixed-dim: #4a3528;
  --on-tertiary-fixed: #f5ede0;

  /* Outline */
  --outline-variant: rgba(54, 31, 26, 0.15);

  /* Sage — nature accent for badges */
  --sauge: #7A8B6F;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 70px;
  --announcement-height: 0px;

  /* Motion */
  --ease-elegant: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-subtle: cubic-bezier(0.4, 0, 0.2, 1);

  /* Ambient shadow (tint of on-surface, never neutral grey) */
  --shadow-ambient: 0 20px 40px rgba(54, 31, 26, 0.05);
  --shadow-hover: 0 24px 48px rgba(54, 31, 26, 0.1);
}

/* --- Reset --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--announcement-height));
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--on-surface);
  background-color: var(--surface);
}

html.has-announcement {
  --announcement-height: 64px;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.4s var(--ease-elegant);
}

a:hover,
a:focus {
  color: var(--secondary);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--on-surface);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--primary);
}

/* --- Utility --- */

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.mt-half { margin-top: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Decorative Elements --- */

.golden-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto 0;
  max-width: 300px;
}

.golden-rule::before,
.golden-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary),
    transparent
  );
}

.golden-rule .ornament {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1;
}

/* --- Navigation: Glassmorphism --- */

.site-announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  min-height: var(--announcement-height);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: var(--on-primary);
  box-shadow: 0 10px 30px rgba(54, 31, 26, 0.12);
}

.site-announcement__inner {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.site-announcement p {
  margin: 0;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.45;
}

.nav {
  position: fixed;
  top: var(--announcement-height);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(54, 31, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.5s var(--ease-elegant),
              box-shadow 0.5s var(--ease-elegant);
}

.nav.scrolled {
  background: rgba(54, 31, 26, 0.95);
  box-shadow: 0 4px 30px rgba(54, 31, 26, 0.2);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  height: 50px;
  width: auto;
  transition: transform 0.4s var(--ease-elegant);
}

.nav__logo:hover {
  transform: scale(1.05);
}


/* --- Hero: Editorial --- */

.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 7rem;
  padding-top: calc(var(--nav-height) + var(--announcement-height) + 2rem);
  background: linear-gradient(
    175deg,
    var(--surface) 0%,
    var(--surface-container-low) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero__logo {
  width: min(600px, 75vw);
  height: auto;
  margin-bottom: 3rem;
  filter: drop-shadow(0 8px 30px rgba(122, 27, 45, 0.08));
}

h1.hero__tagline,
.hero__tagline {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: 0;
  margin: 0;
  max-width: 900px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--on-surface-variant);
  margin-top: 0.8rem;
  letter-spacing: 0;
  max-width: 720px;
}

.hero__scroll-hint {
  position: absolute !important;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.3);
  animation: float 3s var(--ease-elegant) infinite;
  transition: background 0.2s, border-color 0.2s;
}

.hero__scroll-hint:hover {
  background: rgba(201, 169, 110, 0.22);
  border-color: rgba(201, 169, 110, 0.6);
}

.hero__scroll-hint svg {
  width: 22px;
  height: 22px;
  stroke: var(--secondary);
  stroke-width: 2;
  fill: none;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.75; }
  50% { transform: translateX(-50%) translateY(-6px); opacity: 1; }
}

@media (max-width: 640px) {
  html.has-announcement {
    --announcement-height: 88px;
  }

  .site-announcement__inner {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .site-announcement p {
    font-size: 0.92rem;
  }

  h1.hero__tagline,
  .hero__tagline {
    font-size: 1.55rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }
}

/* --- Sections: Generous Spacing --- */

section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  margin-bottom: 0;
}

/* Paper texture — subtle noise overlay for artisanal warmth */
.bg-parchemin,
.bg-creme,
.hero {
  position: relative;
}

.bg-parchemin::before,
.bg-creme::before,
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

.bg-parchemin > *,
.bg-creme > *,
.hero > * {
  position: relative;
  z-index: 1;
}

/* Background shifts instead of borders (The No-Line Rule) */
.bg-parchemin {
  background-color: var(--surface-container-low);
}

.bg-creme {
  background-color: var(--surface);
}

.bg-chocolat {
  background: linear-gradient(
    175deg,
    var(--on-surface) 0%,
    var(--tertiary) 100%
  );
  color: var(--surface);
}

.bg-chocolat h2,
.bg-chocolat h3 {
  color: var(--surface);
}

.bg-chocolat a,
.bg-chocolat .ornament {
  color: var(--secondary);
}

.bg-chocolat .golden-rule::before,
.bg-chocolat .golden-rule::after {
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary),
    transparent
  );
}

/* --- Wave Dividers --- */

.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}

.wave-divider--flip {
  transform: rotate(180deg);
}

/* --- Über uns: Asymmetric Layout --- */

.ueber-uns__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ueber-uns__content {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
  }
}

.ueber-uns__text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.ueber-uns__text p:first-child::first-line {
  font-family: var(--font-display);
  font-weight: 700;
}



/* --- Produkte (texte) --- */

.produkte__content {
  max-width: 72ch;
  margin: 0 auto;
}

.produkte__block {
  margin-bottom: 2.8rem;
}

.produkte__block:last-child {
  margin-bottom: 0;
}

.produkte__block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.produkte__block p {
  line-height: 1.75;
  margin-bottom: 0.9rem;
  color: var(--on-surface);
}

.produkte__block p:last-child {
  margin-bottom: 0;
}

.produkte__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.produkte__list li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid var(--outline-variant);
}

.produkte__list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 0.6rem;
  top: 0.75rem;
}

.produkte__leitsatz {
  font-style: italic;
  color: var(--on-surface-variant);
  border-left: 3px solid var(--secondary);
  padding-left: 1.1rem;
  margin-top: 1.2rem;
}

/* --- Philosophie --- */

.philosophie__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: center;
}

@media (min-width: 640px) {
  .philosophie__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.philosophie__item {
  padding: 2.5rem 1.5rem;
}

.philosophie__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.8rem;
  background: var(--surface-container);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-elegant),
              background 0.5s var(--ease-elegant);
}

.philosophie__item:hover .philosophie__icon {
  transform: scale(1.08);
  background: var(--surface-container-low);
}

.philosophie__icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--sauge);
  stroke-width: 1.5;
  fill: none;
}

.philosophie__item h3 {
  margin-bottom: 0.8rem;
  color: var(--on-surface);
}

.philosophie__item p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
}

/* --- Öffnungszeiten: Tonal Layering --- */

.oeffnungszeiten__content {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

/* Stacking surfaces: container-lowest on container-low background */
.oeffnungszeiten__card {
  max-width: 350px;
  width: 100%;
  background: var(--surface-container-low);
  padding: 2.5rem;
  border-radius: 0.25rem;
  box-shadow: var(--shadow-ambient);
}

@media (max-width: 640px) {
  .oeffnungszeiten__card {
    padding: 1.5rem;
    max-width: 100%;
  }
}

.oeffnungszeiten__card h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  /* Gold gradient underline instead of solid border */
  background-image: linear-gradient(
    90deg,
    var(--secondary),
    transparent
  );
  background-size: 100% 1px;
  background-position: bottom;
  background-repeat: no-repeat;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.6rem 0;
  vertical-align: top;
}

.hours-table td:first-child {
  font-weight: 700;
  padding-right: 1rem;
  white-space: nowrap;
}

.address-block {
  margin-top: 1rem;
}

.address-block--spaced {
  margin-top: 1.5rem;
}

.address-block p {
  margin-bottom: 0.5rem;
}

.address-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

/* --- Kontakt --- */

.kontakt {
  text-align: center;
  padding: 8rem 0;
}

.kontakt p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: var(--surface-container-low);
}

/* Primary Button: architectural, sharp */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 0.125rem;
  transition: all 0.5s var(--ease-elegant);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.btn--gold {
  background: var(--secondary);
  color: var(--on-surface);
}

.btn--gold::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.5s var(--ease-elegant);
}

.btn--gold:hover,
.btn--gold:focus {
  background: var(--secondary-hover);
  color: var(--on-surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
}

.btn--gold:hover::after,
.btn--gold:focus::after {
  width: 60%;
}

.bg-chocolat .btn {
  color: var(--on-surface);
}

/* --- Footer --- */

.footer {
  background: var(--on-surface);
  color: var(--surface-container-low);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer h4 {
  color: var(--secondary);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.footer p, .footer address {
  font-style: normal;
  line-height: 1.9;
}

.footer a {
  color: var(--secondary);
  transition: color 0.4s var(--ease-elegant);
}

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

/* Ghost border for footer bottom instead of solid line */
.footer__bottom {
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245, 237, 224, 0.5);
  letter-spacing: 0.03em;
}

.footer__bottom--clean {
  border-top: none;
  padding-top: 0;
}

/* --- Datenschutz Page --- */

.datenschutz {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
}

.datenschutz h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
}

.datenschutz h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.datenschutz p {
  margin-bottom: 1rem;
}

.datenschutz ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.datenschutz li {
  margin-bottom: 0.3rem;
}

/* --- Scroll-triggered reveals --- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-elegant),
              transform 0.8s var(--ease-elegant);
}

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

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-elegant),
              transform 0.6s var(--ease-elegant);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.45s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
