/* ============================================================
   Quickstart Redesign
   Alle Farben laufen über Custom Properties, damit die
   Theme-Stylesheets (assets/<theme>/css/style.css) sie
   überschreiben können, ohne dass hier etwas angefasst wird.
   ============================================================ */

:root {
    --accent: #e47911;
    --accent-dark: #cc6804;
    --accent-light: #f0943b;
    --accent-soft: #fbe7cf;
    --accent-glow: rgba(228, 121, 17, .16);
    --accent-shadow: rgba(228, 121, 17, .5);

    --ink: #1f1f22;
    --ink-strong: #26262a;
    --ink-body: #5f5f5f;
    --ink-muted: #6b6b6b;
    --ink-faint: #8a8a8a;

    --hero-wash: #fdf3e6;
    --faq-row: #fffdfa;

    --surface: #fff;
    --surface-alt: #faf8f4;
    --surface-dark: #1c1c1e;
    --surface-dark-text: #8f8f92;
    --border: #eeebe5;
    --border-strong: #efece7;

    --radius-sm: 9px;
    --radius: 14px;
    --radius-lg: 18px;
    --shell: 1180px;
    --gutter: clamp(20px, 5vw, 56px);
    --section-y: clamp(52px, 6vw, 76px);
}

/* --- Ladezustand ----------------------------------------------- */

/* Inhalte bleiben verborgen, bis die Übersetzungen eingesetzt sind.
   So werden nie die rohen Schlüssel (LOGIN.1.HEAD …) sichtbar. */
body:not(.i18n-ready) header,
body:not(.i18n-ready) .main-content,
body:not(.i18n-ready) .qs-footer {
    display: none;
}

body.i18n-ready #site-loading {
    display: none;
}

/* --- Altlasten aus style.css neutralisieren --------------------- */

/* Links im Content bekamen dort generell eine gepunktete Unterlinie */
.main-content a.qs-faq-link,
.main-content .qs-badges a,
.main-content a.qs-btn,
.qs-nav a {
    border-bottom: none;
}

/* dort war die Linkfarbe fest auf Orange gesetzt */
.main-content a.qs-faq-link {
    color: var(--accent);
}

.main-content a.qs-faq-link:hover,
.main-content a.qs-faq-link:focus {
    color: var(--accent-dark);
}

/* Die alten Zierlinien um .description passen nicht zum Eyebrow-Aufbau */
.qs-section-head .description::before,
.qs-section-head .description::after {
    display: none;
}

.qs-section-head .description {
    margin-top: .75em;
    font: 300 clamp(15px, 2vw, 17px)/1.55 Roboto, sans-serif;
    color: var(--ink-muted);
}

/* --- Grundlagen ------------------------------------------------ */

.qs-page {
    font-family: Roboto, system-ui, sans-serif;
    color: #333;
    background: var(--surface);
    /* Sprungziele nicht unter die Sticky-Nav scrollen lassen */
    scroll-padding-top: 84px;
    scroll-behavior: smooth;
}

.qs-page #feature-set,
.qs-page #quickstart,
.qs-page #faq,
.qs-page .qs-phase {
    scroll-margin-top: 84px;
}

.qs-page *,
.qs-page *::before,
.qs-page *::after {
    box-sizing: border-box;
}

.qs-shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.qs-section {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

.qs-eyebrow {
    font: 700 12px Roboto, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}

.qs-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.qs-section-head h2 {
    margin: 12px 0 0;
    font: 700 clamp(26px, 4vw, 34px)/1.15 Roboto, sans-serif;
    color: var(--ink);
}

/* Rich-Text aus den Übersetzungen (enthält <p>, <b>, <i>, Platzhalter) */
.qs-rich {
    font: 400 15px/1.65 Roboto, sans-serif;
    color: var(--ink-body);
}

.qs-rich p {
    margin: 0 0 .55em;
}

.qs-rich p:last-child {
    margin-bottom: 0;
}

.qs-rich b {
    font-weight: 700;
    color: #3a3a3a;
}

.qs-rich i {
    font-style: italic;
    font-weight: 500;
    color: var(--accent-dark);
}

/* Service Domain wird per {{sd}} eingesetzt */
.qs-rich .servicedomain {
    font-style: normal;
    font-weight: 700;
    color: var(--accent);
}

.qs-rich .placeholder {
    display: inline-block;
    margin: 1px;
    padding: 0 7px;
    border: 1px solid #3276B1;
    border-radius: 6px;
    color: #3276B1;
    font-style: normal;
    font-weight: 500;
}

/* --- Navigation ------------------------------------------------ */

.qs-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-strong);
}

