/* ========== Imports ========== */

@import url("./fonts.css");


/* ========== Variablen ========== */

:root {
  /* Schriftarten */
  --font-display: "Fraunces", serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "DM Mono", monospace;

  /* Grundfarben */
  --background: #0a0604;
  --foreground: #f0e6d3;

  --card: #150c07;
  --card-foreground: #f0e6d3;

  --secondary: #1e1108;
  --secondary-foreground: #f0e6d3;

  --muted: #2a1a0e;
  --muted-foreground: #a08060;

  --primary: #c97d3a;
  --primary-foreground: #0a0604;

  --accent: #e8a855;
  --accent-foreground: #0a0604;

  --border: rgba(240, 230, 211, 0.08);
  --ring: rgba(201, 125, 58, 0.5);

  --destructive: #d4183d;
  --destructive-foreground: #ffffff;

  /* Zusätzliche Hintergründe */
  --bg-section: #0d0907;
  --bg-image: #1a0f08;
  --bg-footer: #050302;

  /* Text */
  --text-cream: #f0e6d3;
  --text-muted: #a08060;

  /* Amber-Palette */
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
}


/* ========== Reset & Global ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  color: var(--foreground);
  background-color: var(--background);

  font-family: var(--font-body);
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

section {
  scroll-margin-top: 6rem;
}


/* ========== Allgemeine Typografie ========== */

h1,
h2,
h3,
.product-name,
.page-title {
  font-family: var(--font-display);
}

.label,
.category,
.opening-hours,
.font-mono {
  font-family: var(--font-mono);
}


/* ========== Allgemeiner Container ========== */

.section-container {
  width: min(100% - 3rem, 80rem);
  margin-inline: auto;
}


/* ========== Eyebrow ========== */

.section-eyebrow {
  margin: 0 0 1.5rem;

  display: flex;
  align-items: center;
  gap: 0.9rem;

  color: var(--amber-500);

  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.6;
  text-transform: uppercase;
}


/* ========== Allgemeine Buttons ========== */

.button {
  min-height: 3.5rem;
  padding-inline: 1.75rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;

  border: 1px solid transparent;

  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}


/* ---------- Primärer Button ---------- */

.button-primary {
  color: var(--primary-foreground);
  background-color: var(--amber-600);
}

.button-primary:hover,
.button-primary:focus-visible {
  background-color: var(--amber-500);
}


/* ---------- Sekundärer Button ---------- */

.button-secondary {
  color: var(--foreground);
  background-color: rgba(10, 6, 4, 0.3);

  border-color: rgba(240, 230, 211, 0.24);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--amber-500);
  border-color: var(--amber-600);
}


/* ========== Globale Responsive-Regeln ========== */

@media (max-width: 40rem) {
  .section-container {
    width: min(100% - 2rem, 80rem);
  }
}


/* ========== Tastaturfokus ========== */

:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 4px;
}

/* *========= Navigation ========= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;

  background-color: transparent;
  border-bottom: 1px solid transparent;

  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease,
    backdrop-filter 300ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background-color: rgba(10, 6, 4, 0.96);
  border-bottom-color: var(--border);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  position: relative;

  width: min(100% - 3rem, 80rem);
  min-height: 5.5rem;

  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ========= Logo ========= */

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  color: var(--foreground);
  text-decoration: none;
}

.nav-logo-icon {
  width: 2rem;
  height: 2rem;

  display: grid;
  place-items: center;

  color: var(--amber-500);

  border: 1px solid var(--amber-600);
  border-radius: 50%;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ========= Desktop-Menü ========= */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-list {
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  gap: 2rem;

  list-style: none;
}

.nav-link {
  color: var(--foreground);

  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;

  opacity: 0.75;

  transition:
    color 200ms ease,
    opacity 200ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--amber-500);
  opacity: 1;
}

/* ========= Bestellen-Button ========= */

.nav-button {
  min-height: 3rem;
  padding-inline: 1.5rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  color: var(--primary-foreground);
  background-color: var(--amber-600);

  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  background-color: var(--amber-500);
  transform: translateY(-2px);
}

/* ========= Hamburger ========= */

.menu-toggle {
  width: 3rem;
  height: 3rem;

  padding: 0;

  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  color: inherit;
  background: transparent;

  border: 1px solid var(--border);
  cursor: pointer;
}

.menu-line {
  width: 1.4rem;
  height: 2px;

  display: block;

  background-color: var(--foreground);

  transition:
    transform 300ms ease,
    opacity 200ms ease;
}

/* Erste Linie wird Teil des X */
.menu-toggle.is-active .menu-line:nth-child(1) {
  transform: translateY(0.45rem) rotate(45deg);
}

