/* ==========================================================================
   ERM Holzmanufaktur – Design "Kerzenschein"
   Markenfarben: Petrolgrün (#005358) + Gold (#a88556) auf Birkenpapier
   (aus dem ERM-Logo). Bogenförmige Bildrahmen (Schwibbogen),
   keine externen Schriften/Skripte (DSGVO-freundlich).
   ========================================================================== */

:root {
  /* "night" = tiefes Petrol der Marke (Kopf-/Fußzeile, Überschriften, Buttons) */
  --night: #043b3e;
  --night-2: #0a4a4e;
  --night-3: #005358;
  /* "amber" = Gold der Marke (Akzente, Sterne, Unterstriche) */
  --amber: #b8935f;
  --amber-2: #d7bd8e;
  --amber-3: #efe4d0;
  --amber-deep: #8a6a3c;
  --paper: #f8f2e6;
  --paper-2: #efe6d2;
  --paper-3: #e5d8bd;
  --card: #fffdf8;
  --ink: #1b1915;
  --ink-2: #4b4539;
  --muted: #7b7364;
  --line: rgba(27, 25, 21, .13);
  --ok: #2c7a4b;
  --warn: #b2661a;
  --err: #b0362a;

  /* Farbwelt (wird je Kategorie umgeschaltet) */
  --accent: var(--amber);
  --accent-2: var(--amber-2);
  --accent-ink: #5a4423;
  --band-1: #043b3e;
  --band-2: #005358;
  --glow: rgba(184, 147, 95, .34);

  --radius: 16px;
  --radius-s: 10px;
  --wrap: 1240px;
  --shadow-1: 0 1px 2px rgba(4, 40, 42, .08), 0 6px 18px rgba(4, 40, 42, .07);
  --shadow-2: 0 2px 4px rgba(4, 40, 42, .1), 0 18px 40px rgba(4, 40, 42, .16);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="easter"] {
  --accent: #86b35f;
  --accent-2: #f2d56b;
  --accent-ink: #2f4a1b;
  --band-1: #1f3a2b;
  --band-2: #4f7a4a;
  --glow: rgba(242, 213, 107, .38);
}

