/* francesca's — Eis | Café | Momente
   Palette und Formen aus dem Laden: Schachbrettboden, Walnuss-Lamellen,
   Tomatenrot der Barhocker & ma.ki-Tassen, Cremeweiß der Sitzbänke. */

@font-face {
  font-family: 'Caveat';
  src: url('../fonts/caveat-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --panna: #FBF8F2;      /* Wand- und Bankweiß */
  --cream: #F3EDE2;      /* Karten, Flächen */
  --rosso: #C5301E;      /* Barhocker, Tassen, MENU-Block */
  --rosso-dark: #9E2415;
  --walnut: #3B2A20;     /* Lamellenwand */
  --walnut-2: #4E382A;
  --char: #1B1511;       /* Text, Schachbrett */
  --muted: #6E635A;
  --line: #E2D9CB;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  color: var(--char);
  background: var(--panna);
  line-height: 1.6;
  font-size: 1.0625rem;
}

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Typo-Rollen ---------- */

.script {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  line-height: 1;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rosso);
}

h2.section-head {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0.35rem 0 0.75rem;
}

/* ---------- Schachbrett-Trennstreifen (der Boden) ---------- */

.checker {
  height: 36px;
  background:
    repeating-conic-gradient(var(--char) 0 90deg, var(--panna) 0 180deg)
    0 0 / 36px 36px;
  border-top: 1px solid var(--char);
  border-bottom: 1px solid var(--char);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--panna) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-size: 1.9rem;
  color: var(--rosso);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--char);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--char);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--char);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible { border-bottom-color: var(--rosso); }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--panna);
    border-bottom: 2px solid var(--char);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 0.85rem 1.25rem; }
}

/* ---------- Hero: Lamellenwand + Neon ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--panna);
  isolation: isolate;
  overflow: hidden;
  /* Walnuss-Lamellen wie hinter der Bar */
  background:
    repeating-linear-gradient(
      180deg,
      var(--walnut-2) 0 14px,
      #2A1D15 14px 17px
    );
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../img/innenraum-theke.jpg') center 35% / cover no-repeat;
  opacity: 0.42;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 42%,
    rgba(27, 21, 17, 0) 0%, rgba(27, 21, 17, 0.55) 72%, rgba(27, 21, 17, 0.8) 100%);
}

.hero-inner { padding: 6rem 1.25rem 5rem; max-width: 46rem; }

.hero-neon {
  display: block;
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: clamp(4rem, 13vw, 8.5rem);
  line-height: 0.95;
  color: #FFF7E6;
  text-shadow:
    0 0 6px rgba(255, 244, 214, 0.9),
    0 0 18px rgba(255, 214, 140, 0.55),
    0 0 46px rgba(255, 176, 82, 0.4);
}

.hero-tagline {
  display: block;
  margin-top: 1rem;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.5em;
  text-indent: 0.5em; /* optischer Ausgleich fürs letterspacing */
  text-transform: uppercase;
}

.hero-welcome {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  color: #EFE6D8;
}

.hero-cta {
  margin-top: 2.25rem;
  display: inline-flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.7rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
}

.btn-rosso {
  background: var(--rosso);
  color: #FFF7E6;
  border: 1px solid var(--rosso);
}
.btn-rosso:hover { background: var(--rosso-dark); }

.btn-ghost {
  background: transparent;
  color: #FFF7E6;
  border: 1px solid rgba(255, 247, 230, 0.7);
}
.btn-ghost:hover { border-color: #FFF7E6; background: rgba(255, 247, 230, 0.12); }

/* ---------- Sektionen ---------- */

section { padding: 4.5rem 0; scroll-margin-top: 4.5rem; }

.section-intro { max-width: 40rem; color: var(--muted); }

/* Über mich */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

.about-photos { display: grid; gap: 1.25rem; }

.about-photos figure { position: relative; }

.about-photos img {
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--rosso);
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
}

.about-photos figure:nth-child(2) img { box-shadow: 6px 6px 0 var(--char); }

.about-text p { margin-bottom: 1rem; }

.about-text .lead {
  font-family: 'Caveat', cursive;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rosso);
  margin-bottom: 1.25rem;
}

