/* =========================================================
   Kod Brata – Balkan-Grill (Muster)
   Idee: die Ćevabdžinica um die Ecke. Ladenschild-Typo,
   Holzkohle, Fes-Rot aus dem Logo, die Speisekarte auf Papier.
   ========================================================= */

:root {
  --coal: #1d1a17;
  --coal-2: #2a2622;
  --paper: #efe5d1;
  --ink: #2a211b;
  --fes: #a8261d;
  --fes-dark: #8a1e17;
  --gold: #c39a4a;
  --ash: #a39887;
  --rule-dark: rgba(239, 229, 209, .16);
  --rule-paper: rgba(42, 33, 27, .25);

  --sign: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Sofia Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --overlap: clamp(48px, 9vw, 140px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--coal);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--sign); font-weight: 800; line-height: .95; margin: 0; }
h2 { font-size: clamp(3rem, 8vw, 5.5rem); text-transform: uppercase; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Kopfzeile ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px var(--gutter);
}
.top__logo {
  font-family: var(--sign);
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}
.top__logo span, .footer__name span {
  font-size: .5em;
  color: var(--ash);
  margin-left: .35em;
  vertical-align: .9em;
}
.top__nav { display: flex; gap: 24px; }
.top__nav a { text-decoration: none; font-weight: 600; }
.top__nav a:hover { color: var(--gold); }
.top__lang { display: flex; gap: 2px; }
.lang {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ash);
  font: 600 .95rem var(--body);
  padding: 4px 6px;
  cursor: pointer;
}
.lang:hover { color: var(--paper); }
.lang[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--fes); }
.top__call {
  font-weight: 600;
  text-decoration: none;
  background: var(--fes);
  padding: .45em 1em;
  border-radius: 2px;
}
.top__call:hover { background: var(--fes-dark); }

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(32px, 5vw, 56px); }
.hero__word {
  font-size: clamp(5rem, 35vw, 40rem); /* „BUJRUM!“ füllt so die Zeilenbreite */
  text-transform: uppercase;
  line-height: .8;
  letter-spacing: -.01em;
  margin-left: -.03em;
  color: var(--paper);
  animation: sign-up .9s cubic-bezier(.2, .8, .2, 1) both .1s;
}
.hero__text {
  display: grid;
  grid-template-columns: minmax(0, 40ch) auto;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-top: clamp(20px, 3vw, 36px);
}
.hero__lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  font: 600 1rem var(--body);
  color: var(--paper);
  text-decoration: none;
  background: transparent;
  border: 2px solid var(--paper);
  border-radius: 2px;
  padding: .7em 1.2em;
  cursor: pointer;
}
.button:hover { background: var(--paper); color: var(--coal); }
.button--red { background: var(--fes); border-color: var(--fes); }
.button--red:hover { background: var(--fes-dark); border-color: var(--fes-dark); color: var(--paper); }

/* ---------- Fotos ---------- */
.photo {
  position: relative;
  margin: 0;
  background-color: var(--coal-2);
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(239, 229, 209, .03) 14px 15px);
  background-size: cover;
  background-position: center;
}
.photo figcaption {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: .85rem;
  color: var(--ash);
}
.photo.has-img figcaption {
  /* nur noch für Screenreader */
  clip-path: inset(50%);
  width: 1px; height: 1px; overflow: hidden;
}

.strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  height: clamp(220px, 34vw, 480px);
  padding: 0 var(--gutter);
  /* die Fotos liegen halb auf der Papier-Karte */
  position: relative;
  z-index: 1;
  margin-bottom: calc(var(--overlap) * -1);
}

/* ---------- Speisekarte ---------- */
.menu {
  background: var(--paper);
  color: var(--ink);
  padding: calc(var(--overlap) + clamp(56px, 8vw, 104px)) var(--gutter) clamp(56px, 8vw, 104px);
}
.menu__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 32ch);
  align-items: end;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 3px solid var(--ink);
}
.menu__head p { margin: 0; }
.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 6vw, 88px);
}
.dish {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--rule-paper);
}
/* Gerichtsbild: unsichtbar, bis die Datei geladen ist */
.photo--dish { flex: none; width: clamp(88px, 10vw, 128px); aspect-ratio: 1; display: none; }
.photo--dish.has-img { display: block; }
.dish h3 { font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 700; margin-bottom: 6px; }
.dish__and { color: var(--fes); }
.dish p { margin: 0; max-width: 42ch; }

/* ---------- Über uns ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 30rem) 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(64px, 9vw, 128px) var(--gutter);
}
.photo--tall { aspect-ratio: 4 / 5; }
.about__text { max-width: 36em; }
.about__text h2 { margin-bottom: 24px; }
.about__links { display: flex; gap: 24px; font-weight: 600; margin-top: 28px; }
.about__links a { text-decoration-color: var(--fes); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.about__links a:hover { color: var(--gold); }

/* ---------- Besuch ---------- */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  border-top: 1px solid var(--rule-dark);
}
.visit__phone {
  display: inline-block;
  font-family: var(--sign);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 1;
  text-decoration: none;
  margin-top: 20px;
  border-bottom: 4px solid var(--fes);
}
.visit__phone:hover { color: var(--gold); }
.visit__hint { color: var(--ash); margin-top: 12px; }
.visit__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 28px;
  margin: 40px 0 0;
}
.visit__facts dt { color: var(--ash); }
.visit__facts dd { margin: 0; }
.visit__facts a { text-decoration-color: var(--fes); text-underline-offset: 4px; }

.map {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--rule-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
}
.map p { max-width: 34ch; color: var(--ash); margin: 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 40px;
  color: var(--ash);
  font-size: 1rem;
}
.footer p { margin: 0; }
.footer__name { font-family: var(--sign); font-weight: 800; font-size: 1.6rem; color: var(--gold); text-transform: uppercase; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto !important; }
.footer__links a:hover { color: var(--paper); }
.credits { flex-basis: 100%; font-size: .85rem; }
.credits summary { cursor: pointer; width: max-content; }
.credits summary:hover { color: var(--paper); }
.credits p { margin: 12px 0 6px; }
.credits ul { margin: 0; padding-left: 1.1em; columns: 2 22em; column-gap: 40px; }
.credits li { margin-bottom: 4px; break-inside: avoid; }
.credits a:hover { color: var(--paper); }

/* ---------- Rechtliches ---------- */
.legal { padding: 48px var(--gutter); max-width: 60em; }
.legal h1 { font-size: clamp(3rem, 8vw, 5rem); text-transform: uppercase; margin: 32px 0 24px; }
.placeholder { color: var(--ash); font-style: italic; }

/* ---------- Bewegung: nur das Schild ---------- */
@keyframes sign-up {
  from { clip-path: inset(100% 0 0 0); transform: translateY(.15em); }
  to   { clip-path: inset(0 0 0 0);    transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__word { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .top__nav { display: none; }
  .hero__text { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: clamp(320px, 80vw, 560px); }
  .photo--wide { grid-column: 1 / -1; }
  .menu__head { grid-template-columns: 1fr; }
  .menu__list { grid-template-columns: 1fr; }
  .about, .visit { grid-template-columns: 1fr; }
  .photo--tall { max-height: 70vh; aspect-ratio: 4 / 5; width: 100%; }
  .footer__links { margin-left: 0 !important; }
}

@media (max-width: 480px) {
  .top { gap: 14px; }
  .top__logo { font-size: 1.7rem; }
  .hero__actions .button { flex: 1 1 100%; text-align: center; }
  .map { min-height: 340px; }
}