[data-theme="year"] {
  --accent: #d98a5a;
  --accent-2: #f0c777;
  --accent-ink: #5f2c10;
  --band-1: #2b3a3c;
  --band-2: #5c7a6e;
  --glow: rgba(240, 199, 119, .34);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 500px at 85% -10%, rgba(168, 133, 86, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(0, 83, 88, .06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--night-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--night); letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small { font-size: .82em; }
em { font-style: italic; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { flex: none; vertical-align: -.22em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-deep); margin: 0 0 .9em; }
.eyebrow--light { color: var(--amber-2); }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 62ch; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid var(--night);
  background: var(--night); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
}
.btn:hover { background: var(--night-3); border-color: var(--night-3); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn--glow {
  background: linear-gradient(180deg, var(--amber-2), var(--amber)); border-color: var(--amber); color: #3b2103;
  box-shadow: 0 0 0 0 var(--glow), 0 8px 24px -8px rgba(168, 133, 86, .7);
}
.btn--glow:hover { background: linear-gradient(180deg, #ffe0a0, var(--amber-2)); color: #2b1802; border-color: var(--amber-2); box-shadow: 0 0 0 6px var(--glow), 0 10px 28px -8px rgba(168, 133, 86, .8); }
.btn--ghost { background: transparent; color: var(--night); }
.btn--ghost:hover { background: var(--night); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn--small { padding: .55em 1.05em; font-size: .92rem; }
.btn--wide { width: 100%; }
.btn--big { padding: 1em 1.6em; font-size: 1.1rem; }
.btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-busy { opacity: .75; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--night-3); }
.link-arrow:hover { color: var(--amber-deep); gap: .7em; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--err); background: rgba(176, 54, 42, .08); }

/* ---------- Kopfbereich ---------- */
.topbar { background: #032e30; color: #d3e3e0; font-size: .82rem; }
.topbar__in { display: flex; gap: 20px; align-items: center; min-height: 34px; padding-block: 4px; }
.topbar__in > span { display: inline-flex; gap: .5em; align-items: center; }
.topbar__in .ico { color: var(--amber); }
.topbar__right { margin-left: auto; }
.topbar a { color: var(--amber-2); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(4, 45, 47, .96); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(168, 133, 86, .32); }
.site-header::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: .6; }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { filter: none; }
.brand__logo { height: 56px; width: auto; display: block; }
@media (max-width: 560px) { .brand__logo { height: 46px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 700 1.5rem/1 var(--serif); letter-spacing: .12em; }
.brand__sub { font: 500 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--amber-2); margin-top: 5px; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav__item { position: relative; }
.nav__item > a { display: block; padding: 10px 14px; color: #e9eeff; text-decoration: none; font-weight: 500; border-radius: 999px; font-size: .97rem; }
.nav__item > a:hover, .nav__item > a.is-active { color: #fff; background: rgba(255, 255, 255, .09); }
.nav__item > a.is-active { box-shadow: inset 0 -2px 0 var(--amber); border-radius: 10px 10px 0 0; }
.nav__sub { position: absolute; left: 0; top: 100%; min-width: 250px; list-style: none; margin: 6px 0 0; padding: 8px; background: var(--night-2); border: 1px solid rgba(168, 133, 86, .3); border-radius: 14px; box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; color: #e9eeff; text-decoration: none; border-radius: 9px; }
.nav__sub a:hover { background: rgba(168, 133, 86, .14); color: var(--amber-2); }
.tools { display: flex; gap: 6px; }
.tool { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; text-decoration: none; }
.tool:hover { background: rgba(255, 255, 255, .12); color: var(--amber-2); }
.tool__count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #2b1802; font: 700 .72rem/20px var(--sans); text-align: center; box-shadow: 0 0 12px rgba(168, 133, 86, .8); }
.tool__count.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.5); } }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-left: auto; cursor: pointer; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: inline; }

@media (max-width: 1200px) {
  .site-header__in { gap: 8px; }
  .nav-toggle { display: block; }
  .tools { order: 3; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--night); border-bottom: 1px solid rgba(168, 133, 86, .35); max-height: calc(100vh - 110px); overflow: auto; display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .nav__item > a { border-radius: 10px; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 4px 12px; margin: 0; }
  .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1000px 600px at 75% 40%, #0a6a6f 0%, var(--night-2) 42%, var(--night) 100%); color: #fff; overflow: hidden; padding-block: clamp(36px, 6vw, 84px) clamp(70px, 8vw, 120px); }
.hero__stars { position: absolute; inset: 0; background-image:
  radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 65%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 45% 12%, #ffe7b0, transparent), radial-gradient(1px 1px at 62% 78%, #fff, transparent),
  radial-gradient(2px 2px at 78% 18%, #ffe7b0, transparent), radial-gradient(1px 1px at 90% 55%, #fff, transparent),
  radial-gradient(1px 1px at 6% 82%, #fff, transparent), radial-gradient(1.5px 1.5px at 35% 40%, #fff, transparent);
  opacity: .8; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .45; } }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); }
.hero h1 em { color: var(--amber-2); font-style: italic; text-shadow: 0 0 30px rgba(168, 133, 86, .55); }
.hero .lead { color: #d8e0f5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: #c5cfe9; font-size: .95rem; }
.hero__facts strong { color: var(--amber-2); font: 700 1.4rem/1 var(--serif); margin-right: .25em; }
.hero__art { display: grid; place-items: center; }
.hero-art { width: min(100%, 520px); filter: drop-shadow(0 20px 60px rgba(0, 0, 0, .5)); }
.ha-halo { animation: breathe 5s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .75; } to { opacity: 1; } }
.hero-art .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.6s ease-in-out infinite alternate; }
.hero-art .flame.f1 { animation-duration: 1.2s; animation-delay: -.4s; }
.hero-art .flame.f2 { animation-duration: 2s; animation-delay: -.9s; }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-2deg); opacity: .95; } 50% { transform: scale(.92, 1.08) rotate(2deg); opacity: 1; } 100% { transform: scale(1.05, .93) rotate(-1deg); opacity: .88; } }
.ha-star { animation: twinkle 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.ha-star.s1 { animation-delay: -1s; } .ha-star.s2 { animation-delay: -2s; } .ha-star.s3 { animation-delay: -.5s; }
.ha-snow { animation: fall 7s linear infinite; }
@keyframes fall { from { transform: translateY(-20px); opacity: 0; } 10% { opacity: .8; } to { transform: translateY(30px); opacity: 0; } }
.hero__edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--paper); }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero-art { width: min(78%, 340px); }
}

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(40px, 6vw, 80px); }
.section--paper2 { background: var(--paper-2); }
.section__head { margin-bottom: 28px; }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section__head h2 { margin-bottom: .2em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 26px 26px; border-radius: 22px 22px 14px 14px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, var(--band-1), var(--band-2)); box-shadow: var(--shadow-1); transition: transform .25s ease, box-shadow .25s; min-height: 280px; }
.tile::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 80%; background: radial-gradient(closest-side, var(--glow), transparent); z-index: -1; transition: opacity .3s; opacity: .8; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: #fff; }
.tile:hover::before { opacity: 1; }
.tile--xmas { --band-1: #043b3e; --band-2: #005358; --glow: rgba(168, 133, 86, .45); }
.tile--easter { --band-1: #1f3a2b; --band-2: #4f7a4a; --glow: rgba(242, 213, 107, .5); }
.tile--year { --band-1: #2b3a3c; --band-2: #5c7a6e; --glow: rgba(240, 199, 119, .45); }
.tile__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50% 50% 12px 12px; background: rgba(255, 255, 255, .1); color: var(--amber-2); border: 1px solid rgba(255, 255, 255, .2); }
.tile__kicker { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-2); }
.tile__title { font: 700 1.8rem/1.1 var(--serif); }
.tile__blurb { color: #d3dcf2; font-size: .96rem; flex: 1; }
.tile__meta { font-size: .88rem; color: var(--amber-2); }
.tile__go { position: absolute; right: 20px; top: 24px; opacity: .6; transition: .2s; }
.tile:hover .tile__go { opacity: 1; transform: translateX(4px); }

.craft { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 5vw, 60px); align-items: center; }
.craft__art { display: grid; place-items: center; aspect-ratio: 3/4; border-radius: 999px 999px 18px 18px; background: linear-gradient(180deg, var(--night), var(--night-3)); color: var(--amber-2); box-shadow: 0 0 60px -10px rgba(168, 133, 86, .6), var(--shadow-2); }
.craft__art .ico { filter: drop-shadow(0 0 14px rgba(168, 133, 86, .8)); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { color: var(--amber-deep); margin-top: 2px; }
@media (max-width: 700px) { .craft { grid-template-columns: 1fr; } .craft__art { max-width: 160px; } }

.dealer-cta { background: linear-gradient(120deg, var(--night), var(--night-3)); color: #fff; padding-block: clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.dealer-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 133, 86, .4), transparent); }
.dealer-cta h2 { color: #fff; max-width: 22ch; }
.dealer-cta p { color: #d3dcf2; max-width: 56ch; }
.dealer-cta__in { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.dealer-cta__act { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Katalogkopf ---------- */
.band { position: relative; background: linear-gradient(135deg, var(--band-1), var(--band-2)); color: #fff; padding-block: 28px 44px; overflow: hidden; }
.band__glow { position: absolute; right: -8%; top: -40%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.band__in { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.band h1 { color: #fff; margin-bottom: .25em; }
.band .lead { color: #dbe3f6; }
.band__text { color: #dbe3f6; max-width: 62ch; }
.band__icon { color: var(--accent-2); opacity: .9; filter: drop-shadow(0 0 24px var(--glow)); }
.band .crumbs a, .band .crumbs li { color: #c9d4ee; }
@media (max-width: 700px) { .band__icon { display: none; } }

.crumbs { margin-bottom: 18px; font-size: .86rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin: 0 .55em; opacity: .6; }
.crumbs a { color: inherit; opacity: .85; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.product-top { padding-top: 22px; }
.product-top .crumbs { margin: 0; color: var(--muted); }

.subnav { padding-top: 22px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: .55em; padding: .55em 1em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--night); font-weight: 500; box-shadow: var(--shadow-1); }
.chip:hover { border-color: var(--accent); background: var(--amber-3); color: var(--night); }
.chip .ico { color: var(--amber-deep); }
.chip em { font-style: normal; font-size: .8em; color: var(--muted); }

.shop { display: grid; grid-template-columns: 270px 1fr; gap: 32px; padding-block: 28px 64px; align-items: start; }
.filters { position: sticky; top: 100px; }
.filters__toggle { display: none; width: 100%; }
.filters__panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 16px; box-shadow: var(--shadow-1); }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters__toggle { display: inline-flex; margin-bottom: 10px; }
  .js .filters__panel { display: none; }
  .js .filters__panel.is-open { display: grid; }
}
.results__count { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.results__count strong { color: var(--night); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); }

/* ---------- Formularfelder ---------- */
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { font: 600 .84rem/1.2 var(--sans); color: var(--ink-2); padding: 0; }
.field__err { color: var(--err); font-size: .85rem; }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #d6ccb6; border-radius: 12px; padding: .72em .9em; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(168, 133, 86, .28); }
input[type="range"] { accent-color: var(--amber-deep); padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .96rem; padding: 3px 0; }
.check input { margin-top: .3em; accent-color: var(--amber-deep); width: 17px; height: 17px; flex: none; }
.check em { font-style: normal; color: var(--muted); font-size: .85em; }
.check--block { margin-top: 12px; }
output { color: var(--amber-deep); font-weight: 700; }

/* ---------- Produktkarten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(168, 133, 86, .6); }
.card[hidden] { display: none; }
.card__media { position: relative; display: block; padding: 18px 18px 0; text-decoration: none; }
.arch { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50% 50% 10px 10px / 42% 42% 10px 10px; background: radial-gradient(closest-side at 50% 62%, #fff, #f3e7cd 88%); box-shadow: inset 0 0 0 1px rgba(139, 90, 43, .18), inset 0 -30px 40px -30px rgba(168, 133, 86, .35); }
.arch img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s ease; }
.card:hover .arch img { transform: scale(1.05); }
.arch__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--amber-deep); opacity: .6; }
.arch--sm { width: 72px; border-radius: 50% 50% 6px 6px / 42% 42% 6px 6px; }
.arch--xl { border-radius: 50% 50% 16px 16px / 34% 34% 16px 16px; box-shadow: inset 0 0 0 1px rgba(139, 90, 43, .2), 0 0 70px -20px rgba(168, 133, 86, .6), var(--shadow-1); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--night); color: var(--amber-2); font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; box-shadow: 0 0 14px rgba(168, 133, 86, .45); }
.badge--lg { top: 18px; left: 18px; font-size: .78rem; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; flex: 1; }
.card__cat { font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card__title { font: 600 1.06rem/1.25 var(--serif); margin: 0; min-height: 2.5em; }
.card__title a { color: var(--night); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.card__buy { position: relative; z-index: 2; margin-top: 8px; }
.card__buy .btn { width: 100%; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price__label { font: 700 .72rem/1 var(--sans); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.price__value { font: 700 1.35rem/1 var(--serif); color: var(--night); }
.price__tax, .price__uvp { flex-basis: 100%; color: var(--muted); font-size: .78rem; }
.price--dealer .price__label { color: var(--amber-deep); flex-basis: 100%; }
.price--dealer .price__value { color: var(--night); }
.price--lg .price__value { font-size: 2.4rem; }
.price--lg .price__label { font-size: .82rem; }
.avail { font-size: .76rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.avail--preorder, .avail--limited { color: var(--warn); }
.avail--out { color: var(--err); }
.avail--lg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: .95rem; margin: 12px 0 0; }
.avail--lg::before { align-self: center; }
.avail--lg span { font-weight: 400; color: var(--muted); }

/* ---------- Produktseite ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); padding-block: 22px 46px; align-items: start; }
.gallery { position: sticky; top: 100px; }
.gallery__main { position: relative; }
.gallery__main img { cursor: zoom-in; }
.gallery__thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; justify-content: center; }
.thumb { width: 74px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: 50% 50% 8px 8px / 42% 42% 8px 8px; overflow: hidden; background: #fff; cursor: pointer; box-shadow: var(--shadow-1); }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb.is-active, .thumb:hover { border-color: var(--amber); }
.buybox h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); }
.sku { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.pricebox { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-1); margin-bottom: 20px; }
.pricebox__note { margin: 8px 0 0; color: var(--muted); font-size: .86rem; }
.buy { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.buy .btn--wide { flex: 1; min-width: 200px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #d6ccb6; border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 42px; height: 100%; min-height: 48px; border: 0; background: none; cursor: pointer; color: var(--night); }
.qty button:hover { background: var(--amber-3); }
.qty input { width: 52px; border: 0; border-radius: 0; text-align: center; padding: .6em 0; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.assure { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .92rem; }
.assure li { display: flex; gap: 10px; align-items: center; }
.assure .ico { color: var(--amber-deep); }
.assure--col { margin-top: 16px; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--amber-3); border: 1px solid rgba(185, 106, 18, .3); }
.notice--warn { background: #fdeccc; }
.detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); padding-bottom: 56px; }
.detail h2 { font-size: 1.5rem; }
.spec { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; color: var(--muted); font-weight: 600; background: rgba(239, 230, 210, .5); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
@media (max-width: 900px) {
  .product, .detail { grid-template-columns: 1fr; }
  .gallery { position: static; }
}

/* ---------- Inhaltsseiten ---------- */
.page-head { background: linear-gradient(135deg, var(--night), var(--night-3)); color: #fff; padding-block: 28px 44px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: -100px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 133, 86, .32), transparent); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: .2em; display: flex; align-items: center; gap: .3em; }
.page-head .lead { color: #d6def2; margin-bottom: 0; }
.page-head .eyebrow { color: var(--amber-2); }
.page-head .crumbs, .page-head .crumbs a { color: #c9d4ee; }
.page-head--ok h1 .ico { color: var(--amber-2); filter: drop-shadow(0 0 14px rgba(168, 133, 86, .8)); }
.page-head--warn { background: linear-gradient(135deg, #3a1d10, #7a3d18); }
.prose-wrap { padding-block: 44px 72px; max-width: 900px; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 1em 1.4em; border-left: 4px solid var(--amber); background: var(--card); border-radius: 0 12px 12px 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .placeholder, .prose mark { background: #ffe6a3; padding: 0 .3em; border-radius: 4px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-1); margin-top: 24px; }
.form-card h2 { font-size: 1.5rem; }
.flash-stack { display: grid; gap: 10px; margin-bottom: 20px; }
.flash { margin: 0; padding: 14px 18px; border-radius: 12px; font-weight: 500; border: 1px solid; }
.flash--success { background: #e2f3e8; border-color: #b6dfc3; color: #1d5a37; }
.flash--error { background: #fbe4e0; border-color: #f0b8b0; color: #8a2a20; }
.flash--info { background: var(--amber-3); border-color: #ecc98a; }

.notfound { text-align: center; padding-block: 72px 96px; }
.notfound__art { color: var(--amber-deep); margin-bottom: 12px; filter: drop-shadow(0 0 20px rgba(168, 133, 86, .5)); }
.notfound .lead { margin-inline: auto; }

/* ---------- Händlerseite / Konto ---------- */
.dealer-intro { padding-block: 40px 72px; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-1); }
.benefit .ico { color: var(--amber-deep); margin-bottom: 8px; }
.dealer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.dealer-grid .form-card { margin-top: 0; }
@media (max-width: 900px) { .dealer-grid { grid-template-columns: 1fr; } }
.account { padding-block: 40px 72px; }
.account__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .account__grid { grid-template-columns: 1fr; } }
.block { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-1); margin: 0 0 20px; }
.block h2 { font-size: 1.3rem; }
.status-pill { display: inline-block; padding: 7px 14px; border-radius: 999px; font: 700 .82rem/1 var(--sans); background: var(--amber-3); color: var(--accent-ink, #6b3a05); margin-bottom: 18px; }
.status-pill--paid { background: #dff2e6; color: #1d5a37; }
.status-pill--payment_failed, .status-pill--cancelled { background: #fbe4e0; color: #8a2a20; }

/* ---------- Warenkorb & Kasse ---------- */
.cart, .checkout, .thanks { padding-block: 36px 80px; }
.cart__grid, .checkout__grid, .thanks__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .cart__grid, .checkout__grid, .thanks__grid { grid-template-columns: 1fr; } }
.lines { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-1); }
.lines th { text-align: left; padding: 12px 16px; font: 600 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(239, 230, 210, .6); }
.lines td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.lines .num { text-align: right; white-space: nowrap; }
.lines__img { width: 92px; }
.lines__name a { font: 600 1.05rem/1.25 var(--serif); color: var(--night); text-decoration: none; }
.lines__name small { display: block; color: var(--muted); margin-top: 3px; }
.qty-input { width: 76px; text-align: center; padding: .55em .4em; }
.cart__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .lines thead { display: none; }
  .lines, .lines tbody, .lines tr, .lines td { display: block; }
  .lines tr { display: grid; grid-template-columns: 84px 1fr auto; gap: 4px 12px; padding: 14px; border-top: 1px solid var(--line); align-items: center; }
  .lines td { border: 0; padding: 0; }
  .lines .lines__img { grid-row: 1 / span 3; width: 84px; }
  .lines .lines__name { grid-column: 2 / 4; }
  .lines td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
  .lines .num { text-align: left; }
  .lines .lines__rm { grid-column: 3; grid-row: 1; justify-self: end; }
  .lines--orders tr { grid-template-columns: 1fr 1fr; }
}
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-1); border-top: 4px solid var(--amber); }
.summary--sticky { position: sticky; top: 100px; }
.summary h2 { font-size: 1.3rem; }
.summary__note { color: var(--muted); font-size: .84rem; margin: 12px 0 0; }
.totals { margin: 12px 0 18px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__sep { border-top: 1px solid var(--line); }
.totals__grand { border-top: 2px solid var(--night); margin-top: 6px; padding-top: 12px !important; font-size: 1.2rem; font-weight: 700; }
.totals__grand dt { color: var(--night); }
.totals__small { font-size: .84rem; color: var(--muted); }
.mini-lines { list-style: none; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.empty-cart { text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: 20px; padding: 56px 20px; }
.empty-cart__art { color: var(--amber-deep); margin-bottom: 8px; }
.checkout .block legend { display: flex; align-items: center; gap: 12px; font: 700 1.25rem/1.2 var(--serif); color: var(--night); padding: 0; margin-bottom: 18px; float: left; width: 100%; }
.checkout .block legend + * { clear: both; }
.checkout .block { border-radius: 18px; }
.step { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: var(--amber-2); font: 700 .95rem/1 var(--sans); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field--full { grid-column: 1 / -1; }
@media (min-width: 620px) {
  .fields:has(.field--zip) { grid-template-columns: 140px 1fr; }
  .fields:has(.field--zip) .field:not(.field--zip):not(.field--city) { grid-column: 1 / -1; }
}
@media (max-width: 619px) { .fields { grid-template-columns: 1fr; } }
.ship-fields { margin-top: 14px; }
.pay-options { display: grid; gap: 12px; }
.pay-option { display: block; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option__box { display: grid; gap: 4px; padding: 16px 18px 16px 52px; border: 2px solid #d6ccb6; border-radius: 14px; background: #fff; position: relative; transition: .15s; }
.pay-option__box::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b9ad92; background: #fff; transition: .15s; }
.pay-option input:checked + .pay-option__box { border-color: var(--amber); background: #fff8e8; box-shadow: 0 0 0 4px rgba(168, 133, 86, .22); }
.pay-option input:checked + .pay-option__box::before { border-color: var(--amber-deep); background: radial-gradient(circle, var(--amber-deep) 45%, #fff 50%); }
.pay-option input:focus-visible + .pay-option__box { outline: 3px solid var(--amber); outline-offset: 2px; }
.pay-option__title { font-weight: 700; }
.pay-option__hint { color: var(--muted); font-size: .9rem; }
.kv > div { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv code, code { background: var(--paper-2); padding: 2px 8px; border-radius: 6px; font-size: .95em; }
.block--bank { border-left: 4px solid var(--amber); }
.addr { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.addr h3 { font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 620px) { .addr { grid-template-columns: 1fr; } .kv > div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Grav Form / Login (Plugin-Markup) ---------- */
.form-data, .form-field, .form-group { margin-bottom: 16px; }
.form-label label, .form-data > label, .form-label, label.toggleable { display: block; font: 600 .88rem/1.3 var(--sans); color: var(--ink-2); margin-bottom: 6px; }
.form-input-wrapper { display: block; }
.form-input-wrapper input[type=checkbox], .form-input-wrapper input[type=radio] { width: auto; margin-right: 8px; accent-color: var(--amber-deep); }
.form-input-wrapper label.inline { display: inline; font-weight: 500; }
.form-actions, .buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
button.button, .button, input[type=submit] { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; border: 2px solid var(--night); background: var(--night); color: #fff; font: 600 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none; }
button.button:hover, .button:hover, input[type=submit]:hover { background: var(--night-3); border-color: var(--night-3); color: #fff; }
.button.primary, button.primary { background: linear-gradient(180deg, var(--amber-2), var(--amber)); border-color: var(--amber); color: #3b2103; }
.button.secondary { background: transparent; color: var(--night); }
.button.secondary:hover { background: var(--night); color: #fff; }
.notices { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; border: 1px solid; }
.notices.green { background: #e2f3e8; border-color: #b6dfc3; color: #1d5a37; }
.notices.red { background: #fbe4e0; border-color: #f0b8b0; color: #8a2a20; }
.notices.yellow { background: var(--amber-3); border-color: #ecc98a; }
.notices p { margin: 0; }
.form-errors, .errors { color: var(--err); }
#grav-login, .login-form { max-width: 480px; margin: 0 auto; }
#grav-login { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-1); margin-block: 40px 72px; }
.tpl-login main, .tpl-forgot main, .tpl-reset main, .tpl-unauthorized main { padding-inline: 16px; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--night); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-2); border: 1px solid rgba(168, 133, 86, .5); opacity: 0; transition: .25s ease; max-width: min(92vw, 420px); display: flex; gap: 14px; align-items: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--amber-2); font-weight: 600; white-space: nowrap; }
.toast--error { background: #6b1d14; }

/* ---------- Fuß ---------- */
.site-footer { position: relative; background: var(--night); color: #cfe0dd; margin-top: 0; padding-top: 56px; overflow: hidden; }
.site-footer__glow { position: absolute; left: 50%; top: -220px; width: 900px; height: 360px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(168, 133, 86, .28), transparent); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.site-footer h3 { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-2); margin-bottom: 14px; }
.site-footer a { color: #eef5f3; text-decoration: none; }
.site-footer a:hover { color: var(--amber-2); text-decoration: underline; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-brand p { max-width: 42ch; margin-block: 14px; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px 28px; font-size: .84rem; color: #97a5cb; }
.footer-bottom p { margin: 0 0 6px; }
.pay-line .ico { color: var(--amber); }

/* ---------- Bewegung reduzieren / Druck ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .toast, .filters, .card__buy, .buy { display: none !important; }
  body { background: #fff; }
}

/* ---------- Feinschliff ---------- */
.totals__grand dd, .mini-lines strong, .totals dd { white-space: nowrap; }
.totals__grand dt small { font-weight: 400; font-size: .7em; color: var(--muted); }
.summary .btn, .summary .is-disabled { margin-top: 18px; }
.mini-lines li span { min-width: 0; }
.eyebrow { line-height: 1.5; }
@media (max-width: 700px) {
  .topbar__in { gap: 10px; font-size: .78rem; }
  .topbar__in > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar__in > span:nth-child(2) { display: none; }
  .topbar__right { flex: none; }
}

/* ============================================================
   Interner Bereich: Kundendatenbank & Versand
   ============================================================ */
.intern { padding-block: clamp(1.5rem, 4vw, 3rem); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0 0 1.5rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; }
.stat__num { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--night); line-height: 1.1; }
.stat__label { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }

.intern-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 1rem; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; }
.filterbar input[type=search], .filterbar select, .rowform select, .rowform textarea,
.custom-order input, .custom-order select, .custom-order textarea {
  padding: .55em .7em; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--card); color: var(--ink); font: inherit;
}
.filterbar input[type=search] { min-width: 220px; }
.inline-form { display: inline; }

.table-scroll { overflow-x: auto; border-radius: var(--radius-s); }
.lines--customers td, .lines--customers th { vertical-align: top; }
.tag { display: inline-block; padding: .2em .6em; border-radius: 999px; font-size: .78rem; background: var(--paper-3); color: var(--ink-2); }
.tag--dealer { background: var(--night); color: var(--amber-2); }

.rowmenu > summary { cursor: pointer; list-style: none; display: inline-block; }
.rowmenu > summary::-webkit-details-marker { display: none; }
.rowform { display: grid; gap: 8px; margin-top: 8px; min-width: 220px; text-align: left; }
.rowform label { display: grid; gap: 3px; font-size: .8rem; color: var(--muted); }
.btn--sm { padding: .4em .9em; font-size: .85rem; }

.intern-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 0 0 1.5rem; }
.intern-cards .block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.intern-cards input[type=file] { display: block; margin: 10px 0; }

/* Sonderanfertigungen-Formular */
.custom-order .stack { display: grid; gap: 14px; }
.custom-order label { display: grid; gap: 4px; font-size: .9rem; }
.custom-order .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .custom-order .grid-2 { grid-template-columns: 1fr; } }
.notice--warn { background: #fdf3dd; border: 1px solid #e7c766; color: #6b4e12; padding: 12px 16px; border-radius: var(--radius-s); }

/* ============================================================
   Interner Bereich: Navigation, Dashboard, Bestellungen, Anfragen
   ============================================================ */
.intern-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 1.5rem; border-bottom: 2px solid var(--line); padding-bottom: 0; }
.intern-nav__item { padding: .6em 1.1em; border-radius: var(--radius-s) var(--radius-s) 0 0; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: .92rem; border: 2px solid transparent; border-bottom: none; }
.intern-nav__item:hover { background: var(--paper-2); }
.intern-nav__item.is-active { background: var(--card); border-color: var(--line); color: var(--night); position: relative; top: 2px; }
.intern-nav__logout { margin-left: auto; padding: .6em 1.1em; color: var(--muted); font-size: .88rem; }

/* Aufgaben-Kacheln */
.task-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0 0 2rem; }
.task-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); transition: transform .1s; }
.task-card:hover { transform: translateY(-2px); }
.task-card__num { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--night); }
.task-card__label { font-size: .85rem; color: var(--muted); }
.task-card--alert { border-color: #e7a34f; background: #fdf3e3; }
.task-card--alert .task-card__num { color: #a05a12; }
.task-card--go { border-color: #7fae5c; background: #eef6e6; }
.task-card--go .task-card__num { color: #3c6b1f; }

/* Status-Pill Varianten (in Tabellen kompakt, ohne Abstand) */
.lines .status-pill { margin: 0; padding: 4px 10px; font-size: .74rem; }
.status-pill--shipped { background: #e0ecf7; color: #1c4a78; }
.status-pill--awaiting_prepayment, .status-pill--awaiting_payment { background: #fdf3dd; color: #6b4e12; }
.status-pill--invoice_open { background: #ece4f7; color: #4a2f78; }

/* Bestellungen: Filter-Pills */
.filterbar--pills { gap: 6px; margin-bottom: 1rem; }
.pill { display: inline-block; padding: .4em .9em; border-radius: 999px; background: var(--paper-2);
  color: var(--ink-2); text-decoration: none; font-size: .85rem; border: 1px solid var(--line); }
.pill:hover { background: var(--paper-3); }
.pill.is-active { background: var(--night); color: var(--amber-2); border-color: var(--night); }

/* Bestell-Detail */
.order-detail__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 1rem; }
.order-detail__head h2 { margin: 0; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 1rem 0; }
.order-grid .block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; }
.order-grid .block h3 { margin-top: 0; font-size: 1rem; }

/* Anfragen */
.request-list { display: grid; gap: 14px; }
.request-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; }
.request-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.request-card__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ============================================================
   Interner Bereich: Berichte (Diagramme) & Datenbank
   ============================================================ */
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 1.5rem; }
.chart-card h2 { font-size: 1.1rem; margin-top: 0; }
.chart-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .chart-2col { grid-template-columns: 1fr; } }

.chart { width: 100%; height: auto; display: block; }
.chart-axis { stroke: var(--ink-2); stroke-width: 1.5; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-tick { fill: var(--muted); font: 500 11px/1 var(--sans); }
.chart rect { transition: opacity .1s; }
.chart rect:hover { opacity: .82; }

/* Horizontale Balken (Kundentyp/Zahlart) */
.hbar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 10px; }
.hbar__label { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.hbar__track { background: var(--paper-2); border-radius: 999px; height: 14px; overflow: hidden; }
.hbar__fill { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.hbar__val { font-size: .88rem; white-space: nowrap; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
@media (max-width: 480px) { .hbar { grid-template-columns: 96px 1fr; } .hbar__val { grid-column: 2; text-align: right; } }

/* Aktionen / Löschen */
.row-actions { display: flex; gap: 10px; align-items: center; }
.danger-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.btn--danger { background: #fbe4e0; border-color: #d99; color: #8a2a20; }
.btn--danger:hover { background: #f6d0c9; }

/* ============================================================
   Kundenkonto, Händler-Downloads, Rechnungen, Social
   ============================================================ */
.account__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 1.2rem; }
.account__head h2 { margin: 0 0 6px; }
.inv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lines--orders .inv-actions .btn { white-space: nowrap; }
.flist--account { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.flist--account a { text-decoration: none; }
.flist--account a:hover { text-decoration: underline; }

/* Händler-Exklusivbereich */
.dealer-exclusive { background: var(--card);
  border: 1px solid var(--amber); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 2rem;
  box-shadow: 0 8px 30px -18px rgba(4, 40, 42, .5); position: relative; overflow: hidden; }
.dealer-exclusive::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--amber-deep), var(--amber), var(--amber-2)); }
.dealer-exclusive__head { display: flex; align-items: center; gap: 10px; }
.dealer-exclusive__head h2 { margin: 0; }
.dealer-exclusive__head .ico { color: var(--amber-deep); }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 10px; }
.dl-card { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; }
.dl-card__title { font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--night); }
.dl-card__desc { font-size: .85rem; color: var(--muted); flex: 1; }
.dl-card .btn { align-self: flex-start; margin-top: 4px; }

/* Social-Icons */
.social { display: flex; gap: 10px; margin-top: 14px; }
.social__link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.08); color: #eef5f3; border: 1px solid rgba(255,255,255,.18); transition: .15s; }
.social__link:hover { background: var(--amber); color: var(--night); border-color: var(--amber); transform: translateY(-2px); }

/* Benutzerverwaltung */
.acct-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lines--accounts tr.is-admin { opacity: .72; }
.lines--accounts td { vertical-align: top; }
