/* ============================================================
   Rösterei Nordlicht — Redesign 2026
   Mobile-first · System-Stack + Fraunces · keine Frameworks
   ============================================================ */

/* ---------- Schrift (lokal gehostet — DSGVO-konform, keine Google-Server) ----------
   Fraunces, SIL Open Font License 1.1 — siehe ../fonts/LICENSE-Fraunces.txt */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

/* ---------- Reset (leichtgewichtig) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* ---------- Design-Tokens ---------- */
:root {
  --bg:          #f7f3ec;
  --surface:     #fffdf8;
  --ink:         #221709;
  --muted:       #6d5d4b;
  --line:        #e6dccb;

  --dark:        #150d07;   /* Espresso — Hero & Footer */
  --dark-soft:   #2a1d12;
  --cream:       #f6efe2;

  --pine:        #176a52;   /* Nordlicht-Grün */
  --pine-deep:   #0f4c3a;
  --aurora:      #46c39b;   /* helles Polarlicht */
  --amber:       #cf8f4e;   /* Röst-Bernstein */
  --amber-deep:  #b0763a;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px -12px rgba(34, 23, 9, 0.18);
  --shadow-lg:   0 24px 60px -20px rgba(34, 23, 9, 0.28);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 4rem;
}

/* ---------- Basis ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

section { padding-block: 4.5rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

p { max-width: 65ch; }

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

::selection { background: rgba(70, 195, 155, 0.35); }

:focus-visible {
  outline: 3px solid var(--aurora);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--pine);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: #1c1206;
  box-shadow: 0 8px 24px -10px rgba(207, 143, 78, 0.65);
}
.btn-primary:hover { background: var(--amber-deep); color: #fff8ec; }

.btn-ghost {
  border: 1.5px solid currentColor;
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(246, 239, 226, 0.12); }

.btn-card {
  background: var(--pine);
  color: #f2fbf7;
  padding: 0.6rem 1.2rem;
  font-size: 0.92rem;
  width: 100%;
}
.btn-card:hover { background: var(--pine-deep); }

.btn-small { padding: 0.55rem 1.15rem; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(21, 13, 7, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--cream);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.45); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  color: var(--aurora);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Warenkorb */
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  color: var(--cream);
  transition: background-color 0.2s ease;
}
.cart-button:hover { background: rgba(246, 239, 226, 0.12); }
.cart-count {
  position: absolute;
  top: 0.1rem;
  right: 0.05rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding-inline: 0.25rem;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #1c1206;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
}
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump 0.3s ease; }
@keyframes bump {
  50% { transform: scale(1.35); }
}

/* Burger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navigation (mobil: Panel) */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(21, 13, 7, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1.25rem 1.5rem;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.5);
}
body.nav-open .site-nav {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 0.85rem 0.25rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(246, 239, 226, 0.12);
}
.site-nav a:not(.btn):hover { color: var(--aurora); }
.site-nav .nav-cta { padding-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--cream);
  padding-block: 5.5rem 6rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 75% 8%,  rgba(70, 195, 155, 0.32), transparent 70%),
    radial-gradient(45% 40% at 18% 0%,  rgba(23, 106, 82, 0.45), transparent 70%),
    radial-gradient(40% 45% at 92% 55%, rgba(207, 143, 78, 0.14), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5rem;
  background: linear-gradient(to bottom, transparent, rgba(21, 13, 7, 0.55));
  pointer-events: none;
}
.hero .container { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.4rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 .glow {
  background: linear-gradient(100deg, #8fe6c4, var(--aurora) 45%, #2e8b6e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(246, 239, 226, 0.82);
  max-width: 36rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
}

.hero-trust {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  font-size: 0.92rem;
  color: rgba(246, 239, 226, 0.72);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--aurora);
}

/* ---------- Abschnitts-Kopf ---------- */
.section-head { margin-bottom: 2.75rem; }
.section-head .eyebrow { color: var(--pine); margin-bottom: 0.6rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin-bottom: 0.85rem;
}
.section-head .intro { color: var(--muted); font-size: 1.05rem; }

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.about-copy p + p { margin-top: 1rem; }
.about-copy .mehr { margin-top: 1.5rem; }

.about-art {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.about-art svg { width: 100%; height: auto; }
.art-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.stats {
  list-style: none;
  padding: 0;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stats li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.stats .zahl {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--pine);
  margin-bottom: 0.25rem;
}
.stats .label {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Sortiment ---------- */
.section-alt {
  background: linear-gradient(to bottom, #efe8db, var(--bg));
  border-block: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(to bottom, #ece3d2, #e2d6bf);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img { transform: scale(1.04); }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.4rem;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(23, 106, 82, 0.1);
  color: var(--pine-deep);
}
.tag-roast {
  background: rgba(207, 143, 78, 0.16);
  color: #7d5222;
}
.card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.35rem;
}
.notes {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}
.unit {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}

/* Abo-Banner */
.abo {
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-soft);
  color: var(--cream);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.abo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(70, 195, 155, 0.28), transparent 70%),
    radial-gradient(45% 70% at 10% 100%, rgba(207, 143, 78, 0.2), transparent 70%);
  pointer-events: none;
}
.abo > * { position: relative; }
.abo h3 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-bottom: 0.4rem;
}
.abo p { color: rgba(246, 239, 226, 0.8); }
.abo .abo-preis {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
}
.abo .abo-preis small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(246, 239, 226, 0.65);
}
.abo .btn { align-self: flex-start; }

