/*
    SK-Online (heller Kunden-Theme für HESK 3.7.x)
    online solutions · sk-online.ch

    Aufbau nach HESK-Vorgabe (siehe theme/hesk3/customer/readme.md
    und css/themes/modern_light.css):
        1) :root – Hauptvariablen aus 0_00_default_theme_vars.css
        2) :root – Hilfsvariablen, die erst später gesetzt werden (mit !important)
        3) Selektor-Anpassungen, begrenzt auf die HTML-Klasse .theme_sk_online

    Farben stehen ausschliesslich in den Variablen.
    Die Regeln weiter unten verwenden nur var(...).

    Aktivieren: Admin › Einstellungen › Allgemein › Kunden-Theme › «sk_online»
    Bilder: Ordner css/themes/sk_online/
*/

/* ==========================================================================
   1) Hauptvariablen
   ========================================================================== */
:root {
    /* Markenfarben SK-Online */
    --sk-lime:       #AAC527; /* Logo-Grün */
    --sk-lime-soft:  #EEF4D4; /* helle grüne Fläche */
    --sk-moss:       #5E7414; /* Grün für Text und Links, Kontrast 5.3:1 auf Weiss */
    --sk-graphite:   #2F312E; /* Text und Hauptbuttons */
    --sk-stone:      #595959; /* Logo-Grau */
    --sk-mute:       #6E7169; /* Nebentext, Kontrast 4.9:1 */
    --sk-line:       #DEE1D6; /* Linien */
    --sk-field-line: #C9CDBF; /* Rahmen von Eingabefeldern */
    --sk-paper:      #F6F7F2; /* Seitenhintergrund */

    /* HESK-Hauptfarben */
    --primary:   var(--sk-graphite);
    --secondary: var(--sk-moss);
    --tertiary:  var(--sk-lime);

    --surface:         #ffffff;
    --foreground:      var(--sk-graphite);
    --main-background: var(--sk-paper);

    --font__pri-clr: var(--sk-graphite);
    --font__sec-clr: var(--sk-stone);

    /* Kopfzeile */
    --header__bg:              var(--surface);
    --header_logo__clr:        var(--sk-graphite);
    --header_nav__clr:         var(--sk-graphite);
    --header_nav__hover_clr:   var(--sk-moss);
    --header_profile__clr:     var(--sk-graphite);
    --header_profile__user-avatar-bg: var(--sk-moss);

    /* Icons in Kacheln */
    --icon_circle__clr:          var(--sk-graphite);
    --icon_circle__bg:           var(--sk-lime);
    --navlink_icon_hover__clr:   var(--sk-lime);
    --navlink_icon_hover__bg:    var(--sk-graphite);
    --navlink__bg:               var(--surface);
    --navlink__clr:              var(--sk-stone);
    --navlink__hover-bg:         var(--surface);
    --navlink__title-clr:        var(--sk-graphite);

    --notification__clr: var(--font__pri-clr);

    /* Formulare */
    --input-bg:  var(--surface);
    --input-clr: var(--sk-graphite);
    --radio__fill-clr: var(--sk-moss);

    /* Links */
    --link__pri-clr:        var(--sk-moss);
    --link__pri-hover-clr:  var(--sk-graphite);
    --link__sec-clr:        var(--sk-moss);
    --link__sec-hover-clr:  var(--sk-graphite);
    --footer__link-clr:     var(--sk-stone);

    /* Ticket */
    --ticket_body__bg:     var(--surface);
    --ticket_response__bg: color-mix(in srgb, var(--surface) 92%, var(--sk-lime));

    /* Vorschauen (Wissensdatenbank) */
    --preview__clr:          var(--sk-stone);
    --preview__bg:           transparent;
    --preview__border-clr:   var(--sk-line);
    --preview__hover-bg:     var(--sk-lime-soft);
    --preview__hover-icon-fill: var(--sk-graphite);
    --preview__title-clr:    var(--sk-graphite);

    --suggest_preview__clr:        var(--sk-graphite);
    --suggest_preview__border-clr: var(--sk-line);
    --suggest_preview__hover-bg:   var(--sk-lime-soft);
    --suggest_preview__title-clr:  var(--sk-moss);

    --article_preview__hover-clr:     var(--sk-graphite);
    --article_preview_suggestion_clr: var(--sk-graphite);

    /* Tabellen */
    --table_row__bg:       var(--surface);
    --table_row__bg-even:  var(--sk-paper);
    --table_row__bg-hover: var(--sk-lime-soft);

    --step_bar__item-clr: var(--sk-lime);

    --breadcrumbs__a-clr:       var(--sk-moss);
    --breadcrumbs__a-hover-clr: var(--sk-graphite);

    /* Suche */
    --search__clr:        var(--sk-graphite);
    --search__bg:         var(--sk-lime);
    --search__title-clr:  var(--sk-graphite);
    --search__icon-fill:  var(--sk-graphite);
    --search__input-bg:   var(--surface);
    --search__input-placeholder-clr: var(--sk-mute);

    /* Buttons */
    --btn__bg-clr-pri:     var(--sk-graphite);
    --btn__clr-pri:        var(--surface);
    --btn__border-clr-pri: var(--sk-graphite);
    --btn__disabled-bg-clr: var(--sk-line);
    --btn__disabled-clr:    var(--sk-mute);

    /* Auswahllisten */
    --dropdown__bg:              var(--surface);
    --dropdown__clr:             var(--sk-graphite);
    --dropdown__border-clr:      var(--sk-field-line);
    --dropdown_ver2__border-clr: var(--sk-field-line);
    --dropdown__hover-bg:        var(--sk-lime-soft);
    --dropdown__hover-clr:       var(--sk-graphite);
    --dropdown__hover-border-clr: var(--sk-moss);
    --dropdown_ver2__hover-border-clr: var(--sk-moss);

    /* Datumsauswahl */
    --datepicker_btn__bg:  var(--sk-graphite);
    --datepicker_btn__clr: var(--surface);
    --datepicker__bg:      var(--surface);
    --datepicker__clr:     var(--sk-graphite);

    /* Schatten: ruhig und warm */
    --shadow-1:      var(--sk-graphite);
    --shadow-1-hsla: 100, 3%, 19%;
    --shadow-1-30:   var(--shadow-1-10); /* sanftere Schatten überall */
    --shadow-1-40:   var(--shadow-1-10);
}

