/* TechHan Visitenkarten – Generator, Formular & Verwaltung (nutzt die Variablen aus dem TechHan-Theme) */

/* ---------- Generator ---------- */
.cg-intro { max-width: 820px; display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.cg-benefits { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.cg-benefits li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-2); }
.cg-benefits li::before { content: "✓"; width: 22px; height: 22px; border-radius: 999px; background: #F1F8FD; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.cg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .cg-grid { grid-template-columns: 1fr; } .cg-preview { order: -1; } }
.cg-form { border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); background: #fff; box-shadow: 0 30px 60px -40px rgba(11,13,16,.25); }
.cg-preview { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 960px) { .cg-preview { position: static; } }
.cg-preview-label { font-family: var(--mono); font-size: 11px; color: var(--text-4); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.vc-preview { pointer-events: none; user-select: none; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(11,13,16,.3); background: #fff; }
.vc-preview .vc { min-height: 0; margin: 0; border: 0; box-shadow: none; border-radius: 0; }
.vc-preview .vc-actions, .vc-preview .vc-foot-links { display: none; }
@media (max-width: 960px) { .vc-preview { max-width: 360px; margin: 0 auto; width: 100%; } .vc-preview .vc-list, .vc-preview .vc-cta { display: none; } }
.cg-done { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.cg-done[hidden] { display: none; }
.cg-done .check { width: 48px; height: 48px; border-radius: 999px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cg-done h2 { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; }
.cg-done p { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.cg-resend { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.cg-resend summary { cursor: pointer; font-size: 15px; color: var(--text-3); }
.cg-resend summary:hover { color: var(--ink); }
.cg-resend-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; max-width: 640px; }
.cg-resend-form .field { flex: 1 1 260px; }
.cg-resend-form .cf-hint { flex-basis: 100%; }

/* ---------- Formular ---------- */
.card-form { display: flex; flex-direction: column; gap: 8px; }
.card-form[hidden] { display: none; }
.cf-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.cf-group > legend, .cf-more > summary { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 14px; padding: 0; }
.cf-group legend small, .cf-more summary small { font-size: 13px; font-weight: 400; color: var(--text-4); margin-left: 6px; }
.cf-more { border-top: 1px solid var(--line); padding-top: 18px; }
.cf-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; }
.cf-more > summary::-webkit-details-marker { display: none; }
.cf-more > summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--text-3); }
.cf-more[open] > summary { margin-bottom: 10px; }
.cf-more[open] > summary::after { content: "–"; }
.cf-hint { font-size: 13px; color: var(--text-4); line-height: 1.5; margin: 0 0 10px; }
.cf-photo { display: flex; gap: 18px; align-items: center; }
.cf-photo-preview { width: 84px; height: 84px; border-radius: 999px; flex-shrink: 0; background: var(--bg-alt) center / cover no-repeat; border: 1px dashed #C9CED4; }
.cf-photo-btn { cursor: pointer; margin-bottom: 8px; }
.cf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.5; margin-top: 12px; cursor: pointer; }
.cf-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }
.cf-check-lg { padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 13.5px; }
.cf-check-lg a { color: var(--blue); text-decoration: underline; }
.cf-check.is-invalid { border-color: var(--red); background: #FFF6F5; }
.field-error { font-size: 12.5px; color: #B42318; }
.field-error[hidden] { display: none; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field input:disabled { background: var(--bg-alt); color: var(--text-3); }
.cf-legal { border-top: 1px solid var(--line); padding-top: 6px; }
.cf-submit { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; }
.cf-submit .btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Verwaltung ---------- */
.cm-wrap { max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.cm-notice { padding: 16px 18px; border-radius: 14px; background: #F1F8FD; border: 1px solid #CDE7F7; font-size: 15px; line-height: 1.5; }
.cm-share { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius); }
@media (max-width: 640px) { .cm-share { grid-template-columns: 1fr; } }
.cm-link { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cm-link > a { font-size: 20px; overflow-wrap: anywhere; color: var(--blue); }
.cm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-qr canvas { width: 160px; height: 160px; }
.cm-h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-top: 24px; }
.cm-danger { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cm-delete:hover { border-color: var(--red); color: #B42318; }


.vc-preview .vc-promo { display: none; }
.cf-public { font-size: 13.5px; line-height: 1.5; color: var(--text-2); background: #FFF7E0; border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; }
