/* Tool-specific styles. Base look (.seo-tool, .seo-input, .seo-btn, ...) comes from /seo/seo.css. */
.seo-tool .seo-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .seo-tool .seo-row { grid-template-columns: 1fr 1fr; } }
.seo-tool .seo-row .seo-row { grid-template-columns: 1fr 1fr; }
.seo-tool .seo-field { min-width: 0; }
.seo-tool .seo-field small { display: block; margin-top: 4px; }
.seo-tool [hidden] { display: none !important; }
.seo-tool .seo-btn[disabled], .seo-tool .seo-btn-ghost[disabled] { opacity: .5; cursor: not-allowed; }
.seo-tool pre.seo-copy { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; overflow-x: auto; }
.seo-tool h3 { margin: 18px 0 8px; font-size: 1.05rem; }

/* website-check */
.wc-form .seo-btn { margin-top: 4px; }
.seo-tool .wc-go { width: 100%; min-height: 60px; font-size: 18px; }
.wc-form .seo-input { min-height: 56px; font-size: 18px; }
.wc-progress { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.wc-spin { width: 22px; height: 22px; border: 3px solid var(--line-strong); border-top-color: #1b1b1b; border-radius: 50%; animation: hs-spin .8s linear infinite; flex: none; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wc-spin { animation-duration: 3s !important; } }
.wc-out { margin-top: 16px; }
.wc-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.wc-score { font-size: 3rem; font-weight: 800; line-height: 1; min-width: 4.5rem; text-align: center; }
.wc-side p { margin: 0 0 6px; }
.wc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wc-item { padding: 10px 12px; border: 1px solid rgba(128,128,128,.25); border-radius: 10px; }
.wc-item p { margin: 6px 0 0; }
.wc-badges .seo-badge { margin: 0 4px 4px 0; }

/* qr-code */
.qr-layout { display: grid; gap: 4px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .qr-layout { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "form res" "style res"; align-items: start; } .qr-form { grid-area: form; } .qr-style { grid-area: style; } .qr-res { grid-area: res; position: sticky; top: calc(var(--header-h) + 12px); } }
.qr-panel > .seo-field:last-child { margin-bottom: 8px; }
.qr-result { display: grid; justify-items: center; gap: 12px; margin-top: 4px; }
.qr-canvas { width: min(100%, 280px); height: auto; aspect-ratio: 1; image-rendering: pixelated; border: 1px solid rgba(128,128,128,.3); background: #fff; border-radius: 8px; }
.qr-ph { margin: 0; padding: 24px 8px; text-align: center; }
.qr-actions { display: grid; gap: 10px; width: 100%; }
.seo-tool .qr-dl { min-height: 56px; width: 100%; margin: 0; font-size: 17px; }
.seo-tool .qr-actions .seo-btn + .seo-btn { margin: 0; }
.qr-colorrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qr-custom { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; }
.qr-color-input { width: 30px; height: 30px; padding: 0; border: 1px solid rgba(0,0,0,.35); border-radius: 50%; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; overflow: hidden; }
.qr-color-input::-webkit-color-swatch-wrapper { padding: 0; } .qr-color-input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.qr-more { margin: 0 0 16px; }
.qr-more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.qr-more .qr-color-input { width: 100%; height: 44px; border-radius: 10px; }
.qr-more .qr-color-input::-webkit-color-swatch { border-radius: 10px; }

/* business-name: see end of file */

/* opening-hours */
.oh-grid { display: grid; gap: 0; margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.oh-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.oh-row:last-child { border-bottom: 0; }
.oh-off { background: var(--surface-2); }
.oh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oh-day { font-weight: 700; font-size: 16px; }
.oh-hact { display: flex; align-items: center; gap: 8px; }
.oh-hact .oh-break { min-height: 44px; }
.oh-body { display: grid; gap: 8px; }
.oh-times { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oh-times .oh-time { width: auto; flex: 1 1 96px; min-width: 0; max-width: 140px; }
.oh-pre { flex: 1 1 100%; }
.oh-dash { opacity: .5; }
.oh-time[aria-invalid="true"] { border-color: #d33; box-shadow: 0 0 0 2px rgba(211, 51, 51, .25); }
@media (min-width: 640px) { .oh-row { grid-template-columns: 220px 1fr; align-items: center; } .oh-pre { flex: none; } }
.seo-tool .oh-all { margin: 0 0 16px; }
.oh-details { margin: 0 0 8px; }
.oh-details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.oh-err { display: flex; margin: 0 0 8px; }
.oh-outhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.oh-outhead h3 { margin: 12px 0 8px; }
.seo-tool .oh-copy { min-height: 40px; padding: 0 16px; font-size: 14px; width: auto; }
.oh-table { border-collapse: collapse; width: 100%; max-width: 420px; margin-bottom: 8px; }
.oh-table th, .oh-table td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid rgba(128,128,128,.2); }

/* serp-preview */
.sp-card { background: #fff; color: #202124; border-radius: 10px; padding: 14px 16px; font-family: Arial, Helvetica, sans-serif; border: 1px solid rgba(128,128,128,.3); overflow: hidden; }
.sp-mobile { max-width: 380px; }
.sp-url { font-size: 12px; color: #4d5156; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-t { font-size: 20px; line-height: 1.3; color: #1a0dab; margin-bottom: 3px; }
.sp-d { font-size: 14px; line-height: 1.58; color: #4d5156; }
.sp-desktop .sp-t { white-space: nowrap; overflow: hidden; }
.sp-line { margin: 6px 0; }

/* impressum-generator */
.imp-block { margin: 10px 0; }
.imp-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
.imp-check input { margin-top: .3rem; }
.imp-warn p { margin: 6px 0; }
.imp-tool details summary { cursor: pointer; font-weight: 600; margin: 8px 0; }

/* ===== shared picker / chips / toggle (ui.js) ===== */
.hs-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 15px/1.2 var(--font); cursor: pointer; text-align: center; transition: background .12s, border-color .12s; -webkit-tap-highlight-color: transparent; }
.hs-chip:hover { background: var(--surface-2); }
.hs-chip[aria-pressed="true"] { background: var(--lime); border-color: #1b1b1b; }
.hs-chip:focus-visible, .hs-toggle:focus-visible, .hs-cb-btn:focus-visible, .hs-mini:focus-visible { outline: 3px solid #1b1b1b; outline-offset: 2px; }
.hs-chip-lg { min-height: 48px; padding: 0 20px; font-size: 16px; }
.hs-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); flex: none; }
.hs-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 15px/1 var(--font); cursor: pointer; }
.hs-toggle-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--line-strong); border: 1px solid rgba(0,0,0,.25); flex: none; }
.hs-toggle[aria-pressed="true"] { background: var(--lime); border-color: #1b1b1b; }
.hs-toggle[aria-pressed="true"] .hs-toggle-dot { background: #1b1b1b; }
.hs-mini { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font: 600 14px/1 var(--font); cursor: pointer; }
.hs-mini:hover { background: var(--surface-2); }
.seo-tool .hs-mini { width: auto; }

.hs-cb { position: relative; scroll-margin-top: 76px; }
.hs-cb-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 11px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; font: 600 16px/1.3 var(--font); text-align: left; cursor: pointer; }
.hs-cb-btn[aria-expanded="true"] { border-color: var(--text); box-shadow: 0 0 0 3px rgba(231,255,123,.9); }
.hs-cb-empty .hs-cb-val { color: var(--muted); font-weight: 400; }
.hs-cb-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-cb-caret { width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-3px); flex: none; }
.hs-cb-panel { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--text); border-radius: 12px; box-shadow: 0 12px 32px rgba(27,27,27,.18); padding: 8px; }
.hs-cb-search { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font: 400 16px/1.3 var(--font); background: var(--bg-soft); color: var(--text); -webkit-appearance: none; appearance: none; }
.hs-cb-search:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(231,255,123,.9); }
.hs-cb-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: min(320px, 46vh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: relative; }
.hs-cb-opt { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1.3; }
.hs-cb-active { background: var(--lime-soft); }
.hs-cb-opt[aria-selected="true"] { font-weight: 700; }
.hs-cb-opt[aria-selected="true"]::after { content: "✓"; margin-left: auto; padding-left: 10px; }
.hs-cb-custom { border-top: 1px dashed var(--line-strong); font-weight: 600; }
.hs-cb-grp { padding: 8px 12px 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.hs-cb-none { padding: 12px; color: var(--text-3); font-size: 14.5px; }

/* business-name */
.bn-quick .seo-label { font-weight: 500; color: var(--text-3); font-size: 13px; }
.bn-out { min-height: 120px; }
.bn-hint { margin: 0; font-size: 16px; color: var(--text-2); }
.bn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.bn-head h3 { margin: 0; }
.seo-tool .bn-again { min-height: 44px; padding: 0 14px; width: auto; }
.bn-status { margin: 0 0 12px; }
.bn-grid { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .bn-grid { grid-template-columns: 1fr 1fr; } }
.bn-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.bn-name { flex: 1; min-width: 0; padding-top: 8px; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.bn-domain { font-size: 13px; overflow-wrap: anywhere; }
.bn-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bn-build { font-size: 14px; font-weight: 600; padding: 8px 0 2px; align-self: flex-start; }
.seo-tool .bn-more { margin: 0 0 14px; }
.bn-opt { margin: 0 0 16px; }
.bn-opt summary { cursor: pointer; font-weight: 600; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.bn-opt[open] summary { margin-bottom: 8px; }

/* impressum-generator (steps) */
.imp-step { margin: 22px 0 10px; font-size: 1.05rem; }
.imp-step:first-child { margin-top: 0; }
.imp-tool .hs-chip-lg { flex: 1 1 calc(50% - 8px); min-width: 0; }
@media (min-width: 640px) { .imp-tool .hs-chip-lg { flex: 1 1 calc(33% - 8px); } }
.imp-tool details > summary { min-height: 44px; display: flex; align-items: center; }
.imp-tool details[open] > summary { margin-bottom: 8px; }
.imp-tool details.imp-block { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px 4px; background: var(--surface); }
.imp-res { margin-top: 12px; }
.imp-actions .seo-btn, .imp-actions .seo-btn-ghost { min-height: 52px; }
.imp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
