/* Dicaia Web – Branchen-Showroom: 3D coverflow of example homepages (index.html #branchen, showroom.js) */

/* ---------- coverflow ---------- */
.show { --cw: min(720px, 62vw); --ch: calc(var(--cw) * .62); --show-ease: var(--ease); position: relative; }
.show__stage { position: relative; height: calc(var(--ch) + 30px + 34px); perspective: 1200px; perspective-origin: 50% 45%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.show__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.show__card {
  position: absolute; left: 50%; top: 10px; width: var(--cw); margin-left: calc(var(--cw) / -2);
  transform-origin: 50% 50%; will-change: transform;
  transition: transform 640ms var(--show-ease), opacity 420ms var(--show-ease), filter 420ms var(--show-ease);
  opacity: 0; transform: translateX(0) scale(.6); pointer-events: none;
}
.show__card[data-pos="0"] { opacity: 1; transform: translateX(0) rotateY(0) scale(1); z-index: 3; pointer-events: auto; }
.show__card[data-pos="-1"] { opacity: .45; transform: translateX(-60%) rotateY(24deg) scale(.84); z-index: 2; pointer-events: auto; cursor: pointer; filter: saturate(.7); }
.show__card[data-pos="1"] { opacity: .45; transform: translateX(60%) rotateY(-24deg) scale(.84); z-index: 2; pointer-events: auto; cursor: pointer; filter: saturate(.7); }
.show__card[data-pos="-2"] { opacity: 0; transform: translateX(-104%) rotateY(32deg) scale(.7); z-index: 1; }
.show__card[data-pos="2"] { opacity: 0; transform: translateX(104%) rotateY(-32deg) scale(.7); z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .show__card[data-pos="-1"]:hover, .show__card[data-pos="1"]:hover { opacity: .7; filter: none; }
}
/* side cards are click targets as a whole; their inner page does not scroll */
.show__card:not([data-pos="0"]) .bw__view { overflow: hidden; pointer-events: none; }

/* ---------- browser mockup ---------- */
.bw { border-radius: 14px; overflow: hidden; background: #16171a; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); transition: box-shadow 420ms var(--show-ease), border-color 420ms var(--show-ease); }
.show__card[data-pos="0"] .bw { border-color: rgba(120,146,255,.7); box-shadow: 0 0 0 1px rgba(120,146,255,.35), 0 30px 90px -30px rgba(120,146,255,.55), 0 40px 80px -40px rgba(0,0,0,.9); }
.bw__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #1b1c20; border-bottom: 1px solid rgba(255,255,255,.07); }
.bw__bar i { width: 9px; height: 9px; border-radius: 50%; background: #34363c; }
.bw__bar i:nth-child(1) { background: #ff5f57; } .bw__bar i:nth-child(2) { background: #febc2e; } .bw__bar i:nth-child(3) { background: #28c840; }
.show__card:not([data-pos="0"]) .bw__bar i { background: #34363c; }
.bw__bar span { margin-inline: auto; transform: translateX(-21px); min-width: 40%; height: 18px; padding: 0 12px; border-radius: 6px; background: #26282d; color: #a3a7b0; font: 500 11px/18px var(--font); text-align: center; white-space: nowrap; overflow: hidden; }
.bw__view { height: var(--ch); overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: auto; overscroll-behavior-x: contain; container-type: inline-size; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: rgba(127,127,127,.5) transparent; }
.bw__view:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* ---------- info + controls ---------- */
.show__info { display: grid; justify-items: center; gap: 8px; text-align: center; margin-top: 8px; min-height: 104px; }
.show__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.show__desc { color: var(--muted); max-width: 40em; }
.show__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.show__arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease); }
.show__arrow svg { width: 18px; height: 18px; }
.show__arrow[data-dir="-1"] svg { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .show__arrow:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); } }
@media (prefers-reduced-motion: no-preference) { .show__arrow:active { transform: scale(.94); } }
.show__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.show__pills button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: #c9ccd3; font: 500 14px/1 var(--font); cursor: pointer; transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .show__pills button:hover { border-color: rgba(255,255,255,.3); color: #fff; } }
.show__pills button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.show__note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.show__note a { color: var(--brand); text-decoration: none; font-weight: 600; }
@media (hover: hover) { .show__note a:hover { text-decoration: underline; text-underline-offset: 3px; } }

@media (max-width: 767px) {
  .show { --cw: 80vw; --ch: calc(var(--cw) * 1.15); }
  .show__card[data-pos="-1"] { transform: translateX(-74%) rotateY(24deg) scale(.84); }
  .show__card[data-pos="1"] { transform: translateX(74%) rotateY(-24deg) scale(.84); }
  .show__pills { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding: 2px 2px 6px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .show__pills::-webkit-scrollbar { display: none; }
  .show__pills button { flex: none; }
  .show__nav { gap: 8px; }
  .show__arrow { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .show__card { transition: opacity 200ms ease; }
}

/* ---------- mini websites (sized in cqw of the browser view, so they scale with the card) ---------- */
.mini {
  --m-bg: #fff; --m-ink: #111; --m-muted: #666; --m-accent: #111; --m-accent-ink: #fff; --m-surface: #f4f4f4; --m-line: rgba(0,0,0,.1);
  --m-head: var(--font); --m-ov: rgba(0,0,0,.6);
  min-height: 100%; background: var(--m-bg); color: var(--m-ink); font: 400 1.85cqw/1.5 var(--font); text-align: left;
}
.mini h4, .mini h5 { font-family: var(--m-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.mini p { margin: 0; }
.mini figure { margin: 0; }
.mini svg { width: 1em; height: 1em; flex: none; }
.m-nav { display: flex; align-items: center; gap: 3cqw; padding: 2.4cqw 4cqw; font-size: 1.6cqw; }
.m-nav b { margin-right: auto; font-family: var(--m-head); font-size: 2.1cqw; letter-spacing: .02em; display: flex; align-items: center; gap: 1cqw; }
.m-nav span { opacity: .72; }
.m-nav em, .m-btns em, .m-gift em, .m-form em, .m-cta em { font-style: normal; font-weight: 600; background: var(--m-accent); color: var(--m-accent-ink); padding: 1cqw 2.2cqw; border-radius: 99cqw; white-space: nowrap; }
.m-sub { font-family: var(--font); font-size: 1.3cqw; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.m-hero { display: grid; gap: 2cqw; padding: 6cqw 4cqw; align-content: center; }
.m-hero small { font-size: 1.35cqw; letter-spacing: .18em; text-transform: uppercase; color: var(--m-muted); }
.m-hero h4 { font-size: 5.4cqw; max-width: 15em; }
.m-hero p { color: var(--m-muted); max-width: 34em; font-size: 1.9cqw; }
.m-btns { display: flex; flex-wrap: wrap; gap: 1.6cqw; margin-top: 1cqw; font-size: 1.7cqw; }
.m-btns span { padding: 1cqw 2.2cqw; border-radius: 99cqw; border: 1px solid currentColor; opacity: .85; }
.m-hero--photo { min-height: 46cqw; align-content: end; color: #fff; background: linear-gradient(90deg, var(--m-ov) 0%, rgba(0,0,0,.15) 85%), var(--img) var(--pos, center) / cover no-repeat; }
.m-hero--photo small, .m-hero--photo p { color: rgba(255,255,255,.78); }
.m-hero--photo h4 { max-width: 11em; }
.m-hero--side { grid-template-columns: 1.15fr .85fr; gap: 4cqw; align-items: center; }
.m-hero--side > div { display: grid; gap: 2cqw; justify-items: start; }
.m-hero--side h4 { font-size: 4.8cqw; }
.m-photo { aspect-ratio: 4 / 5; border-radius: 2cqw; background: var(--img) var(--pos, center) / cover no-repeat; }
.m-hero--center { justify-items: center; text-align: center; padding-bottom: 0; }
.m-hero--center p { max-width: 30em; }
.m-arch { width: 46cqw; aspect-ratio: 4 / 3; margin-top: 3cqw; border-radius: 23cqw 23cqw 0 0; background: var(--img) var(--pos, center) / cover no-repeat; }
.m-sec { padding: 4.5cqw 4cqw; display: grid; gap: 2.6cqw; }
.m-sec h5 { font-size: 2.9cqw; }
.m-sec--split { grid-template-columns: 1fr 1fr; gap: 5cqw; align-items: start; }
.m-sec--split > div { display: grid; gap: 2cqw; }
.m-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.m-card { display: grid; gap: 1cqw; align-content: start; padding: 2.4cqw; border-radius: 1.6cqw; background: var(--m-surface); border: 1px solid var(--m-line); }
.m-card b { font-size: 2.1cqw; font-family: var(--m-head); }
.m-card p { color: var(--m-muted); font-size: 1.6cqw; line-height: 1.45; }
.m-meta { margin-top: 1cqw; font-weight: 600; font-size: 1.6cqw; color: var(--m-accent); }
.m-list { display: grid; }
.m-list span { display: flex; justify-content: space-between; gap: 2cqw; padding: 1.2cqw 0; border-bottom: 1px solid var(--m-line); font-size: 1.7cqw; }
.m-list--ticks span { justify-content: flex-start; }
.m-list--ticks span::before { content: ""; width: 1.4cqw; height: .8cqw; margin-top: .5cqw; border-left: .35cqw solid var(--m-accent); border-bottom: .35cqw solid var(--m-accent); transform: rotate(-45deg); flex: none; }
.m-tag { display: inline-block; padding: .4cqw 1.2cqw; border-radius: 99cqw; border: 1px solid currentColor; font-size: 1.25cqw; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* 1 Noir Ink: deep black, white, hairlines */
.mini--ink { --m-bg: #0d0d0d; --m-ink: #f2f2f2; --m-muted: #9a9a9a; --m-accent: #f2f2f2; --m-accent-ink: #0d0d0d; --m-surface: #151515; --m-line: rgba(255,255,255,.14); --m-ov: rgba(13,13,13,.92); }
.mini--ink .m-nav { border-bottom: 1px solid var(--m-line); text-transform: uppercase; letter-spacing: .14em; font-size: 1.3cqw; }
.mini--ink .m-nav b { letter-spacing: .32em; }
.mini--ink .m-hero h4 { text-transform: uppercase; font-weight: 500; letter-spacing: .02em; font-size: 4.8cqw; }
.mini--ink .m-btns em { border-radius: 0; } .mini--ink .m-btns span { border-radius: 0; }
.m-art { position: relative; aspect-ratio: 3 / 4; border: 1px solid var(--m-line); display: flex; align-items: flex-end; overflow: hidden; }
.m-art::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; }
.m-art--a::before { background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.75) 0 1deg, transparent 1deg 15deg); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
.m-art--b::before { background: repeating-radial-gradient(circle, rgba(255,255,255,.85) 0 1px, transparent 1px 7%); }
.m-art--c::before { inset: 10% 30%; border-radius: 40% 40% 50% 50%; background: radial-gradient(circle at 50% 30%, #f2f2f2 0 6%, transparent 7%), repeating-linear-gradient(160deg, rgba(255,255,255,.8) 0 2px, transparent 2px 9%); }
.m-art figcaption { position: relative; display: grid; gap: .8cqw; justify-items: start; width: 100%; padding: 1.6cqw; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 1.5cqw; }
.mini--ink .m-tag { border-radius: 0; }

/* 2 Atelier Schnitt: warm anthracite, cream, brass */
.mini--atelier { --m-bg: #2a2725; --m-ink: #f4eee4; --m-muted: #b7aea2; --m-accent: #c5a059; --m-accent-ink: #1f1c1a; --m-surface: #34302d; --m-line: rgba(244,238,228,.14); --m-head: "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
.mini--atelier .m-hero h4 { font-weight: 400; font-style: italic; font-size: 5.6cqw; }
.mini--atelier .m-photo { border-radius: 20cqw 20cqw 1.6cqw 1.6cqw; }
.m-prices { display: grid; gap: 1.6cqw; }
.m-prices p { display: flex; align-items: baseline; gap: 1.2cqw; font-size: 1.8cqw; }
.m-prices i { flex: 1; border-bottom: 1px dotted var(--m-muted); transform: translateY(-.4cqw); }
.m-prices b { color: var(--m-accent); font-weight: 600; }
.mini--atelier .m-list b { color: var(--m-ink); font-weight: 500; }

/* 3 Lumière: soft nude, dark brown, quiet luxury */
.mini--lumiere { --m-bg: #f7f2ef; --m-ink: #2c221e; --m-muted: #7a6a62; --m-accent: #2c221e; --m-accent-ink: #f7f2ef; --m-surface: #fffaf7; --m-line: rgba(44,34,30,.12); --m-head: "Didot", "Bodoni 72", "Iowan Old Style", Georgia, serif; }
.mini--lumiere .m-nav { justify-content: center; }
.mini--lumiere .m-hero h4 { font-weight: 400; font-size: 5.8cqw; max-width: 12em; }
.mini--lumiere .m-meta { color: #a07a62; }

/* 4 Ruhepol: sage and sand */
.mini--ruhepol { --m-bg: #f4f1ea; --m-ink: #2f3e34; --m-muted: #6b756d; --m-accent: #2f3e34; --m-accent-ink: #f4f1ea; --m-surface: #fbf9f4; --m-line: rgba(47,62,52,.14); --m-head: "Iowan Old Style", Georgia, serif; --m-ov: rgba(38,52,43,.88); }
.mini--ruhepol .m-hero h4 { font-weight: 400; }
.mini--ruhepol .m-btns em { background: #f4f1ea; color: #2f3e34; }
.m-card--hi { background: #2f3e34; color: #f4f1ea; border-color: transparent; }
.m-card--hi p, .m-card--hi .m-meta { color: rgba(244,241,234,.8); }
.m-gift { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 3cqw; border-radius: 2cqw; background: #dfe5dc; border: 1px dashed rgba(47,62,52,.4); }
.m-gift b { font-family: var(--m-head); font-size: 2.6cqw; }
.m-gift p { color: var(--m-muted); }

/* 5 Klang & Kraft: terracotta, warm brown, cream */
.mini--klang { --m-bg: #f6efe6; --m-ink: #3b2a20; --m-muted: #7d6656; --m-accent: #b5562f; --m-accent-ink: #fff8f0; --m-surface: #fff8f0; --m-line: rgba(59,42,32,.14); }
.mini--klang .m-hero h4 { font-weight: 700; letter-spacing: -0.03em; }
.m-sun { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e9a37a, #b5562f 55%, #7a3218); box-shadow: 0 0 0 3cqw rgba(181,86,47,.12), 0 0 0 6cqw rgba(181,86,47,.06); }
.m-table { display: grid; border-radius: 1.6cqw; overflow: hidden; border: 1px solid var(--m-line); background: var(--m-surface); }
.m-table p { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 1.6cqw 2.4cqw; border-top: 1px solid var(--m-line); font-size: 1.8cqw; }
.m-table p b { color: var(--m-accent); }
.m-table .m-th { border-top: 0; background: #efe3d4; font-size: 1.4cqw; letter-spacing: .1em; text-transform: uppercase; color: var(--m-muted); }

/* 6 Weber: navy, signal amber, white */
.mini--weber { --m-bg: #ffffff; --m-ink: #13293d; --m-muted: #5b6b7a; --m-accent: #e07a16; --m-accent-ink: #fff; --m-surface: #f2f5f8; --m-line: rgba(19,41,61,.12); --m-ov: rgba(19,41,61,.93); }
.mini--weber .m-nav { background: #13293d; color: #fff; }
.mini--weber .m-nav b { letter-spacing: .12em; }
.mini--weber .m-hero h4 { font-weight: 700; font-size: 4.6cqw; max-width: 13em; }
.m-badges { display: flex; flex-wrap: wrap; gap: 1.4cqw; margin-top: 1cqw; }
.m-badges span { display: inline-flex; align-items: center; gap: .8cqw; padding: .9cqw 1.6cqw; border-radius: .8cqw; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: 1.5cqw; font-weight: 600; }
.m-badges svg { color: #e07a16; }
.m-form { padding: 3cqw; border-radius: 1.6cqw; background: var(--m-surface); border-top: .6cqw solid var(--m-accent); }
.m-input { display: block; padding: 1.4cqw 1.8cqw; border-radius: .8cqw; background: #fff; border: 1px solid var(--m-line); color: #8996a3; font-size: 1.6cqw; }
.m-input--area { height: 9cqw; }
.m-form em { justify-self: start; border-radius: .8cqw; }

/* 7 Nordstern: slate, white, royal blue */
.mini--nord { --m-bg: #ffffff; --m-ink: #1e293b; --m-muted: #64748b; --m-accent: #2563eb; --m-accent-ink: #fff; --m-surface: #f1f5f9; --m-line: rgba(30,41,59,.1); }
.mini--nord .m-nav { border-bottom: 1px solid var(--m-line); }
.m-star { width: 2.2cqw; height: 2.2cqw; background: var(--m-accent); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.mini--nord .m-hero h4 { font-weight: 700; letter-spacing: -0.035em; }
.mini--nord .m-photo { aspect-ratio: 4 / 4.4; border-radius: 1.6cqw; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 4cqw; padding: 3cqw 0; border-block: 1px solid var(--m-line); }
.m-stats p { display: grid; gap: .4cqw; padding-left: 2cqw; border-left: 1px solid var(--m-line); }
.m-stats p:first-child { border-left: 0; padding-left: 0; }
.m-stats b { font-size: 4.2cqw; font-weight: 700; letter-spacing: -0.03em; color: var(--m-accent); }
.m-stats span { color: var(--m-muted); font-size: 1.5cqw; }
.m-ico { display: grid; place-items: center; width: 4.4cqw; height: 4.4cqw; border-radius: 1cqw; background: rgba(37,99,235,.1); color: var(--m-accent); font-size: 2.2cqw; }
.m-cta { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: 3cqw; border-radius: 1.6cqw; background: #1e293b; color: #fff; }
.m-cta b { font-size: 2.6cqw; }
.m-cta em { border-radius: .8cqw; }

/* ---------- narrow browser (phones): the same mini sites in their mobile layout ---------- */
@container (max-width: 480px) {
  .mini { font-size: 3.6cqw; }
  .m-nav { gap: 2cqw; padding: 3.6cqw 5cqw; font-size: 3cqw; }
  .m-nav span { display: none; }
  .m-nav b { font-size: 4cqw; }
  .m-nav em, .m-btns em, .m-gift em, .m-form em, .m-cta em { padding: 1.8cqw 3.6cqw; }
  .m-sub { display: none; }
  .m-hero { gap: 3.4cqw; padding: 9cqw 5cqw; }
  .m-hero small { font-size: 2.6cqw; }
  .m-hero h4, .m-hero--side h4, .mini--ink .m-hero h4, .mini--atelier .m-hero h4, .mini--lumiere .m-hero h4, .mini--weber .m-hero h4 { font-size: 9cqw; }
  .m-hero p { font-size: 3.6cqw; }
  .m-btns { font-size: 3.4cqw; gap: 2.4cqw; }
  .m-btns span { padding: 1.8cqw 3.6cqw; }
  .m-hero--photo { min-height: 110cqw; }
  .m-hero--side { grid-template-columns: 1fr; }
  .m-photo { aspect-ratio: 16 / 10; }
  .m-arch { width: 76cqw; border-radius: 38cqw 38cqw 0 0; }
  .m-sun { width: 40cqw; justify-self: center; }
  .m-sec { padding: 7cqw 5cqw; gap: 4cqw; }
  .m-sec h5 { font-size: 5.6cqw; }
  .m-grid3, .m-sec--split { grid-template-columns: 1fr; gap: 3cqw; }
  .m-card { padding: 4.4cqw; border-radius: 3cqw; gap: 1.6cqw; }
  .m-card b { font-size: 4.2cqw; }
  .m-card p, .m-meta { font-size: 3.2cqw; }
  .m-list span, .m-prices p { font-size: 3.4cqw; padding: 2cqw 0; }
  .m-table p { font-size: 3.2cqw; padding: 2.8cqw 3.6cqw; }
  .m-table .m-th { font-size: 2.4cqw; }
  .m-art { aspect-ratio: 16 / 10; }
  .m-art figcaption { font-size: 3cqw; padding: 3cqw; }
  .m-tag { font-size: 2.3cqw; padding: .8cqw 2.2cqw; }
  .m-badges span { font-size: 2.8cqw; padding: 1.6cqw 2.6cqw; }
  .m-form { padding: 5cqw; }
  .m-input { font-size: 3.2cqw; padding: 2.6cqw 3cqw; }
  .m-input--area { height: 18cqw; }
  .m-gift, .m-cta { flex-direction: column; align-items: flex-start; padding: 5cqw; }
  .m-gift b, .m-cta b { font-size: 4.6cqw; }
  .m-stats { margin: 0 5cqw; }
  .m-stats b { font-size: 6.4cqw; }
  .m-stats span { font-size: 2.6cqw; }
  .m-ico { width: 8cqw; height: 8cqw; font-size: 4cqw; border-radius: 2cqw; }
  .m-star { width: 4cqw; height: 4cqw; }
}

/* the side cards reach past the content width; the section clips them at the viewport edge instead of widening the page */
#branchen { overflow-x: clip; }

/* massage: soft arch photo instead of the drawn sun */
.mini--klang .m-photo--round { border-radius: 50% 50% 2cqw 2cqw; aspect-ratio: 4 / 4.6; box-shadow: 0 0 0 2cqw rgba(181,86,47,.10); }