/* Mittlere Linie verschwindet */
.menu-toggle.is-active .menu-line:nth-child(2) {
  opacity: 0;
}

/* Dritte Linie wird Teil des X */
.menu-toggle.is-active .menu-line:nth-child(3) {
  transform: translateY(-0.45rem) rotate(-45deg);
}

/* Verhindert Scrollen hinter geöffnetem Menü */
body.menu-open {
  overflow: hidden;
}

/* ========= Mobile Navigation ========= */

@media (max-width: 64rem) {
  .nav-container {
    width: min(100% - 2rem, 80rem);
    min-height: 4.75rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;

    width: 100vw;
    max-height: 0;
    padding-inline: 1rem;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;

    background-color: rgba(10, 6, 4, 0.98);
    border-bottom: 1px solid var(--border);

    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(-0.5rem);

    transition:
      max-height 400ms ease,
      padding 400ms ease,
      opacity 250ms ease,
      transform 300ms ease,
      visibility 300ms ease;
  }

  .site-header.is-menu-open .nav-menu {
    max-height: calc(100vh - 4.75rem);
    padding-top: 2rem;
    padding-bottom: 2rem;

    opacity: 1;
    overflow-y: auto;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(-50%) translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    min-height: 3.75rem;

    display: flex;
    align-items: center;

    font-size: 0.78rem;
    opacity: 1;
  }

  .nav-button {
    width: 100%;
    min-height: 3.5rem;
  }
}

/* *========= Footer ========= */

.site-footer {
  color: var(--foreground);
  background-color: var(--bg-footer);

  border-top: 1px solid var(--border);
}

.footer-container {
  width: min(100% - 3rem, 80rem);

  margin-inline: auto;
  padding-top: 5rem;
  padding-bottom: 1.5rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 5rem;
}

/* ========= Footer Logo ========= */

.footer-brand {
  max-width: 26rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  color: var(--foreground);

  text-decoration: none;
}

.footer-logo-icon {
  width: 2rem;
  height: 2rem;

  display: grid;
  place-items: center;

  color: var(--amber-500);

  border: 1px solid var(--amber-700);
  border-radius: 50%;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-description {
  margin-top: 1.75rem;
  margin-bottom: 0;

  color: var(--foreground);

  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;

  opacity: 0.8;
}

/* ========= Footer Überschriften ========= */

.footer-heading {
  margin-top: 0;
  margin-bottom: 1.5rem;

  color: var(--amber-700);

  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ========= Footer Links ========= */

.footer-link-list {
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 0.85rem;

  list-style: none;
}

.footer-link-list a,
.footer-contact a,
.footer-legal a {
  color: var(--foreground);

  text-decoration: none;

  transition:
    color 200ms ease,
    opacity 200ms ease;
}

.footer-link-list a {
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;

  font-style: normal;
}

.footer-contact .footer-heading {
  margin-bottom: 0.65rem;
}

.footer-contact a {
  font-size: 0.85rem;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--amber-500);
}

/* ========= Untere Footer-Zeile ========= */

.footer-bottom {
  margin-top: 4.5rem;
  padding-top: 1.5rem;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;

  border-top: 1px solid var(--border);
}

.footer-example-note {
  max-width: 48rem;

  margin: 0;

  color: var(--muted-foreground);

  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;

  flex-shrink: 0;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
}

/* ========= Footer Tablet ========= */

@media (max-width: 56rem) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ========= Footer Smartphone ========= */

@media (max-width: 40rem) {
  .footer-container {
    width: min(100% - 2rem, 80rem);

    padding-top: 4rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    margin-top: 3.5rem;

    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    gap: 1.25rem;
  }
}

/* ========== Zurück zur Hauptwebsite ========== */

.demo-back-link {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 900;

  min-height: 3rem;
  padding-inline: 1.25rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;

  color: var(--text-cream);
  background-color: var(--bg-footer);

  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;

  border: 1px solid rgba(240, 230, 211, 0.16);

  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);

  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.demo-back-link:hover,
.demo-back-link:focus-visible {
  color: var(--primary-foreground);
  background-color: var(--amber-600);
  border-color: var(--amber-600);

  transform: translateY(-3px);
}

.demo-back-link span {
  font-size: 0.9rem;

  transition: transform 200ms ease;
}

.demo-back-link:hover span,
.demo-back-link:focus-visible span {
  transform: translateX(-3px);
}


/* ========== Zurück-Link Smartphone ========== */

@media (max-width: 40rem) {
  .demo-back-link {
    right: 1rem;
    bottom: 1rem;

    min-height: 2.8rem;
    padding-inline: 1rem;

    font-size: 0.58rem;
  }
}