/* =========================================================================
   KSAplate /cars/sell-my-car — Verkaufs-Landingpage
   Neu aufgesetzt 08.10.2026 nach mobile.de/verkaufen/auto/.

   Jeder Wert unten ist an der Vorlage gemessen (getComputedStyle, 08.10.2026):
     Seite      #101014
     Karte      #1B1B21, Radius 16
     Text       #E6EAF0 · gedaempft #5D616B
     Feld       #2A2B33, Radius 8, Rahmen 1px #7E838F, innen 0 43px 0 11px
     Feld, gesperrt  Rahmen #42454F, Text #5D616B
     Knopf      Radius 8, 14px/600, 8px 12px -> 36 hoch
     h2         20/28 Gewicht 500 · h3 im Fliesstext 20/28 Gewicht 700
     Kopftitel  32/40 Gewicht 500

   Zwei bewusste Abweichungen: die Handlungsfarbe ist Saudi-Gruen statt #DB3000,
   das Kopfband gruen statt #68298A. Kein Gold.

   Breiten, am Desktop (1705 px) an der Vorlage gemessen:
     Inhaltsspalte 978 (innen 946) · Kopfbandspalte 540, mittig
     Kopfband 32 oben/unten · Feldzeile 22 Beschriftung + 36 Feld + 16 Abstand
     Knopf im Kopfband 262 = halbe Spalte (540/2 - 8)

   Namensraum .kse-. Reines CSS: das Tailwind-Bundle ist eingefroren, neue
   Utility-Klassen erreichen es nicht mehr. Durchgaengig logische
   Eigenschaften, damit die arabische Fassung ohne zweites Regelwerk laeuft.
   ========================================================================= */

