/* ============================================
   SUSHIKARTE · Am Markt, Leck
   Schiefer-Anthrazit · Marken-Petrol · Taupe
   ============================================ */

/* ---------- Schriften (lokal, kein Google-CDN) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-variable.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #0f1213;
  --surface:   #161a1b;
  --line:      rgba(169, 161, 153, 0.16);
  --text:      #efeae3;
  --muted:     #a9a199;
  --faint:     #8b8680;
  --teal:      #5d9aa2;
  --teal-soft: rgba(93, 154, 162, 0.14);
  --teal-deep: #065d67;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Montserrat", "Helvetica Neue", sans-serif;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --maxw: 90rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

section[id], main[id] { scroll-margin-top: 5.5rem; }

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

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--teal-deep);
  color: #fff;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.topbar.scrolled {
  background: rgba(15, 18, 19, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.topbar-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.65rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img { border-radius: 50%; }

.brand-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topnav { display: none; gap: 1.4rem; }

@media (min-width: 60rem) {
  .topnav { display: flex; }
}

.topnav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.topnav a:hover { color: var(--text); }
.topnav a[aria-current="true"] { color: var(--teal); }

.topbar-tel {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--teal);
  border: 1px solid rgba(93, 154, 162, 0.45);
  border-radius: 99px;
  padding: 0.45rem 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

@media (min-width: 40rem) {
  .topbar-tel { display: inline-flex; }
}

.topbar-tel:hover { background: var(--teal-soft); }

/* Mobil-Menü */
.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (min-width: 60rem) {
  .menu-btn { display: none; }
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--pad) 1.25rem;
  background: rgba(15, 18, 19, 0.97);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  padding: 0.55rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
}

.mobile-nav a:hover { color: var(--teal); }

.mobile-nav-tel {
  margin-top: 0.5rem;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600;
  color: var(--teal) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 18, 19, 0.92) 0%, rgba(15, 18, 19, 0.55) 45%, rgba(15, 18, 19, 0.15) 100%),
    linear-gradient(180deg, rgba(15, 18, 19, 0.85) 0%, rgba(15, 18, 19, 0) 18%),
    linear-gradient(0deg, rgba(15, 18, 19, 1) 0%, rgba(15, 18, 19, 0) 22%);
}