/* ==========================================================================
   2) Hilfsvariablen
   Diese setzt HESK erst nach dem Theme. Deshalb braucht es !important.
   ========================================================================== */
:root {
    --header_border__clr:           var(--sk-line) !important;
    --article__head-bg:             transparent !important;
    --article__head-clr:            var(--sk-graphite) !important;
    --article__head-border-clr:     var(--sk-graphite) !important;
    --form__input--focus-border-clr: var(--sk-moss) !important;

    --btn_full__hover_bg:           var(--sk-lime) !important;
    --btn_border__hover-bg:         var(--sk-graphite) !important;

    --dropdown_input__border-clr:   var(--sk-field-line) !important;
    --dropdown_label__border-clr:   var(--sk-field-line) !important;
    --dropdown_list__border-clr:    var(--sk-line) !important;

    /* eigene Gestaltungswerte */
    --sk-radius-lg: 20px;
    --sk-radius:    12px;
    --sk-radius-sm: 8px;
    --sk-ring:      0 0 0 3px color-mix(in srgb, var(--sk-lime) 50%, transparent);
    --sk-lift:      0 1px 2px color-mix(in srgb, var(--sk-graphite) 6%, transparent),
                    0 10px 24px -12px color-mix(in srgb, var(--sk-graphite) 22%, transparent);
    --sk-font:      "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
                    "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   3) Selektor-Anpassungen
   Präfix .theme_sk_online .cust-help: Das Theme lädt vor app.css.
   Der zusätzliche Klassen-Selektor sorgt dafür, dass diese Regeln gewinnen.
   ========================================================================== */

/* --- Schrift und Grundlayout ------------------------------------------- */
.theme_sk_online .cust-help,
.theme_sk_online .cust-help .wrapper,
.theme_sk_online .cust-help .notification,
.theme_sk_online .cust-help .btn,
.theme_sk_online .cust-help input,
.theme_sk_online .cust-help textarea,
.theme_sk_online .cust-help .step-bar li,
.theme_sk_online .cust-help .step-bar li::before {
    font-family: var(--sk-font);
}

.theme_sk_online .cust-help .wrapper {
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0;
    color: var(--font__pri-clr);
}

.theme_sk_online .cust-help .contr {
    max-width: 1120px;
    padding: 0 24px;
}

.theme_sk_online .cust-help :focus-visible {
    outline: none;
    box-shadow: var(--sk-ring);
    border-radius: var(--sk-radius-sm);
}

/* --- Kopfzeile mit Logo ------------------------------------------------- */
.theme_sk_online .cust-help .header__inner {
    padding: 16px 0 14px;
}

/* Der Website-Titel bleibt im HTML (Screenreader, Suchmaschinen).
   Sichtbar ist das Logo. */
.theme_sk_online .cust-help .header__logo {
    display: inline-flex;
    align-items: center;
    font-size: 0;
    line-height: 0;
    color: transparent;
}
.theme_sk_online .cust-help .header__logo::before {
    content: "";
    display: block;
    width: 212px;
    height: 48px;
    background: url("sk_online/sk-logo-horizontal.png") left center / contain no-repeat;
}

.theme_sk_online .cust-help .header .dropdown-select .label,
.theme_sk_online .cust-help .header__nav a {
    font-weight: 600;
}

/* --- Brotkrümel --------------------------------------------------------- */
.theme_sk_online .cust-help .breadcrumbs {
    background-color: var(--main-background);
}
.theme_sk_online .cust-help .breadcrumbs__inner {
    padding: 16px 0 4px;
    font-size: 13px;
    color: var(--sk-mute);
}
.theme_sk_online .cust-help .breadcrumbs__inner a {
    font-weight: 600;
}

/* --- Suche: das Markenstück --------------------------------------------- */
/* Grüne Fläche mit schräger Kante, wie der Schnitt im «K» des Logos */
.theme_sk_online .cust-help .search__title {
    margin: 44px auto 22px;
    max-width: 18ch;
    font-size: clamp(30px, 4.6vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--search__title-clr);
    text-wrap: balance;
}

.theme_sk_online .cust-help .search__form {
    padding: 36px 28px 44px;
    border-radius: var(--sk-radius-lg);
    clip-path: polygon(0 0, 100% 0, 100% 52%, 94% 100%, 0 100%);
}

.theme_sk_online .cust-help .search__form .form-group {
    max-width: 720px;
}
.theme_sk_online .cust-help .search__form .form-group input {
    height: 60px;
    padding-left: 58px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    color: var(--sk-graphite);
    box-shadow: 0 2px 0 color-mix(in srgb, var(--sk-graphite) 14%, transparent);
}
.theme_sk_online .cust-help .search__form .form-group input:focus {
    border-color: var(--sk-graphite);
    box-shadow: none;
}

/* --- Startkacheln ------------------------------------------------------- */
.theme_sk_online .cust-help .nav {
    margin: 32px -10px 8px;
}
.theme_sk_online .cust-help .navlink {
    max-width: 360px;
    margin: 10px;
    padding: 22px 22px 22px 20px;
    align-items: flex-start;
    border: 1px solid var(--sk-line);
    border-radius: var(--sk-radius-lg);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.theme_sk_online .cust-help .navlink:hover {
    border-color: var(--sk-lime);
    box-shadow: var(--sk-lift);
    transform: translateY(-2px);
}
.theme_sk_online .cust-help .navlink .navlink__title {
    margin-bottom: 2px;
    font-size: 17px;
    font-weight: 700;
}
.theme_sk_online .cust-help .navlink .navlink__descr {
    font-size: 14px;
    line-height: 1.5;
}
.theme_sk_online .cust-help .navlink .icon-in-circle {
    margin-right: 16px;
}

/* Icons: gerundete Quadrate statt Kreise – passend zum kantigen Logo */
.theme_sk_online .cust-help .icon-in-circle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

/* --- Wissensdatenbank --------------------------------------------------- */
.theme_sk_online .cust-help .article__heading {
    display: flex;
    justify-content: flex-start;
    margin: 48px 0 0;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--sk-graphite);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--sk-graphite);
    text-align: left;
}
.theme_sk_online .cust-help .article__heading a {
    display: inline-flex;
    align-items: center;
}
.theme_sk_online .cust-help .article__heading .icon-in-circle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}
.theme_sk_online .cust-help .article__heading--form {
    margin: 32px 0 6px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: clamp(26px, 3.4vw, 34px);
}
.theme_sk_online .cust-help .article__heading + .article-heading-tip {
    justify-content: flex-start;
    margin: 0 0 24px;
    text-align: left;
    font-size: 13px;
}

