/**
 * Footer: widget areas, per-page SEO text, legal bar.
 * Becomes assets/css/footer.css in the theme.
 */
.aw-footer {
  position: relative;
  background: var(--aw-navy);
  color: #d5d9e0;
  font-size: .95rem;
}
.aw-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--aw-spectrum, linear-gradient(90deg, var(--aw-escape), var(--aw-laser) 35%, var(--aw-golf) 68%, var(--aw-gamer)));
  box-shadow: 0 0 24px 2px var(--aw-spectrum-glow, rgb(200 24 220 / .3));
}

.aw-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem clamp(2rem, 4vw, 5rem);
  padding-block: clamp(3.5rem, 3rem + 3vw, 6rem);
}

.aw-widget + .aw-widget { margin-top: 2.25rem; }
/* Widget editor: every block is its own widget – a heading stays close to the block below it */
.aw-widget:has(> .wp-block-heading:only-child) + .aw-widget { margin-top: 0; }
.aw-widget__title {
  margin-bottom: .8rem;
  color: var(--aw-white);
  font-size: 1.6rem;
  letter-spacing: .03em;
}
.aw-widget p { margin-bottom: .5em; }
/* Headings added as blocks in the widget editor look like widget titles */
.aw-widget :is(h2, h3, h4).wp-block-heading {
  margin-bottom: .8rem;
  color: var(--aw-white);
  font-family: var(--aw-font-display);
  font-size: 1.6rem;
  letter-spacing: .03em;
}
.aw-widget a { color: var(--aw-white); }

/* Contact Form 7 (form code: see README "Kontaktformular") ------------------ */
.aw-form { display: grid; gap: .9rem; }
.aw-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.aw-field { display: grid; gap: .35rem; }
.aw-field label { color: var(--aw-mute); font-size: var(--aw-step--1); font-weight: 600; }
.aw-field .wpcf7-form-control-wrap { position: relative; display: block; }
.aw-field :is(input, textarea, select) {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: var(--aw-radius-s);
  background-color: rgb(255 255 255 / .04);
  color: var(--aw-white);
  font: inherit;
  transition: border-color var(--aw-dur-fast), background var(--aw-dur-fast);
}
.aw-field textarea { min-height: 128px; resize: vertical; }
.aw-field :is(input, textarea, select):focus { outline: none; border-color: var(--aw-white); background-color: rgb(255 255 255 / .07); }
/* Select: own chevron; the option list uses the dark colours too (Windows shows it on white otherwise) */
.aw-field select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 16px;
  cursor: pointer;
}
.aw-field select option { background: var(--aw-black); color: var(--aw-white); }

/* Themed dropdown (main.js, mouse devices): looks like the other fields, list in the theme colours */
.aw-select { position: relative; }
.aw-select__native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.aw-select__button {
  position: relative;
  display: block;
  width: 100%;
  padding: .75rem 2.6rem .75rem .9rem;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: var(--aw-radius-s);
  background: rgb(255 255 255 / .04);
  color: var(--aw-white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--aw-dur-fast), background var(--aw-dur-fast);
}
.aw-select__button.is-placeholder { color: var(--aw-mute); }
.aw-select__button::after {
  content: "";
  position: absolute; right: .9rem; top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  background: currentColor;
  color: var(--aw-white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--aw-dur) var(--aw-ease-out);
}
.aw-select__button:hover { border-color: rgb(255 255 255 / .32); }
.aw-select__button:focus-visible,
.aw-select.is-open .aw-select__button { outline: none; border-color: var(--aw-white); background: rgb(255 255 255 / .07); }
.aw-select.is-open .aw-select__button::after { transform: rotate(180deg); }
.aw-select__button.is-invalid { border-color: var(--aw-red-light); }
.aw-select__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 30;
  max-height: 18rem;
  margin: 0;
  padding: .35rem;
  overflow: auto;
  list-style: none;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: var(--aw-radius-s);
  background: var(--aw-ink);
  box-shadow: 0 18px 40px rgb(0 0 0 / .55);
  outline: none;
}
@media (prefers-reduced-motion: no-preference) {
  .aw-select.is-open .aw-select__list { animation: aw-select-in .18s var(--aw-ease-out); }
}
@keyframes aw-select-in { from { opacity: 0; transform: translateY(-4px); } }
.aw-select__option {
  position: relative;
  padding: .6rem .75rem .6rem 1.9rem;
  border-radius: 3px;
  color: #d5d9e0;
  cursor: pointer;
}
.aw-select__option.is-active { background: rgb(255 255 255 / .08); color: var(--aw-white); }
.aw-select__option[aria-selected="true"] { color: var(--aw-white); font-weight: 600; }
.aw-select__option[aria-selected="true"]::before {   /* red check in front of the chosen topic */
  content: "";
  position: absolute; left: .65rem; top: 50%;
  width: 12px; height: 7px;
  margin-top: -5px;
  border: solid var(--aw-red-light);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.aw-field .wpcf7-not-valid { border-color: var(--aw-red-light); }
.aw-field .wpcf7-not-valid-tip { margin-top: .3rem; color: #ff8a8a; font-size: var(--aw-step--1); }
.aw-form .wpcf7-submit { justify-self: start; cursor: pointer; }
.wpcf7-form .wpcf7-spinner { margin: 0 0 0 .75rem; vertical-align: middle; }
.wpcf7 form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  border: 1px solid var(--aw-line);
  border-radius: var(--aw-radius-s);
  color: var(--aw-white);
  font-size: .95rem;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: rgb(39 185 163 / .6); background: rgb(39 185 163 / .12); }
.wpcf7 form:is(.invalid, .failed, .spam, .aborted, .unaccepted) .wpcf7-response-output { border-color: rgb(228 40 40 / .6); background: rgb(228 40 40 / .1); }

/* Contact: address + small buttons (phone, e-mail, directions) */
p.aw-contact-address { margin-bottom: .9rem; }
.aw-footer .aw-widget .aw-chips { flex-direction: column; align-items: flex-start; }   /* footer: one below the other */
.aw-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.aw-chips .aw-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 38px;
  padding: .35rem .9rem .35rem .75rem;
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: 999px;
  color: var(--aw-white);
  font-size: .9rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--aw-dur) var(--aw-ease-out), border-color var(--aw-dur) var(--aw-ease-out);
}
.aw-chip svg { width: 16px; height: 16px; flex: none; color: var(--c, var(--aw-red)); transition: color var(--aw-dur) var(--aw-ease-out); }
.aw-chips .aw-chip:hover { border-color: var(--aw-white); background: rgb(255 255 255 / .08); color: var(--aw-white); }
.aw-chip:hover svg { color: var(--aw-white); }

