@font-face {
  font-family: "ABC Arizona Flare Regular";
  src: url("../fonts/ABCArizonaFlare-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "ABC Diatype Light";
  src: url("../fonts/ABCDiatype-Light.woff2") format("woff2");
}

:root {
  --color1: #f6f4ed;
  --color2: #b4b496;
  --color3: #dadbce;
  --color4: #e4dbd0;
  --white: #ffffff;
  --black: #000000;
  --grey: rgba(0, 0, 0, 0.4);
}

html,
body {
  height: 100%;
}

html {
  background-color: var(--color1);
  display: block;
  color: var(--color1);
}

body:has(.textImage) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

* {
  padding: 0;
  margin: 0;
  line-height: 0;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
body::-webkit-scrollbar {
  display: none;
}

h1,
h2,
h3,
p,
a {
  font-family: "ABC Diatype Light", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--black);
}

.arizona {
  font-family: "ABC Arizona Flare Regular", Helvetica, Arial, sans-serif;
}

a:link,
a:visited {
  text-decoration: none;
  cursor: pointer;
}

.padded,
.text {
  padding: 26px 32px;
}

.textImage {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.image {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.text,
.info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.info {
  justify-content: unset;
  gap: 24px;
}

.openHours {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 32px;
  width: 100%;
  max-width: 360px;
  height: 3.6em;
  font-size: 20px;
}

.day {
  flex: 0 0 auto;
  transition: flex-grow 220ms ease;
}

.day.is-active {
  flex-grow: 1;
}

.dayButton {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  font-size: inherit;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Unsichtbar vergrößerte Klickfläche (ohne das Layout zu verändern).
   Horizontal 14px je Seite, damit bei 32px Gap keine Überlappung entsteht. */
.dayButton::before {
  content: "";
  position: absolute;
  inset: -12px -14px;
}

.grey,
.contact p {
  color: var(--grey);
}

.dayButton:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.dayHours {
  display: grid;
  grid-template-rows: 0fr;
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    /* grid-template-rows 220ms ease, */ opacity 220ms ease;
}

.day.is-active .dayHours {
  width: 100%;
}

.dayHours.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.dayHoursInner {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.contact a {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
}

.contactLabel {
  line-height: 1.2;
}

.imprintButton {
  position: absolute;
  bottom: 26px;
  right: 32px;
  font-size: 15px;
}
.banner {
  position: absolute;
  top: 0;
  height: auto;
  width: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 8px 0;
  background-color: #b0a9a1;
}

/* Text pulses between 100% and 50% opacity, one full cycle in 2s */
.bannerText {
  line-height: 1;
  animation: bannerPulse 1.2s ease-in-out infinite alternate;
}

@keyframes bannerPulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.1;
  }
}

.imprint p,
.imprint a,
.imprint li {
  text-transform: none;
}

/* Abstand zwischen Absätzen/Überschriften aus dem Panel
   (global ist margin: 0 gesetzt) */
.imprint > * + * {
  margin-top: 1.2em;
}

.imprint a {
  overflow-wrap: anywhere;
}

picture {
  display: block;
  width: 100%;
  height: 100%;
}

img,
video {
  display: block;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  object-fit: cover;
}

@media screen and (min-width: 2000px) {
}

@media screen and (max-width: 1400px) {
}

@media screen and (max-width: 1000px) {
  h1,
  h2,
  h3,
  p,
  a,
  .dayButton,
  .openHours {
    font-size: 15px;
  }

  .textImage {
    grid-auto-flow: row;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  .text {
    min-height: 0;
    height: auto;
  }
  img,
  video {
    max-height: 50vh;
  }

  .padded,
  .text {
    padding: 20px 24px;
  }
  .info {
    gap: 16px;
  }

  .imprintButton {
    bottom: 20px;
    left: 24px;
  }
}

@media screen and (max-width: 600px) {
  /* iOS Safari: the layout viewport ends in the middle of the floating
     browser bar. The page grows by the part of the bar below that line
     (half the bar plus the gap to the screen edge) so the image reaches
     the bottom edge. Scrolling stays disabled. */
  :root {
    --browserBarOverlap: 60px;
  }

  html:has(.textImage),
  body:has(.textImage) {
    height: auto;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .textImage {
    height: calc(100vh + var(--browserBarOverlap));
    height: calc(100lvh + var(--browserBarOverlap));
    /* Text keeps its half; only the image grows behind the bar */
    grid-template-rows: 50vh minmax(0, 1fr);
    grid-template-rows: 50lvh minmax(0, 1fr);
  }

  .textImage .imprintButton {
    /* Overlap + upper half of the bar (~30px) + 20px spacing */
    bottom: calc(var(--browserBarOverlap) + 50px);
  }

  .textImage img,
  .textImage video {
    max-height: none;
  }
}

@media screen and (max-width: 400px) {
  .openHours {
    max-width: unset;
  }
}

@media screen and (max-width: 320px) {
}

@media (prefers-reduced-motion: reduce) {
  .day,
  .dayHours {
    transition: none;
  }

  .bannerText {
    animation: none;
  }
}