.theme_sk_online .cust-help .main__content .article .block__head,
.theme_sk_online .cust-help .content .block__head {
    justify-content: flex-start;
    background: none;
    box-shadow: none;
}

/* Reiter als Pillen */
.theme_sk_online .cust-help .tabbed__head {
    justify-content: flex-start;
    margin: 20px 0 8px;
    border-bottom: 0;
}
.theme_sk_online .cust-help .tabbed__head .tabbed__head_tabs {
    gap: 8px;
}
.theme_sk_online .cust-help .tabbed__head .tabbed__head_tabs li {
    min-width: 0;
    margin: 0;
    padding: 8px 18px;
    border: 1px solid var(--sk-line);
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--sk-stone);
    font-weight: 600;
}
.theme_sk_online .cust-help .tabbed__head .tabbed__head_tabs li:not(.current):hover {
    border-color: var(--sk-lime);
    background-color: var(--sk-lime-soft);
    color: var(--sk-graphite);
}
.theme_sk_online .cust-help .tabbed__head .tabbed__head_tabs li.current {
    border-color: var(--sk-graphite);
    background-color: var(--sk-graphite);
    color: var(--surface);
    box-shadow: none;
}
.theme_sk_online .cust-help .tabbed__tabs .tabbed__tabs_tab {
    background: none;
    box-shadow: none;
}

