/* Herrentor 3D Solution – Stylesheet
   Farben und Abstände zentral über die Variablen anpassen. */
:root {
  --ink: #0e1014;          /* Schwarz aus dem Logo */
  --ink-2: #171a20;
  --ink-3: #2a2e37;
  --paper: #f6f5f1;
  --white: #ffffff;
  --text: #15171c;
  --muted: #5b6170;
  --line: #e4e1d8;
  --accent: #c9a227;       /* Gold aus dem Logo (Pinselstrich) */
  --accent-dark: #8a6a00;  /* dunkleres Gold für Text auf hellem Grund */
  --accent-soft: #f8f0d4;
  --gold: linear-gradient(135deg, #e6c655, #b8890b);
  --layers: repeating-linear-gradient(0deg, rgba(201,162,39,.09) 0 1px, transparent 1px 14px);
  --radius: 20px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--paper);
  line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header: Logo-Leiste + klassische Menüleiste ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.brandbar { background: var(--ink); }
.brandbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { height: 58px; width: auto; }
.brand-fallback:not([hidden]) { display: flex; align-items: center; gap: .8rem; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .74rem; color: #9aa6bb; letter-spacing: .04em; }
.cart-link { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; border: 1.5px solid rgba(255,255,255,.3); border-radius: 999px; padding: .5rem 1rem; }
.cart-link:hover { background: rgba(255,255,255,.1); }
.cart-link svg { width: 20px; height: 20px; }
.cart-link b { background: var(--accent); border-radius: 999px; min-width: 1.5rem; height: 1.5rem; display: inline-grid; place-items: center; font-size: .8rem; padding: 0 .35rem; }
.cart-link b[hidden] { display: none; }
.menubar { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px rgba(17,23,34,.05); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu a { display: block; padding: .95rem 1.15rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; border-bottom: 3px solid transparent; }
.menu a:hover { color: var(--accent-dark); background: var(--paper); }
.menu a[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: .9rem 0; font: inherit; font-weight: 700; cursor: pointer; width: 100%; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: #fff;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0;
  font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.small { padding: .55rem 1rem; font-size: .92rem; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 9vw, 7rem); }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; display: block; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 1.2rem; color: #c3cbd9; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.8rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; color: #aab4c5; font-size: .95rem; }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: .45rem; }

/* Drucker-Animation */
.printer { position: relative; aspect-ratio: 1 / 1; max-width: 420px; margin-inline: auto; width: 100%;
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 12% 14% 14%; display: flex; flex-direction: column; justify-content: flex-end; }
.printer::before { content: ""; position: absolute; left: 8%; right: 8%; top: 12%; height: 6px; border-radius: 3px; background: var(--ink-3); }
.nozzle { position: absolute; top: calc(12% - 6px); left: 20%; width: 34px; height: 44px; animation: travel 3.2s ease-in-out infinite alternate; }
.nozzle::before { content: ""; position: absolute; inset: 0 0 14px; background: #dfe4ec; border-radius: 6px; }
.nozzle::after { content: ""; position: absolute; left: 11px; bottom: 0; border: 6px solid transparent; border-top: 14px solid var(--accent); border-bottom: 0; }
.layers { display: flex; flex-direction: column-reverse; gap: 5px; align-items: center; }
.layers span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #ff9a5c); transform-origin: left; animation: layer 7s linear infinite; opacity: 0; }
.layers span:nth-child(1) { width: 100%; animation-delay: 0s; }
.layers span:nth-child(2) { width: 100%; animation-delay: .45s; }
.layers span:nth-child(3) { width: 92%; animation-delay: .9s; }
.layers span:nth-child(4) { width: 84%; animation-delay: 1.35s; }
.layers span:nth-child(5) { width: 84%; animation-delay: 1.8s; }
.layers span:nth-child(6) { width: 70%; animation-delay: 2.25s; }
.layers span:nth-child(7) { width: 56%; animation-delay: 2.7s; }
.layers span:nth-child(8) { width: 56%; animation-delay: 3.15s; }
.layers span:nth-child(9) { width: 38%; animation-delay: 3.6s; }
.layers span:nth-child(10) { width: 22%; animation-delay: 4.05s; }
.bed { height: 10px; border-radius: 5px; background: #dfe4ec; margin-top: 8px; }
.printer-label { position: absolute; left: 14%; bottom: 5%; font-family: var(--mono); font-size: .72rem; color: #8592a8; letter-spacing: .08em; }
@keyframes layer { 0% { opacity: 0; transform: scaleX(0); } 6% { opacity: 1; transform: scaleX(1); } 88% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes travel { from { left: 16%; } to { left: calc(84% - 34px); } }

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.num { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); display: block; margin-bottom: .8rem; }
.alt { background: var(--white); }
.dark { background: var(--ink); color: #fff; }
.dark .section-head p, .dark p { color: #b9c2d2; }
.dark .num { color: var(--accent); }

.intro .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.intro p { font-size: 1.12rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .92rem; font-weight: 600; }

.grid { display: grid; gap: 1.2rem; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.alt .card { background: var(--paper); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17, 23, 34, .08); border-color: var(--accent); }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 1rem; }
.card .icon svg { width: 24px; height: 24px; }
.note { margin-top: 1.6rem; color: var(--muted); }

/* Ablauf */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--ink-2); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: .6rem; }
.steps p { margin: 0; font-size: .98rem; }
.callout { margin-top: 1.6rem; border-left: 4px solid var(--accent); background: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.5rem; }
.callout strong { color: #fff; font-family: var(--mono); }
.callout p { margin: .3rem 0 0; }

/* Projekte */
.project { padding: 0; overflow: hidden; }
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  background: repeating-linear-gradient(0deg, #ece8df 0 6px, #f4f1ea 6px 12px); }
.project .body { padding: 1.3rem 1.5rem 1.5rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); margin-bottom: .4rem; }
.idea { margin-top: 1.4rem; background: var(--accent); color: #fff; border-radius: var(--radius); padding: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.idea h3 { font-size: 1.5rem; margin: 0 0 .3rem; }
.idea p { margin: 0; color: #fff; opacity: .95; }
.idea .btn { background: var(--ink); }
.idea .btn:hover { background: #000; }

/* Über uns */
.about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.facts li { border-top: 2px solid var(--ink); padding-top: .7rem; }
.facts b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: .92rem; }
.teams { display: grid; gap: 1rem; }
.team { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.team h3 { margin-bottom: .3rem; }
.team p { margin: 0; color: var(--muted); }

/* Werkstatt */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0 0 2rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.flow li { padding: 1.4rem; border-right: 1px solid var(--line); }
.flow li:last-child { border-right: 0; }
.flow b { display: block; font-size: 1.1rem; }
.flow span { color: var(--muted); font-size: .93rem; }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--ink); color: #9aa6bb; display: grid; place-items: center; text-align: center; padding: 1.5rem; font-family: var(--mono); font-size: .85rem; }
.video video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.15rem 2.2rem 1.15rem 0; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .85rem; font-size: 1.6rem; font-weight: 400; color: var(--accent-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 2rem; }

/* Kontakt */
.contact .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.contact address { font-style: normal; margin-top: 1.5rem; line-height: 1.7; }
.contact .mail { font-weight: 700; font-size: 1.1rem; word-break: break-all; }
form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
form .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
input, select, textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; accent-color: var(--accent); }
.hint { font-size: .88rem; color: var(--muted); margin: 0; }
.form-msg { display: none; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; padding: 1rem; font-size: .95rem; }
.form-msg.show { display: block; }

/* CTA + Footer */
.cta { background: var(--accent); color: #fff; text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .btn { background: var(--ink); margin-top: 1rem; }
.cta .btn:hover { background: #000; }
.site-footer { background: var(--ink); color: #9aa6bb; padding-block: 3rem 2rem; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; margin: 0 0 .7rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #d5dbe6; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.3rem; font-size: .85rem; }

/* Rechtstexte */
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.todo { background: #fff6d6; border: 1px dashed #c9a100; border-radius: 6px; padding: .1rem .45rem; font-size: .92em; }
.draft { background: #fff6d6; border: 1px solid #c9a100; border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: 2rem; }

/* ---------- Seitenkopf der Unterseiten ---------- */
.page-head { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.page-head p { color: #c3cbd9; font-size: 1.15rem; max-width: 40rem; margin: .8rem 0 0; }
.page-head .eyebrow { margin-bottom: .7rem; }

/* ---------- Shop ---------- */
.notice { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: .9rem 1.2rem; margin: 0 0 1.5rem; }
.notice[hidden], .done[hidden], .checkout[hidden] { display: none; }
.product { padding: 0; overflow: hidden; }
.product .pic { aspect-ratio: 1 / 1; background: repeating-linear-gradient(0deg, #ece8df 0 6px, #f4f1ea 6px 12px); display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.product .pic img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product .body p { white-space: pre-line; }
.product .buy { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .6rem; }
.price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-row .thumb { width: 72px; height: 72px; border-radius: 10px; background: #ece8df; object-fit: cover; }
.cart-row h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.cart-row .sub { color: var(--muted); font-size: .92rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); margin-top: .5rem; }
.qty button { width: 2.1rem; height: 2.1rem; border: 0; background: none; font: inherit; font-size: 1.1rem; cursor: pointer; border-radius: 999px; }
.qty button:hover { background: var(--accent-soft); }
.qty span { min-width: 1.8rem; text-align: center; font-weight: 700; }
.cart-row .right { text-align: right; font-weight: 700; }
.remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; padding: 0; margin-top: .4rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; padding: 1.2rem 0; margin: 0; }
.done { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem; max-width: 40rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.ok { background: #e9f7ee; border-color: #2e9e5b; }

/* ---------- Adminbereich ---------- */
.admin { max-width: 1000px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.admin h1 { font-size: 2rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 700; padding: .8rem 1.1rem; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.panel[hidden] { display: none; }
.admin form { margin-bottom: 2rem; }
.admin .row { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; }
.admin .row.order { grid-template-columns: 1fr auto; align-items: start; }
.admin .row img, .admin .row .noimg { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #ece8df; }
.admin .row h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.admin .row p { margin: 0; color: var(--muted); font-size: .93rem; white-space: pre-line; }
.admin .actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.btn.light { background: var(--white); color: var(--text); border: 1.5px solid var(--line); }
.btn.light:hover { background: var(--paper); }
.btn.danger { background: #b3261e; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; background: var(--accent-soft); color: var(--accent-dark); }
.badge.off { background: #eee; color: #666; }
.preview { max-width: 160px; border-radius: 10px; margin-top: .5rem; }
.login { max-width: 26rem; margin: 12vh auto 0; }
.login form { grid-template-columns: 1fr; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .intro .wrap, .about .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .grid.c3, .grid.c4 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2) { border-right: 0; }
  .flow li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .printer { max-width: 320px; }
  .checkout { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .menu { display: none; flex-direction: column; padding-bottom: .6rem; }
  .menu.open { display: flex; }
  .menu a { padding: .8rem .4rem; border-bottom: 0; border-left: 3px solid transparent; }
  .menu a[aria-current="page"] { border-left-color: var(--accent); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid.c3, .grid.c4, .flow, form, .facts, .site-footer .wrap { grid-template-columns: 1fr; }
  .flow li { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow li:last-child { border-bottom: 0; }
  .brand small, .cart-link span { display: none; }
  .brand img { height: 46px; }
  .admin .row { grid-template-columns: 48px 1fr; }
  .admin .row.order { grid-template-columns: 1fr; }
  .admin .row img, .admin .row .noimg { width: 48px; height: 48px; }
  .admin .actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .layers span { animation: none; opacity: 1; }
  .nozzle { animation: none; }
  .btn, .card { transition: none; }
}

/* ===== Design 2: Schwarz-Gold passend zum Logo, Schichtlinien als 3D-Druck-Motiv ===== */
::selection { background: var(--accent); color: var(--ink); }
body { background: var(--paper); }
h1, h2 { letter-spacing: -.03em; }
.skip { color: var(--ink); }

/* Buttons */
.btn { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(184,137,11,.28); }
.btn:hover { background: var(--gold); filter: brightness(1.07); }
.btn.ghost { background: transparent; color: #fff; box-shadow: none; }
.btn.light { background: var(--white); color: var(--text); box-shadow: none; }
.btn.light:hover { background: var(--paper); filter: none; }
.btn.danger { background: #b3261e; color: #fff; box-shadow: none; }
.cta .btn, .idea .btn { background: var(--ink); color: #fff; box-shadow: none; }
.cta .btn:hover, .idea .btn:hover { background: #000; filter: none; }

/* Kopfbereich */
.brandbar { background: var(--white); border-bottom: 1px solid var(--line); }
.brandbar .wrap { min-height: 80px; padding-block: .6rem; }
.brand { color: var(--ink); font-size: 1.2rem; }
.brand img.brand-mark { height: 58px; width: auto; }
.brand small { color: var(--muted); }
.head-right { display: flex; align-items: center; gap: .6rem; }
.social { display: flex; gap: .4rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .15s, border-color .15s; }
.social a:hover { background: var(--accent-soft); border-color: var(--accent); }
.social svg, [data-social] svg { width: 19px; height: 19px; flex: none; }
.cart-link { color: var(--ink); border-color: var(--line); }
.cart-link:hover { background: var(--accent-soft); border-color: var(--accent); }
.cart-link b { color: var(--ink); }
.menubar { background: var(--ink); border-bottom: 0; box-shadow: 0 8px 24px rgba(14,16,20,.18); }
.menu a { color: #d6d9e0; border-bottom-width: 3px; }
.menu a:hover { color: #fff; background: rgba(255,255,255,.07); }
.menu a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { color: #fff; }

/* Hero: geteilter Bildschirm, links Botschaft, rechts Blickfang */
.hero { background: var(--ink); }
.hero::before { opacity: 1; background-image: var(--layers); background-size: auto; mask-image: linear-gradient(90deg, transparent, #000 55%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.28), transparent 65%); pointer-events: none; }
.hero .wrap { z-index: 1; }
.hero h1 em { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-visual { position: relative; }
.hero-visual > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; transform: rotate(2deg); box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); }
.printer { background: rgba(255,255,255,.04); border-color: rgba(201,162,39,.35); border-radius: 28px; transform: rotate(2deg); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.layers span { background: linear-gradient(90deg, #b8890b, #f0d264); }
.trust li::before { content: "◆"; font-size: .7rem; }

/* Abschnitte */
.num { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid currentColor; border-radius: 999px; padding: .3rem .85rem; width: fit-content; }
.num::before { content: ""; width: 14px; height: 10px; background: repeating-linear-gradient(0deg, currentColor 0 2px, transparent 2px 4px); }
.dark { background: var(--ink); position: relative; }
.dark::before { content: ""; position: absolute; inset: 0; background: var(--layers); opacity: .7; pointer-events: none; mask-image: linear-gradient(180deg, #000, transparent 45%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 45%); }
.dark .wrap { position: relative; }
.chips li { border-color: var(--line); }

/* Karten im Raster */
.card { border-radius: var(--radius); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; z-index: 1; }
.card:hover::before { transform: scaleX(1); }
.card:hover { border-color: var(--line); box-shadow: 0 20px 40px rgba(14,16,20,.1); }
.card .icon { background: var(--ink); color: var(--accent); border-radius: 14px; width: 50px; height: 50px; }
.steps li { background: var(--ink-2); border-radius: var(--radius); }
.steps li::before { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2.4rem; }
.callout { background: var(--ink-2); }
.ph { overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.idea, .cta { background: var(--gold); color: var(--ink); }
.idea p { color: var(--ink); }
.idea { border-radius: var(--radius); }
.cta { position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(14,16,20,.07) 0 1px, transparent 1px 14px); pointer-events: none; }
.cta .wrap { position: relative; }

/* Seitenkopf der Unterseiten */
.page-head { background: var(--ink); position: relative; overflow: hidden; border-bottom: 4px solid var(--accent); }
.page-head::before { content: ""; position: absolute; inset: 0; background: var(--layers); mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.page-head .wrap { position: relative; }

/* Über uns, Werkstatt, Schule */
.facts li { border-top: 3px solid var(--accent); }
.team { border-radius: var(--radius); border-left: 4px solid var(--accent); background: var(--paper); }
.slot-img { margin: 0; }
.slot-img[hidden] { display: none; }
.slot-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.flow { border-radius: var(--radius); }
.flow b { color: var(--text); }
.media-row { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.video { border-radius: var(--radius); background: var(--ink) var(--layers); position: relative; overflow: hidden; gap: .8rem; align-content: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video small { display: block; color: #8b93a3; font-family: var(--font); max-width: 26rem; }
.school .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: center; }
.school-links { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }

/* FAQ als Karten */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.4rem; margin-bottom: .7rem; }
.alt .faq details { background: var(--paper); }
.faq details[open] { border-color: var(--accent); }
.faq summary::after { right: 0; }

/* Formulare */
form { border-radius: 24px; box-shadow: 0 16px 40px rgba(14,16,20,.06); }
input, select, textarea { border-radius: 12px; }
.notice { border-left-color: var(--accent); }
.badge { background: var(--accent-soft); color: var(--accent-dark); }

/* Fußbereich */
.site-footer { border-top: 4px solid var(--accent); }
.site-footer .wrap { grid-template-columns: 1.4fr .8fr 1fr 1.2fr; }
.foot-brand img { width: 190px; height: auto; margin-bottom: 1rem; }
.site-footer [data-social] a { display: inline-flex; align-items: center; gap: .5rem; }

/* Adminbereich: Bilder der Website */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.slot { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.slot h3 { font-size: 1rem; margin-bottom: .2rem; }
.slot p { color: var(--muted); font-size: .88rem; margin-bottom: .7rem; }
.slot .now { aspect-ratio: 4 / 3; border-radius: 12px; background: #ece8df; display: grid; place-items: center; color: var(--muted); font-size: .85rem; overflow: hidden; margin-bottom: .7rem; }
.slot .now img { width: 100%; height: 100%; object-fit: cover; }
.admin h2 { font-size: 1.3rem; margin-top: 0; }

@media (max-width: 960px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .school .wrap { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; gap: 1rem; }
  .slots { grid-template-columns: 1fr; }
  .menu a { border-bottom: 0; }
  .printer, .hero-visual > img { transform: none; }
}
@media (max-width: 600px) {
  .brandbar .social { display: none; }
  .brand { font-size: 1rem; }
  .brand img.brand-mark { height: 46px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* 3D-Modell auf der Startseite */
.printer.model { padding: 0; display: block; transform: none; overflow: hidden; }
.printer.model::before { display: none; }
.printer.model canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.printer.model .printer-label { left: 7%; right: 7%; top: 5%; bottom: auto; pointer-events: none; line-height: 1.5; }

/* Termine & Aktionen */
.events-sec { background: var(--white); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.events-sec .section-head { margin-bottom: 1.6rem; }
.events-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.events li { display: flex; gap: 1.1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.events li:first-child { padding-top: 0; }
.events .date { flex: none; width: 72px; min-height: 72px; display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--gold); color: var(--ink); border-radius: 12px; padding: .4rem; font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.events .date small { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .15rem; }
.events h3 { font-size: 1.05rem; margin: .1rem 0 .2rem; }
.events h3 a { color: var(--text); }
.events h3 a:hover { color: var(--accent-dark); }
.events p { margin: 0; color: var(--muted); font-size: .93rem; white-space: pre-line; }
.events .now { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--accent); border-radius: 999px; padding: .1rem .55rem; margin-left: .4rem; vertical-align: middle; }
[data-events-section][hidden] { display: none; }
.admin .row.noimg-row { grid-template-columns: 1fr auto; }

/* Laufband auf der Startseite */
.ticker { background: var(--gold); color: var(--ink); overflow: hidden; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .55rem 0; }
.ticker[hidden] { display: none; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span { white-space: nowrap; padding-right: .6em; }
.ticker:hover .ticker-track { animation-play-state: running; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Material & Technik */
.tech { background: var(--paper); }
.spec { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(201,162,39,.3); }
.spec b { display: block; font-size: 1.7rem; letter-spacing: -.02em; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .4rem; }
.spec span { color: #b9c2d2; font-size: .93rem; }
.outlook { background: var(--white); }
.outlook .wrap { max-width: 46rem; text-align: center; }
.outlook .num { margin-inline: auto; }
.outlook p { color: var(--muted); font-size: 1.1rem; }

/* Kundenstimmen */
.voice { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin: 0; position: relative; }
.voice::before { content: "\201E"; position: absolute; top: -.15rem; left: 1.1rem; font-size: 4rem; line-height: 1; color: var(--accent); font-family: Georgia, serif; }
.voice p { margin: 2.3rem 0 .8rem; font-size: 1.02rem; white-space: pre-line; }
.voice footer { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); }
[data-voices-section][hidden] { display: none; }

/* Preisrechner */
.calc-wrap { display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; align-items: start; }
.presets { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.presets legend { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; padding: 0; }
.preset { text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .9rem; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.preset:hover, .preset.on { border-color: var(--accent); background: var(--accent-soft); }
.preset b { display: block; }
.preset span { color: var(--muted); font-size: .82rem; }
.calc-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: .3rem; }
.calc-result strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.15; color: var(--accent-dark); }
.calc-info { background: var(--ink); color: #fff; border-radius: 24px; padding: 1.8rem; border: 1px solid rgba(201,162,39,.3); }
.calc-info h2 { font-size: 1.3rem; }
.calc-info ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.calc-info li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.calc-info li b { color: var(--accent); font-size: 1.15rem; white-space: nowrap; }
.calc-info li span { color: #b9c2d2; font-size: .92rem; text-align: right; }
.calc-info .hint { color: #9aa6bb; }
.admin form h3.full { margin: .6rem 0 0; font-size: 1.05rem; }
@media (max-width: 960px) { .calc-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .presets { grid-template-columns: 1fr; } }


/* Klare Rueckmeldung, wenn ein Produkt im Warenkorb gespeichert wurde. */
.cart-feedback { min-height: 1.65rem; margin-top: .35rem; font-size: .91rem; font-weight: 600; }
.cart-feedback a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.cart-feedback.error { color: #a22424; font-weight: 500; }

.product-customize { display: inline-block; align-self: flex-start; color: var(--muted); font-size: .94rem; text-decoration: none; margin: .2rem 0 .7rem; }
.product-customize:hover { text-decoration: underline; color: var(--ink); }

/* Impressumsangaben und Hinweise */
.legal-subtitle { color: var(--muted); }
.legal-multiline { display: block; white-space: pre-line; }
.legal-open { display: inline-block; background: #fff3d2; border-left: 3px solid #b8890b; padding: .5rem .8rem; }
.legal-note { font-size: .91rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 1rem; }
.legal [hidden] { display: none; }


/* Autoplay: Laufband und 3D-Druck ohne manuelle Steuerung. */
.ticker-track, .ticker:hover .ticker-track {
  animation: ticker 38s linear infinite;
  animation-play-state: running;
}
.printer-status { position: absolute; bottom: 4%; left: 6%; color: #d4c29c; font-family: var(--mono); font-size: .73rem; letter-spacing: .04em; background: rgba(10,12,18,.65); border-radius: 8px; padding: .35rem .45rem; pointer-events: none; }
@media (max-width: 550px) { .printer-status { bottom: 4%; } }


/* ===== Senkrechter Terminkalender rechts: Startseite und Shop ===== */
.calendar-rail {
  min-width: 0; border-radius: 22px; padding: 1.15rem 1.1rem;
  border: 1px solid rgba(201,162,39,.42); box-shadow: 0 16px 38px rgba(0,0,0,.13);
}
.calendar-head { padding-bottom: .75rem; border-bottom: 1px solid rgba(130,130,130,.18); margin-bottom: .25rem; }
.calendar-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-weight: 900; font-size: 1.15rem; color: var(--ink); background: var(--gold); margin-bottom: .55rem; }
.calendar-eyebrow { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font: 700 .68rem var(--mono); }
.calendar-head h2 { font-size: clamp(1.15rem, 1.55vw, 1.45rem); line-height: 1.2; margin: .3rem 0; }
.calendar-head p { font-size: .78rem; color: #a6abbb; margin: 0; line-height: 1.45; }
.calendar-list { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; }
.calendar-event { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: .7rem; align-items: start; padding: .88rem 0; border-bottom: 1px solid rgba(130,130,130,.18); }
.calendar-event:last-child { border-bottom: 0; padding-bottom: .2rem; }
.calendar-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--gold); color: #111; border-radius: 12px; min-height: 50px; padding: .3rem .2rem; line-height: 1.1; }
.calendar-date strong { font: 800 1.4rem var(--font); }
.calendar-date span { font: 800 .62rem var(--mono); letter-spacing: .04em; margin-top: .15rem; }
.calendar-details { min-width: 0; }
.calendar-details h3 { font-size: .89rem; line-height: 1.35; margin: 0 0 .15rem; overflow-wrap: anywhere; }
.calendar-details a { color: inherit; text-decoration: none; }
.calendar-details a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.calendar-meta { font-size: .71rem; font-weight: 700; color: var(--accent); line-height: 1.35; margin: 0 0 .3rem; }
.calendar-description { color: #c6c7ce; font-size: .76rem; line-height: 1.4; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.calendar-empty { color: #c5c3bb; font-size: .83rem; line-height: 1.5; padding: 1.2rem 0 .4rem; }
.calendar-rail--dark { background: linear-gradient(150deg,#202228,#101116); color: #fff; align-self: center; }
.calendar-rail--light { background: var(--white); color: var(--text); position: sticky; top: 166px; align-self: start; }
.calendar-rail--light .calendar-head p { color: var(--muted); }
.calendar-rail--light .calendar-eyebrow, .calendar-rail--light .calendar-meta { color: var(--accent-dark); }
.calendar-rail--light .calendar-description, .calendar-rail--light .calendar-empty { color: var(--muted); }
/* Bei breiten Bildschirmen rechts neben dem 3D-Objekt. */
.hero .wrap { width: min(100% - 2.5rem, 1320px); grid-template-columns: minmax(0, 1.12fr) minmax(0, .9fr) minmax(230px, .68fr); gap: clamp(1rem, 2.1vw, 2rem); padding-block: clamp(3rem,6vw,5rem); }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
.hero .calendar-rail { z-index: 2; }
.shop-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(238px,270px); gap: clamp(1rem,3vw,2rem); align-items: start; }
.shop-main { min-width: 0; }
.shop-layout .products.grid.c3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width: 1180px) {
  .hero .wrap { grid-template-columns: minmax(0,1fr) minmax(0,.84fr); }
  .hero .calendar-rail { grid-column: 2; width: 100%; align-self: start; }
  .hero .hero-visual { grid-column: 2; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; }
  .hero .wrap > :first-child { grid-column: 1; grid-row: 1 / 3; }
  .hero .hero-visual { grid-column: 2; }
  .hero .calendar-rail { grid-column: 2; }
  .shop-layout { grid-template-columns: minmax(0,1fr) minmax(215px,250px); }
}
@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero .wrap > :first-child, .hero .hero-visual, .hero .calendar-rail { grid-column: 1; grid-row: auto; }
  .hero .calendar-rail { width: 100%; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-layout .products.grid.c3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shop-layout .calendar-rail { position: static; max-width: 100%; }
}
@media (max-width: 540px) {
  .shop-layout .products.grid.c3 { grid-template-columns: 1fr; }
  .calendar-rail { padding: 1rem; }
  .calendar-event { grid-template-columns: 52px 1fr; }
}
