/* Iris · Claudia May Concept Store
   Farben aus dem Brand Kit „Claudia May · Concept Store“: Espresso #2D1910, Creme #F5F5EF.
   Schriften: Logo-Schrift (Quiche) gibt es nicht als Webfont → Cormorant Garamond + Source Sans 3. */
:root {
  --espresso: #2D1910;
  --mokka: #4A3326;
  --taupe: #8C7461;
  --greige: #CFC4B6;
  --sand: #E9E3D8;
  --creme: #F5F5EF;
  --card: #FBFAF6;
  --line: #E2DBD0;
  --muted: #6B5A4C;
  --ok: #3F6B45;
  --alert: #9B3B2E;
  --radius: 16px;
  --head: 'Cormorant Garamond', Georgia, serif;
  --body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--espresso); font-family: var(--body); font-size: 17px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0; letter-spacing: .01em; }
h1 { font-size: 2rem; line-height: 1.15; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
a { color: var(--mokka); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.boot { padding: 60px 16px; text-align: center; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Kopf */
.top { background: var(--espresso); color: var(--creme); position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); }
.top-inner { max-width: 720px; margin: 0 auto; padding: 12px 16px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.top .title { text-align: center; font-family: var(--head); font-size: 1.55rem; letter-spacing: .35em; text-indent: .35em; color: var(--creme); text-decoration: none; }
.top .sub { display: block; font-family: var(--body); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--greige); text-indent: .28em; margin-top: 2px; }
.top button, .top a.icon { background: none; border: 0; color: var(--creme); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; text-decoration: none; }
.top svg { width: 22px; height: 22px; }

main { max-width: 720px; margin: 0 auto; padding: 20px 16px calc(120px + env(safe-area-inset-bottom)); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hello { margin: 6px 0 18px; }
.hello p { margin: 6px 0 0; color: var(--muted); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--espresso);
  background: var(--espresso); color: var(--creme); font-weight: 600; letter-spacing: .04em; cursor: pointer; text-decoration: none; }
.btn.light { background: transparent; color: var(--espresso); }
.btn.block { width: 100%; }
.btn.big { min-height: 60px; font-size: 1.05rem; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.no { background: transparent; color: var(--alert); border-color: var(--alert); }
.link { background: none; border: 0; color: var(--mokka); text-decoration: underline; cursor: pointer; padding: 6px 0; }

/* Karten und Listen */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.section-label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; }
.plist { display: grid; gap: 10px; }
.pitem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; text-decoration: none; color: inherit; }
.pitem .thumb { width: 64px; height: 80px; border-radius: 10px; background: var(--sand) center/cover no-repeat; }
.pitem .name { font-weight: 600; line-height: 1.3; }
.pitem .meta { font-size: .85rem; color: var(--muted); }
.badge { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--mokka); white-space: nowrap; }
.badge.done { background: #E3EDE2; color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }

/* Schritte */
.steps { display: flex; gap: 6px; margin: 4px 0 18px; }
.steps button { flex: 1; border: 0; background: none; padding: 0; cursor: pointer; text-align: center; color: var(--muted); font-size: .7rem; letter-spacing: .06em; }
.steps button::before { content: ''; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.steps button.done::before { background: var(--taupe); }
.steps button.current { color: var(--espresso); font-weight: 600; }
.steps button.current::before { background: var(--espresso); }
.step-head { margin-bottom: 4px; }
.step-head p { margin: 4px 0 0; color: var(--muted); }

/* Fotos */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ptile { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; border: 1.5px dashed var(--greige); background: var(--card); display: grid; place-items: center; text-align: center;
  cursor: pointer; overflow: hidden; color: var(--muted); font-size: .85rem; padding: 6px; }
.ptile.has { border-style: solid; border-color: var(--line); padding: 0; }
.ptile img { width: 100%; height: 100%; object-fit: cover; }
.ptile .lbl { position: absolute; left: 6px; bottom: 6px; background: rgba(45, 25, 16, .78); color: var(--creme); font-size: .7rem; padding: 2px 8px; border-radius: 999px; }
.ptile .del { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(245, 245, 239, .92); color: var(--espresso); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.ptile svg { width: 26px; height: 26px; margin: 0 auto 6px; display: block; }
.ptile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tips { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }

/* Formular */
.field { margin: 14px 0; }
.field label { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input[type=text], .field select, .field textarea { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; font-size: 1rem; }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.check input { width: 22px; height: 22px; accent-color: var(--espresso); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--greige); background: #fff; border-radius: 999px; padding: 9px 14px; cursor: pointer; font-size: .95rem; }
.chip.on { background: var(--espresso); border-color: var(--espresso); color: var(--creme); }
.title-preview { background: var(--sand); border-radius: 12px; padding: 14px; margin-top: 6px; }
.title-preview .t { font-family: var(--head); font-size: 1.45rem; line-height: 1.2; }
.hint { background: var(--sand); border-radius: 12px; padding: 12px 14px; font-size: .92rem; color: var(--mokka); margin: 12px 0; }
.hint.warn { background: #F4E6DF; color: var(--alert); }

/* Bilder */
.slot { margin: 18px 0 26px; }
.slot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.slot-head select { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 6px 12px; font-size: .9rem; }
.shot { position: relative; border-radius: 16px; overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .stamp { position: absolute; left: 10px; top: 10px; background: rgba(245, 245, 239, .94); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 600; }
.shot .stamp.ja { background: var(--ok); color: #fff; }
.shot .probe { position: absolute; inset: auto 0 0 0; background: rgba(45, 25, 16, .82); color: var(--creme); font-size: .8rem; padding: 8px 12px; }
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.decide .full { grid-column: 1 / -1; }
.versions { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.versions button { flex: 0 0 64px; height: 80px; border-radius: 10px; border: 2px solid transparent; padding: 0; background: var(--sand) center/cover; cursor: pointer; position: relative; }
.versions button.cur { border-color: var(--espresso); }
.versions button .v { position: absolute; right: 3px; bottom: 3px; background: rgba(245, 245, 239, .9); font-size: .65rem; border-radius: 999px; padding: 0 5px; }

/* Leiste unten */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(245, 245, 239, .96); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 9; backdrop-filter: blur(6px); }
.bottom-inner { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }
.bottom .btn { flex: 1; }

/* Anmeldung */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--espresso); }
.login-box { width: 100%; max-width: 380px; text-align: center; color: var(--creme); }
.login-box img { width: 240px; margin: 0 auto 6px; }
.login-box h1 { letter-spacing: .4em; text-indent: .4em; margin: 18px 0 4px; }
.login-box p { color: var(--greige); margin: 0 0 22px; }
.login-box input { width: 100%; min-height: 52px; border-radius: 12px; border: 1px solid var(--mokka); background: #3A2418; color: var(--creme); padding: 12px 14px; margin-bottom: 10px; font-size: 1rem; }
.login-box .btn { width: 100%; background: var(--creme); color: var(--espresso); border-color: var(--creme); }
.error { color: #F0B7A8; min-height: 1.5em; margin-top: 8px; font-size: .92rem; }
main .error { color: var(--alert); }

/* Einstellungen */
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--greige); margin-right: 8px; }
.dot.on { background: var(--ok); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); background: var(--espresso); color: var(--creme); padding: 12px 18px;
  border-radius: 999px; z-index: 30; font-size: .95rem; max-width: calc(100% - 32px); text-align: center; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) {
  .photos { grid-template-columns: repeat(4, 1fr); }
  .slots-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
.field label.check { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--espresso); margin: 10px 0 0; }
.bottom .btn { white-space: nowrap; padding: 0 14px; }

/* Kopf mit Concept-Store-Logo (Logo-Datei hat viel Rand, daher Ausschnitt) */
.top-inner { padding: 6px 16px 8px; }
.top .title { display: flex; flex-direction: column; align-items: center; text-indent: 0; letter-spacing: 0; }
.top .title .logo { width: 230px; height: 44px; object-fit: cover; object-position: center 52%; }
.top .sub { font-size: .66rem; letter-spacing: .5em; text-indent: .5em; margin-top: 0; color: var(--greige); }
@media (max-width: 380px) { .top .title .logo { width: 200px; height: 38px; } }

/* Ablage-Status */
.pitem { grid-template-columns: 64px 1fr; }
.pitem .badge { display: inline-block; margin-top: 6px; }
.badge.wait { background: #F1E7D3; color: #7A5A1E; }
.badge.busy { background: var(--sand); color: var(--mokka); }
.badge.err { background: #F4E1DB; color: var(--alert); }

/* Kopf wie Juno: IRIS links, Logo Mitte, Zahnrad rechts */
.top-inner { grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 8px 16px; }
.top-left { display: flex; align-items: center; gap: 2px; justify-self: start; min-width: 0; }
.top-left .icon { margin-left: -10px; }
.top-right { justify-self: end; display: flex; }
.top .brand-name { font-family: var(--head); font-size: 1.35rem; letter-spacing: .32em; color: var(--creme); text-decoration: none; line-height: 1; }
.top .title .logo { width: 210px; height: 42px; }
@media (max-width: 420px) {
  .top .brand-name { font-size: 1.05rem; letter-spacing: .22em; }
  .top .title .logo { width: 150px; height: 32px; }
}