/* Artikelvorschau als ruhige Liste */
.theme_sk_online .cust-help .preview {
    padding: 20px 8px;
    border-bottom: 1px solid var(--preview__border-clr);
    box-shadow: none;
    transition: background-color .15s ease;
}
.theme_sk_online .cust-help .preview .preview__title {
    margin-bottom: 4px;
    font-size: 17px;
}
.theme_sk_online .cust-help .preview .icon-in-circle {
    width: 38px;
    height: 38px;
    margin-top: 0;
    border-radius: 12px;
    background-color: var(--sk-lime-soft);
}
.theme_sk_online .cust-help .preview:hover .icon-in-circle {
    background-color: var(--sk-lime);
}
.theme_sk_online .cust-help .lightgrey {
    color: var(--sk-mute);
}

/* Kategorien und Artikel */
.theme_sk_online .cust-help .topics,
.theme_sk_online .cust-help .content .ticket__body,
.theme_sk_online .cust-help .ticket--article .ticket__body {
    border: 1px solid var(--sk-line);
    border-radius: var(--sk-radius-lg);
    box-shadow: none;
}
.theme_sk_online .cust-help .ticket__params {
    border: 1px solid var(--sk-line);
    border-radius: var(--sk-radius-lg);
    box-shadow: none;
    overflow: hidden;
}
/* «War dieser Artikel hilfreich?» – HESK mischt hier Grün mit Weiss.
   Mit Lime wäre der Kontrast zu schwach. */
.theme_sk_online .cust-help .ticket__block-footer {
    color: var(--sk-mute);
}
.theme_sk_online .cust-help .topics__title {
    font-weight: 700;
}
.theme_sk_online .cust-help .article-heading-tip {
    color: var(--sk-mute);
}

