/* =========================================================
   DigiPrint – Sterbebilder
   ========================================================= */
:root {
  --navy: #1d2647;
  --navy-2: #141a33;
  --ink: #1f2433;
  --muted: #5d6273;
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --line: #dcd5c7;
  --white: #fff;
  --focus: #108dcd;
  --serif: "Cormorant Garamond", "Minion Pro", Georgia, serif;
  --sans: "Jost", "Optima", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .8, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-intro { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; color: var(--navy); }
h1 { font-size: clamp(40px, 6.4vw, 78px); letter-spacing: -.01em; }
h1 em { font-style: italic; font-weight: 400; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 26px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 36em; margin: 22px 0 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; font-weight: 500; font-size: 16px;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #2a3666; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }

/* ---------- Logo ---------- */
.logo { width: 100%; height: auto; overflow: visible; }
.logo .l { fill: currentColor; }
[data-logo] { display: block; }
[data-logo="dark"] { color: var(--navy); }
[data-logo="light"] { color: #fff; }

/* =========================================================
   EINSTIEGSINTRO
   ========================================================= */
.intro-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 40%, #222c55 0%, var(--navy-2) 70%);
  color: #fff;
  clip-path: inset(0 0 0 0);
  /* Notbremse, falls JavaScript nicht läuft */
  animation: intro-failsafe .01s 5s forwards;
}
html:not(.js) .intro-overlay { display: none; }
@keyframes intro-failsafe { to { visibility: hidden; } }
.intro-inner { width: min(440px, 72vw); display: grid; justify-items: center; gap: 26px; }
.intro-logo { width: 100%; }
.intro-overlay .l { opacity: 0; transform: translateY(40px); transform-box: fill-box; }
.intro-overlay .d { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
.intro-line { display: block; width: 100%; height: 1px; background: rgba(255,255,255,.35); transform: scaleX(0); }
.intro-tag { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 26px); opacity: 0; transform: translateY(10px); }
.intro-skip {
  position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  background: none; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer;
}
.intro-overlay.play .l { animation: letter-in .55s var(--ease) forwards; animation-delay: calc(var(--i) * 35ms + .05s); }
.intro-overlay.play .d { animation: dot-in .45s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: calc(var(--i) * 55ms + .45s); }
.intro-overlay.play .intro-line { animation: line-in .7s var(--ease) .8s forwards; }
.intro-overlay.play .intro-tag { animation: fade-up .6s var(--ease) .95s forwards; }
.intro-overlay.leave { transition: clip-path .85s cubic-bezier(.76,0,.24,1); clip-path: inset(0 0 100% 0); }
.intro-overlay.gone { display: none; }
@keyframes letter-in { to { opacity: 1; transform: none; } }
@keyframes dot-in { to { opacity: 1; transform: scale(1); } }
@keyframes line-in { to { transform: scaleX(1); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(24px); }
body.is-ready .reveal { animation: fade-up .9s var(--ease) forwards; animation-delay: calc(var(--r, 0) * 110ms); }

/* =========================================================
   HERO (ATF): vollflächiges Video, Logo im Video
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: flex-end;
  background: #161b30; color: #fff;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; z-index: -2; }
@media (max-aspect-ratio: 4/5) { .hero-video { object-position: 50% 30%; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,18,36,.82) 0%, rgba(14,18,36,.45) 38%, rgba(14,18,36,0) 62%),
    linear-gradient(0deg, rgba(14,18,36,.55) 0%, rgba(14,18,36,0) 35%),
    linear-gradient(180deg, rgba(14,18,36,.45) 0%, rgba(14,18,36,0) 22%);
}
.hero-logo {
  position: absolute; z-index: 2;
  top: max(24px, env(safe-area-inset-top)); left: var(--gutter);
  width: clamp(132px, 14vw, 190px);
}
.hero-inner { padding-block: 120px clamp(72px, 12vh, 132px); }
.hero-copy { max-width: 560px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero .lead { color: rgba(255,255,255,.82); }
.hero-logo { --r: 0; }
.hero-copy .eyebrow { --r: 1; }
.hero-copy h1 { --r: 2; }
.hero-copy .lead { --r: 3; }
.hero-cta { --r: 4; display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 99px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:last-child:not(.eyebrow) { color: var(--muted); margin: 14px 0 0; }

/* ---------- Gestalter ---------- */
.designer { padding: clamp(56px, 8vw, 110px) 0; background: var(--white); border-block: 1px solid var(--line); }
.designer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.preview { position: sticky; top: 16px; }
.stage {
  height: min(66vh, 600px);
  container-type: size;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(70% 60% at 50% 40%, #fffdf8 0%, transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  overflow: hidden;
  touch-action: pan-y;
}
.view-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button, .seg label span { border: 0; background: none; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; white-space: nowrap; display: block; }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--navy); color: #fff; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); }
.seg.small span { padding: 7px 12px; font-size: 14px; }
.fold-range { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); flex: 1 1 200px; max-width: 320px; }
.fold-range input { flex: 1; }
.credit { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); min-height: 1.4em; }
.credit a { color: var(--muted); }

input[type="range"] { accent-color: var(--navy); height: 28px; }

/* ---------- Steuerung ---------- */
.controls { display: grid; gap: 12px; }
.group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--navy);
}
.group summary::-webkit-details-marker { display: none; }
.group summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform .25s; }
.group[open] summary::after { transform: rotate(-135deg); }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 500 14px var(--sans); flex: none; }
.fields { padding: 0 18px 18px; display: grid; gap: 14px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.fields label:not(.font-card):not(.switch):not(.btn) { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input:not([type]), input[type="date"], input[type="search"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  font-size: 16px; /* verhindert Zoom auf iOS */
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(16,141,205,.18); }
.chips, .presets { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .presets button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; min-height: 36px;
}
.chips button:hover, .presets button:hover { border-color: var(--navy); }
.opt { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.opt legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 8px; }
.font-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.font-card { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s; }
.font-card input { position: absolute; opacity: 0; }
.font-card span { font-size: 38px; line-height: 1.1; color: var(--navy); }
.font-card small { font-size: 13px; color: var(--muted); }
.font-card:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.font-card:has(input:focus-visible) { outline: 2px solid var(--focus); }
.ff-serif { font-family: var(--serif); }
.ff-sans { font-family: var(--sans); font-weight: 300; }
.range { grid-template-columns: auto 1fr; align-items: center; }
.switch { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); }
.upload-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-file { position: relative; overflow: hidden; flex: 1 1 160px; font-size: 15px; }
.btn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.field-title { margin: 6px 0 8px; font-size: 15px; font-weight: 500; color: var(--navy); }
.search { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.search-bar { display: flex; gap: 8px; }
.search-bar input { flex: 1; min-width: 0; }
.source { justify-self: start; }
.search-status { margin: 0; font-size: 13.5px; color: var(--muted); min-height: 1.2em; }
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; overscroll-behavior: contain; }
.results li { position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.results button { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }
.results img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.results button:hover img { transform: scale(1.05); }
.results button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.results li.sel { outline: 3px solid var(--navy); outline-offset: -3px; }
.order-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 12px; }
.group > .hint { padding: 0 18px 18px; }

.fields .wide { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font-size: inherit; }
.form-msg { margin: 0; padding: 0 18px; font-size: 14.5px; color: #b42318; }
.form-msg:empty { display: none; }
.btn[disabled] { opacity: .65; cursor: progress; }
.thanks {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: clamp(28px, 5vw, 48px); text-align: center; outline: none;
}
.thanks h3 { font-size: clamp(30px, 4vw, 40px); margin: 18px 0 12px; }
.thanks p { margin: 0 auto 10px; max-width: 30em; color: var(--muted); }
.thanks-dots { display: inline-flex; gap: 6px; }
.thanks-dots i { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--c); animation: dot-in .5s cubic-bezier(.3,1.6,.5,1) backwards; }
.thanks-dots i:nth-child(2) { animation-delay: .06s; } .thanks-dots i:nth-child(3) { animation-delay: .12s; }
.thanks-dots i:nth-child(4) { animation-delay: .18s; } .thanks-dots i:nth-child(5) { animation-delay: .24s; } .thanks-dots i:nth-child(6) { animation-delay: .3s; }

/* ---------- Ablauf ---------- */
.steps { padding: clamp(36px, 5vw, 56px) 0; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px clamp(16px, 3vw, 40px); counter-reset: s; }
.step-list li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; }
.step-list li::before { content: counter(s); grid-row: span 2; font: italic 500 40px/1 var(--serif); color: var(--navy); opacity: .25; }
.step-list .dot { display: none; }
.step-list h3 { font-size: 24px; }
.step-list p { color: var(--muted); margin: 2px 0 0; font-size: 15px; grid-column: 2; }

