/* ==========================================================================
   BOCADITO – Tasty Tapas
   Desktop-Stylesheet (reines CSS3, kein Framework)
   ========================================================================== */

/* -------------------- Fonts -------------------- */
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../assets/fonts/Urbanist/static/Urbanist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../assets/fonts/Urbanist/static/Urbanist-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../assets/fonts/Urbanist/static/Urbanist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../assets/fonts/Urbanist/static/Urbanist-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------- Variablen -------------------- */
:root {
  --color-primary: #c45b0e;
  --color-primary-dark: #a54c0c;
  --color-cream: #feedd9;
  --color-cream-light: #fef5ea;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Urbanist", sans-serif;
  --content-width: 1200px;
  --topbar-height: 52px;

  /* Font-Skala: 16px (100%) als Basis für den Fließtext, Hx-Größen leiten sich daraus ab */
  --fs-base: 1rem; /* 16px – Fließtext */
  --fs-sm: 0.875rem; /* 14px – Kleintext (Topbar, Footer, Formular-UI) */
  --fs-xs: 0.8125rem; /* 13px – Mikrotext (Formular-Platzhalter) */
  --fs-h4: 1.375rem; /* 22px */
  --fs-h2: 2.125rem; /* 34px */
  --fs-h1: 2.75rem; /* 44px */

  /* Logo-Badge: intrinsische Größe 130x84px, Faktor 3 = 390px, skaliert mit Viewport-Breite */
  --logo-size-lg: clamp(130px, 24vw, 390px);
}

/* -------------------- Reset / Basics -------------------- */
* {
  box-sizing: border-box;
}
html {
  font-size: 100%; /* 16px Basis */
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--color-primary);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0;
}
p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-cream);
  background: var(--color-primary);
  border-radius: 6px;
  padding: 14px 36px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
}
.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}
.btn--wide {
  min-width: 260px;
  text-align: center;
}

/* -------------------- Topbar -------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(196, 91, 14, 0.55);
  transition: background-color 0.4s ease;
}
.topbar.is-scrolled {
  background-color: rgba(196, 91, 14, 1);
}
.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--topbar-height);
  font-size: var(--fs-sm);
  color: var(--color-cream);
}
.topbar__item {
  display: flex;
  align-items: center;
}
.topbar__item:nth-child(1) {
  justify-self: start;
}
.topbar__item:nth-child(2) {
  justify-self: center;
}
.topbar__item:nth-child(3) {
  justify-self: end;
}
.topbar__item img {
  width: 40px;
  height: 40px;
}
.topbar a.topbar__item:hover {
  text-decoration: underline;
}

/* -------------------- Logo-Links -------------------- */
.logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

/* -------------------- Hero -------------------- */
.hero {
  height: 480px;
  background: url("../assets/images/boc-tapas-large.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__logo {
  width: var(--logo-size-lg);
}
/* -------------------- Welcome-Section -------------------- */
.welcome {
  padding: 40px 0 60px;
  text-align: center;
}
.welcome .btn {
  margin-bottom: 0px;
}
.welcome .btn.online{
  margin-bottom: 20px;
}
.welcome h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 26px;
}
.welcome h2 {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 20px;
}
.welcome .lead {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: var(--fs-base);
}
.welcome .lead p {
  margin-bottom: 4px;
}
.menu-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin: 50px 0 46px;
}
.welcome .note {
  max-width: 560px;
  margin: 0 auto;
  font-size: var(--fs-base);
  font-weight: 600;
}
.welcome .note p {
  margin-bottom: 4px;
}
.welcome .note--closing {
  margin-top: 22px;
}

/* -------------------- Spanisch-Banner -------------------- */
.spanish {
  display: flex;
  height: 430px;
}
.spanish__image {
  flex: 1 1 auto;
  min-width: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.spanish__image--left {
  background-image: url("../assets/images/boc-sangria.webp");
}
.spanish__image--right {
  background-image: url("../assets/images/boc-tapas.webp");
}
.spanish__panel {
  flex: 0 0 550px;
  width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-cream);
  text-align: center;
  padding: 60px 50px;
}

@media (max-width: 1089px) {
  .spanish {
    flex-direction: column;
    height: auto;
  }
  .spanish__image {
    flex: none;
    width: 100%;
    height: 420px;
  }
  .spanish__panel {
    flex: none;
    width: 100%;
  }
}
.spanish__panel h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 22px;
}
.spanish__panel p {
  font-size: var(--fs-base);
  font-weight: 500;
  margin-bottom: 24px;
}
.spanish__panel .icon-link__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  background-color: var(--color-cream);
  -webkit-mask: url("../assets/icons/Insta.svg") no-repeat center / contain;
  mask: url("../assets/icons/Insta.svg") no-repeat center / contain;
}

/* -------------------- Öffnungszeiten & Reservierung -------------------- */
.info {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
  background: var(--color-cream);
}
.info::before,
.info::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 640px;
  height: 640px;
  background: url("../assets/images/boc-ornament.svg") no-repeat center / contain;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.info::before {
  left: -160px;
}
.info::after {
  right: -160px;
  transform: translateY(-50%) scaleX(-1);
}

