/* Kundenbereich – nutzt die Farben und Schriften des Themes (Hell/Dunkel inklusive). Alle Klassen mit cg- */
.cg-narrow { max-width: 520px; margin: 0 auto; }
.cg-dim { color: var(--fg-dim); }
.cg-small { font-size: 13px; }
.cg-narrow .section-title { margin-bottom: .5em; }
.cg-narrow p { color: var(--fg-dim); }
.cg-actions { margin-top: 26px; }
.cg-narrow .contact-form { margin-top: 28px; }
.cg-narrow .contact-form form > label { margin-bottom: 22px; }
.cg-narrow .contact-form .notices { margin-bottom: 22px; }

.cg-btn, a.cg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border: 1px solid transparent; border-radius: 999px; background: var(--accent-grad); color: var(--on-accent); font: 600 15px/1 "Inter", sans-serif; letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), filter .25s; }
.cg-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.cg-btn--ghost, a.cg-btn--ghost { background: none; color: var(--fg); border-color: var(--line); }
.cg-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.cg-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.cg-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cg-link:hover { color: var(--accent); }

/* ---------- Kundenansicht ---------- */
.cg-app { --cg-heart: #ff5c8a; padding-bottom: 20px; }
.cg-intro { max-width: 760px; }
.cg-intro p { color: var(--fg-dim); margin: 0 0 .6em; }
.cg-bar { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px -16px 0; padding: 12px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.cg-count b { color: var(--cg-heart); }
.cg-chip { display: inline-block; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--fg); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; transition: border-color .2s; }
.cg-chip:hover { border-color: var(--accent); }
.cg-chip.on { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; font-weight: 600; }
.cg-sp { flex: 1; }
.cg-banner { margin-top: 16px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.cg-banner.ok { border-color: #3fb97a; } .cg-banner.warn { border-color: #e0a93a; }
.cg-grid { --row: 230px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (min-width: 1100px) { .cg-grid { --row: 300px; gap: 14px; } }
@media (max-width: 640px) { .cg-grid { --row: 150px; gap: 6px; } }
.cg-grid::after { content: ""; flex-grow: 1000; }
.cg-it { position: relative; overflow: hidden; border-radius: 10px; background: var(--bg-2); cursor: zoom-in; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row)); }
.cg-it img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.cg-it:hover img { transform: scale(1.04); }
.cg-heart { position: absolute; right: 8px; bottom: 8px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(10, 10, 12, .55); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: transform .15s, background .2s; }
.cg-heart:hover { transform: scale(1.1); }
.cg-heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.cg-heart.on { background: var(--cg-heart); } .cg-heart.on svg { fill: #fff; stroke: #fff; }
.cg-cm { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 99px; background: rgba(10, 10, 12, .6); color: #fff; font-size: 12px; }
.cg-empty { padding: 40px 4px; color: var(--fg-dim); }
.cg-status { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; gap: 12px; align-items: center; margin-top: 28px; padding: 12px 16px 12px 20px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.cg-msg { flex: 1; font-size: 14px; color: var(--fg-dim); } .cg-msg.ok { color: #3fb97a; } .cg-msg.err { color: #e5575a; }

/* Lightbox (immer dunkel) */
.cg-lb { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 100; display: none; flex-direction: column; background: rgba(6, 6, 8, .97); color: #eceae6; }
.cg-lb.open { display: flex; }
.cg-lb__stage { position: relative; flex: 1; min-height: 0; margin: 54px 64px 8px; touch-action: pan-y; }
.cg-lb__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cg-lb__side { padding: 8px 20px 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: center; }
.cg-lb__side textarea { flex: 1 1 320px; max-width: 560px; min-height: 46px; max-height: 140px; resize: vertical; padding: 11px 14px; font: 15px "Inter", sans-serif; color: #eceae6; background: #131318; border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; }
.cg-lb__side textarea:focus { outline: none; border-color: #fbbf24; }
.cg-lb .cg-round { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; cursor: pointer; }
.cg-lb .cg-round:hover { background: rgba(255, 255, 255, .22); }
.cg-lb .cg-x { top: 10px; right: 14px; } .cg-lb .cg-pv { left: 10px; top: 50%; margin-top: -23px; } .cg-lb .cg-nx { right: 10px; top: 50%; margin-top: -23px; }
.cg-lb .cg-cnt { position: absolute; top: 20px; left: 20px; font-size: 13px; letter-spacing: .1em; color: #a6a39d; }
.cg-lb .cg-heart { position: static; width: 46px; height: 46px; flex: none; }
.cg-lb .cg-btn--ghost { color: #eceae6; border-color: rgba(255, 255, 255, .25); }
@media (max-width: 700px) { .cg-lb__stage { margin: 54px 4px 4px; } .cg-lb .cg-pv, .cg-lb .cg-nx { top: auto; bottom: 128px; margin: 0; } .cg-status { padding: 10px 12px 10px 14px; gap: 10px; } .cg-status .cg-btn { padding: 12px 18px; font-size: 14px; } }

/* ---------- Verwaltung ---------- */
.cg-mgr { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-bottom: 90px; }
@media (max-width: 860px) { .cg-mgr { grid-template-columns: 1fr; } }
.cg-side { min-width: 0; }
.cg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.cg-cl { display: block; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font: inherit; cursor: pointer; transition: border-color .15s; }
.cg-cl:hover { border-color: var(--accent); }
.cg-cl.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.cg-cl b { display: block; font-weight: 600; } .cg-cl span { font-size: 13px; color: var(--fg-dim); }
.cg-cl .done { display: block; color: #3fb97a; }
.cg-pane { min-width: 0; }
.cg-b { font: inherit; font-size: 14px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); color: var(--fg); cursor: pointer; text-decoration: none; transition: border-color .15s; }
.cg-b:hover { border-color: var(--accent); }
.cg-b.primary { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; font-weight: 600; }
.cg-b.danger:hover { border-color: #e5575a; color: #e5575a; }
.cg-b:disabled { opacity: .4; }
.cg-t { font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); }
.cg-t:focus { outline: none; border-color: var(--accent); }
.cg-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.cg-box h3 { margin: 0 0 10px; font-weight: 500; font-size: 16px; color: var(--fg); }
.cg-box p { margin: 0 0 10px; color: var(--fg-dim); font-size: 14px; }
.cg-inv { width: 100%; font: 13px ui-monospace, Consolas, monospace; }
.cg-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; } .cg-sw input { accent-color: var(--accent); width: 18px; height: 18px; }
.cg-drop { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; color: var(--fg-dim); margin-bottom: 10px; }
.cg-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--fg); }
.cg-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cg-im { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cg-im.fav { border-color: #ff5c8a; box-shadow: 0 0 0 2px rgba(255, 92, 138, .3); }
.cg-im img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--bg-3); }
.cg-im .h { position: absolute; left: 8px; top: 8px; background: #ff5c8a; color: #fff; padding: 2px 9px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.cg-im .x { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.cg-im .x:hover { background: #e5575a; }
.cg-im .cap { padding: 8px 10px; font-size: 12px; color: var(--fg-dim); } .cg-im .cap b { display: block; color: var(--fg); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-im .cmt { margin-top: 4px; padding: 6px 8px; background: var(--bg-3); border-radius: 8px; color: var(--fg); font-size: 13px; white-space: pre-wrap; word-break: break-word; }

/* Bearbeitete Bilder (Kundenansicht) */
.cg-finals { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.cg-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.cg-fi { display: grid; gap: 10px; justify-items: start; }
.cg-fi a:first-child { display: block; width: 100%; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.cg-fi img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.cg-fi a:first-child:hover img { transform: scale(1.04); }
/* Mehrfachauswahl in der Verwaltung */
.cg-im .chk { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; z-index: 2; }
.cg-im img { cursor: pointer; }
.cg-im.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.cg-im.fav.sel { border-color: var(--accent); }
.cg-top { display: flex; gap: 18px; justify-content: space-between; margin-bottom: 18px; font-size: 14px; }
.cg-top a { color: var(--fg-dim); text-decoration: none; } .cg-top a:hover { color: var(--accent); }

/* ---------- Übersichtlichere Kundenansicht: Begrüßung, Schritte, Reiter ---------- */
.cg-app [hidden], .cg-lb [hidden], .cg-status[hidden] { display: none !important; }
.cg-hello { margin: 0 0 4px; color: var(--fg-dim); font-size: 15px; }
.cg-hello b { color: var(--fg); font-weight: 600; }
.cg-lead { margin: 22px 0 0; max-width: 760px; color: var(--fg-dim); }
.cg-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.cg-step { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; color: var(--fg-dim); }
.cg-step.click { cursor: pointer; } .cg-step.click:hover { border-color: var(--accent); }
.cg-step__n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; font-weight: 700; flex: none; }
.cg-step small { color: var(--fg-dim); font-size: 12px; }
.cg-step.now { color: var(--fg); border-color: var(--accent); }
.cg-step.now .cg-step__n, .cg-step.ready .cg-step__n { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; }
.cg-step.ready { color: var(--fg); border-color: #3fb97a; }
.cg-step.done { color: var(--fg); }
.cg-step.done .cg-step__n { background: #3fb97a; border-color: #3fb97a; color: #06210f; }
.cg-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cg-tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--fg); font: 600 15px/1 "Inter", sans-serif; cursor: pointer; transition: border-color .2s; }
.cg-tab:hover { border-color: var(--accent); }
.cg-tab.on { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; }
.cg-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: color-mix(in srgb, currentColor 18%, transparent); font-size: 12px; }
.cg-tab.has:not(.on) .cg-badge { background: #3fb97a; color: #06210f; }
.cg-heart.cg-dlbtn { text-decoration: none; }
.cg-heart.cg-dlbtn svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .cg-step { padding-right: 12px; font-size: 13px; } .cg-tab { padding: 10px 14px; font-size: 14px; } }

/* ---------- Filter, Sortierung, "Neu", Limit ---------- */
.cg-filters { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.cg-sortl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-dim); }
.cg-sel { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); cursor: pointer; }
.cg-sel:focus { outline: none; border-color: var(--accent); }
.cg-dlrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cg-dlrow:empty { display: none; }
.cg-count b.full { color: #e0a93a; }
.cg-new { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 99px; background: #3fb97a; color: #06210f; font-size: 11px; font-weight: 800; letter-spacing: .06em; z-index: 2; }
.cg-newpill { margin-left: 2px; padding: 2px 8px; border-radius: 99px; background: #3fb97a; color: #06210f; font-size: 11px; font-weight: 800; }
.cg-newpill[hidden] { display: none !important; }
/* Verwaltung: Profilfelder */
.cg-fields { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.cg-fld { display: grid; gap: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-dim); }
.cg-fld .cg-t { text-transform: none; letter-spacing: 0; min-width: 220px; }

/* ---------- Alben, Rückmeldung, Passwort vergessen ---------- */
.cg-albums { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.cg-albumsl { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); margin-right: 4px; }
.cg-album { position: relative; display: grid; gap: 2px; text-align: left; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font: inherit; cursor: pointer; transition: border-color .2s; }
.cg-album:hover { border-color: var(--accent); }
.cg-album.on { border-color: transparent; background: var(--accent-grad); color: var(--on-accent); }
.cg-album b { font-weight: 600; font-size: 15px; } .cg-album small { font-size: 12px; opacity: .8; }
.cg-album .cg-newpill { position: absolute; top: -8px; right: -6px; }
.cg-fbbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.cg-fbbar[hidden] { display: none !important; }
.cg-fbmsg { flex: 1; font-size: 14px; color: var(--fg-dim); }
.cg-forgot { margin-top: 18px; font-size: 14px; }
.cg-forgot a { color: var(--fg-dim); text-decoration: underline; text-underline-offset: 3px; } .cg-forgot a:hover { color: var(--accent); }
.cg-chip2 { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-3); color: var(--fg); font: inherit; font-size: 14px; cursor: pointer; }
.cg-chip2:hover { border-color: var(--accent); }
.cg-chip2.on { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; font-weight: 600; }

/* ---------- Zoom in der Modell-Lightbox ---------- */
.cg-lb .cg-zm { top: 10px; right: 68px; }
.cg-lb__stage { overflow: hidden; touch-action: none; }
.cg-lb__stage img { transform-origin: center center; will-change: transform; cursor: zoom-in; touch-action: none; }
.cg-lb.is-zoomed .cg-lb__stage img { cursor: grab; }

/* ---------- Admin-Übersicht ---------- */
.cg-hubwrap { max-width: 760px; }
.cg-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 26px 0 30px; }
.cg-hub__card { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: inherit; text-decoration: none; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.cg-hub__card strong { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.cg-hub__card span { font-size: 14px; color: var(--fg-dim); line-height: 1.5; }
.cg-hub__card:hover, .cg-hub__card:focus-visible { transform: translateY(-3px); border-color: var(--accent); background: var(--bg-3); }

.contact-form label small { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; }

.cg-req { color: #e5484d; font-weight: 600; }
.cg-small { font-size: 13px; }
