/*
Theme Name: Kastner Wartungsseite
Theme URI: https://cafekastner.at/
Author: Kastner Betriebe
Description: Temporäre Startseite der Kastner Betriebe mit Kontaktmöglichkeiten und Zimmeranfrage.
Version: 1.1.0
Text Domain: kastner-wartungsseite
*/

:root {
  --red: #820324;
  --red-deep: #5f001b;
  --gold: #c9b36f;
  --gold-soft: #e1d19e;
  --ink: #130b0e;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--red-deep);
  color: var(--gold-soft);
  font-family: Arial, Helvetica, sans-serif;
}

.maintenance-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  padding: clamp(24px, 4vw, 64px);
  background:
    radial-gradient(circle at 67% 46%, rgba(218, 189, 104, .13), transparent 24%),
    radial-gradient(circle at 15% 85%, rgba(24, 6, 11, .35), transparent 32%),
    linear-gradient(135deg, #8c0529 0%, var(--red) 52%, #6e001f 100%);
}

.maintenance-page::after {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  content: '';
  mix-blend-mode: soft-light;
  opacity: .35;
  pointer-events: none;
}

.frame {
  position: absolute;
  z-index: 2;
  inset: clamp(12px, 1.8vw, 28px);
  border: 1px solid rgba(225, 209, 158, .36);
  pointer-events: none;
}

.background-k {
  position: absolute;
  right: -4vw;
  bottom: -25vh;
  width: min(49vw, 720px);
  filter: sepia(1) saturate(.55) brightness(1.5);
  opacity: .055;
  pointer-events: none;
  transform: rotate(4deg);
}

.brand-bar, .message, .contacts, .houses { position: relative; z-index: 3; }

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-bar img {
  width: clamp(76px, 8vw, 118px);
  height: clamp(76px, 8vw, 118px);
  object-fit: contain;
  filter: drop-shadow(0 13px 24px rgba(38, 0, 10, .35));
}

.brand-bar p,
.eyebrow,
.progress strong,
.houses span {
  font-size: clamp(.55rem, .75vw, .68rem);
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.brand-bar p { margin: 0; opacity: .72; }

.message {
  width: min(1050px, 88vw);
  align-self: center;
  margin: clamp(50px, 7vh, 100px) auto;
  text-align: center;
}

.seal {
  position: relative;
  display: grid;
  width: clamp(105px, 10vw, 148px);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto clamp(32px, 4vw, 52px);
}

.seal span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(225, 209, 158, .45);
  transform: rotate(45deg);
  animation: seal-pulse 4.8s ease-in-out infinite;
}

.seal span::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(225, 209, 158, .2);
  content: '';
}

.seal img {
  position: relative;
  width: 42%;
  max-height: 67%;
  object-fit: contain;
  filter: sepia(1) saturate(.5) brightness(1.85) drop-shadow(1px 2px 0 rgba(40, 0, 10, .55));
  opacity: .92;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: clamp(22px, 3vw, 36px) 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7.4vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .86;
}

h1 em { color: var(--gold); font-weight: 400; }

.intro {
  width: min(680px, 100%);
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  opacity: .82;
}

.progress {
  display: flex;
  width: min(520px, 100%);
  align-items: center;
  gap: 18px;
  margin: clamp(34px, 5vw, 56px) auto 0;
}

.progress > span {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: rgba(225, 209, 158, .23);
}

.progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 55%;
  background: var(--gold-soft);
  animation: progress-breathe 3.6s ease-in-out infinite;
}

.progress strong { flex: none; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  padding: 13px 2px 10px;
  border-bottom: 1px solid rgba(225, 209, 158, .65);
  color: inherit;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-link b { font-size: 1rem; transition: transform 240ms ease; }
.contact-link:hover b, .contact-link:focus-visible b { transform: translateX(6px); }

.contacts {
  display: grid;
  width: min(1440px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto clamp(34px, 5vw, 66px);
  border: 1px solid rgba(225, 209, 158, .33);
  background: rgba(225, 209, 158, .28);
  scroll-margin-top: 24px;
}

.contacts article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(25px, 3.4vw, 48px);
  background: rgba(91, 0, 25, .88);
  backdrop-filter: blur(16px);
}

.contact-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.contact-heading > span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  opacity: .72;
}

.contact-heading p {
  margin: 0 0 9px;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.contact-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .95;
}

.contacts address {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(26px, 3vw, 38px);
  border-top: 1px solid rgba(225, 209, 158, .25);
  font-style: normal;
}

.contacts address a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px 18px 0;
  color: inherit;
  text-decoration: none;
}

.contacts address a + a {
  padding-left: 0;
  border-top: 1px solid rgba(225, 209, 158, .18);
}

.contacts address small {
  font-size: .51rem;
  font-weight: 800;
  letter-spacing: .14em;
  opacity: .62;
  text-transform: uppercase;
}

.contacts address strong {
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.9rem, 1.35vw, 1.12rem);
  font-weight: 400;
}

.inquiry-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding: 15px 18px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--red-deep);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 240ms ease, color 240ms ease;
}

.inquiry-link:hover,
.inquiry-link:focus-visible {
  background: transparent;
  color: var(--gold-soft);
}

.houses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(225, 209, 158, .25);
}

.houses span { line-height: 1.5; opacity: .62; }
.houses span:nth-child(2) { text-align: center; }
.houses span:last-child { text-align: right; }

@keyframes seal-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 209, 158, 0); transform: rotate(45deg) scale(1); }
  50% { box-shadow: 0 0 50px 5px rgba(225, 209, 158, .12); transform: rotate(45deg) scale(1.045); }
}

@keyframes progress-breathe {
  0%, 100% { width: 48%; opacity: .68; }
  50% { width: 68%; opacity: 1; }
}

@media (max-width: 1050px) {
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts article:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .maintenance-page { padding: 30px 28px 26px; }
  .frame { inset: 10px; }
  .brand-bar p { max-width: 130px; line-height: 1.5; text-align: right; }
  .message { width: 100%; margin-block: 50px; }
  .seal { width: 92px; margin-bottom: 36px; }
  h1 { font-size: clamp(3.1rem, 15vw, 5.2rem); }
  .intro { max-width: 500px; }
  .progress { flex-direction: column; gap: 13px; }
  .progress > span { width: min(320px, 88%); flex: none; }
  .contacts { grid-template-columns: 1fr; }
  .contacts article:last-child { grid-column: auto; }
  .contacts address { grid-template-columns: 1fr; }
  .contacts address a + a { padding-left: 0; border-top: 1px solid rgba(225, 209, 158, .18); border-left: 0; }
  .houses { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .houses span:nth-child(2), .houses span:last-child { text-align: center; }
  .background-k { right: -28vw; bottom: 3vh; width: 90vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