@media (max-width: 990px) {
  .info::after {
    display: none;
  }
  .info::before {
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
.info__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.opening-hours h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 16px;
}
.opening-hours table {
  border-collapse: collapse;
  font-size: var(--fs-base);
  font-weight: 600;
  margin: 0 auto;
  text-align: left;
}
.opening-hours td {
  padding: 3px 0;
}
.opening-hours td:first-child {
  padding-right: 60px;
}

.reservation-box {
  margin-top: 40px;
  max-width: 500px;
  background: #fff;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  padding: 28px 30px;
  color: #333;
}
.reservation-box h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h4);
  margin: 0 0 4px;
  color: #333;
}
.reservation-box .subtitle {
  font-size: var(--fs-sm);
  color: #666;
  margin-bottom: 20px;
}
.reservation-box .fields-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.reservation-field {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  color: #333;
}
.reservation-field .placeholder {
  font-style: italic;
  color: #2f8fd2;
  font-size: var(--fs-xs);
}

/* -------------------- Feiern-Banner -------------------- */
.celebrate {
  position: relative;
  padding-top: 50px;
  /* Platz für die untere (im Banner verbleibende) Hälfte des Logos freihalten, skaliert mit --logo-size-lg */
  padding-bottom: calc(var(--logo-size-lg) * 0.2 + 24px);
  background-image: url("../assets/images/boc-pattern.webp");
  background-repeat: repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-cream);
}
.celebrate h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 22px;
}
.celebrate__logo-link {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 2;
}
.celebrate__logo {
  width: var(--logo-size-lg);
}
.celebrate-photo {
  height: 395px;
  background: url("../assets/images/boc-feiern.webp") center/cover no-repeat;
  background-position: center top;
}

/* -------------------- Event / Kontakt -------------------- */
.events {
  padding: 70px 0 35px 0;
  text-align: center;
}
.events p {
  font-size: var(--fs-base);
  font-weight: 600;
  max-width: 620px;
  margin: 0 auto 4px;
}
.events .btn {
  margin: 30px 0 40px;
}
.events .contact h5 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 4px;
}
.events .contact p {
  font-weight: 600;
  margin-bottom: 2px;
}
.events .contact .icon-link {
  display: inline-block;
  margin-top: 18px;
}
.events .contact .icon-link img {
  width: 54px;
  height: 54px;
}

/* -------------------- Google Maps -------------------- */
.map {
  line-height: 0;
}
.map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
.map__consent {
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 40px;
  background: var(--color-cream);
  line-height: 1.6;
}
.map__consent .map__icon {
  width: 54px;
  height: 54px;
  padding: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}
.map__consent p {
  max-width: 560px;
  margin: 0;
  font-size: var(--fs-base);
}
.map__consent a {
  text-decoration: underline;
}

/* -------------------- Teburio-Reservierung Consent (siehe js/main.js) -------------------- */
.teburio-consent {
  text-align: center;
}
.teburio-consent p {
  margin: 0 0 18px;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.teburio-consent a {
  text-decoration: underline;
}

/* -------------------- Footer -------------------- */
.footer {
  background: var(--color-primary);
  color: var(--color-cream);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.footer a:hover {
  text-decoration: underline;
}

/* -------------------- Legal-Seiten (Impressum, Datenschutz) -------------------- */
.legal {
  padding: 70px 0;
}
.legal__inner {
  max-width: 700px;
}
.legal h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.legal h2 {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin: 36px 0 12px;
}
.legal h2:first-of-type {
  margin-top: 0;
}
.legal h3 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  margin: 20px 0 8px;
}
.legal p {
  font-size: var(--fs-base);
  line-height: 1.7;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
  font-size: var(--fs-base);
  line-height: 1.7;
}
.legal a {
  text-decoration: underline;
}

/* -------------------- Breakpoint <= 991px (Hero + Feiern-Logo) -------------------- */
@media (max-width: 991px) {
  .hero {
    height: 100vh;
    background-position: calc(50% + 100px) center cover;
  }
  .hero.hero--compact {
    height: 30vh;
  }
  .hero:not(.hero--compact) .hero__logo {
    transform: translateY(-20vh);
  }
  .hero__logo {
    width: calc(var(--logo-size-lg) * 2.5);
  }
  .celebrate {
    padding-bottom: calc(var(--logo-size-lg) * 2.5 * 0.2 + 24px);
  }
  .celebrate__logo {
    width: calc(var(--logo-size-lg) * 2.5);
  }
}

/* -------------------- Breakpoint <= 576px (Topbar, Spanisch-Panel, Footer) -------------------- */
@media (max-width: 576px) {
  .topbar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 6px 0;
    row-gap: 3px;
    column-gap: 20px;
  }
  .topbar__item:nth-child(1) {
    flex-basis: 100%;
    justify-content: center;
  }
  .spanish__panel {
    padding-top: 35px;
    padding-bottom: 35px;
  }
  .footer__inner {
    flex-direction: column;
    gap: 10px;
  }
}
