/* Nagel-Atelier — Stimmung „Studio-Porzellan“: die Oberflaeche tritt zurueck, die Naegel sind der Star.
   Neutral-warme Paneele, damit Nagelfarben farbecht wirken. Ein Akzent (Beere) nur fuer Auswahl. */
:root {
  --papier: #fbf9f8;
  --buehne: #efe7e3;
  --tinte: #2b2527;
  --tinte-2: #766b6e;
  --akzent: #8e3b56;
  --akzent-hell: #f5e4ea;
  --linie: rgba(43, 37, 39, 0.11);
  --glas: rgba(251, 249, 248, 0.74);
  --glas-stark: rgba(251, 249, 248, 0.95);
  --schatten: 0 10px 30px rgba(60, 35, 40, 0.10), 0 2px 8px rgba(60, 35, 40, 0.06);
  --r: 14px;
  --r-klein: 11px;
  --anzeige: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --oben: env(safe-area-inset-top, 0px);
  --unten-safe: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--buehne); color: var(--tinte);
  font-family: var(--text); font-size: 15px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
svg { display: block; }

#buehne { position: fixed; inset: 0; }
#buehne canvas { display: block; }

/* ---------------------------------------------------------------- Glas-Elemente */
.ikon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glas); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--linie); box-shadow: var(--schatten); transition: transform .15s var(--ease), background .2s; }
.ikon svg { width: 22px; height: 22px; fill: none; stroke: var(--tinte); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ikon:active { transform: scale(.94); }
.ikon.klein { width: 40px; height: 40px; }
.ikon:disabled { opacity: .35; }

.kopf { position: fixed; top: calc(10px + var(--oben)); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; z-index: 5;
  transition: opacity .4s var(--ease), transform .4s var(--ease); }
.kopf-rechts { display: flex; gap: 8px; margin-left: auto; }
.titel { flex: 1; min-width: 0; text-align: center; font-family: var(--anzeige); font-size: 21px; font-weight: 500; letter-spacing: .01em;
  background: transparent; border: 0; color: var(--tinte); padding: 6px 8px; border-radius: 10px; text-overflow: ellipsis;
  user-select: text; -webkit-user-select: text; }
.titel:focus { background: var(--glas); outline: none; }

.kamera-leiste { position: fixed; right: 12px; top: calc(70px + var(--oben)); display: flex; flex-direction: column; gap: 8px; z-index: 4;
  transition: opacity .4s var(--ease); }

/* ---------------------------------------------------------------- Unten: Naegel + Dock */
.unten { position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--unten-safe)); z-index: 5; display: flex; flex-direction: column; gap: 8px;
  transition: transform .35s var(--ease), opacity .35s var(--ease); }
.naegel-leiste { align-self: center; display: flex; align-items: flex-end; gap: 4px; padding: 6px 8px 5px; border-radius: 18px;
  background: var(--glas); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--linie); box-shadow: var(--schatten); max-width: 100%; }