/* --- Buttons ------------------------------------------------------------ */
.theme_sk_online .cust-help .btn {
    border-radius: 999px;
}
.theme_sk_online .cust-help .btn-full {
    height: 46px;
    min-width: 160px;
    padding: 0 26px;
    border-width: 2px;
    font-size: 15px;
    font-weight: 600;
}
.theme_sk_online .cust-help .btn-full:hover {
    border-color: var(--sk-lime);
    color: var(--sk-graphite);
}
.theme_sk_online .cust-help .btn-full:hover .icon {
    fill: var(--sk-graphite);
}
.theme_sk_online .cust-help .btn-border,
.theme_sk_online .cust-help .btn--blue-border,
.theme_sk_online .cust-help .btn.cancel {
    height: 46px;
    padding: 0 22px;
    border-width: 2px;
    font-size: 15px;
    font-weight: 600;
}

/* --- Formulare ---------------------------------------------------------- */
.theme_sk_online .cust-help .form input.form-control,
.theme_sk_online .cust-help .form textarea.form-control {
    min-height: 46px;
    padding: 10px 14px;
    border-color: var(--sk-field-line);
    border-radius: var(--sk-radius-sm);
    font-size: 15px;
}
.theme_sk_online .cust-help .form textarea.form-control {
    min-height: 170px;
    line-height: 1.55;
}
.theme_sk_online .cust-help .form input.form-control:hover,
.theme_sk_online .cust-help .form textarea.form-control:hover {
    border-color: var(--sk-stone);
}
.theme_sk_online .cust-help .form input.form-control:focus,
.theme_sk_online .cust-help .form textarea.form-control:focus {
    border-color: var(--sk-moss);
    box-shadow: var(--sk-ring);
}
.theme_sk_online .cust-help .form input.form-control.isError,
.theme_sk_online .cust-help .form textarea.form-control.isError {
    border-color: var(--error);
}
.theme_sk_online .cust-help .form-group .label,
.theme_sk_online .cust-help .form-group label,
.theme_sk_online .cust-help .param > .label {
    font-weight: 600;
    color: var(--sk-graphite);
}
.theme_sk_online .cust-help .dropdown-select .label,
.theme_sk_online .cust-help .selectize-input {
    border-radius: var(--sk-radius-sm);
}
.theme_sk_online .cust-help .form-submit-ticket,
.theme_sk_online .cust-help .form--reply {
    border: 1px solid var(--sk-line);
    border-radius: var(--sk-radius-lg);
    box-shadow: none;
}
.theme_sk_online .cust-help .dropzone {
    border-radius: var(--sk-radius) var(--sk-radius) 0 0;
}
.theme_sk_online .cust-help .select__title {
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--sk-graphite);
}

/* --- Hinweise ----------------------------------------------------------- */
.theme_sk_online .cust-help .alert,
.theme_sk_online .cust-help .notification,
.theme_sk_online .cust-help .notification-flash {
    border-radius: var(--sk-radius);
    box-shadow: none;
}

/* --- Seitenwechsel ------------------------------------------------------ */
.theme_sk_online .cust-help .pagination__link,
.theme_sk_online .cust-help .pagination__stroke {
    border-radius: var(--sk-radius-sm);
}
.theme_sk_online .cust-help .pagination__item.is-current .pagination__link {
    background-color: var(--sk-graphite);
    color: var(--surface);
}

/* --- Fusszeile ---------------------------------------------------------- */
.theme_sk_online .cust-help .footer {
    padding: 22px 16px 28px;
    border-top: 1px solid var(--sk-line);
    background-color: var(--surface);
    color: var(--sk-mute);
    font-size: 13px;
}

/* --- Barrierefreiheit --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .theme_sk_online .cust-help * {
        transition: none !important;
    }
    .theme_sk_online .cust-help .navlink:hover {
        transform: none;
    }
}

/* --- Kleine Bildschirme ------------------------------------------------- */
@media (max-width: 700px) {
    .theme_sk_online .cust-help .contr {
        padding: 0 16px;
    }
    .theme_sk_online .cust-help .header__logo::before {
        width: 156px;
        height: 36px;
    }
    .theme_sk_online .cust-help .search__title {
        margin-top: 28px;
    }
    .theme_sk_online .cust-help .search__form {
        padding: 24px 16px 32px;
        clip-path: polygon(0 0, 100% 0, 100% 62%, 88% 100%, 0 100%);
    }
    .theme_sk_online .cust-help .navlink {
        max-width: none;
    }
}