/* ---------- Kontakt ---------- */
.contact { background: var(--navy); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.contact h2 { color: #fff; }
.contact p { color: rgba(255,255,255,.75); max-width: 34em; }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.72); font-size: 14.5px; line-height: 1.7; padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.f-brand [data-logo] { width: 150px; }
.f-brand p { margin: 14px 0 0; }
.f-col { font-style: normal; }
.f-col strong { color: #fff; font-weight: 500; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom button { background: none; border: 0; padding: 6px 0; color: rgba(255,255,255,.9); cursor: pointer; font-size: 14.5px; }
.footer-bottom button:hover { text-decoration: underline; }
.todo { background: #ffe58a; color: #1d2647; padding: 0 4px; border-radius: 3px; }

/* ---------- Dialoge ---------- */
dialog.legal {
  width: min(720px, calc(100vw - 24px)); max-height: min(86vh, 900px);
  border: 0; border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); background: #fff; color: var(--ink);
  font-size: 15.5px; line-height: 1.65; box-shadow: 0 40px 100px -20px rgba(0,0,0,.4);
}
dialog.legal::backdrop { background: rgba(20,26,51,.55); backdrop-filter: blur(3px); }
dialog.legal h2 { font-size: 34px; margin-bottom: 14px; }
dialog.legal h3 { font: 600 15px var(--sans); margin: 22px 0 4px; color: var(--navy); }
dialog.legal p { margin: 0 0 10px; }
dialog.legal hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.dlg-close { position: sticky; top: 0; float: right; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* =========================================================
   DIE KLAPPKARTE (3D)
   Seitenverhältnis je Seite 2:3, offen 4:3
   ========================================================= */
.card3d {
  --open: .9;       /* 0 = zu, 1 = flach offen */
  --spin: 0deg;     /* 180deg = Rückseite */
  --tilt-x: 10deg;
  --tilt-y: 0deg;
  --shift: 0;       /* 1 = geschlossene Karte mittig */
  --scale: 1;
  --shade-c: 0; --shade-l: 0; --shade-r: 0; --crease: .3;
  --card-font: var(--serif);
  --name-scale: 1;
  position: relative;
  width: min(90cqw, 112cqh);
  aspect-ratio: 4 / 3;
  perspective: 2400px;
}
.card3d::after { /* Schlagschatten auf dem Tisch */
  content: ""; position: absolute; left: 50%; bottom: -5%; height: 9%;
  width: calc(46% + 50% * var(--open));
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(30,25,15,.28), transparent 70%);
  filter: blur(6px); z-index: -1; pointer-events: none;
}
.sheet {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform-origin: 75% 50%;
  transform: translateX(calc(-25% * var(--shift))) scale(var(--scale)) rotateX(var(--tilt-x)) rotateY(calc(var(--spin) + var(--tilt-y)));
}
.half { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-style: preserve-3d; }
.leaf { transform-origin: 0 50%; transform: translateZ(.6px) rotateY(calc(var(--open) * -179deg)); }
.face {
  position: absolute; inset: 0; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #fbfaf6;
  container-type: inline-size;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08);
  font-family: var(--card-font);
  color: #262626;
}
.half > .face:nth-child(2) { transform: rotateY(180deg); }
.shade { position: absolute; inset: 0; background: #1b160c; pointer-events: none; }

/* Faltkante / Rille */
.crease { position: absolute; top: 0; bottom: 0; width: 14%; pointer-events: none; opacity: var(--crease); }
.crease-r { right: 0; background: linear-gradient(to left, rgba(60,45,20,.30), rgba(60,45,20,.08) 30%, transparent); }
.crease-l { left: 0; background: linear-gradient(to right, rgba(60,45,20,.30), rgba(60,45,20,.08) 30%, transparent); }
.crease-r::after, .crease-l::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.12); }
.crease-r::after { right: 0; } .crease-l::after { left: 0; }