.about-list { list-style: none; margin: 0 0 1rem; }

.about-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.about-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--rosso);
  font-weight: 600;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photos { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Speisekarte: Karten wie das gedruckte Menü ---------- */

.menu-section { background: var(--cream); }

.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.menu-card {
  background: #FDFBF7;
  border: 2px solid var(--char);
  border-radius: 4px;
  box-shadow: 8px 8px 0 rgba(27, 21, 17, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Der rote Block mit gestapelten Lettern — direkt von der gedruckten Karte */
.menu-card-title {
  background: var(--rosso);
  color: var(--char);
  padding: 1.1rem 1.4rem 0.9rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  word-break: break-word;
}

.menu-card-title small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #FFF7E6;
}

.menu-card-body { padding: 1.4rem; flex: 1; }

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.menu-row .dots {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
}

.menu-row .price { white-space: nowrap; font-weight: 500; }

.menu-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.menu-sub {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rosso);
  margin: 1.3rem 0 0.6rem;
}

.menu-sub:first-child { margin-top: 0; }

.sorten-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.sorten-tags span {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.9rem;
}

.sorten-tags.rotating span { background: #FDF1EE; border-color: #EBC4BC; }

/* ---------- Infos & News ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.info-card {
  border: 1px solid var(--line);
  border-left: 6px solid var(--rosso);
  border-radius: 4px;
  background: #FDFBF7;
  padding: 1.6rem;
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.info-card ul { list-style: disc; margin: 0.5rem 0 0.9rem 1.2rem; }

.phone-cta {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--rosso);
  text-decoration: none;
  border-bottom: 2px solid var(--rosso);
}

/* ---------- Öffnungszeiten ---------- */

.hours-section { background: var(--walnut); color: var(--panna); }

.hours-section .eyebrow { color: #F0A48F; }

.hours-note { color: #CDBFB2; max-width: 34rem; }

.hours-table {
  margin-top: 1.75rem;
  width: 100%;
  max-width: 30rem;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(251, 248, 242, 0.18);
}

.hours-table td:last-child { text-align: right; font-weight: 500; }

.hours-table .closed td { color: #A8968A; }

/* ---------- Galerie ---------- */

.gallery-grid {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.gallery-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img { transform: scale(1.04); }

.gallery-credit { margin-top: 1.5rem; font-size: 0.92rem; color: var(--muted); }

/* Lightbox */

.lightbox {
  margin: auto; /* zentriert das Dialog-Element (der globale Reset entfernt sonst das UA-margin) */
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 900px);
}

.lightbox::backdrop { background: rgba(20, 15, 12, 0.88); }

.lightbox figure {
  position: relative;
  background: var(--char);
  border-radius: 4px;
  overflow: hidden;
}

.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; }

.lightbox figcaption {
  color: var(--panna);
  font-size: 0.9rem;
  padding: 0.7rem 3rem 0.7rem 1rem;
  text-align: center;
}

.lightbox button {
  position: absolute;
  background: rgba(27, 21, 17, 0.65);
  color: var(--panna);
  border: 1px solid rgba(251, 248, 242, 0.4);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox .lb-close { top: 0.6rem; right: 0.6rem; }
.lightbox .lb-prev { top: 50%; left: 0.6rem; transform: translateY(-50%); }
.lightbox .lb-next { top: 50%; right: 0.6rem; transform: translateY(-50%); }

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

.footer {
  background: var(--char);
  color: #D9CEC2;
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer h3 {
  color: var(--panna);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.footer a { color: #F0A48F; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer-brand {
  font-size: 2.4rem;
  color: #FFF7E6;
  text-shadow: 0 0 14px rgba(255, 214, 140, 0.45);
}

.footer-insta { margin-top: 2.5rem; text-align: center; font-style: italic; }

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251, 248, 242, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9C8D80;
}

/* ---------- Impressum ---------- */

.legal-page { max-width: 44rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal-page h1 { font-weight: 500; letter-spacing: 0.08em; margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.6rem; }
.legal-page p { margin-bottom: 0.8rem; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-grid img { transition: none; }
}
