/* Ercolus – Wartungsseite
   Farben und Schrift angelehnt an die Live-Seite (Blocksy-Theme). */

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-700.woff2") format("woff2");
}

:root {
  --gold: #d7b740;
  --gold-dark: #b8891a;
  --gold-soft: #cfa63d;
  --ink: #131117;
  --ink-2: #1c1a21;
  --steel: #687279;
  --silver: #d9dadc;
  --white: #fbfbfb;
  --font: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--ink);
  color: var(--silver);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover,
a:focus-visible {
  color: var(--white);
}
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Hintergrund: Lichtkegel + Schachbrett-Boden ---------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 22%, rgba(215, 183, 64, 0.16), transparent 70%),
    linear-gradient(180deg, #0d0c10 0%, #1a181e 55%, #0d0c10 100%);
}

/* Stahlträger links und rechts */
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(217, 218, 220, 0.04) 22px 24px),
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(217, 218, 220, 0.04) 22px 24px);
  -webkit-mask-image: linear-gradient(90deg, #000 0 9%, transparent 16% 84%, #000 91%);
  mask-image: linear-gradient(90deg, #000 0 9%, transparent 16% 84%, #000 91%);
}

.floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 60%;
  background-image: conic-gradient(#e9e9ea 25%, #0e0d11 0 50%, #e9e9ea 0 75%, #0e0d11 0);
  background-size: 120px 120px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: 50% 100%;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}

/* ---------- Kopf und Fuß ---------- */

.site-header {
  padding: 22px 16px;
  border-bottom: 1px solid rgba(215, 183, 64, 0.25);
  background: rgba(19, 17, 23, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.site-header a {
  display: block;
  width: min(360px, 80vw);
  margin: 0 auto;
}
.site-header img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  margin-top: auto;
  padding: 22px 16px 26px;
  border-top: 1px solid rgba(215, 183, 64, 0.25);
  background: rgba(19, 17, 23, 0.85);
  text-align: center;
  font-size: 14px;
  color: var(--steel);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-bottom: 8px;
}
.site-footer nav a {
  color: var(--silver);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.site-footer nav a:hover,
.site-footer nav a:focus-visible,
.site-footer nav a[aria-current="page"] {
  color: var(--gold);
}
.site-footer p {
  margin: 0;
}

/* ---------- Wartungs-Hinweis (Startseite) ---------- */

.maintenance {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 16px 56px;
  text-align: center;
}

.crest {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 6px 22px rgba(215, 183, 64, 0.35));
}

.maintenance h1 {
  margin: 0 0 40px;
  font-size: clamp(28px, 6vw, 54px);
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.8);
  text-wrap: balance;
}
.maintenance h1 span {
  color: var(--gold);
}

.notes {
  list-style: none;
  margin: 0 auto 40px;
  padding: 0;
  max-width: 680px;
  display: grid;
  gap: 14px;
  text-align: left;
}
.notes li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: rgba(19, 17, 23, 0.72);
  border: 1px solid rgba(217, 218, 220, 0.14);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.notes svg {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  color: var(--silver);
}
.notes strong {
  display: block;
  font-size: clamp(16px, 2.6vw, 21px);
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}
.notes strong + span {
  display: block;
  margin-top: 4px;
  color: var(--silver);
}
.notes .date {
  color: var(--gold);
  white-space: nowrap;
}

.thanks {
  margin: 0 0 14px;
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 500;
  color: var(--white);
}

.contact {
  margin: 0 auto;
  max-width: 560px;
  color: var(--silver);
}
.contact a {
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Rechtstexte ---------- */

.legal {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 16px 64px;
}
.legal-card {
  padding: clamp(22px, 5vw, 48px);
  background: rgba(19, 17, 23, 0.86);
  border: 1px solid rgba(217, 218, 220, 0.14);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
}
.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.2;
  color: var(--white);
  text-transform: uppercase;
}
.legal .stand {
  margin: 0 0 28px;
  color: var(--steel);
  font-size: 14px;
}
.legal h2 {
  margin: 34px 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--gold);
}
.legal p,
.legal ul,
.legal address {
  margin: 0 0 14px;
}
.legal address {
  font-style: normal;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 4px;
}
.legal a {
  overflow-wrap: anywhere;
}
.back {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 520px) {
  .notes li {
    gap: 14px;
    padding: 14px 16px;
  }
  .notes svg {
    width: 36px;
    height: 36px;
  }
  .crest {
    width: 104px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .maintenance > * {
    animation: rise 0.7s ease-out both;
  }
  .maintenance > *:nth-child(2) { animation-delay: 0.08s; }
  .maintenance > *:nth-child(3) { animation-delay: 0.16s; }
  .maintenance > *:nth-child(4) { animation-delay: 0.24s; }
  .maintenance > *:nth-child(5) { animation-delay: 0.32s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