/* Social */
.aw-social { display: flex; gap: .6rem; margin: 0; padding: 0; list-style: none; }
/* Hover: the circle fills with the network's own colour, the icon stays white */
.aw-social a {
  --brand: var(--aw-white);
  position: relative;
  isolation: isolate;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 50%;
  color: var(--aw-white);
  transition: border-color var(--aw-dur) var(--aw-ease-out), box-shadow var(--aw-dur) var(--aw-ease-out), transform var(--aw-dur) var(--aw-ease-spring);
}
.aw-social a::before {
  content: "";
  position: absolute; inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--brand);
  opacity: 0;
  transition: opacity var(--aw-dur) var(--aw-ease-out);
}
.aw-social a:hover { border-color: transparent; color: var(--aw-white); transform: translateY(-3px); }
.aw-social a:hover::before { opacity: 1; }
.aw-social svg { width: 18px; height: 18px; }
.aw-social .aw-social__facebook { --brand: #1877f2; }
.aw-social .aw-social__youtube { --brand: #ff0000; }
.aw-social .aw-social__instagram { --brand: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.aw-social .aw-social__tiktok { --brand: #000; }
.aw-social .aw-social__tiktok:hover { box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }   /* TikTok's cyan/red offset */

/* Opening hours: one row per day; today's row (set by JS) glows green with a dot at the end */
.aw-hours { margin: 0 0 1.25rem; display: grid; grid-template-columns: auto 1fr; }
.aw-hours__row {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.aw-hours dt, .aw-hours dd { margin: 0; padding: .45rem 0; }
.aw-hours dt { padding-right: 1.5rem; color: var(--aw-white); font-weight: 600; }
.aw-hours dd { font-variant-numeric: tabular-nums; }
.aw-hours .is-closed dd { color: var(--aw-mute); }
.aw-hours__row.is-today {
  z-index: 1;
  margin-inline: -.6rem;
  padding-inline: .6rem;
  border-bottom-color: transparent;
  border-radius: var(--aw-radius-s);
  background: rgb(39 185 163 / .12);
  box-shadow: 0 0 0 1px rgb(39 185 163 / .45), 0 0 22px rgb(39 185 163 / .28);
  color: var(--aw-white);
}
.aw-hours__row.is-today dd { padding-right: 1.25rem; color: var(--aw-white); font-weight: 600; }
.aw-hours__row.is-today::after {
  content: "";
  position: absolute;
  right: .7rem; top: 50%;
  width: 7px; height: 7px;
  translate: 0 -50%;
  border-radius: 50%;
  background: var(--aw-golf);
  box-shadow: 0 0 0 3px rgb(39 185 163 / .25), 0 0 10px var(--aw-golf);
}
.aw-footer__note { font-size: var(--aw-step--1); color: var(--aw-mute); }
.aw-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.aw-widget > .aw-badges:first-child { margin-top: 0; }   /* own widget: the widget gap is enough */

/* Fotos (escape room photos): small card with camera icon and button */
.aw-photos {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem 1rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: var(--aw-radius-m);
  background: rgb(0 0 0 / .18);
}
.aw-photos__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--aw-escape, var(--aw-red));
  color: var(--aw-white);
}
.aw-photos__icon svg { width: 22px; height: 22px; }
.aw-photos .aw-photos__title { margin: 0; font-family: var(--aw-font-display); font-size: 1.45rem; line-height: 1.1; }
.aw-photos .aw-photos__text { margin: 0; font-size: var(--aw-step--1); color: var(--aw-mute); }
.aw-photos .aw-btn { grid-column: 2; justify-self: start; margin-top: .6rem; }
.aw-badge { width: 64px; }

/* Google rating badge (same data as the reviews block) */
.aw-gbadge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem .6rem .75rem;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: var(--aw-radius-m);
  background: rgb(255 255 255 / .04);
  text-decoration: none;
  transition: border-color var(--aw-dur-fast), box-shadow var(--aw-dur) var(--aw-ease-out), transform var(--aw-dur) var(--aw-ease-out);
}
.aw-widget .aw-gbadge { color: var(--aw-white); }
.aw-gbadge:hover {
  border-color: rgb(255 255 255 / .3);
  box-shadow: 0 12px 40px -12px rgb(251 188 4 / .35);
  transform: translateY(-2px);
}
.aw-widget .aw-gbadge:hover { color: var(--aw-white); }
.aw-gbadge__logo { width: 28px; height: 28px; }
.aw-gbadge__score { font-family: var(--aw-font-display); font-size: 2.3rem; font-weight: 600; line-height: .8; padding-top: .12em; }
.aw-gbadge__meta { display: grid; gap: .2rem; font-size: .78rem; color: var(--aw-mute); line-height: 1.2; }

/* Per-page SEO text (meta box on each page; hidden when empty) ---------- */
.aw-seo {
  border-top: 1px solid rgb(255 255 255 / .08);
}
.aw-seo details { padding-block: 1.25rem; }
.aw-seo summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--aw-white);
  font-weight: 600;
}
.aw-seo summary::-webkit-details-marker { display: none; }
.aw-seo summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--aw-dur) var(--aw-ease-out);
}
.aw-seo details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.aw-seo__body { columns: 2 22rem; column-gap: 3rem; padding-top: 1rem; font-size: var(--aw-step--1); color: var(--aw-mute); }
.aw-seo__body h2, .aw-seo__body h3 { font-size: 1.4rem; color: #d5d9e0; break-after: avoid; }
@supports (interpolate-size: allow-keywords) {
  .aw-seo details { interpolate-size: allow-keywords; }
  .aw-seo details::details-content { height: 0; overflow: clip; transition: height var(--aw-dur) var(--aw-ease-out), content-visibility var(--aw-dur) allow-discrete; }
  .aw-seo details[open]::details-content { height: auto; }
}

/* Legal bar */
.aw-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / .08);
  font-size: var(--aw-step--1);
  color: var(--aw-mute);
}
.aw-footer__bottom { align-items: center; }
.aw-footer__bottom p { margin: 0; }
.aw-footer__book { margin-top: 1.75rem; }   /* right column, below the widgets */
@media (max-width: 700px) {
  .aw-footer__bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
.aw-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
/* Legal links: the underline fades in on hover (it is always there, just transparent) */
.aw-legal a { text-decoration-line: underline; text-decoration-color: transparent; }
.aw-legal a:hover { color: var(--aw-white); text-decoration-color: currentColor; }

/* Tablets: contact + opening hours side by side, social + badges below */
@media (max-width: 1000px) {
  .aw-footer__grid { grid-template-columns: 1fr 1fr; }
  .aw-footer__col--footer-3 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .aw-footer__grid { grid-template-columns: 1fr; }
  .aw-form__row { grid-template-columns: 1fr; }
}

/* Today closed (e.g. Monday, Tuesday): the row glows red instead of green */
.aw-hours__row.is-today.is-closed {
  background: rgb(200 0 0 / .14);
  box-shadow: 0 0 0 1px rgb(228 40 40 / .5), 0 0 22px rgb(200 0 0 / .3);
}
.aw-hours__row.is-today.is-closed dd { color: #ffb3b3; }
.aw-hours__row.is-today.is-closed::after { background: var(--aw-red-light); box-shadow: 0 0 0 3px rgb(228 40 40 / .25), 0 0 10px var(--aw-red-light); }