@media (max-width: 40rem) {
  .hero-shade {
    background:
      rgba(15, 18, 19, 0.55),
      linear-gradient(0deg, rgba(15, 18, 19, 1) 0%, rgba(15, 18, 19, 0) 30%);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding: 7rem var(--pad) 4rem;
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.hero-title span {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.hero-sub {
  margin-top: 1.2rem;
  max-width: 26rem;
  color: var(--muted);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 4rem;
}

.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 3.5rem;
  list-style: none;
}

.hero-facts li {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-facts li:last-child {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
  background: var(--teal-deep);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-solid:hover {
  background: #0a7280;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(93, 154, 162, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ---------- Filterleiste ---------- */
.filterbar {
  position: sticky;
  top: 3.6rem;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem var(--pad);
  background: rgba(15, 18, 19, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.chip {
  padding: 0.45rem 1.05rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover { color: var(--text); border-color: var(--muted); }

.chip.is-active {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- Karte / Kategorien ---------- */
.karte { padding: 0; }

/* Jede Kategorie ist ein vollbreites Farbband mit Innencontainer */
.cat {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 12vw, 12rem) 0;
}

.cat:nth-of-type(even) { background: #141a1b; }

.cat-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-block: var(--pad);
  padding-inline: var(--pad);
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .cat-inner { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 7rem); }
  .cat--flip .cat-photo { order: 2; }
  .cat-photo { position: sticky; top: 8.5rem; }
}

.cat--plain .cat-inner { grid-template-columns: 1fr; }

@media (min-width: 56rem) {
  .cat--plain .cat-body { max-width: 44rem; }
}

/* Hintergrund-Illustrationen (Stich-Stil, Parallax) */
.cat-illu {
  position: absolute;
  z-index: 0;
  top: 8%;
  right: -4%;
  width: clamp(380px, 42vw, 820px);
  height: auto;
  color: var(--muted);
  opacity: 0.14;
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 0.6s ease;
}

.cat--flip .cat-illu {
  right: auto;
  left: -4%;
}

@media (max-width: 40rem) {
  .cat-illu { width: 80vw; opacity: 0.11; }
}

.cat-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.cat-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  will-change: opacity, filter;
  transition: opacity 0.6s ease, filter 0.6s ease;
  opacity: 0.85;
  filter: brightness(0.9);
}

.cat.visible .cat-photo img {
  opacity: 1;
  filter: brightness(1);
}

.cat-head { margin-bottom: 2.4rem; }

.cat-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.cat-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 500;
  line-height: 1.05;
}

.cat-desc {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 34rem;
}

/* ---------- Gerichte ---------- */
.dishes { list-style: none; }

.dish {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.dish:last-child { border-bottom: 0; }

/* einzeilige Gerichte: li selbst ist die Zeile */
.dish, .dish-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

/* mehrzeilige Gerichte: li stapelt Zeile + Beschreibung */
.dish:has(.dish-row) {
  display: block;
}

.dish-id {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 5px;
  padding: 0.15rem 0.45rem;
  transform: translateY(-0.1em);
}

.dish-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.dish-name small {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted rgba(169, 161, 153, 0.35);
  transform: translateY(-0.25em);
}

.dish-price {
  flex: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dish-desc {
  margin-top: 0.35rem;
  padding-left: calc(0.6rem + 2.4rem);
  color: var(--faint);
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 36rem;
}

.dishes--compact .dish-name { font-size: 1rem; }

/* Filter-Zustände */
.dish[hidden] { display: none; }
.cat[hidden] { display: none; }

.filter-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

/* Einblend-Animation (nur der Inhalt, das Farbband bleibt stehen) */
.cat .cat-inner {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.cat.visible .cat-inner {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat .cat-inner { opacity: 1; transform: none; transition: none; }
  .cat-illu { transform: none !important; }
  .btn, .chip, .to-top { transition: none; }
}

/* ---------- Mitnehmen-Band ---------- */
.takeaway {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) var(--pad);
  text-align: center;
}

.takeaway-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.takeaway-shade {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 15, 0.78);
}

.takeaway-content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.takeaway-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 500;
}

.takeaway-content p { color: var(--muted); }

.takeaway-content .btn { margin-top: 0.5rem; }

/* Öffnungszeiten im Mitnehmen-Band */
.takeaway-hours {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.takeaway-hours strong {
  color: var(--text);
  font-weight: 600;
}

/* Zwei Buttons nebeneinander */
.takeaway-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* ---------- Fußzeile ---------- */
.footer {
  padding: 3.5rem var(--pad) 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer img { border-radius: 50%; margin-bottom: 0.5rem; }

.footer-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-line {
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-line a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.footer-line a:hover { text-decoration: underline; }

.footer-copy {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---------- Nach-oben-Knopf ---------- */
.to-top[hidden] { display: none; }

.to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 45;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(93, 154, 162, 0.5);
  background: rgba(15, 18, 19, 0.85);
  backdrop-filter: blur(10px);
  color: var(--teal);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.to-top:hover {
  background: var(--teal-soft);
  transform: translateY(-2px);
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.topbar--solid {
  background: rgba(15, 18, 19, 0.95);
  border-bottom-color: var(--line);
}

.legal {
  max-width: 46rem;
  margin-inline: auto;
  padding: 8.5rem var(--pad) 5rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 2.8rem 0 0.9rem;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
}

.legal p,
.legal li,
.legal address {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal p { margin-bottom: 0.9rem; }

.legal ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.legal li { margin-bottom: 0.35rem; }

.legal address { font-style: normal; margin-bottom: 0.9rem; }

.legal a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.legal strong { color: var(--text); font-weight: 600; }

.legal-updated {
  margin-top: 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* Footer-Rechtslinks */
.footer-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.footer-links a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; color: #000; }
  .topbar, .filterbar, .hero-actions, .takeaway, .to-top, .skip-link { display: none; }
  .hero { min-height: 0; }
  .hero-img, .hero-shade { display: none; }
  .hero-content { padding: 1rem 0; }
  .hero-title, .cat-head h2, .dish-name, .footer-name { color: #000; }
  .cat { background: none !important; padding: 1rem 0; }
  .cat .cat-inner { opacity: 1; transform: none; grid-template-columns: 1fr; }
  .cat-photo, .cat-illu { display: none; }
  .dish[hidden] { display: flex; }
  .dish:has(.dish-row)[hidden] { display: block; }
  .cat[hidden] { display: grid; }
  .dish-desc, .cat-desc, .cat-meta { color: #444; }
  .dish-price { color: #000; }
  .leader { border-bottom-color: #999; }
  .footer { border: 0; }
}