/* Vorderseite */
.cover-img { width: 100%; height: 100%; object-fit: cover; }

/* Innen links: kleines Kreuz oben, Spruch zentriert darunter */
.cross { position: absolute; left: 50%; top: 8%; width: 22cqi; height: 46cqi; transform: translateX(-50%); pointer-events: none; }
.cross .cv { position: absolute; left: calc(50% - .95cqi); top: 0; height: 100%; width: 1.9cqi; border-inline: .42cqi solid #1a1a1a; }
.cross .ch { position: absolute; left: 0; top: 26%; width: 100%; height: 1.9cqi; border-block: .42cqi solid #1a1a1a; }
.cross[data-cross="single"] .cv { left: calc(50% - .21cqi); width: .42cqi; border: 0; background: #1a1a1a; }
.cross[data-cross="single"] .ch { top: calc(26% + .74cqi); height: .42cqi; border: 0; background: #1a1a1a; }
.cross[data-cross="bold"] .cv { left: calc(50% - 1.1cqi); width: 2.2cqi; border: 0; background: #1a1a1a; }
.cross[data-cross="bold"] .ch { top: calc(26% - .15cqi); height: 2.2cqi; border: 0; background: #1a1a1a; }
.cross[data-cross="none"] { display: none; }
.verse { position: absolute; left: 10%; right: 10%; bottom: 14%; margin: 0; font-size: 4.9cqi; line-height: 2.05; white-space: pre-line; text-align: center; }

/* Innen rechts: Foto, Name, Daten */
.portrait { position: absolute; left: 17.5%; width: 57%; top: 7.8%; height: 49.5%; overflow: hidden; background: #ddd; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.face.bw .portrait img, .bw .portrait img { filter: grayscale(1) contrast(1.05); }
.intro, .name, .dates { position: absolute; left: 4%; right: 4%; margin: 0; text-align: center; }
.intro { top: 63.5%; font-size: 4.9cqi; }
.name { top: 70.2%; font-size: calc(8cqi * var(--name-scale) * var(--fit, 1)); line-height: 1.2; white-space: nowrap; }
.dates { top: 79%; font-size: 5.2cqi; line-height: 1.55; display: grid; }
.card-sans .face { font-weight: 300; letter-spacing: .01em; }
.card-sans .name { font-weight: 400; letter-spacing: .02em; }
.card-sans .verse { line-height: 1.95; }

/* Rückseite */
.back-text { position: absolute; left: 12%; right: 12%; bottom: 14%; margin: 0; text-align: center; font-size: 4.4cqi; line-height: 1.8; white-space: pre-line; font-style: italic; color: #444; }
.card-sans .back-text { font-style: normal; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero { align-items: flex-end; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(14,18,36,.92) 0%, rgba(14,18,36,.7) 32%, rgba(14,18,36,0) 58%),
      linear-gradient(180deg, rgba(14,18,36,.5) 0%, rgba(14,18,36,0) 20%);
  }
  .hero-inner { padding-bottom: 84px; }

  .designer-grid { grid-template-columns: 1fr; }
  /* Vorschau bleibt beim Bearbeiten sichtbar */
  .preview {
    top: 0; z-index: 5; background: #fff;
    margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 10px;
    border-bottom: 1px solid var(--line);
  }
  .stage { height: clamp(220px, 40svh, 420px); }
  .view-bar { margin-top: 8px; gap: 8px; }
  .credit { display: none; }
  .step-list { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero .eyebrow { display: none; }
  .hero .lead { font-size: 15.5px; margin: 14px 0 20px; }
  .hero-inner { padding-bottom: 70px; }
  .hero-cta .btn { flex: 1 1 auto; padding-inline: 16px; }
  .fields.two { grid-template-columns: 1fr; }
  .view-bar { flex-direction: column; align-items: stretch; }
  .seg { justify-content: space-between; }
  .seg button { flex: 1; padding: 8px 6px; }
  .fold-range { max-width: none; flex: none; }
  .stage { height: clamp(190px, 32svh, 320px); }
  .group summary { font-size: 20px; padding: 14px 14px; }
  .fields { padding: 0 14px 14px; }
  .order-row { padding: 0 14px 12px; }
  .order-row .btn { flex: 1 1 100%; }
  .group > .hint { padding: 0 14px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-links .btn { flex: 1 1 100%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .preview { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  body.is-ready .reveal { animation: none; }
}

/* =========================================================
   Video-Render-Modus (?render=video)
   ========================================================= */
body.render { overflow: hidden; background: #1b2036; }
body.render > *:not(.render-stage) { display: none !important; }
.render-stage {
  position: fixed; inset: 0; display: grid; place-items: center; container-type: size;
  background:
    radial-gradient(60% 50% at var(--lx, 50%) 38%, rgba(255,214,160,var(--glow, .22)), transparent 70%),
    radial-gradient(120% 90% at 50% 100%, #2a3158 0%, #161b30 70%);
}
.render-stage .card3d { width: min(84cqw, 104cqh); }
.render-stage.wide { place-items: center end; padding-right: 9cqw; }
.render-stage.wide .card3d { width: min(52cqw, 78cqh); }
.render-stage.tall { place-items: start center; padding-top: 11cqh; }
.render-stage.tall .card3d { width: 72cqw; }
.render-stage .card3d::after { background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.5), transparent 70%); }
.render-caption {
  position: absolute; left: 0; right: 0; bottom: 6.5%; text-align: center; color: #fff;
  font: italic 400 4.2cqw/1.2 var(--serif); letter-spacing: .01em; opacity: var(--cap, 0);
  transform: translateY(calc((1 - var(--cap, 0)) * 12px));
}
.render-caption small { display: block; margin-top: .5em; font: 400 1.7cqw var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .7; font-style: normal; }
.presets button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.cross-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cross-pick label { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 13px; color: var(--muted); }
.cross-pick input { position: absolute; opacity: 0; }
.cross-pick svg { width: 26px; height: 34px; color: var(--navy); }
.cross-pick label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); color: var(--navy); }
.cross-pick label:has(input:focus-visible) { outline: 2px solid var(--focus); }
.intern { border: 1.5px dashed var(--navy); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 10px; background: #fff; }
.thanks .btn { margin-top: 14px; }
@media (display-mode: standalone) { .hero-logo { top: max(24px, calc(env(safe-area-inset-top) + 8px)); } }

/* =========================================================
   VISITENKARTENFORMAT 90 × 65 mm (flach, zweiseitig)
   Gleiche Typografie wie die Klappkarte; Maße in cqi der Kartenbreite (1cqi = 0,9 mm)
   ========================================================= */
[data-only="card"] { display: none !important; }
.fmt-card [data-only="card"] { display: revert !important; }
.fmt-card [data-only="fold"] { display: none !important; }
.designer.fmt-card .card3d, .designer:not(.fmt-card) .cardflat { display: none; }
.format-pick svg { width: 44px; height: 34px; color: var(--navy); }
.format-pick small { line-height: 1.35; text-align: center; }
.format-pick b { color: var(--navy); font-weight: 500; }

.cardflat {
  --spin: 0deg; --tilt-x: 8deg; --tilt-y: 0deg;
  --card-font: var(--serif); --name-scale: 1;
  position: relative; width: min(80cqw, 104cqh); aspect-ratio: 90 / 65; perspective: 2400px;
}
.cardflat::after {
  content: ""; position: absolute; left: 50%; bottom: -6%; height: 10%; width: 90%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(30,25,15,.28), transparent 70%); filter: blur(6px); z-index: -1; pointer-events: none;
}
.flat-sheet {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(calc(var(--spin) + var(--tilt-y)));
  transition: transform .9s cubic-bezier(.65,0,.35,1);
}
.flat-sheet > .face:nth-child(2) { transform: rotateY(180deg); }

/* Vorderseite: Foto links, Kreuz + Name rechts */
.vk-photo { position: absolute; left: 6%; top: 9%; width: 41%; height: 82%; overflow: hidden; background: #ddd; }
.vk-photo img { width: 100%; height: 100%; object-fit: cover; }
.bw .vk-photo img { filter: grayscale(1) contrast(1.05); }
.vk-text { position: absolute; left: 51%; right: 3%; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.vk-text p { margin: 0; width: 100%; }
/* Kreuz in derselben Strichstärke wie auf der Klappkarte (Bezugsbreite 70 mm = 77,8cqi) */
.vk-crossbox { position: relative; flex: none; width: 77.8cqi; height: 23.3cqi; margin-bottom: 2.6cqi; container-type: inline-size; }
.vk-crossbox .cross { top: 0; width: 15cqi; height: 30cqi; }
.vk-intro { font-size: 3.6cqi; line-height: 1.6; margin-bottom: .9cqi !important; }
.vk-name { position: static; left: auto; right: auto; top: auto; font-size: calc(5.8cqi * var(--name-scale) * var(--fit, 1)); line-height: 1.2; white-space: nowrap; }
.vk-extra { font-size: 3.6cqi; line-height: 1.5; margin-top: .4cqi !important; }
.vk-extra:empty { display: none; }
.vk-dates { font-size: 3.8cqi; line-height: 1.55; margin-top: 1.8cqi !important; display: grid; }

/* Rückseite: Bild; mit Text automatisch leicht deckende Fläche darüber */
.vk-back .cover-img { position: absolute; inset: 0; }
.vk-veil { position: absolute; inset: 0; background: #fbfaf6; opacity: 0; transition: opacity .3s; }
.vk-back.has-text .vk-veil { opacity: .5; }
.vk-verse { position: absolute; left: 8%; right: 8%; top: 50%; transform: translateY(-50%); margin: 0; text-align: center; white-space: pre-line; font-size: 3.9cqi; line-height: 1.9; }
.card-sans .vk-verse { line-height: 1.85; }
.vk-crossbox:has(.cross[data-cross="none"]) { display: none; }

/* Video: Klappkarte und Visitenkarte liegen übereinander und werden überblendet */
.render-stage > .card3d, .render-stage > .cardflat { grid-area: 1 / 1; }
.render-stage .flat-sheet, .render-stage .vk-veil { transition: none; }
.render-stage .cardflat { opacity: 0; width: min(68cqw, 84cqh); }
.render-stage.wide .cardflat { width: min(43cqw, 72cqh); }
.render-stage.tall .cardflat { width: 62cqw; }
.render-stage .cardflat::after { background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.5), transparent 70%); }

/* ---------- Sprache DE | IT ---------- */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(14,18,36,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lang-switch button, .footer-bottom .lang-switch button { min-width: 40px; padding: 6px 10px; border: 0; border-radius: 999px; background: none; color: rgba(255,255,255,.85); font: 500 13px/1 var(--sans); letter-spacing: .12em; cursor: pointer; text-decoration: none; }
.lang-switch button[aria-pressed="true"], .footer-bottom .lang-switch button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.hero-lang { position: absolute; z-index: 2; top: max(26px, env(safe-area-inset-top)); right: var(--gutter); --r: 0; }
html[lang="it"] .only-de { display: none; }

/* ---------- Interne Ansicht (Link aus der Anfrage-Mail) ---------- */
.intern-previews { display: grid; gap: 14px; }
.intern-previews figure { margin: 0; display: grid; gap: 6px; }
.intern-previews figcaption { font-size: 13.5px; color: var(--muted, #5b6170); }
.intern-frame { width: 100%; height: min(52vh, 460px); border: 1px solid var(--line); border-radius: 12px; background: #e9e6df; }
body.intern-mode .hero, body.intern-mode #intro, body.intern-mode #ablauf, body.intern-mode #kontakt,
body.intern-mode #anfrage, body.intern-mode .section-head > p, body.intern-mode .lang-switch { display: none; }
body.intern-mode .designer { padding-top: clamp(24px, 4vw, 48px); }
body.intern-mode .intern { margin-bottom: 8px; }
body.intern-mode .section-head .eyebrow::after { content: ' · DigiPrint intern'; }