.kse {
    --kse-green: var(--ksa-green, #006C35);
    --kse-green-dark: var(--ksa-green-dark, #004F26);
    --kse-page: #101014;
    --kse-card: #1B1B21;
    --kse-field: #2A2B33;
    --kse-ink: #E6EAF0;
    --kse-ink-2: #9ea4ad;
    --kse-ink-3: #5D616B;
    --kse-line: #42454F;
    --kse-line-2: #7E838F;
    /* Randlos bis an die Fensterkanten; die Scrollbar muss abgezogen werden,
       sonst ueberhaengt die Flaeche um genau deren Breite. */
    width: calc(100vw - var(--kc-scrollbar, 0px));
    margin-inline: calc(50% - 50vw + var(--kc-scrollbar, 0px) / 2);
    padding-bottom: 48px;
    background: var(--kse-page);
    color: var(--kse-ink);
    font-size: 14px;
    line-height: 20px;
}
.kse *, .kse *::before, .kse *::after { box-sizing: border-box; }
.kse [x-cloak] { display: none !important; }
.kse-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .kse-flip { transform: scaleX(-1); }

.kse-wrap { width: 100%; max-width: calc(978px + 32px); margin-inline: auto; padding-inline: 16px; }
.kse-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

/* ============================================================== Brotkrumen */
.kse-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 0; margin: 0; list-style: none; font-size: 13px; color: rgba(255,255,255,.72); }
.kse-crumbs a { color: rgba(255,255,255,.72); text-decoration: none; }
.kse-crumbs a:hover { color: #fff; text-decoration: underline; }
.kse-crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: rgba(255,255,255,.48); }
[dir="rtl"] .kse-crumbs li + li::before { content: "‹"; }
.kse-crumbs [aria-current] { color: #fff; font-weight: 600; }

/* ================================================================ Kopfband
   Bei der Vorlage liegt das Kurzformular IM Kopfband und steht dort OHNE
   eigene Karte: die Felder sitzen direkt auf der Farbflaeche. Kopfzeile,
   Unterzeile, Beschriftungen, Felder und Knopf beginnen alle an derselben
   Kante einer mittig stehenden 540er-Spalte. */
.kse-hero { background: var(--kse-green); color: #fff; padding-bottom: 32px; }
.kse-hero-col { width: 100%; max-width: 540px; margin-inline: auto; padding-top: 32px; }
.kse-hero-h { margin: 0; font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.kse-hero-p { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: rgba(255,255,255,.88); }

/* =========================================================== Kurzformular */
.kse-qf { margin-top: 24px; }
.kse-qf-grid { display: flex; flex-direction: column; gap: 16px; }
.kse-qf-n { margin: 12px 0 0; font-size: 13px; line-height: 19px; color: rgba(255,255,255,.72); }
/* Zwei gleich breite Handlungen mit 16 Abstand: 262 + 16 + 262 = 540, genau
   wie bei der Vorlage. Die zweite ist ein unterstrichener Verweis, in seiner
   Haelfte zentriert. */
/* Raster statt Flex: zwei exakt gleiche Haelften. Mit flex-grow teilt der
   Browser den Rest nach Inhalt auf und die Haelften werden 271/253. */
.kse-qf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.kse-qf-actions > * { min-width: 0; }
.kse-btn--text {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 4px; border: 0; background: none; color: #fff;
    font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 400;
    text-decoration: underline; cursor: pointer;
}
.kse-btn--text:hover { text-decoration: none; }
/* Im Kopfband traegt der Hauptknopf WEISS: Markengruen auf der gruenen
   Flaeche waere unsichtbar. Die Vorlage setzt dort ihr Rot auf Violett — also
   ebenfalls eine Gegenfarbe, nicht denselben Ton. */
.kse-qf .kse-btn--go { background: #fff; border-color: #fff; color: var(--kse-green-dark); }
.kse-qf .kse-btn--go:hover { background: #eaf5ee; border-color: #eaf5ee; }
.kse-qf .kse-f-l { color: #fff; }

/* ===================================================================== Feld */
.kse-f { display: flex; flex-direction: column; min-width: 0; }
.kse-f-l + * { margin-top: 0; }
.kse-f-l { margin-bottom: 2px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--kse-ink); }
.kse-f select, .kse-f input {
    width: 100%; height: 36px; padding: 0 11px;
    border: 1px solid var(--kse-line-2); border-radius: 8px; background: var(--kse-field);
    color: var(--kse-ink); font-size: 14px; font-family: inherit;
    appearance: none; -webkit-appearance: none;
}
.kse-f select {
    /* Pfeil als Hintergrundbild, damit er in beiden Leserichtungen sitzt.
       43 px sind dafuer reserviert, genau wie bei der Vorlage. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e6eaf0' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4.2 6.1 8 9.9l3.8-3.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: 16px; background-position: right 14px center;
    padding-inline-end: 43px;
}
[dir="rtl"] .kse-f select { background-position: left 14px center; padding-inline-end: 11px; padding-inline-start: 43px; }
.kse-f select:focus, .kse-f input:focus { outline: 0; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.kse-f select:disabled { border-color: var(--kse-line); color: var(--kse-ink-3); cursor: not-allowed; }
.kse-f input::placeholder { color: var(--kse-ink-3); }

/* ==================================================================== Knopf */
.kse-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.kse-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    /* 36 insgesamt, wie an der Vorlage gemessen — der Rahmen zaehlt mit. */
    height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px;
    font-size: 14px; line-height: 20px; font-weight: 600; font-family: inherit;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.kse-btn--go { background: var(--kse-green); border-color: var(--kse-green); color: #fff; }
.kse-btn--go:hover { background: var(--kse-green-dark); border-color: var(--kse-green-dark); }
.kse-btn--line { background: transparent; border-color: var(--kse-line-2); color: var(--kse-ink); }
.kse-btn--line:hover { border-color: #fff; color: #fff; }
.kse-btn--wide { width: 100%; }
.kse-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ======================================================= Karte, allgemein
   Alle Masse an der Vorlage gemessen: Karte 978 breit, Innenabstand 16,
   Radius 16, 16 Abstand zur naechsten. Ueberschrift 24 ueber dem Inhalt,
   danach 8 zwischen den Bloecken (Rand faellt zusammen, deshalb genuegen
   margin-top: 8 und margin-bottom: 24). */
.kse-card { background: var(--kse-card); border-radius: 16px; padding: 16px; }
.kse-h2 { margin: 0 0 24px; font-size: 20px; line-height: 28px; font-weight: 500; }
.kse-h2--tight { margin-bottom: 16px; }
.kse-h3b { margin: 8px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.kse-p { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--kse-ink); }
.kse-lead { margin: 0 0 16px; font-size: 14px; line-height: 20px; color: var(--kse-ink); }
.kse-note { display: inline-block; margin: 8px 0 0; padding: 6px 12px; border-radius: 8px; background: var(--kse-field); font-size: 13px; line-height: 19px; color: var(--kse-ink); font-variant-numeric: tabular-nums; }

/* ======================================================== Zwei Spalten
   Die Vorlage setzt zwei gleich breite Spalten ohne Abstand; der Abstand
   steckt im Einzug der Zeilen. 473 + 473 = 946. */
.kse-two { display: grid; grid-template-columns: 1fr 1fr; }
.kse-two-h { margin: 0 0 4px; padding-inline-start: 36px; font-size: 14px; line-height: 20px; font-weight: 700; }

/* Haekchenzeile: 36 hoch (8 + 20 + 8), Zeichen am Anfang, Text bei 36. */
.kse-ticks { margin: 0; padding: 0; list-style: none; }
.kse-ticks li { position: relative; padding: 8px 16px 8px 36px; font-size: 14px; line-height: 20px; color: var(--kse-ink); }
[dir="rtl"] .kse-ticks li { padding: 8px 36px 8px 16px; }
.kse-ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 8px; width: 20px; text-align: center; color: var(--kse-green); font-weight: 700; }
.kse-ticks strong { font-weight: 700; }

/* ============================================================= Weg-Karte
   Volle Karte, Text links, Bild rechts: 461 + 24 + 461 = 946. */
.kse-path { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.kse-path img { display: block; width: 100%; height: auto; aspect-ratio: 461 / 229; object-fit: cover; border-radius: 8px; }
.kse-list { margin: 14px 0 0; padding-inline-start: 40px; list-style: none; }
.kse-list li { position: relative; font-size: 14px; line-height: 20px; color: var(--kse-ink); }
.kse-list li::before { content: "✓"; position: absolute; inset-inline-start: -20px; color: var(--kse-green); font-weight: 700; }
.kse-path .kse-btn { margin-top: 20px; }

/* ============================================================== Vergleich
   Drei gleiche Spalten (315), Kopfzeile 16/600, Zellen 8 oben und unten,
   keine Linien — wie bei der Vorlage. */
.kse-table-wrap { overflow-x: auto; }
.kse-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.kse-table th { padding: 8px 16px 8px 0; text-align: start; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--kse-ink); }
.kse-table td { padding: 8px 16px 8px 0; vertical-align: top; font-size: 14px; line-height: 20px; color: var(--kse-ink); }
[dir="rtl"] .kse-table th, [dir="rtl"] .kse-table td { padding: 8px 0 8px 16px; }
.kse-cell-k { margin: 0; font-size: 14px; line-height: 20px; }
.kse-cell-p { margin: 0; font-size: 14px; line-height: 20px; color: var(--kse-ink-2); }

/* ==================================================== Umwandlungskarte
   367 + 16 + 367 + 16 + 180 = 946, alles 36 hoch. */
.kse-mini { display: grid; grid-template-columns: 1fr 1fr 180px; gap: 16px; align-items: end; }
.kse-mini .kse-btn { width: 100%; }

/* ======================================================= Anzeigenvorlage */
.kse-tpl { white-space: pre-line; word-break: break-word; margin: 8px 0 0; padding: 16px; border: 1px solid var(--kse-line); border-radius: 8px; background: var(--kse-field); color: var(--kse-ink); font-family: inherit; font-size: 14px; line-height: 26px; }

/* ===================================================================== FAQ */
.kse-faq { display: flex; flex-direction: column; gap: 8px; }
.kse-faq details { border: 1px solid var(--kse-line); border-radius: 8px; }
.kse-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; list-style: none; }
.kse-faq summary::-webkit-details-marker { display: none; }
.kse-faq summary::after { content: "⌄"; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: var(--kse-field); color: var(--kse-ink); font-size: 15px; line-height: 1; }
.kse-faq details[open] summary::after { content: "⌃"; }
.kse-faq p { margin: 0; padding: 0 16px 14px; font-size: 14px; line-height: 20px; color: var(--kse-ink); }

/* ============================================================ Linkzeile
   Die Vorlage setzt diese Verweise als Fliesstext mit senkrechtem Strich. */
.kse-linkrow { margin: 0; font-size: 14px; line-height: 20px; }
.kse-linkrow a { color: var(--kse-ink); text-decoration: none; }
.kse-linkrow a:hover { text-decoration: underline; }
.kse-pipe { color: var(--kse-ink-3); }

/* ================================================================ Tabletbreite */
@media (max-width: 1023px) {
    .kse-mini { grid-template-columns: 1fr 1fr; }
    .kse-mini .kse-btn { grid-column: 1 / -1; }
}

/* ==================================================================== Telefon */
@media (max-width: 767px) {
    .kse-wrap { padding-inline: 12px; }
    /* Die Vergleichstabelle wird am Telefon gestapelt: drei Spalten auf 334 px
       quetschen heisst acht Zeilen Umbruch neben zwei Woertern. Jede Wertzelle
       nennt ueber data-k selbst, zu welchem Weg sie gehoert. */
    .kse-table, .kse-table tbody, .kse-table tr, .kse-table td { display: block; width: 100%; }
    .kse-table thead { display: none; }
    .kse-table tr { padding: 14px 0; border-bottom: 1px solid var(--kse-line); }
    .kse-table tr:last-child { border-bottom: 0; }
    .kse-table td { padding: 0; }
    .kse-table td + td { margin-top: 8px; }
    .kse-table td + td::before { content: attr(data-k) ": "; color: var(--kse-ink-3); }
    .kse-stack { gap: 12px; }
    .kse-hero { padding-bottom: 28px; }
    .kse-hero-h { font-size: 28px; line-height: 36px; }
    .kse-qf-actions { grid-template-columns: 1fr; }
    .kse-two { grid-template-columns: 1fr; }
    /* Untereinander brauchen die beiden Gruppen Luft, sonst klebt die zweite
       Ueberschrift am letzten Punkt der ersten. */
    .kse-two > div + div { margin-top: 16px; }
    .kse-path { grid-template-columns: 1fr; }
    .kse-path img { order: -1; }
    .kse-mini { grid-template-columns: 1fr; }
    .kse-table { table-layout: auto; }
    .kse-table th, .kse-table td { white-space: normal; }
}