.bestell-hinweis {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 52rem;
}

/* ---------- Café ---------- */
.cafe-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.cafe-copy p + p { margin-top: 1rem; }

.cupping {
  margin-top: 1.5rem;
  border-left: 4px solid var(--aurora);
  background: rgba(70, 195, 155, 0.1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}
.cupping strong { color: var(--pine-deep); }

.hours-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}
.hours-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.97rem;
}
.hours-row:last-of-type { border-bottom: 0; }
.hours-day { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.hours-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours-row.today {
  background: rgba(23, 106, 82, 0.08);
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
}
.chip-heute {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--pine);
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.hours-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  gap: 2rem;
}
.kontakt-cards {
  display: grid;
  gap: 1rem;
}
.kontakt-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.kontakt-icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(23, 106, 82, 0.1);
  color: var(--pine);
}
.kontakt-icon svg { width: 1.4rem; height: 1.4rem; }
.kontakt-card h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.kontakt-card p { font-size: 0.95rem; color: var(--muted); }
.kontakt-card a { font-weight: 500; }

.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map-card svg { width: 100%; height: auto; }
.map-caption {
  padding: 1rem 1.4rem 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(246, 239, 226, 0.75);
  padding-block: 3.5rem 2rem;
  margin-top: 4.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246, 239, 226, 0.14);
}
.footer-brand .brand { margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.92rem; max-width: 30ch; }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.9rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 0.5rem; font-size: 0.92rem; }
.site-footer a {
  color: rgba(246, 239, 226, 0.85);
  text-decoration: none;
}
.site-footer a:hover { color: var(--aurora); text-decoration: underline; }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(246, 239, 226, 0.55);
}
.legal-links {
  display: flex;
  gap: 1.25rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 90;
  transform: translate(-50%, 1.25rem);
  max-width: min(92vw, 26rem);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.92rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.prose {
  max-width: 46rem;
  padding-block: 3.5rem;
}
.prose h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 1.75rem;
}
.prose h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
}
.prose p + p { margin-top: 0.85rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .adresse {
  font-style: normal;
  line-height: 1.7;
}
.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
.zurueck:hover { text-decoration: underline; }
.demo-note {
  margin-top: 2.5rem;
  border: 1px dashed var(--amber-deep);
  background: rgba(207, 143, 78, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.stand { margin-top: 2rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- Tablet & Desktop ---------- */
@media (min-width: 760px) {
  section { padding-block: 6rem; }

  .stats { grid-template-columns: repeat(4, 1fr); }

  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }
  .cafe-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }

  .kontakt-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }

  .abo {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 2.75rem;
  }
  .abo .btn { align-self: center; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    background: none;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.9rem;
  }
  .site-nav a:not(.btn) {
    padding: 0.25rem 0;
    border-bottom: 0;
    font-size: 0.97rem;
    position: relative;
  }
  .site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 2px;
    background: var(--aurora);
    transition: right 0.25s ease;
  }
  .site-nav a:not(.btn):hover::after { right: 0; }
  .site-nav .nav-cta { padding-top: 0; }

  .hero { padding-block: 7.5rem 8rem; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
