/* Startseite: "Bald für Sie da" – eine Ladentür mit Schild */

:root {
  --wand: #0e1f1b;
  --wand-hell: #17302a;
  --tuer: #1e4a3d;
  --tuer-dunkel: #153a2f;
  --rahmen: #0a1613;
  --messing: #c9a24b;
  --messing-hell: #e8cf8c;
  --messing-dunkel: #8d6c25;
  --papier: #f4ecd8;
  --tinte: #17382f;
  --licht: #ffd98a;
  --licht-rand: #e8a95a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body.home {
  display: block;
  margin: 0;
  min-height: 100svh;
  padding: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, var(--wand-hell) 0%, transparent 70%),
    var(--wand);
  color: var(--papier);
  font-family: var(--sans);
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.scene {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 48px 16px 40px;
}

/* ---------- Tür ---------- */

.door-wrap {
  position: relative;
  padding-bottom: 14px;
}

/* Lichtschein, der durch das Glas auf den Boden fällt */
.door-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  width: 120%;
  height: 120px;
  transform: translateX(-50%);
  /* Lichtschein: an der Schwelle am hellsten, nach vorn und zur Seite weich auslaufend */
  background: radial-gradient(ellipse 55% 100% at 50% 0%, rgba(255, 217, 138, 0.45), transparent 100%);
  pointer-events: none;
  animation: atmen 6s ease-in-out infinite;
}

.door {
  position: relative;
  width: clamp(230px, min(88vw, 430px, calc((100svh - 300px) * 0.56)), 430px);
  aspect-ratio: 3 / 5.3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.18)),
    var(--tuer);
  border-radius: 6px 6px 0 0;
  box-shadow:
    0 0 0 12px #2a5a4c,
    0 0 0 14px var(--rahmen),
    0 0 90px 10px rgba(255, 190, 90, 0.16);
}

.glass {
  position: absolute;
  inset: 7% 11% auto 11%;
  height: 46%;
  overflow: hidden;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 3px, rgba(120, 70, 10, 0.1) 3px 6px),
    radial-gradient(ellipse at 50% 35%, var(--licht) 0%, #f6c474 55%, var(--licht-rand) 100%);
  box-shadow:
    inset 0 0 0 5px var(--messing-dunkel),
    inset 0 0 0 7px var(--messing),
    inset 0 0 28px rgba(90, 40, 0, 0.45);
}

.panel {
  position: absolute;
  left: 11%;
  right: 11%;
  height: 17%;
  border-radius: 2px;
  background: var(--tuer);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.06);
}
.panel--1 { top: 58%; }
.panel--2 { top: 78%; }

.handle {
  position: absolute;
  right: 5%;
  top: 55%;
  width: 2.6%;
  min-width: 8px;
  height: 16%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--messing-dunkel), var(--messing-hell) 45%, var(--messing));
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.55);
}

.lock {
  position: absolute;
  right: 4.2%;
  top: 74%;
  width: 5.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1a1208 0 14%, transparent 15%),
    radial-gradient(circle at 35% 30%, var(--messing-hell), var(--messing-dunkel));
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.55);
}

.step {
  position: absolute;
  left: -26px;
  right: -26px;
  bottom: 0;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(#3b4a46, #26322f);
  box-shadow: 0 4px 0 #0a1210;
}

/* ---------- Schild ---------- */

.sign {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 78%;
  margin-left: -39%;
  transform-origin: 50% 0;
  animation: schwingen 3.6s ease-in-out infinite alternate;
}

.sign::before,
.sign::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 60px;
  background: var(--messing-dunkel);
  transform-origin: 50% 0;
}
.sign::before { transform: rotate(58deg); }
.sign::after  { transform: rotate(-58deg); }

.hook {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--messing-hell), var(--messing-dunkel));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.schild {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  display: block;
  box-sizing: border-box;
  position: relative;
  margin-top: 32px;
  width: 100%;
  aspect-ratio: 1.25 / 1;
  cursor: pointer;
  perspective: 700px;
  container-type: inline-size;
  -webkit-tap-highlight-color: transparent;
}
.schild:focus-visible {
  outline: 3px solid var(--messing-hell);
  outline-offset: 5px;
}

.flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.schild[aria-pressed="true"] .flip { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  color: var(--tinte);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.5), transparent 55%),
    var(--papier);
  border: 3px solid var(--messing);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 3px var(--papier),
    inset 0 0 0 4px var(--messing-dunkel),
    0 10px 18px rgba(60, 30, 0, 0.45);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.face--back { transform: rotateY(180deg); }

.face .klein {
  font-family: var(--sans);
  font-size: 4.6cqw;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--messing-dunkel);
  font-weight: 700;
}

.face .klein--lang {
  font-size: 3.4cqw;
  letter-spacing: 0.1em;
}

.face .gross {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 15.5cqw;
  line-height: 1.02;
  margin: 4px 0;
}

/* ---------- Text & Messingschilder ---------- */

.text {
  text-align: center;
  max-width: 40ch;
}

.name {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--messing-hell);
}
.name span {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--papier);
}

.lead {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  line-height: 1.35;
  color: var(--papier);
}

.hint {
  margin: 0;
  font-size: 0.82rem;
  color: #8fa59e;
}

.plates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.plate {
  position: relative;
  min-width: 150px;
  padding: 11px 30px;
  text-align: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tinte);
  background: linear-gradient(170deg, var(--messing-hell), var(--messing) 45%, #b08a35);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(90, 60, 0, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s, filter 0.2s;
}
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6e8b8, var(--messing-dunkel));
  box-shadow: 0 0 0 1px rgba(60, 40, 0, 0.4);
}
.plate::before { left: 11px; }
.plate::after  { right: 11px; }
.plate:hover { filter: brightness(1.08); transform: translateY(-1px); }
.plate:active { transform: translateY(1px); }
.plate:focus-visible { outline: 3px solid var(--papier); outline-offset: 3px; }

/* ---------- Bewegung ---------- */

@keyframes schwingen {
  from { transform: rotate(-4.5deg); }
  to   { transform: rotate(4.5deg); }
}

@keyframes atmen {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sign, .door-wrap::after { animation: none; }
  .flip { transition: none; }
}
