/* yuencraft – Website
   Farben aus der Marke: PETG-Grau, PETG-Orange, Anthrazit, Hell, Dunkel.
   Eine einzige laute Stelle: das Y im Kopfbereich, das sich Schicht für
   Schicht aufbaut. Alles andere bleibt ruhig. */

@font-face { font-family: "Manrope"; font-weight: 300; font-display: swap; src: url("/fonts/manrope-300.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("/fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/fonts/manrope-700.woff2") format("woff2"); }

:root {
  --orange: #ff671f;
  --orange-dunkel: #c94a0e; /* Text in Orange auf Weiß braucht mehr Kontrast */
  --grau: #7f7e83;
  --anthrazit: #2e3135;
  --hell: #f3efea;
  --nacht: #1c1e21;
  --linie: #e2e0dd;
  --papier: #ffffff;
  --fehler: #b3261e;
  --ok: #2f6b3a;

  --schicht: 6px; /* Raster der Druckschichten */
  --breite: 1120px;
  --rand: clamp(16px, 4vw, 40px);
  --radius: 4px;

  --t-klein: 0.875rem;
  --t-text: 1.0625rem;
  --t-lead: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --t-h2: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --t-h1: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--t-text);
  line-height: 1.6;
  color: var(--anthrazit);
  background: var(--papier);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--anthrazit); text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--orange-dunkel); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }

.sprung { position: absolute; left: -9999px; top: 0; background: var(--nacht); color: #fff; padding: 8px 14px; z-index: 10; }
.sprung:focus { left: 8px; top: 8px; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: 12px var(--rand); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke img { width: 146px; height: auto; }
.navi { display: flex; gap: clamp(12px, 3vw, 28px); align-items: center; font-weight: 500; font-size: 0.95rem; }
.navi a { text-decoration: none; padding: 6px 0; }
.navi a:hover { color: var(--anthrazit); box-shadow: 0 2px 0 var(--orange); }
.navi-korb { display: inline-flex; align-items: center; gap: 6px; }
.korb-zahl { background: var(--orange); color: var(--nacht); font-weight: 700; font-size: 0.75rem; min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; padding: 0 6px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 700; font-size: 1rem;
  color: var(--nacht); background: var(--orange);
  border: 2px solid var(--orange); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
}
.knopf:hover { background: #ff7e3f; border-color: #ff7e3f; color: var(--nacht); }
.knopf:active { transform: translateY(1px); }
.knopf[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.knopf-zweit { background: transparent; color: var(--anthrazit); border-color: var(--anthrazit); }
.knopf-zweit:hover { background: var(--anthrazit); color: #fff; border-color: var(--anthrazit); }

/* ---------- Kopfbereich mit dem Y ---------- */
.held {
  max-width: var(--breite); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--rand) clamp(32px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
}
.held h1 { margin-bottom: 0.45em; }
.lead { font-size: var(--t-lead); font-weight: 300; line-height: 1.5; max-width: 34ch; }
.held-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.held-y { margin: 0; justify-self: center; width: min(100%, 440px); }
.y-druck { width: 100%; height: auto; overflow: visible; }
.y-druck path { fill: var(--grau); }
.y-druck .l-kopf path { fill: var(--orange); }

/* Druckvorgang: jede Schicht legt sich von oben auf die vorige. Einmalig,
   beim Laden; bei reduzierter Bewegung steht das Y sofort fertig da. */
@media (prefers-reduced-motion: no-preference) {
  .y-druck .l { opacity: 0; transform: translateY(-14px); animation: schicht 360ms cubic-bezier(.2,.7,.2,1) forwards; }
  .y-druck .l:nth-child(1) { animation-delay: 150ms; }
  .y-druck .l:nth-child(2) { animation-delay: 230ms; }
  .y-druck .l:nth-child(3) { animation-delay: 310ms; }
  .y-druck .l:nth-child(4) { animation-delay: 390ms; }
  .y-druck .l:nth-child(5) { animation-delay: 470ms; }
  .y-druck .l:nth-child(6) { animation-delay: 550ms; }
  .y-druck .l:nth-child(7) { animation-delay: 630ms; }
  .y-druck .l:nth-child(8) { animation-delay: 710ms; }
  .y-druck .l:nth-child(9) { animation-delay: 790ms; }
  .y-druck .l:nth-child(10) { animation-delay: 900ms; }
  .y-druck .l:nth-child(11) { animation-delay: 1010ms; }
  .y-druck .l:nth-child(12) { animation-delay: 1120ms; }
}
@keyframes schicht { to { opacity: 1; transform: translateY(0); } }

/* ---------- Abschnitte ---------- */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--rand); }
/* Trennlinie aus drei Druckschichten statt einer Haarlinie */
.abschnitt + .abschnitt:not(.abschnitt-dunkel)::before,
.abschnitt-dunkel + .abschnitt::before {
  content: ""; display: block; height: calc(var(--schicht) * 2.5); margin: calc(-1 * clamp(48px, 7vw, 88px)) 0 clamp(48px, 7vw, 88px);
  background: repeating-linear-gradient(to bottom, var(--linie) 0 var(--schicht), transparent var(--schicht) calc(var(--schicht) * 2));
  max-width: 120px;
}
.abschnitt-lead { font-size: var(--t-lead); font-weight: 300; max-width: 46ch; }
.abschnitt-dunkel { max-width: none; background: var(--nacht); color: var(--hell); }
.abschnitt-dunkel > * { max-width: calc(var(--breite) - 2 * var(--rand)); margin-left: auto; margin-right: auto; }
.abschnitt-dunkel a { color: var(--hell); }
.schmal { max-width: 720px; }
.klein, .feld-hilfe { font-size: var(--t-klein); color: var(--grau); }
.abschnitt-dunkel .klein { color: #b9b7b4; }

.zweispaltig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.zweispaltig-bild { align-items: center; }
.render { border-radius: var(--radius); }

.ablauf { list-style: none; counter-reset: schritt; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.ablauf li { counter-increment: schritt; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.ablauf li::before { content: counter(schritt); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange); display: grid; place-items: center; font-weight: 700; }
.ablauf strong { display: block; color: #fff; }

/* ---------- Produkte ---------- */
.produkte { display: grid; gap: 28px; margin-top: 32px; }
.produkt { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--linie); }
.produkt:last-child { border-bottom: 0; }
.produkt img { border-radius: var(--radius); background: var(--hell); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.produkt h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); margin-bottom: 0.4em; }
.produkt ul { padding-left: 1.1em; margin: 0 0 16px; }
.produkt li::marker { color: var(--orange); }
.preis { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.preis-zusatz { font-size: var(--t-klein); color: var(--grau); margin: 2px 0 6px; }
.lieferzeit { font-size: var(--t-klein); margin-bottom: 14px; }
.produkt-kauf { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.menge { width: 76px; min-height: 48px; font: inherit; font-weight: 700; text-align: center; border: 2px solid var(--linie); border-radius: var(--radius); }
.laedt, .leer { color: var(--grau); }

.hinweis { padding: 14px 18px; border-left: 4px solid var(--orange); background: var(--hell); margin: 20px 0; max-width: 68ch; }
.hinweis-fehler { border-left-color: var(--fehler); }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 16px; }
.abschnitt-dunkel .formular { background: #26292d; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); }
.feld { display: grid; gap: 6px; }
.feld-reihe { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
label { font-weight: 500; }
.optional { font-weight: 400; color: var(--grau); }
input[type="text"], input:not([type]), input[type="email"], input[type="tel"], textarea {
  font: inherit; color: var(--anthrazit); background: #fff;
  border: 2px solid var(--linie); border-radius: var(--radius);
  padding: 10px 12px; min-height: 48px; width: 100%;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--anthrazit); outline: none; }
[aria-invalid="true"] { border-color: var(--fehler) !important; }
.check, .wahl { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-weight: 400; }
.check input, .wahl input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--orange); }
.zahlart { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.zahlart legend { font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.wahl { border: 2px solid var(--linie); border-radius: var(--radius); padding: 12px; }
.wahl:has(input:checked) { border-color: var(--anthrazit); }
.formular-meldung:empty { display: none; }
.formular-meldung { margin: 0; font-weight: 500; }
.formular-meldung.ist-fehler { color: var(--fehler); }
.abschnitt-dunkel .formular-meldung.ist-fehler { color: #ffb4a8; }
.formular-meldung.ist-ok { color: var(--ok); }
.abschnitt-dunkel .formular-meldung.ist-ok { color: #a8e0b2; }
.turnstile:empty { display: none; }

/* ---------- Warenkorb und Kasse ---------- */
.kasse { max-width: 820px; }
.korb-tabelle { width: 100%; border-collapse: collapse; margin: 16px 0; }
.korb-tabelle th, .korb-tabelle td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.korb-tabelle th { font-size: var(--t-klein); color: var(--grau); font-weight: 500; }
.korb-tabelle .zahl { text-align: right; white-space: nowrap; }
.korb-tabelle tfoot td { border-bottom: 0; }
.korb-summe td { font-weight: 700; font-size: 1.15rem; }
.link-knopf { background: none; border: 0; padding: 4px 0; font: inherit; font-size: var(--t-klein); color: var(--grau); text-decoration: underline; cursor: pointer; }
.link-knopf:hover { color: var(--fehler); }
.kasse-formular { margin-top: 8px; }
.kasse-aktionen { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 8px; }
.uebersicht { background: var(--hell); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); margin-bottom: 20px; }
.uebersicht h3 { margin-top: 1em; }
.uebersicht h3:first-child { margin-top: 0; }
.fertig { border-top: calc(var(--schicht) * 2) solid var(--orange); padding-top: 24px; }
.bankdaten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0; }
.bankdaten dt { color: var(--grau); }
.bankdaten dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--rand); }
.rechtstext h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.rechtstext h2 { font-size: 1.25rem; margin-top: 1.8em; letter-spacing: -0.01em; }
.stand { color: var(--grau); font-size: var(--t-klein); margin-top: 2em; }
.musterformular { border: 2px dashed var(--linie); padding: 20px; margin-top: 2em; border-radius: var(--radius); }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--nacht); color: #c9c6c2; margin-top: 0; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 48px var(--rand) 24px; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: start; }
.fuss-marke img { width: 146px; margin-bottom: 12px; }
.fuss-marke p { font-size: var(--t-klein); }
.fuss a { color: var(--hell); }
.fuss-links { display: grid; gap: 8px; font-size: 0.95rem; }
.fuss-hinweis { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand) 32px; font-size: 0.8rem; color: #8e8b88; }
.knopf-widerruf { background: transparent; color: var(--hell); border-color: var(--hell); }
.knopf-widerruf:hover { background: var(--hell); color: var(--nacht); border-color: var(--hell); }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 860px) {
  .held { grid-template-columns: 1fr; }
  .held-y { order: -1; width: min(70%, 300px); }
  .zweispaltig, .produkt { grid-template-columns: 1fr; }
  .fuss-innen { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .kopf-innen { flex-wrap: wrap; row-gap: 4px; }
  .marke img { width: 118px; }
  .navi { width: 100%; justify-content: space-between; font-size: 0.9rem; }
  .feld-reihe { grid-template-columns: 96px 1fr; }
  .korb-tabelle .spalte-einzel { display: none; }
  .kasse-aktionen .knopf { width: 100%; }
}