.chip { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 50px; padding: 3px 0 2px; border-radius: 12px; position: relative; }
.chip svg { width: 30px; height: 44px; }
.chip span { font-size: 10.5px; color: var(--tinte-2); letter-spacing: .01em; }
.chip.an { background: var(--akzent-hell); }
.chip.an span { color: var(--akzent); font-weight: 700; }
.chip.alle { width: 46px; }
.chip.alle .alle-kreis { width: 30px; height: 30px; margin: 7px 0 7px; border-radius: 50%; border: 1.6px solid var(--tinte); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.chip.alle.an .alle-kreis { border-color: var(--akzent); color: var(--akzent); }
.trenner { width: 1px; align-self: stretch; margin: 6px 2px; background: var(--linie); }
.spiegel-knopf { width: 46px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 0 2px; border-radius: 12px; }
.spiegel-knopf svg { width: 26px; height: 26px; margin: 9px 0 9px; fill: none; stroke: var(--tinte); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.spiegel-knopf span { font-size: 10.5px; color: var(--tinte-2); }
.spiegel-knopf.aus svg { stroke: var(--tinte-2); }
.hand-wahl { display: flex; flex-direction: column; gap: 4px; margin: 4px 2px; }
.hand-wahl button { font-size: 11px; font-weight: 700; width: 28px; height: 24px; border-radius: 8px; color: var(--tinte-2); }
.hand-wahl button.an { background: var(--tinte); color: #fff; }

.dock { display: flex; gap: 2px; padding: 5px; border-radius: 18px; overflow-x: auto; scrollbar-width: none; align-self: center; max-width: 100%;
  background: var(--glas); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--linie); box-shadow: var(--schatten); }
.dock::-webkit-scrollbar { display: none; }
.werkzeug { flex: 0 0 auto; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 13px;
  transition: background .2s; }
.werkzeug svg { width: 23px; height: 23px; fill: none; stroke: var(--tinte); stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.werkzeug span { font-size: 11px; font-weight: 600; color: var(--tinte-2); }
.werkzeug.an { background: var(--tinte); }
.werkzeug.an svg { stroke: #fff; }
.werkzeug.an span { color: #fff; }

.ausloeser { position: fixed; right: 14px; z-index: 6; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--akzent); box-shadow: 0 10px 26px rgba(142, 59, 86, 0.35), inset 0 1px 0 rgba(255,255,255,.25);
  bottom: calc(172px + var(--unten-safe)); transition: transform .2s var(--ease), bottom .35s var(--ease), opacity .3s; }
.ausloeser svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.ausloeser:active { transform: scale(.93); }

/* ---------------------------------------------------------------- Bogen */
.bogen { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; max-height: min(56vh, 520px); display: flex; flex-direction: column;
  background: var(--glas-stark); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-radius: 22px 22px 0 0; border-top: 1px solid var(--linie); box-shadow: 0 -12px 40px rgba(60, 35, 40, 0.12);
  transform: translateY(105%); transition: transform .34s var(--ease); padding-bottom: var(--unten-safe); }
.bogen.offen { transform: translateY(0); }
.bogen-griff { width: 40px; height: 4px; border-radius: 3px; background: rgba(43,37,39,.2); margin: 8px auto 0; flex: none; }
.bogen-kopf { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 6px 20px; flex: none; }
.bogen-kopf h2 { font-family: var(--anzeige); font-weight: 500; font-size: 22px; margin: 0; letter-spacing: .01em; }
.bogen-kopf .ikon { box-shadow: none; background: transparent; border-color: transparent; }
.bogen-inhalt { overflow-y: auto; padding: 4px 16px 22px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

.abschnitt { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--tinte-2); display: flex; align-items: center; justify-content: space-between; }
.abschnitt:first-child { margin-top: 2px; }
.abschnitt small { font-weight: 600; letter-spacing: 0; font-size: 12px; color: var(--tinte); }

.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.kachel { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 13px; background: #fff;
  border: 1px solid var(--linie); color: var(--tinte); transition: border-color .15s, box-shadow .15s, transform .12s; }
.kachel:active { transform: scale(.96); }
.kachel.an { border-color: var(--akzent); box-shadow: 0 0 0 1.5px var(--akzent) inset; }
.kachel span { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.15; }
.kachel .form-svg { color: var(--tinte); height: 50px; display: grid; place-items: end center; }

/* Nagelfoermige Effekt-Vorschau */
.vs { width: 34px; height: 50px; border-radius: 17px 17px 9px 9px / 22px 22px 9px 9px; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset -3px -4px 8px rgba(0,0,0,.08); background: var(--c, #eee); }
.vs::after { content: ''; position: absolute; left: 22%; top: 12%; width: 18%; height: 55%; border-radius: 10px; background: linear-gradient(#fff9, #fff0); }
.vs-chrome { background: linear-gradient(160deg, var(--c) 0%, #fff 38%, color-mix(in srgb, var(--c) 55%, #444) 58%, var(--c) 78%, #fff 100%); }
.vs-perle { background: linear-gradient(160deg, #f6e6e6, #fff 40%, #eadff5 60%, #f7efe2); }
.vs-aurora { background: conic-gradient(from 200deg, #ffd8f0, #d8f1ff, #e9ffd8, #fff1c8, #f2d8ff, #ffd8f0); }
.vs-holo { background: linear-gradient(135deg, #ff9ad5, #9ad8ff 30%, #b6ff9a 50%, #ffe59a 70%, #d69aff); }
.vs-cat { background: linear-gradient(170deg, #2a1f2e 25%, var(--c) 50%, #2a1f2e 75%); }
.vs-cat9 { background: repeating-linear-gradient(170deg, #1d1a2e 0 5px, var(--c) 7px, #1d1a2e 10px); }
.vs-catregen { background: linear-gradient(170deg, #1d1a2e 25%, #ff9ad5 42%, #9ad8ff 50%, #ffe59a 58%, #1d1a2e 75%); }
.vs-samt { background: radial-gradient(ellipse at 50% 45%, var(--c), #3a3346 80%); }
.vs-glitzer { background: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px) 0 0/7px 7px, radial-gradient(circle at 60% 70%, var(--c) 0 1.2px, transparent 2px) 0 0/9px 9px, #3a3a44; }
.vs-hologlitzer { background: radial-gradient(circle, #ff9ad5 0 1px, transparent 2px) 0 0/7px 7px, radial-gradient(circle, #9ad8ff 0 1px, transparent 2px) 3px 3px/8px 8px, radial-gradient(circle, #fff 0 1px, transparent 2px) 5px 1px/6px 6px, #33333b; }
.vs-glitzerverlauf { background: radial-gradient(circle, #fff 0 1px, transparent 2px) 0 0/6px 6px, linear-gradient(#f3d6d1 40%, transparent) , #cfcfd6; }
.vs-schimmer { background: radial-gradient(circle, #fff 0 .7px, transparent 1.4px) 0 0/4px 4px, #f2e6ea; }
.vs-flakes { background: radial-gradient(ellipse at 30% 30%, #d8f1ff 0 4px, transparent 5px), radial-gradient(ellipse at 70% 60%, #ffd8f0 0 5px, transparent 6px), radial-gradient(ellipse at 40% 80%, #e9ffd8 0 3px, transparent 4px), #f4f2f0; }
.vs-folie { background: radial-gradient(ellipse at 30% 35%, var(--c) 0 6px, transparent 7px), radial-gradient(ellipse at 70% 70%, var(--c) 0 5px, transparent 6px), #f4efe9; }
.vs-french { background: linear-gradient(to top, #f2d4cf 62%, #fff 62%); }

.farben { display: flex; gap: 9px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.farben::-webkit-scrollbar { display: none; }
.tropfen { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--c); position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset -3px -4px 7px rgba(0,0,0,.14), inset 3px 3px 6px rgba(255,255,255,.35); transition: transform .12s; }
.tropfen::after { content: ''; position: absolute; left: 24%; top: 16%; width: 26%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(1px); }
.tropfen.an { box-shadow: 0 0 0 2px var(--papier), 0 0 0 4px var(--akzent); }
.tropfen:active { transform: scale(.92); }
.tropfen.plus { background: conic-gradient(#f36b9a, #f5e050, #3e9a7a, #1d4fd6, #8e4fc4, #f36b9a); }
.tropfen.plus::before { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tropfen.foto { background: #fff; display: grid; place-items: center; }
.tropfen.foto svg { width: 20px; height: 20px; fill: none; stroke: var(--tinte); stroke-width: 1.6; }
.tropfen.foto::after { display: none; }

.segment { display: flex; background: rgba(43,37,39,.06); border-radius: 11px; padding: 3px; gap: 2px; }
.segment button { flex: 1; padding: 8px 6px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--tinte-2); white-space: nowrap; }
.segment button.an { background: #fff; color: var(--tinte); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.regler { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; margin: 8px 0; }
.regler label { font-size: 12.5px; font-weight: 600; color: var(--tinte-2); }
.regler output { font-size: 12px; font-weight: 600; text-align: right; color: var(--tinte); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: linear-gradient(to right, var(--tinte) var(--p, 50%), rgba(43,37,39,.14) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 3px; background: rgba(43,37,39,.14); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 3px; background: var(--tinte); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; margin-top: -10px; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 3px 10px rgba(0,0,0,.14); border: 0; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 3px 10px rgba(0,0,0,.14); }
.laengen-skala { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; color: var(--tinte-2); margin: -2px 2px 0 104px; padding-right: 54px; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: #fff; border: 1px solid var(--linie); }
.knopf-haupt { background: var(--tinte); color: #fff; border-color: transparent; }
.knopf-akzent { background: var(--akzent); color: #fff; border-color: transparent; }
.knopf:disabled { opacity: .45; }
.knopf-reihe { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.knopf-reihe .knopf { flex: 1; }
.leise { font-size: 12.5px; color: var(--tinte-2); line-height: 1.45; margin: 6px 2px; }

/* Aufbau (Schichten) */
.schichten { display: flex; flex-direction: column; gap: 6px; }
.schicht { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--linie); }
.schicht .nr { font-family: var(--anzeige); font-size: 17px; color: var(--tinte-2); text-align: center; }
.schicht b { font-size: 13.5px; display: block; }
.schicht small { font-size: 11.5px; color: var(--tinte-2); }
.schicht .aktionen { display: flex; gap: 2px; }
.schicht .aktionen button { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.schicht .aktionen svg { width: 18px; height: 18px; fill: none; stroke: var(--tinte); stroke-width: 1.7; stroke-linecap: round; }
.schicht.fest { background: transparent; border-style: dashed; }

/* Studio-Karten */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.karte { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--linie); text-align: left; }
.karte svg { width: 26px; height: 26px; fill: none; stroke: var(--akzent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.karte b { font-size: 14px; }
.karte small { font-size: 11.5px; color: var(--tinte-2); line-height: 1.3; }
.karte.an { border-color: var(--akzent); box-shadow: 0 0 0 1.5px var(--akzent) inset; }

/* Fortschritt */
.fortschritt { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 0 8px; }
.ring { width: 86px; height: 86px; }
.ring circle { fill: none; stroke-width: 5; }
.ring .bahn { stroke: rgba(43,37,39,.1); }
.ring .wert { stroke: var(--akzent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .2s; }
.fortschritt p { margin: 0; font-family: var(--anzeige); font-size: 18px; }

/* Vollbild-Ebenen */
.ebene { position: fixed; inset: 0; z-index: 20; background: var(--papier); overflow-y: auto; padding: calc(16px + var(--oben)) 16px calc(24px + var(--unten-safe)); }
.ebene.dunkel { background: rgba(24, 20, 22, 0.94); color: #fff; display: flex; flex-direction: column; }
.ebene-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ebene-kopf h2 { font-family: var(--anzeige); font-weight: 500; font-size: 30px; margin: 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.werk { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--linie); text-align: left; display: flex; flex-direction: column; }
.werk .bild { aspect-ratio: 4/5; background: var(--buehne) center/cover no-repeat; display: grid; place-items: center; }
.werk .bild svg { width: 60%; }
.werk .fuss { padding: 9px 10px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.werk b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.werk small { font-size: 11px; color: var(--tinte-2); }
.werk .mini { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.werk .mini svg { width: 17px; height: 17px; fill: none; stroke: var(--tinte-2); stroke-width: 1.6; stroke-linecap: round; }
.vorlagen { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.vorlage { flex: 0 0 auto; width: 118px; padding: 10px 8px; border-radius: 14px; background: #fff; border: 1px solid var(--linie); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vorlage .fuenf { display: flex; gap: 1px; height: 46px; align-items: flex-end; }
.vorlage .fuenf svg { width: 20px; height: 42px; }
.vorlage span { font-size: 12px; font-weight: 600; text-align: center; }
.ergebnis-bild { flex: 1; min-height: 0; display: grid; place-items: center; }
.ergebnis-bild img, .ergebnis-bild video { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.ergebnis-leiste { display: flex; gap: 10px; justify-content: center; padding-top: 14px; flex-wrap: wrap; }
.ergebnis-leiste .knopf { min-width: 130px; }
.dunkel .knopf { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.dunkel .knopf-akzent { background: var(--akzent); border-color: transparent; }

.hinweis { position: fixed; left: 50%; bottom: calc(190px + var(--unten-safe)); transform: translate(-50%, 10px); z-index: 30; opacity: 0; pointer-events: none;
  background: rgba(43,37,39,.9); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 12px; transition: opacity .25s, transform .25s var(--ease); max-width: 86vw; text-align: center; }
.hinweis.zeigen { opacity: 1; transform: translate(-50%, 0); }

/* Farbe aus Foto */
.pipette { position: relative; border-radius: 12px; overflow: hidden; background: #000; margin-top: 8px; }
.pipette canvas { width: 100%; display: block; touch-action: none; }
.pipette .lupe { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); pointer-events: none; transform: translate(-50%, -120%); display: none; }

/* ---------------------------------------------------------------- Intro */
.intro { position: fixed; inset: 0; z-index: 12; display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(to bottom, rgba(239,231,227,0) 38%, rgba(239,231,227,.72) 70%, rgba(239,231,227,.96)); transition: opacity .8s var(--ease); }
.intro.weg { opacity: 0; pointer-events: none; }
.intro-inhalt { text-align: center; padding: 0 24px calc(42px + var(--unten-safe)); display: flex; flex-direction: column; align-items: center; }
.wortmarke { font-family: var(--anzeige); font-weight: 400; font-size: clamp(54px, 13vw, 96px); letter-spacing: .02em; margin: 0; line-height: 1; }
.intro-fuer { font-family: var(--anzeige); font-size: 18px; margin: 0 0 8px; color: var(--akzent); }
.intro-zeile { margin: 12px 0 22px; color: var(--tinte-2); font-size: 15px; letter-spacing: .02em; }
.lade { width: 160px; height: 2px; background: rgba(43,37,39,.12); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.lade-balken { display: block; height: 100%; width: 0; background: var(--tinte); transition: width .3s; }
.intro .knopf-haupt { padding: 15px 34px; font-size: 15px; border-radius: 14px; }

.ruhe .kopf, .ruhe .kamera-leiste, .ruhe .unten, .ruhe .ausloeser { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- Tablet / Desktop */
@media (min-width: 900px) {
  .bogen { left: auto; right: 12px; top: calc(70px + var(--oben)); bottom: 12px; width: 392px; max-height: none; border-radius: 20px;
    border: 1px solid var(--linie); transform: translateX(calc(100% + 24px)); }
  .bogen.offen { transform: translateX(0); }
  .bogen-griff { display: none; }
  body.bogen-offen .kamera-leiste { right: 416px; }
  body.bogen-offen .ausloeser { right: 418px; }
  .unten { left: 50%; right: auto; transform: translateX(-50%); width: min(760px, calc(100vw - 24px)); }
  body.bogen-offen .unten { left: calc(50% - 202px); }
  .kacheln { grid-template-columns: repeat(4, 1fr); }
  .ausloeser { bottom: 28px; right: 22px; width: 62px; height: 62px; }
}
@media (max-width: 899px) {
  /* Bogen sitzt ueber Nagel-Leiste und Dock: Werkzeugwechsel und Nagelwahl bleiben einen Tipp entfernt */
  .bogen { left: 8px; right: 8px; bottom: calc(var(--unten-h, 170px) + 6px); max-height: min(40vh, 400px); border-radius: 22px;
    border: 1px solid var(--linie); padding-bottom: 0; transform: translateY(calc(100% + var(--unten-h, 170px) + 40px)); }
  .bogen-griff { margin-top: 6px; }
  .bogen-kopf { padding: 2px 10px 2px 18px; }
  .bogen-kopf h2 { font-size: 20px; }
  body.bogen-offen .ausloeser { opacity: 0; pointer-events: none; }
}
@media (max-width: 380px) {
  .chip { width: 44px; } .chip svg { width: 26px; height: 40px; }
  .werkzeug { width: 56px; }
}
