/* Formträume – Design: leicht, warm, feine Linien, klare Schrift.
   Farben zentral hier anpassen. Keine externen Schriften (DSGVO-freundlich, schnell). */
:root {
  --bg: #F7F3EE;
  --surface: #FFFFFF;
  --surface-2: #FBF8F4;
  --ink: #2F2A25;
  --ink-2: #5A514A;
  --muted: #8A7F74;
  --line: #E7DFD4;
  --line-2: #D9CEC0;
  --accent: #B07A5B;
  --accent-ink: #8E5B3F;
  --accent-soft: #F3E8DE;
  --sage: #7D8F74;
  --sage-soft: #E9EEE4;
  --sale: #B4553D;
  --danger: #B4453D;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(60, 45, 30, .04), 0 8px 24px rgba(60, 45, 30, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent-ink); }
.center { text-align: center; }
.r { text-align: right; }
.mt { margin-top: 1.25rem; }
.mb { margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.section { padding-top: clamp(28px, 5vw, 56px); }
.section:last-child { padding-bottom: 64px; }
.narrow { max-width: 720px; }
.narrow-wide { max-width: 1080px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--muted); margin: 0 0 .5rem; }
.lead { font-size: 1.125rem; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.4rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 999px; font: 500 1rem var(--font); cursor: pointer; transition: background .15s, transform .05s; text-decoration: none !important; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { min-height: 36px; padding: .4rem 1rem; font-size: .9rem; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; color: var(--danger); border-color: #E6C3BE; }
.btn.danger:hover { background: #FBEDEA; }
.btn.grow { flex: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.btn-row form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-ink); cursor: pointer; font: inherit; }
.linklike:hover { text-decoration: underline; }

/* Kopfbereich */
.offerbar { background: var(--ink); color: #F4EDE4; font-size: .9rem; }
.offerbar .wrap { display: flex; gap: .75rem; align-items: center; justify-content: center; min-height: 38px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; text-align: center; }
.code { font: 600 .85rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; border: 1px dashed currentColor; background: transparent; color: inherit; padding: .35rem .6rem; border-radius: 6px; cursor: copy; }
.site-header { background: rgba(247, 243, 238, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .01em; text-decoration: none !important; }
.logo.small { font-size: 1.1rem; }
.search { flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; border-radius: 999px; background: var(--surface); }
.head-actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.icon-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); position: relative; }
.icon-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.badge { position: absolute; top: -6px; right: -9px; background: var(--accent); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.mainnav .wrap { display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; min-height: 44px; align-items: center; font-size: .95rem; }
.mainnav .wrap::-webkit-scrollbar { display: none; }
.mainnav a { color: var(--ink-2); white-space: nowrap; }
.mainnav a.accent { color: var(--accent-ink); }
.mainnav a.sub { color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Flash-Meldungen */
.flash { padding: .8rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0; border: 1px solid var(--line); background: var(--surface); font-size: .95rem; }
.flash.success { border-color: #CFDCC6; background: var(--sage-soft); }
.flash.error { border-color: #EBC8C1; background: #FBEFEC; color: #7A2E22; }
.flash.info { border-color: #EADBC9; background: var(--accent-soft); }

/* Hero */
.hero { padding: clamp(28px, 6vw, 72px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
.hero-img img, .subshop-hero .hero-img img { border-radius: 22px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.subshop-hero { background: var(--tile, #EFE6DA); padding: clamp(28px, 5vw, 64px) 0; }
.usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(28px, 5vw, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp { padding: 1.1rem 1rem; display: flex; flex-direction: column; font-size: .92rem; border-left: 1px solid var(--line); }
.usp:first-child { border-left: 0; }
.story { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; }

/* Abschnitte & Raster */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { color: inherit; display: block; text-decoration: none !important; }
.card-img { position: relative; background: var(--surface-2); }
.card-img img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card-body { padding: .9rem 1rem 1rem; }
.card-body h3 { font-family: var(--font); font-size: 1rem; font-weight: 600; margin: 0 0 .2rem; }
.card-body p { margin: 0 0 .6rem; line-height: 1.4; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; padding: .15rem .6rem; }
.tag.sale { background: var(--sale); color: #fff; border-color: var(--sale); }
.tag.soft { background: var(--accent-soft); border-color: transparent; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price s { font-weight: 400; color: var(--muted); margin-left: .4rem; font-size: .9em; }
.price.is-sale { color: var(--sale); }
.price.big { font-size: 1.7rem; font-family: var(--font-display); font-weight: 500; }
.stars { color: var(--line-2); letter-spacing: 1px; }
.stars .on { color: #C9963F; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; min-height: 200px; border-radius: var(--radius); background: var(--tile); overflow: hidden; display: flex; align-items: flex-end; color: var(--ink); text-decoration: none !important; border: 1px solid var(--line); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .4s; }
.tile:hover img { transform: scale(1.03); }
.tile span { position: relative; background: rgba(255, 255, 255, .88); margin: 12px; padding: .7rem 1rem; border-radius: 10px; display: flex; flex-direction: column; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; color: var(--ink-2); background: var(--surface); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty, .empty-box { color: var(--muted); padding: 2rem 0; }
.empty-box { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 3rem 1rem; }
.sort { display: flex; align-items: center; gap: .5rem; }

/* Produktseite */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery-main img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--surface-2); border: 1px solid var(--line); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 1px solid var(--line); border-radius: 10px; padding: 0; background: none; cursor: pointer; width: 72px; flex: 0 0 72px; overflow: hidden; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { aspect-ratio: 1; object-fit: cover; }
.sticky-col { position: sticky; top: 130px; }
.hook { margin: 1.2rem 0; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.hook-title { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 .5rem; color: var(--ink); }
.hook ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.hook li { padding-left: 1.6rem; position: relative; }
.hook li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage); transform: rotate(-45deg); }
.price-block { margin: 1rem 0; }
.price-block p { margin: .2rem 0; }
.buy, .configurator { display: grid; gap: .9rem; margin: 1rem 0; }
.qty-row { display: flex; gap: .7rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); height: 46px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty input { width: 42px; border: 0; text-align: center; background: transparent; padding: 0; -moz-appearance: textfield; min-height: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.share { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; font-size: .9rem; padding: .6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1rem 0; }
.details details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.details details[open] summary::after { content: "–"; }
.details .prose { padding-top: .6rem; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; margin: .6rem 0 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.prose ul { padding-left: 1.2rem; }
.prose h3 { margin-top: 1.4em; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin: 0; background: var(--surface); }
.step legend { font-weight: 600; padding: 0 .4rem; display: flex; align-items: center; gap: .5rem; }
.step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: .85rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.choices.list { grid-template-columns: 1fr; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; flex-direction: column; gap: .1rem; border: 1px solid var(--line-2); border-radius: 11px; padding: .7rem .9rem; background: var(--surface); transition: border-color .15s, background .15s; height: 100%; }
.choice small { color: var(--muted); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.config-sum { border-top: 1px solid var(--line); padding-top: .5rem; }
.reviews { margin-top: clamp(32px, 5vw, 64px); }
.review { border-top: 1px solid var(--line); padding: 1rem 0; }
.review p { margin: .3rem 0; }
.verified { color: var(--sage); }
.reply { background: var(--surface-2); border-left: 2px solid var(--accent); padding: .6rem .9rem; margin-top: .5rem; font-size: .92rem; }
.rating-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.rating-input legend { width: 100%; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 1.8rem; color: var(--line-2); cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #C9963F; }

/* Formulare */
label { display: flex; flex-direction: column; gap: .3rem; font-size: .92rem; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .6rem .8rem; min-height: 44px; width: 100%; }
textarea { resize: vertical; min-height: 0; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 44px; }
.check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.check input { margin-top: .25rem; flex: 0 0 auto; width: 18px; height: 18px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: .85rem; }
.help { color: var(--muted); font-size: .8rem; font-weight: 400; }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); display: grid; gap: 1rem; margin: 0 0 1.2rem; }
.card-form.soft { background: var(--accent-soft); border-color: transparent; }
fieldset.card-form legend { font-family: var(--font-display); font-size: 1.15rem; padding: 0 .3rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.two.zip { grid-template-columns: 140px 1fr; }
.inline { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline input, .inline select { width: auto; flex: 1; min-width: 120px; }
.inline input[type=checkbox], .inline input[type=radio] { flex: 0 0 auto; min-width: 0; width: 18px; }
.inline label { flex-direction: row; align-items: center; gap: .35rem; }
.auth h1 { text-align: center; }

/* Warenkorb & Kasse */
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.cl-total { font-weight: 600; min-width: 90px; text-align: right; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); position: sticky; top: 130px; display: grid; gap: .8rem; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: .5rem 0; }
.sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sum .total { font-weight: 600; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .3rem; }
.mini-line { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.mini-line > span:last-child { white-space: nowrap; }
.mini-line.total { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--line-2); margin-top: .3rem; }
.coupon { border-top: 1px solid var(--line); padding-top: .8rem; display: grid; gap: .4rem; }
.progress { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; gap: 0; counter-reset: s; }
.progress li { flex: 1; font-size: .8rem; color: var(--muted); padding-top: 22px; position: relative; text-align: center; }
.progress li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line); }
.progress li::after { content: ""; position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.progress li.done { color: var(--ink); }
.progress li.done::before { background: var(--sage); }
.progress li.done::after { background: var(--sage); border-color: var(--sage); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.timeline li { border-left: 2px solid var(--line); padding-left: .9rem; }
.account-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); color: inherit; }
.offer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.offer-card { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.2rem; }
.pill { display: inline-block; font-size: .78rem; padding: .15rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.s-new { background: #FBF1E3; border-color: #EEDCC0; }
.pill.s-paid, .pill.s-processing { background: var(--accent-soft); border-color: #E8D4C4; }
.pill.s-shipped, .pill.s-completed, .pill.p-published { background: var(--sage-soft); border-color: #D3DEC9; }
.pill.s-cancelled { background: #F6E7E4; border-color: #EBCBC5; }
.pill.p-planning { background: #EEF0F5; border-color: #DADEE8; }

/* Fußbereich */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 48px 0 24px; background: var(--surface-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; margin: 0 0 .7rem; }
.foot a { display: block; color: var(--ink-2); padding: .15rem 0; font-size: .95rem; }
.withdraw-link { font-weight: 600; }
.legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .8rem; }
.legal a { color: inherit; text-decoration: underline; }

/* ---------------- Backend ---------------- */
body.admin { background: #F5F2EE; }
.admin-top { display: flex; align-items: center; gap: 1rem; height: 58px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.admin-top .head-actions { margin-left: auto; }
.admin-top form { margin: 0; }
.admin-wrap { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 58px); }
.admin-nav { background: var(--surface); border-right: 1px solid var(--line); padding: 1rem .8rem 2rem; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; }
.admin-nav a { padding: .45rem .7rem; border-radius: 8px; color: var(--ink-2); font-size: .93rem; }
.admin-nav a:hover { background: var(--surface-2); text-decoration: none; }
.admin-nav a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav-grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 1rem .7rem .3rem; }
.admin-main { padding: clamp(16px, 3vw, 32px); min-width: 0; max-width: 1400px; }
.admin-main h1 { font-size: 1.8rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2vw, 22px); margin-bottom: 1.2rem; }
.panel h2 { font-size: 1.2rem; }
.intro { max-width: 820px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.2rem; }
.form-grid .full, .form-grid h2, .form-grid h3 { grid-column: 1 / -1; }
.form-grid h2 { margin: 0; }
.form-grid fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.kpis > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.kpis span { font-size: .8rem; color: var(--muted); }
.kpis strong { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.small-kpis strong { font-size: 1.1rem; }
.admin-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.2rem; align-items: start; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .8rem; padding: .7rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table.compact td, .table.compact th { padding: .35rem .5rem; }
.table th.r, .table td.r { text-align: right; }
.table tr.inactive td { color: var(--muted); }
.table tr.planning { background: #FAFAFC; }
.table tr.total td { font-weight: 600; border-top: 1px solid var(--line-2); }
.table img.mini { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.neg, .neg strong { color: var(--danger); }
.warn { color: #A46A1F; }
.pos { color: #4F6B45; }
input.xs { width: 80px; min-width: 0; }
.thumb { width: 120px; border-radius: 8px; border: 1px solid var(--line); }
.subnav { display: flex; gap: 1.2rem; overflow-x: auto; position: sticky; top: 58px; z-index: 5; background: #F5F2EE; padding: .6rem 0; margin-bottom: .8rem; border-bottom: 1px solid var(--line); font-size: .92rem; white-space: nowrap; }
.pe-grid { display: grid; grid-template-columns: 1fr 330px; gap: 1.2rem; align-items: start; }
.pe-side { position: sticky; top: 110px; display: grid; gap: .8rem; }
.calc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.calc-box h3 { font-family: var(--font); font-size: 1rem; font-weight: 600; }
.calc-box .an { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.calc-box .an h4 { margin: 0 0 .3rem; font-size: .85rem; color: var(--muted); font-weight: 500; }
.big-margin { font-size: 1.6rem; font-weight: 600; }
.rows { display: grid; gap: .5rem; margin: .6rem 0; }
.row-line { display: grid; grid-template-columns: 1.3fr 1.3fr .7fr 70px 30px; gap: .5rem; align-items: center; }
.row-line.head { font-size: .78rem; }
[data-rows="extras"] .row-line { grid-template-columns: 2fr 1fr 1.6fr 30px; }
.ci-head { display: none !important; }
.ci-row { display: grid; gap: .45rem; align-items: center; grid-template-columns: 1.1fr 1fr 1fr 1.2fr .9fr 26px;
  grid-template-areas: "kind ref ref label label rm" "qty price batch group cost rm"; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.ci-row [data-ci-kind] { grid-area: kind; } .ci-row [data-ci-ref] { grid-area: ref; } .ci-row input[name="ci_label[]"] { grid-area: label; }
.ci-row .qty-in { grid-area: qty; } .ci-row [data-ci-price] { grid-area: price; } .ci-row [data-ci-batch] { grid-area: batch; }
.ci-row [data-ci-group] { grid-area: group; } .ci-row [data-ci-cost] { grid-area: cost; text-align: right; } .ci-row [data-row-remove] { grid-area: rm; }
.ci-row input, .ci-row select { min-height: 38px; padding: .4rem .55rem; font-size: 14px; }
.qty-in { display: flex; align-items: center; gap: .25rem; }
.qty-in span { min-width: 2.2em; }
.ci-cost { font-variant-numeric: tabular-nums; font-size: .92rem; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin: .8rem 0; }
.img-item { border: 1px solid var(--line); border-radius: 10px; padding: .5rem; display: grid; gap: .4rem; background: var(--surface-2); }
.img-item img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.og-preview { display: grid; grid-template-columns: 150px 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #F0F2F5; max-width: 560px; }
.og-preview img { width: 150px; height: 150px; object-fit: cover; }
.og-preview > div { padding: .7rem .9rem; display: flex; flex-direction: column; gap: .2rem; }
.save-bar { position: sticky; bottom: 0; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: .05rem .35rem; border-radius: 5px; font-size: .85em; word-break: break-all; }

/* ---------------- Responsiv ---------------- */
@media (max-width: 1100px) {
  .pe-grid { grid-template-columns: 1fr; }
  .pe-side { position: static; }
  .save-bar { position: sticky; bottom: 10px; z-index: 5; }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .admin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .product, .cart-grid, .story, .account-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .sticky-col, .summary { position: static; }
  .usps { grid-template-columns: 1fr 1fr; }
  .usp:nth-child(3) { border-left: 0; }
  .usp:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; margin-left: -8px; }
  .site-header .mainnav { display: none; border-top: 1px solid var(--line); }
  .site-header.open .mainnav { display: block; }
  .site-header .mainnav .wrap { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: .6rem; }
  .site-header .mainnav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .head { flex-wrap: wrap; gap: .6rem; padding-top: 8px; padding-bottom: 8px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .hide-sm { display: none; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-nav { display: none; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  body.admin.nav-open .admin-nav { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: .7rem .75rem .8rem; }
  .two, .two.zip { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line .qty, .cart-line .cl-total { grid-column: 2; justify-self: start; }
  .foot { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .qty-row { flex-wrap: wrap; }
  .qty-row .btn { flex-basis: 100%; }
  .progress li { font-size: .68rem; }
  .row-line, [data-rows="extras"] .row-line { grid-template-columns: 1fr 1fr; }
  .ci-row { grid-template-columns: 1fr 1fr; grid-template-areas: "kind kind" "ref ref" "label label" "qty price" "batch group" "cost rm"; }
  .og-preview { grid-template-columns: 1fr; }
  .og-preview img { width: 100%; height: auto; aspect-ratio: 1.91; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .offerbar, .admin-nav, .admin-top { display: none !important; } }

/* Administratoren: Aktionen untereinander */
.act-col form, .act-col a { display: block; white-space: nowrap; margin: .1rem 0; }
.act-col form.inline { display: block; }
.table td.r, .nowrap { white-space: nowrap; }
