/* ============================================================
   3D Kristallblumen – Stylesheet
   Farben und Formen abgeleitet aus den Epoxidharz-Werken:
   Puderblau (Leinwandgrund), Porzellan (Blüten), Gold (Blattgold).
   ============================================================ */

@import url("fonts.css");

:root {
  --blau: #d3dfe2;
  --blau-tief: #b9cbd1;
  --porzellan: #f5f1ea;
  --gold: #c6a15b;
  --gold-hell: #e6cf95;
  --bronze: #8a6b32;
  --tinte: #2b2622;
  --tinte-weich: color-mix(in oklab, var(--tinte) 68%, var(--blau));

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 3.5vw, 3.5rem);
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@view-transition { navigation: auto; }

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tinte);
  background-color: var(--blau);
  background-image:
    radial-gradient(60% 45% at 12% 8%, color-mix(in oklab, var(--porzellan) 85%, transparent) 0%, transparent 70%),
    radial-gradient(45% 40% at 92% 92%, color-mix(in oklab, var(--gold-hell) 22%, transparent) 0%, transparent 70%),
    radial-gradient(70% 60% at 70% 20%, color-mix(in oklab, var(--blau-tief) 60%, transparent) 0%, transparent 70%);
  -webkit-font-smoothing: antialiased;
}

/* feines Papier-/Harzkorn, rein dekorativ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--gold-hell); color: var(--tinte); }

a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--bronze); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; border-radius: 2px; }

/* ---------- Seitenrahmen ---------- */

.seite {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-inline: var(--gutter);
}

.kopf, .fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(.9rem, 2vh, 1.4rem);
  font-size: .9rem;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
}
.marke svg { width: 1.9rem; height: 1.9rem; flex: none; }

.kopf-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: .04em;
}
.kopf-link svg { width: 1.1rem; height: 1.1rem; }
.kopf-link:hover { color: var(--bronze); }

.fuss {
  border-top: 1px solid color-mix(in oklab, var(--tinte) 14%, transparent);
  color: var(--tinte-weich);
}
.fuss nav { display: flex; gap: 1.4rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--bronze); }

/* ---------- Startseite: Bühne ---------- */

.buehne {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(.5rem, 2vh, 2rem);
}

.text { max-width: 34rem; }

.titel {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 6.6vw, 6rem);
  line-height: .96;
  letter-spacing: -.012em;
  margin: 0 0 clamp(1rem, 2.5vh, 1.8rem);
  text-wrap: balance;
}
.titel em { font-style: italic; font-weight: 300; }

.intro {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  margin: 0 0 clamp(1.2rem, 3vh, 2rem);
  text-wrap: pretty;
  max-width: 30rem;
}

.merkmale {
  list-style: none;
  margin: 0 0 clamp(1.4rem, 3.5vh, 2.4rem);
  padding: 0;
  display: grid;
  gap: .55rem;
}
.merkmale li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-weight: 400;
}
.merkmale svg { width: .8rem; height: .8rem; flex: none; translate: 0 .05rem; }

.aktionen { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: clamp(1.2rem, 3vh, 2rem); }

.knopf {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--tinte);
  font: inherit;
  font-weight: 400;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), translate .25s var(--ease-out);
}
.knopf svg { width: 1.1rem; height: 1.1rem; }
.knopf-primaer { background: var(--tinte); color: var(--porzellan); }
.knopf-primaer:hover { background: var(--bronze); border-color: var(--bronze); }
.knopf-sekundaer:hover { border-color: var(--bronze); color: var(--bronze); }

.kontakt {
  margin: 0;
  font-size: .92rem;
  color: var(--tinte-weich);
  display: grid;
  gap: .2rem;
}
.kontakt a { text-decoration: none; }
.kontakt a:hover { color: var(--bronze); text-decoration: underline; }

/* ---------- Leinwand ---------- */

.werk {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 30%;
  --gy: 20%;
  justify-self: center;
  width: min(100%, 46vh * 0.68, 30rem);
  aspect-ratio: 68 / 100;
  perspective: 1400px;
}

@media (min-height: 700px) { .werk { width: min(100%, 70vh * 0.68, 34rem); } }

.leinwand {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out);
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--gold-hell) 70%, white),
    0 30px 60px -20px color-mix(in oklab, var(--tinte) 45%, transparent),
    0 12px 24px -12px color-mix(in oklab, var(--tinte) 35%, transparent);
  background: var(--porzellan);
  overflow: hidden;
}

/* vergoldete Kante wie beim Original */
.leinwand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid color-mix(in oklab, var(--gold) 65%, white);
  box-shadow: inset 0 0 0 4px color-mix(in oklab, var(--gold-hell) 35%, transparent);
  border-radius: inherit;
}

/* Harz-Glanz: Lichtreflex, der dem Zeiger folgt */
.leinwand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(38% 26% at var(--gx) var(--gy), rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(115deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, .06) 100%);
}

.leinwand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.leinwand img.aktiv { opacity: 1; }

.werk-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: .9rem;
  font-size: .85rem;
  color: var(--tinte-weich);
}
.werk-nav button {
  appearance: none;
  border: 0;
  padding: .4rem;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.werk-nav button::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: color-mix(in oklab, var(--tinte) 25%, transparent);
  transition: background-color .3s, scale .3s;
}
.werk-nav button[aria-current="true"]::before { background: var(--bronze); scale: 1.35; }
.werk-titel { min-width: 9rem; font-family: var(--serif); font-size: 1.05rem; font-style: italic; }

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

.artikel {
  max-width: 44rem;
  width: 100%;
  margin-inline: auto;
  padding-block: clamp(1.5rem, 5vh, 4rem);
}
.artikel h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 .4em;
  text-wrap: balance;
}
.artikel h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 2em 0 .5em;
}
.artikel h3 { font-weight: 500; font-size: 1.05rem; margin: 1.6em 0 .4em; }
.artikel p, .artikel li { max-width: 66ch; }
.artikel p { margin: 0 0 1em; }
.artikel ul { padding-left: 1.2rem; }
.artikel address { font-style: normal; margin-bottom: 1em; }
.artikel .stand { color: var(--tinte-weich); font-size: .9rem; }
.artikel .hinweis {
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--gold);
  background: color-mix(in oklab, var(--porzellan) 70%, transparent);
  border-radius: 0 4px 4px 0;
}
.zurueck { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; font-size: .9rem; }
.zurueck:hover { color: var(--bronze); }

/* ---------- Responsiv ---------- */

@media (max-width: 880px) {
  .seite { min-height: 100dvh; }
  .buehne {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-block: .5rem 1.5rem;
    align-content: start;
  }
  .werk { order: -1; width: min(100%, 58vh * 0.68, 22rem); }
  .text { max-width: none; }
  .titel { font-size: clamp(2.6rem, 11vw, 4rem); }
  .kopf-link span { display: none; }
  .fuss { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

@media (max-width: 480px) {
  .aktionen .knopf { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .leinwand { transition: none; transform: none; }
  .leinwand::after { transition: none; }
  .leinwand img { transition: opacity .01s; }
  .knopf { transition: none; }
}

@media print {
  body::before { display: none; }
  body { background: white; }
  .werk-nav, .aktionen { display: none; }
}
