/* Jans Produktschriften: das Zeichen ā ist das Herz */
@font-face { font-family: "PC Parisienne"; src: url("fonts/parisienne.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PC Sacramento"; src: url("fonts/sacramento.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PC Amarillo"; src: url("fonts/amarillo.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PC Outfit"; src: url("fonts/outfit.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic-latin.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }

:root {
  --nacht: #140f0b;
  --nacht-2: #1f1813;
  --kerze: #f2e8da;
  --kerze-2: #d6c8b5;
  --gold: #d9b263;
  --leinen: #efe5d7;
  --rose: #ecd8ce;
  --tinte: #2b2019;
  --tinte-2: #5b4a3d;
  --s1: clamp(1rem, 2vw, 1.5rem);
  --s2: clamp(2rem, 4vw, 3.5rem);
  --s3: clamp(4rem, 9vw, 8rem);
  --rand: clamp(1.25rem, 5vw, 5rem);
  --name: "PC Parisienne", cursive;
}
:root[data-stil="sacramento"] { --name: "PC Sacramento", cursive; }
:root[data-stil="amarillo"] { --name: "PC Amarillo", cursive; }
:root[data-stil="outfit"] { --name: "PC Outfit", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--kerze);
  font: 400 1.125rem/1.6 "Newsreader", Georgia, serif;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-weight: 400; line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 var(--s1); text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
p { margin: 0 0 1em; max-width: 34em; }
em { font-style: italic; color: var(--akzent, var(--gold)); }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--nacht); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.knopf {
  display: inline-block; text-decoration: none; white-space: nowrap;
  background: var(--gold); color: var(--nacht);
  padding: 1rem 1.6rem; border-radius: 2px;
  font-size: 1.05rem; font-weight: 500;
  transition: background-color .2s;
}
.knopf:hover { background: #e9c982; }

/* Kopf */
.kopf {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--rand);
}
.marke { font-size: 1.35rem; text-decoration: none; }
.marke span { color: var(--gold); font-style: italic; }
.kopf-shop { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* Hero: der Name als goldenes Objekt im Kerzenlicht */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
  background: var(--nacht) url("img/kerzen.webp") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 15, 11, .55) 0%, rgba(20, 15, 11, 0) 30%, rgba(20, 15, 11, .2) 60%, var(--nacht) 100%);
}
.hero-buehne { position: relative; min-height: 52svh; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-ersatz {
  position: absolute; inset: 0; display: grid; place-items: center; margin: 0; max-width: none;
  font: 400 clamp(4.5rem, 15vw, 13rem)/1.1 var(--name); color: var(--gold);
  text-shadow: 0 0 .4em rgba(217, 178, 99, .25); white-space: nowrap;
}
.mit-3d .hero-ersatz { opacity: 0; transition: opacity .6s; }
.hero-fuss {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s2);
  padding: 0 var(--rand) clamp(2rem, 5vh, 3.5rem);
}
.hero h1 { font-size: clamp(2rem, 3.4vw, 3.3rem); max-width: 13em; margin: 0; }
.probe { display: grid; grid-template-columns: minmax(12rem, 17rem) auto; column-gap: 1.25rem; row-gap: .9rem; align-items: end; }
.probe label { grid-column: 1; font-size: 1rem; color: var(--kerze-2); }
.probe input {
  grid-column: 1; grid-row: 2;
  font: italic 400 1.6rem/1.3 "Newsreader", Georgia, serif; color: var(--kerze);
  background: transparent; border: 0; border-bottom: 1px solid var(--gold); border-radius: 0;
  padding: .35rem 0 .45rem; width: 100%; min-width: 0;
}
.probe input:focus { outline: none; border-bottom-width: 2px; padding-bottom: calc(.45rem - 1px); }
.probe input:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.hero-knoepfe { grid-column: 2; grid-row: 2; display: flex; gap: .75rem; align-items: center; }
.knopf-zweit { background: transparent; color: var(--kerze); box-shadow: inset 0 0 0 1px rgba(242, 232, 218, .45); }
.knopf-zweit:hover { background: rgba(242, 232, 218, .08); }
.farbwahl { grid-column: 1 / -1; grid-row: 4; border: 0; margin: 0; padding: 0; display: flex; gap: 1.1rem; align-items: center; }
.farbwahl legend { float: left; font-size: 1rem; color: var(--kerze-2); margin-right: .2rem; padding: 0; }
.farbwahl label { position: relative; display: flex; align-items: center; gap: .45rem; cursor: pointer; font-size: 1rem; color: var(--kerze-2); }
.farbwahl label::before { content: ""; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--punkt); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.farbwahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.farbwahl label:has(input:checked) { color: var(--kerze); }
.farbwahl label:has(input:checked)::before { box-shadow: 0 0 0 2px var(--nacht), 0 0 0 3px var(--gold); }
.farbwahl label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.farbe-gold { --punkt: linear-gradient(135deg, #f0d48a, #b8862e); }
.farbe-silber { --punkt: linear-gradient(135deg, #f4f5f6, #9aa0a6); }
.farbe-schwarz { --punkt: #151515; }
.farbe-weiss { --punkt: #f6f3ec; }
.stil { grid-column: 1 / -1; grid-row: 3; border: 0; margin: 0; padding: 0; display: flex; gap: 1.4rem; align-items: baseline; }
.stil legend { float: left; font-size: 1rem; color: var(--kerze-2); margin-right: .2rem; padding: 0; }
.stil label { position: relative; cursor: pointer; font-size: 1.9rem; line-height: 1.2; color: var(--kerze-2); padding: 0 .1rem .15rem; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.stil label:hover { color: var(--kerze); }
.stil input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.stil label:has(input:checked) { color: var(--gold); border-bottom-color: var(--gold); }
.stil label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.stil-parisienne { font-family: "PC Parisienne", cursive; }
.stil-sacramento { font-family: "PC Sacramento", cursive; }
.stil-amarillo { font-family: "PC Amarillo", cursive; font-size: 1.45rem !important; }
.stil-outfit { font-family: "PC Outfit", sans-serif; font-size: 1.35rem !important; }

/* Produktwelten: stehende Bildbühne, vorbeiziehende Texte, Hintergrund wechselt mit */
.welten { --bg: var(--nacht-2); --fg: var(--kerze); --fg-2: var(--kerze-2); background: var(--bg); color: var(--fg); transition: background-color .8s, color .8s; }
.welten[data-aktiv="kork"] { --bg: var(--leinen); --fg: var(--tinte); --fg-2: var(--tinte-2); --akzent: #8a5326; }
.welten[data-aktiv="acryl"] { --bg: var(--rose); --fg: var(--tinte); --fg-2: var(--tinte-2); --akzent: #8f3f2c; }
.welten-buehne { display: none; }
.welt { padding: var(--s3) var(--rand); }
.welt p { color: var(--fg-2); transition: color .8s; }
.welt-bild { width: 100%; margin-bottom: var(--s2); }
.welt-detail { width: min(70%, 26rem); margin-top: var(--s2); }
.welt-hoch { width: min(36%, 11rem); }
.ablauf { list-style: none; counter-reset: s; margin: var(--s1) 0 0; padding: 0; max-width: 30em; }
.ablauf li { counter-increment: s; position: relative; padding: .8rem 0 .8rem 2.4rem; border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); color: var(--fg-2); }
.ablauf li::before { content: counter(s); position: absolute; left: 0; top: .5rem; font: 400 1.7rem/1 "PC Parisienne", cursive; color: var(--akzent, var(--gold)); }

@media (min-width: 960px) {
  .js .welten { display: grid; grid-template-columns: 52% 1fr; }
  .js .welten-buehne {
    display: block; grid-column: 1; grid-row: 1 / span 3;
    position: sticky; top: 0; height: 100svh; overflow: hidden;
  }
  .js .welten-buehne img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 1.6s ease;
  }
  .js .welten-buehne img.aktiv { opacity: 1; transform: none; }
  .js .welten-buehne img[data-welt="glas"] { object-position: 62% 50%; }
  .js .welt { grid-column: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--s3) var(--rand) var(--s3) clamp(2rem, 5vw, 5rem); }
  .js .welt-bild { display: none; }
}

/* Werkstatt */
.werkstatt {
  --akzent: #8a5326;
  background: var(--leinen); color: var(--tinte);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-items: center;
  padding: var(--s3) var(--rand);
}
.werkstatt-bilder { position: relative; padding-bottom: 22%; }
.w-gross { width: 84%; }
.w-klein { position: absolute; right: 0; bottom: 0; width: 52%; border: clamp(6px, .8vw, 12px) solid var(--leinen); }
.werkstatt-text p { color: var(--tinte-2); }

/* Schluss */
.schluss {
  text-align: center; padding: var(--s3) var(--rand);
  background: radial-gradient(70% 70% at 50% 30%, #2d2015 0%, var(--nacht) 72%);
}
.schluss-name { font: 400 clamp(3.5rem, 9vw, 7.5rem)/1.2 var(--name); color: var(--gold); margin: 0 auto .1em; max-width: none; white-space: nowrap; }
.schluss h2 { max-width: 16em; margin-inline: auto; }
:root[data-farbe="Silber"] .schluss-name { color: #d4d8dc; }
:root[data-farbe="Schwarz"] .schluss-name { color: #8c847c; }
:root[data-farbe="Weiß"] .schluss-name { color: #f6f3ec; }
.schluss-hinweis p { margin-inline: auto; color: var(--kerze-2); max-width: 30em; margin-bottom: 2rem; }

/* Direktbestellung */
.bestellung {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s2);
  max-width: 64rem; margin: var(--s2) auto 0; text-align: left;
}
.bestellung[hidden] { display: none; }
.bestellung label, .bestellung-wahl label { font-size: 1rem; color: var(--kerze-2); }
.bestellung textarea, .bestellung select {
  width: 100%; font: 400 1.15rem/1.5 "Newsreader", Georgia, serif; color: var(--kerze);
  background: rgba(242, 232, 218, .05); border: 1px solid rgba(242, 232, 218, .25); border-radius: 2px;
  padding: .7rem .8rem;
}
.bestellung textarea { display: block; margin-top: .4rem; resize: vertical; min-height: 14rem; }
.bestellung select { margin-top: .4rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 55%, calc(100% - .75rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; }
.bestellung select option { color: var(--tinte); }
.bestellung textarea:focus, .bestellung select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.gaeste-zahl { margin: .5rem 0 0; color: var(--kerze-2); font-size: 1rem; }
.bestellung-wahl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.bestellung-wahl label:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.bestellung-wahl label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.bestellung-wahl select:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.bestellung-wahl select:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.summe { margin: 1.5rem 0 .25rem; }
.summe div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid rgba(242, 232, 218, .12); }
.summe dt { color: var(--kerze-2); }
.summe dd { margin: 0; font-variant-numeric: tabular-nums; }
.summe-gesamt { font-size: 1.35rem; border-bottom: 0 !important; }
.summe-gesamt dt { color: var(--kerze); }
.steuer { font-size: .95rem; color: var(--kerze-2); margin: 0 0 1.25rem; }
.zustimmung { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 .8rem; line-height: 1.45; cursor: pointer; }
.zustimmung input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; flex: none; accent-color: var(--gold); }
.zustimmung a { color: var(--kerze); }
.bestellung .knopf { width: 100%; margin-top: .6rem; border: 0; cursor: pointer; font-family: inherit; }
.bestellung .knopf[disabled] { opacity: .6; cursor: progress; }
.fehler { color: #f0a58a; min-height: 1.4em; margin: .6rem 0 0; font-size: 1rem; }
.fehler:empty { min-height: 0; margin: 0; }
.testmodus, .etsy-alternative { font-size: .95rem; color: var(--kerze-2); margin: .6rem 0 0; }

.fuss { display: flex; flex-wrap: wrap; gap: .75rem 2rem; padding: 2rem var(--rand); font-size: 1rem; color: #a8998a; border-top: 1px solid rgba(242, 232, 218, .1); }
.fuss span { margin-right: auto; }

@media (max-width: 959px) {
  .hero-fuss { grid-template-columns: 1fr; gap: 1.5rem; }
  .probe { grid-template-columns: 1fr; row-gap: .25rem; }
  .hero-knoepfe { grid-column: 1; grid-row: 5; margin-top: .5rem; flex-direction: column; align-items: stretch; text-align: center; }
  .farbwahl { grid-row: 4; flex-wrap: wrap; gap: .5rem 1.1rem; }
  .farbwahl legend { width: 100%; }
  .bestellung { grid-template-columns: 1fr; }
  .stil { grid-row: 3; flex-wrap: wrap; gap: .4rem 1.2rem; }
  .stil legend { width: 100%; }
  .stil label { font-size: 1.6rem; }
  .stil .stil-amarillo { font-size: 1.25rem !important; }
  .stil .stil-outfit { font-size: 1.15rem !important; }

  .werkstatt { grid-template-columns: 1fr; gap: var(--s2); }
}
@media (max-height: 700px) and (max-width: 959px) {
  .hero-buehne { min-height: 30svh; }
  .hero h1 { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Unterseiten: Rechtstexte, Danke */
.seite { max-width: 46rem; margin: 0 auto; padding: 8rem var(--rand) var(--s3); }
.seite h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: var(--s2); }
.seite h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.seite p, .seite li { color: var(--kerze-2); }
.seite ul { padding-left: 1.2rem; }
.seite .entwurf { border-left: 2px solid var(--gold); padding: .4rem 0 .4rem 1rem; color: var(--kerze); }
.seite .knopf { margin-top: 1.5rem; }