.qs-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.qs-nav-brand {
    display: inline-flex;
    align-items: center;
    font: 700 22px Roboto, sans-serif;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.qs-nav-brand:hover,
.qs-nav-brand:focus {
    color: var(--accent);
    text-decoration: none;
}

.qs-nav-logo {
    display: block;
    height: 40px;
    width: auto;
}

/* Mandanten ohne eigenes Bildzeichen behalten die Wortmarke */
.has-logo .qs-brand-wordmark {
    display: none;
}

@media (max-width: 480px) {
    .qs-nav-logo {
        height: 34px;
    }
}

.qs-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qs-nav-link {
    font: 500 14.5px Roboto, sans-serif;
    color: #4a4a4a;
    text-decoration: none;
}

.qs-nav-link:hover,
.qs-nav-link:focus {
    color: var(--accent);
    text-decoration: none;
}

.qs-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font: 600 14px Roboto, sans-serif;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background .15s ease;
}

.qs-btn:hover,
.qs-btn:focus {
    background: var(--accent-light);
    color: #fff;
    text-decoration: none;
}

/* --- Hero ------------------------------------------------------ */

.qs-hero {
    background: radial-gradient(120% 120% at 85% 20%, var(--hero-wash) 0%, #ffffff 60%);
}

.qs-hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
    align-items: center;
    padding-top: clamp(44px, 6vw, 66px);
    padding-bottom: clamp(44px, 6vw, 66px);
}

.qs-hero-copy {
    flex: 1 1 360px;
}

.qs-hero-copy h1 {
    margin: 16px 0 0;
    font: 700 clamp(32px, 6vw, 50px)/1.08 Roboto, sans-serif;
    color: var(--ink);
    letter-spacing: -.01em;
}

.qs-hero-sub {
    margin: 20px 0 0;
    font: 300 clamp(17px, 2.4vw, 20px)/1.5 Roboto, sans-serif;
    color: var(--ink-muted);
    max-width: 440px;
}

.qs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.qs-badges img {
    height: 48px;
    display: block;
    width: auto;
}

.qs-hero-trust {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    font: 400 13.5px Roboto, sans-serif;
    color: var(--ink-faint);
}

.qs-hero-trust i {
    color: var(--accent);
}

.qs-hero-art {
    position: relative;
    text-align: center;
    flex: 1 1 300px;
}

.qs-hero-art::before {
    content: "";
    position: absolute;
    inset: -6% 6%;
    background: radial-gradient(circle at 50% 45%, var(--accent-glow), transparent 65%);
    border-radius: 50%;
}

.qs-hero-art img {
    position: relative;
    max-width: 440px;
    width: 100%;
    filter: drop-shadow(0 30px 45px rgba(30, 15, 0, .22));
}

/* --- Features -------------------------------------------------- */

.qs-features {
    background: var(--surface);
}

.qs-features .qs-shell {
    max-width: 1000px;
}

.qs-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px 44px;
}

.qs-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.qs-feature-icon {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 13px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qs-feature-icon i {
    color: var(--accent);
    font-size: 21px;
}

.qs-feature h4 {
    margin: 2px 0 6px;
    font: 600 18px Roboto, sans-serif;
    color: var(--ink-strong);
}

.qs-feature p {
    margin: 0;
    font: 300 14.5px/1.6 Roboto, sans-serif;
    color: var(--ink-muted);
}

/* --- Quickstart-Phasen ----------------------------------------- */

.qs-steps {
    background: var(--surface-alt);
    border-top: 1px solid var(--border-strong);
}

.qs-steps .qs-section-head {
    margin-bottom: 52px;
}

.qs-phase {
    margin-bottom: 52px;
}

.qs-phase:last-child {
    margin-bottom: 0;
}

.qs-phase-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    max-width: 760px;
}

.qs-phase-num {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 22px Roboto, sans-serif;
    box-shadow: 0 8px 18px -6px var(--accent-shadow);
}

.qs-phase-label {
    font: 700 11.5px Roboto, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.qs-phase-head h3 {
    margin: 5px 0 8px;
    font: 600 clamp(21px, 3vw, 25px)/1.2 Roboto, sans-serif;
    color: var(--ink-strong);
}

.qs-phase-desc {
    font: 300 15px/1.6 Roboto, sans-serif;
    color: var(--ink-muted);
}

/* Download-Phase */
.qs-download {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 34px) clamp(24px, 4vw, 40px);
}

