@import url("/fonts/fonts.css");

:root {
  --ink: #0b0b0a;
  --paper: #e9e4da;
  --muted: #8f897e;
  --brass: #a8843f;
  --brass-hi: #c39c52;
  --ring: #1f1e1c;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", Garamond, serif;
}

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

html { background: var(--ink); color-scheme: dark; }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: grid;
  grid-template-rows: 1fr auto;
}

a { color: inherit; }

:focus-visible { outline: 1px solid var(--brass-hi); outline-offset: 6px; }

/* ---------- Startseite ---------- */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
  isolation: isolate;
}

.mark { text-align: center; }

.logo { margin: 0; line-height: 0; }
.logo-wrap {
  position: relative;
  display: block;
  width: clamp(18.5rem, 64vw, 58rem);
  margin-inline: auto;
}
.logo img { display: block; width: 100%; height: auto; }

.mark p {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  color: var(--paper);
  text-wrap: balance;
}

/* Knopf: goldenes Glas. Der Lichtpunkt folgt der Maus (--x/--y, gesetzt in index.html). */
.cta {
  --x: 50%;
  --y: 0%;
  --lit: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
  padding: 0 2.75rem;
  border-radius: 999px;
  color: var(--brass-hi);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, rgb(255 236 196 / 0.16), transparent 55%),
    linear-gradient(rgb(195 156 82 / 0.10), rgb(195 156 82 / 0.03));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 0 0 1px rgb(195 156 82 / 0.55),
    inset 0 1px 0 0 rgb(255 240 210 / 0.45),
    inset 0 -1px 0 0 rgb(195 156 82 / 0.25),
    inset 0 -14px 24px -18px rgb(195 156 82 / 0.45),
    0 18px 40px -18px rgb(0 0 0 / 0.9);
  transition-property: color, box-shadow, scale;
  transition-duration: 260ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
/* Spiegelung, die beim Darüberfahren dem Zeiger folgt */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(160px 90px at var(--x) var(--y), rgb(255 232 186 / 0.28), transparent 70%);
  opacity: var(--lit);
  transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1);
}
/* Obere Glaskante */
.cta::after {
  content: "";
  position: absolute;
  inset: 1px 14% auto;
  height: 45%;
  border-radius: 999px 999px 40% 40% / 999px 999px 100% 100%;
  background: linear-gradient(rgb(255 246 228 / 0.11), rgb(255 246 228 / 0) 85%);
  pointer-events: none;
}
.cta:hover {
  --lit: 1;
  color: #e6c47e;
  box-shadow:
    inset 0 0 0 1px rgb(214 176 100 / 0.85),
    inset 0 1px 0 0 rgb(255 240 210 / 0.6),
    inset 0 -1px 0 0 rgb(195 156 82 / 0.35),
    inset 0 -16px 26px -16px rgb(195 156 82 / 0.6),
    0 22px 48px -18px rgb(0 0 0 / 0.95);
}
.cta:active { scale: 0.96; }

/* Ruhiges Ankommen: Schrift erscheint, Ringe zeichnen sich langsam */
@media (prefers-reduced-motion: no-preference) {
  .js .mark > * { opacity: 0; transform: translateY(8px); animation: rise 1200ms cubic-bezier(0.2, 0, 0, 1) forwards; }
  .js .mark p { animation-delay: 250ms; }
  .js .mark .cta { animation-delay: 500ms; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Fuss ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  padding: 1.5rem 1rem 2rem;
  font-size: 1rem;
  color: var(--muted);
}
.foot > * { padding: 0.5rem 0; line-height: 1.5; }
.foot a { text-decoration: none; transition-property: color; transition-duration: 150ms; }
.foot a:hover { color: var(--paper); }

/* ---------- Rechtliches ---------- */

.legal {
  width: min(100% - 2rem, 38rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
}
.legal .home {
  font-family: var(--caps);
  color: var(--brass);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.legal h1 {
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1.1;
  margin: 3rem 0 2rem;
}
.legal h2 { font-weight: 500; font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
.legal p, .legal address { margin: 0 0 1rem; font-style: normal; color: #cfc9bd; text-wrap: pretty; }
.legal a { text-decoration-color: var(--brass); text-underline-offset: 3px; }
