/* Stannek, Serviceseite: Fernwartung, Benutzeranlage, Rechentools. Baut auf site.css und datev-solution.css auf. */
@import url("header-service.css");

.sv-hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); background: linear-gradient(180deg, var(--surface), var(--white)); }
.sv-hero .wrap { display: grid; gap: 1.2rem; }
.sv-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; letter-spacing: -0.024em; line-height: 1.02; }
.sv-quick { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
@media (min-width: 800px) { .sv-quick { grid-template-columns: repeat(3, 1fr); } }
.sv-quick-card {
  display: grid; gap: 0.35rem; align-content: start; height: 100%; text-decoration: none; color: var(--ink);
  padding: 1.5rem 1.5rem 1.6rem; border-radius: 22px; border: 1px solid var(--line); background: var(--white);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sv-quick-card:hover { color: var(--ink); transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 16px 40px rgba(63, 0, 255, 0.12); }
.sv-quick-card svg { width: 48px; height: 48px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.8rem; }
.sv-quick-card b { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em; }
.sv-quick-card span { color: var(--muted); }
.sv-quick-card.is-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.sv-quick-card.is-primary:hover { color: var(--white); }
.sv-quick-card.is-primary svg { stroke: var(--accent); }
.sv-quick-card.is-primary span { color: #e2d9ff; }

/* Fernwartung */
.sv-remote { background: radial-gradient(60% 80% at 85% 10%, rgba(63, 0, 255, 0.55), transparent 70%), var(--night); }
.sv-remote-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .sv-remote-grid { grid-template-columns: 1.05fr 1fr; } }
.sv-remote-copy { display: grid; gap: 1.2rem; }
.sv-remote h2 { color: var(--white); }
.sv-downloads { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.sv-dl svg { width: 20px; height: 20px; fill: currentColor; }
.sv-remote-note { color: var(--on-night-muted); font-size: 0.95rem; max-width: 34em; padding-left: 0.9rem; border-left: 3px solid var(--accent); }
.sv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.sv-steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding: 1.4rem; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-night); }
.sv-step-no { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--night); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.sv-steps h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.3rem; }
.sv-steps p { color: var(--on-night-muted); }
.sv-phone { display: inline-block; margin-top: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent); text-decoration: none; }
.sv-phone:hover { color: var(--white); }

/* Formular */
.sv-form-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 1000px) { .sv-form-grid { grid-template-columns: 0.8fr 1.2fr; } .sv-form-intro { position: sticky; top: 110px; } }
.sv-form-intro { display: grid; gap: 1.1rem; }
.sv-form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3.5vw, 2.4rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.sv-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .sv-row { grid-template-columns: 1fr 1fr; } }
.sv-field { display: grid; gap: 0.4rem; }
.sv-field > span, .sv-form legend { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.sv-field input, .sv-field textarea {
  font: inherit; font-size: 1rem; padding: 0.75rem 0.9rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); width: 100%;
}
.sv-field input:focus, .sv-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(63, 0, 255, 0.15); }
.sv-field [aria-invalid="true"] { border-color: #b42318; }
.sv-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sv-form legend { padding: 0; margin-bottom: 0.6rem; }
.sv-seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sv-seg legend { width: 100%; }
.sv-seg label, .sv-access label { position: relative; cursor: pointer; }
.sv-seg input, .sv-access input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sv-seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-family: var(--font-display); font-weight: 600; }
.sv-seg input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.sv-access { display: grid; gap: 0.5rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .sv-access { grid-template-columns: repeat(4, 1fr); } }
.sv-access legend { grid-column: 1 / -1; }
.sv-access span { display: flex; align-items: center; min-height: 52px; padding: 0.55rem 0.8rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.sv-access input:checked + span { border-color: var(--blue); background: var(--light); color: var(--night); }
.sv-seg input:focus-visible + span, .sv-access input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.sv-form-error { color: #b42318; font-weight: 600; }
.sv-form-status { color: var(--petrol); font-weight: 600; white-space: pre-line; }

/* Rechentools */
.sv-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .sv-tools { grid-template-columns: repeat(3, 1fr); } }
.sv-tool { display: grid; gap: 0.5rem; align-content: start; padding: 1.6rem; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.sv-tool.is-placeholder { border-style: dashed; border-color: #b5c0dc; }
.sv-file { justify-self: start; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--light); color: var(--blue); margin-bottom: 0.6rem; }
.sv-tool h3 { font-size: 1.3rem; }
.sv-tool p { color: var(--muted); }
.sv-tool-cta { font-family: var(--font-display); font-weight: 600; color: var(--muted); margin-top: 0.4rem; }

/* dream-bit Formulare: Karten und Popup im Route-D-Stil */
.sv-dbcards { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .sv-dbcards { grid-template-columns: 1fr 1fr; } }
.sv-dbcard { display: grid; gap: 0.9rem; align-content: start; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.sv-dbcard h3 { margin: 0; font-size: 1.3rem; }
.sv-dbcard p { margin: 0; color: var(--muted); }
.sv-dbcard .sv-dbicon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #ece5ff; color: var(--blue); }
.sv-dbcard.is-delete .sv-dbicon { background: #e3f4f4; color: #0b7a80; }
.sv-dbcard .btn { justify-self: start; margin-top: 0.4rem; }
.sv-dbnote { grid-column: 1 / -1; font-size: 0.92rem; color: var(--muted); margin: 0; }
.db-form-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; }
.db-form-modal[hidden] { display: none !important; }
.db-form-backdrop { position: absolute; inset: 0; background: rgba(12, 26, 68, 0.72); backdrop-filter: blur(3px); }
.db-form-dialog { position: relative; background: #fff; border-radius: 20px; width: min(900px, 100%); height: min(90vh, 900px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(12, 26, 68, 0.45); }
.db-form-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.db-form-header h2 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.db-form-close { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.db-form-close:hover, .db-form-close:focus-visible { background: var(--blue); border-color: var(--blue); color: #fff; }
.db-form-body { flex: 1; overflow: auto; background: var(--surface); }
.db-form-body iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.db-form-loading { padding: 1.5rem; color: var(--muted); margin: 0; }
@media (max-width: 640px) { .db-form-modal { padding: 0; } .db-form-dialog { height: 100%; border-radius: 0; } }
.sv-dbsteps { margin: 0.2rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.95rem; display: grid; gap: 0.2rem; }
.sv-dbsteps li::marker { color: var(--blue); font-weight: 700; }
.sv-dbmail { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.sv-dbmail svg { flex: none; }
.sv-dbmail:hover span { text-decoration: underline; }
.db-form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; padding: 0.9rem 1.25rem 0.9rem 1.5rem; border-top: 1px solid var(--line); background: #fff; }
.db-form-footer p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1 1 18rem; }
.db-form-footer .btn { display: inline-flex; align-items: center; gap: 0.5rem; }