.qs-download-copy {
    flex: 1 1 280px;
}

.qs-download-copy .qs-rich {
    font-size: 14.5px;
}

.qs-download-copy .qs-badges {
    margin-top: 22px;
}

.qs-download-copy .qs-badges img {
    height: 46px;
}

.qs-download-art {
    width: 300px;
    max-width: 100%;
    flex: 1 1 240px;
}

/* Step-Karten */
.qs-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.qs-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qs-step-shot {
    display: block;
    width: 214px;
    max-width: 100%;
    filter: drop-shadow(0 20px 34px rgba(30, 15, 0, .24));
}

.qs-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 8px;
    align-self: stretch;
}

.qs-step-num {
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 13px Roboto, sans-serif;
}

.qs-step-title h4 {
    margin: 0;
    font: 600 16.5px Roboto, sans-serif;
    color: var(--ink-strong);
}

.qs-step .qs-rich {
    align-self: stretch;
    font-size: 14px;
}

/* --- FAQ ------------------------------------------------------- */

.qs-faq {
    background: var(--surface);
    border-top: 1px solid var(--border-strong);
}

.qs-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.qs-faq-item {
    background: var(--faq-row);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.qs-faq-item:last-child {
    margin-bottom: 0;
}

.qs-faq-item[open],
.qs-faq-item:hover {
    border-color: var(--accent);
}

.qs-faq-item[open] {
    box-shadow: 0 10px 24px -16px rgba(30, 15, 0, .35);
}

.qs-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    cursor: pointer;
    font: 700 16.5px/1.35 Roboto, sans-serif;
    color: var(--ink-strong);
    list-style: none;
}

/* Standard-Dreieck der details/summary-Mechanik ausblenden */
.qs-faq-q::-webkit-details-marker {
    display: none;
}

.qs-faq-q::marker {
    content: "";
}

.qs-faq-q:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.qs-faq-toggle {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 400 20px/1 Roboto, sans-serif;
    transition: background .15s ease;
}

.qs-faq-toggle::before {
    content: "+";
}

.qs-faq-item[open] .qs-faq-toggle::before {
    content: "–";
}

.qs-faq-item[open] .qs-faq-toggle {
    background: var(--accent);
    color: #fff;
}

.qs-faq-a {
    padding: 0 24px 22px;
    font: 400 15px/1.65 Roboto, sans-serif;
    color: var(--ink-body);
}

.qs-faq-a p {
    margin: 0 0 .6em;
}

.qs-faq-a b {
    font-weight: 700;
    color: var(--ink-strong);
}

.qs-faq-a i {
    font-style: italic;
    font-weight: 500;
    color: var(--accent-dark);
}

/* Weiterführender Link mitten im Antworttext */
.main-content a.qs-faq-inline {
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
    border-bottom: none;
    text-decoration: underline;
}

.main-content a.qs-faq-inline:hover,
.main-content a.qs-faq-inline:focus {
    color: var(--accent-dark);
}

.qs-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    font: 600 14px Roboto, sans-serif;
    color: var(--accent);
    text-decoration: none;
}

.qs-faq-link:hover,
.qs-faq-link:focus {
    color: var(--accent-dark);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .qs-faq-q {
        padding: 18px 18px;
        font-size: 15.5px;
        gap: 14px;
    }

    .qs-faq-a {
        padding: 0 18px 18px;
    }
}

/* --- Footer ---------------------------------------------------- */

.qs-footer {
    background: var(--surface-dark);
}

.qs-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-top: 34px;
    padding-bottom: 34px;
}

.qs-footer-brand {
    display: inline-flex;
    align-items: center;
    font: 700 22px Roboto, sans-serif;
    color: #fff;
}

/* Bildzeichen ohne Schriftzug, wie im Fuß der Hauptseite */
.qs-footer-mark {
    display: block;
    height: 46px;
    width: auto;
}

.qs-footer-note {
    font: 300 13px Roboto, sans-serif;
    color: var(--surface-dark-text);
}

/* --- Mobile ---------------------------------------------------- */

@media (max-width: 767px) {
    .qs-nav-inner {
        justify-content: center;
    }

    .qs-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .qs-phase-head {
        gap: 14px;
    }

    .qs-download {
        gap: 28px;
    }
}
