:root {
    color-scheme: light dark;
    --zf-font-family: "Segoe UI", Tahoma, sans-serif;
    --zf-background: #f5f5f5;
    --zf-foreground: #222;
    --zf-accent: #1275d1;
}

body {
    margin: 0;
}

body.zf-fallback {
    font-family: var(--zf-font-family);
    background: var(--zf-background);
    color: var(--zf-foreground);
}

.zf-main {
    margin: 0 auto;
    padding: 2rem 1.5rem;
    max-width: 960px;
}

.zf-hero {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.zf-hero h1 {
    margin-top: 0;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.zf-hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 42rem;
}


.zf-alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.zf-alert--info {
    background: rgba(18, 117, 209, 0.1);
    color: #0b4f8a;
}

.zf-alert--error {
    background: rgba(201, 48, 44, 0.12);
    color: #8a1f1b;
}

.zf-order-form {
    display: grid;
    gap: 1.5rem;
}

.zf-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.zf-select {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #d0d5dd;
    font-size: 1rem;
}

.zf-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.zf-table {
    width: 100%;
    border-collapse: collapse;
}

.zf-table thead {
    background: #f1f5f9;
}

.zf-table th,
.zf-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.zf-price {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.zf-article-number {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.zf-article-description {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #475569;
}

.zf-actions {
    display: flex;
    justify-content: flex-end;
}

.zf-button {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid #6f9ad8;
    background: linear-gradient(#f5fbff, #d4e6fc);
    color: #143d73;
    font-size: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 4px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.zf-button:link,
.zf-button:visited {
    color: #143d73;
    text-decoration: none;
}

.zf-button:hover,
.zf-button:focus {
    background: linear-gradient(#ffffff, #c4daf7);
    color: #0f2f5e;
    text-decoration: none;
}

.zf-button:focus-visible {
    outline: 2px solid #2358cb;
    outline-offset: 2px;
}

.zf-button:disabled,
.zf-button[disabled] {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
}

.zf-button--secondary {
    margin-right: 0.75rem;
}

.zf-payment-options {
    display: grid;
    gap: 1rem;
}

.zf-payment-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

.zf-payment-option input[type="radio"] {
    margin-top: 0.35rem;
}

.zf-payment-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.zf-payment-title {
    font-weight: 600;
}

.zf-payment-description {
    color: #475569;
    font-size: 0.95rem;
}

.zf-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.zf-summary-totals {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 0.75rem;
}

.zf-summary-totals-row {
    display: flex;
    justify-content: space-between;
    font-variant-numeric: tabular-nums;
}

.zf-summary-totals-row--emphasis {
    font-weight: 600;
}

.zf-summary-section {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.zf-summary-section h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.zf-summary-address {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zf-summary-address li + li {
    margin-top: 0.25rem;
}

.zf-summary-note {
    font-size: 0.95rem;
    color: #475569;
    padding: 0.75rem 1rem;
    border-left: 4px solid #1275d1;
    background: rgba(18, 117, 209, 0.08);
    border-radius: 8px;
}

.zf-summary-text {
    margin: 0;
}

.zf-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.zf-checkbox-input {
    width: 1.1rem;
    height: 1.1rem;
}

.zf-order-number {
    margin-top: 1rem;
    font-weight: 600;
}

.zf-link {
    color: #1275d1;
    text-decoration: none;
}

.zf-link:hover {
    text-decoration: underline;
}

.zf-section {
    margin-top: 3rem;
}

.zf-section-title {
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.zf-section-lead {
    max-width: 48rem;
    font-size: 1.05rem;
    color: #475569;
}

.zf-cta {
    margin-top: 2rem;
    padding: 1.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(18, 117, 209, 0.08), rgba(18, 117, 209, 0.16));
    display: grid;
    gap: 0.75rem;
    max-width: 38rem;
}

.zf-feature-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1.75rem;
}

.zf-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 0.5rem;
}

.zf-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(18, 117, 209, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0b4f8a;
}

.zf-card-text {
    color: #475569;
    margin: 0;
}

.zf-card-price {
    font-weight: 600;
    font-size: 1.2rem;
}

.zf-card-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.zf-card--highlight {
    border-top: 4px solid #1275d1;
}

.zf-highlight-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 1.5rem;
}

.zf-section--muted {
    background: rgba(15, 23, 42, 0.04);
    padding: 2.5rem 2rem;
    border-radius: 16px;
}

.zf-testimonial-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.zf-testimonial {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.zf-testimonial blockquote {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: #1e293b;
}

.zf-testimonial-author {
    font-weight: 600;
}

.zf-testimonial-role {
    display: block;
    font-size: 0.9rem;
    color: #475569;
}

.zf-table--products tbody tr:hover {
    background: rgba(148, 163, 184, 0.1);
}

.zf-row--muted {
    opacity: 0.6;
}

.zf-footnote {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #475569;
}

.zf-section--split {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.zf-contact-block {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.zf-address div + div {
    margin-top: 0.25rem;
}

.zf-contact-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.zf-contact-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.zf-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(18, 117, 209, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #0b4f8a;
}

.zf-contact-content {
    display: grid;
    gap: 0.2rem;
}

.zf-imprint-block {
    margin-top: 2rem;
}

.zf-legal-list {
    list-style: disc;
    padding-left: 1.2rem;
    color: #475569;
}

.zf-legal-list li + li {
    margin-top: 0.35rem;
}

.zf-fallback-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
}

.zf-fallback-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.zf-fallback-nav a {
    color: #0b4f8a;
    text-decoration: none;
    font-weight: 600;
}

.zf-fallback-nav a:hover {
    text-decoration: underline;
}

.zf-section-header {
    display: grid;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.zf-text-muted {
    color: #64748b;
    font-size: 0.95rem;
}

.zf-changelog {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    line-height: 1.6;
}

.zf-changelog h2,
.zf-changelog h3 {
    margin-top: 2rem;
}

/* Legacy visual integration overrides */
:root {
    color-scheme: light dark;
    --zf-font-family: Arial, Helvetica, sans-serif;
    --zf-background: transparent;
    --zf-foreground: #000;
    --zf-accent: #2358cb;
    --zf-panel-bg: #F7FCF4;
    --zf-panel-border: #D2D7D0;
}

body {
    font-size: 10pt;
    line-height: 1.35;
    background: var(--zf-background);
    color: var(--zf-foreground);
}

div, p, td, th, li, input, button, select, option {
    font-size: inherit;
}

body.zf-fallback div,
body.zf-fallback p,
body.zf-fallback td,
body.zf-fallback th,
body.zf-fallback li,
body.zf-fallback input,
body.zf-fallback button,
body.zf-fallback select,
body.zf-fallback option {
    font-family: var(--zf-font-family);
}

a {
    color: #0000CC;
}

a:visited {
    color: #551A8B;
}

a:hover,
a:focus {
    color: #0000CC;
    text-decoration: underline;
}

.zf-main {
    max-width: 820px;
    padding: 0 0 32px;
}

.zf-order-form {
    display: block;
}

.zf-form-grid {
    gap: 8px 24px;
}

.zf-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.zf-form-group label {
    font-weight: bold;
    color: #333;
}

.zf-input,
.zf-select,
textarea.zf-input,
select.zf-select {
    padding: 4px 6px;
    border-radius: 2px;
    border: 1px solid #7f9db9;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.zf-input:focus,
.zf-select:focus {
    outline: none;
    border-color: #2358CB;
    box-shadow: 0 0 4px rgba(35, 88, 203, 0.2);
}

.zf-actions {
    margin-top: 20px;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Harmonize primary/secondary buttons with legacy look */
.zf-button {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid #6f9ad8;
    background: linear-gradient(#f5fbff, #d4e6fc);
    color: #143d73;
    font-size: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 4px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.zf-button:link,
.zf-button:visited {
    color: #143d73;
    text-decoration: none;
}

.zf-button:hover,
.zf-button:focus {
    background: linear-gradient(#ffffff, #c4daf7);
    color: #0f2f5e;
    text-decoration: none;
}

.zf-button:focus-visible {
    outline: 2px solid #2358cb;
    outline-offset: 2px;
}

.zf-button:disabled,
.zf-button[disabled] {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
}

.zf-button--secondary {
    margin-right: 0.75rem;
}
.zf-alert {
    border-radius: 2px;
    border: 1px solid var(--zf-panel-border);
    background: var(--zf-panel-bg);
    padding: 10px 14px;
}

.zf-alert--info {
    border-color: #A9DA92;
    background: #F7FCF4;
    color: #215e1c;
}

.zf-alert--error {
    border: 3px solid red;
    background: yellow;
    color: red;
    font-weight: bold;
}

.zf-table-wrapper {
    border: 1px solid #D2D7D0;
    border-radius: 0;
    box-shadow: none;
    background: white;
    padding: 0;
}

.zf-table {
    border-collapse: collapse;
}

.zf-table thead {
    background: #E5F1E0;
}

.zf-table th {
    padding: 5px 10px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    text-align: left;
    color: #333;
}

.zf-table td {
    padding: 5px 10px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background: #F7FCF4;
}

.zf-table tbody tr:nth-child(even) td {
    background: #ffffff;
    border-right: 1px solid #F7FCF4;
    border-bottom: 1px solid #F7FCF4;
}

.zf-price {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.zf-article-number,
.zf-article-description {
    font-size: 8pt;
    color: gray;
}

.zf-payment-options {
    margin-top: 12px;
}

.zf-payment-option {
    border: none;
    background: transparent;
    padding: 4px 0;
}

.zf-payment-description {
    font-size: 8pt;
    color: gray;
}

.zf-field-validation {
    color: red;
    font-weight: bold;
}

.zf-summary-totals,
.zf-summary-section,
.zf-hero,
.zf-card,
.zf-cta,
.zf-testimonial,
.zf-contact-block,
.zf-changelog {
    background: var(--zf-panel-bg);
    border: 1px solid var(--zf-panel-border);
    border-radius: 2px;
    box-shadow: none;
    padding: 12px 16px;
}

.zf-summary-totals {
    display: grid;
    gap: 0.5rem;
}

.zf-summary-totals-row {
    font-weight: normal;
}

.zf-summary-totals-row--emphasis {
    font-weight: bold;
}

.zf-summary-note {
    background: #F7FCF4;
    border-left: 4px solid #A9DA92;
    color: #333;
}

.zf-checkbox {
    align-items: flex-start;
    gap: 0.5rem;
}

.zf-checkbox-input {
    margin-top: 0.2rem;
}

.wizardbuttons {
    margin-top: 20px;
    text-align: right;
}

.wizardbuttons .zf-button + .zf-button,
.zf-actions .zf-button + .zf-button {
    margin-left: 0.5rem;
}

.descr {
    font-size: 8pt;
    line-height: 1.1;
    color: gray;
}

.smallhint {
    color: gray;
    font-size: 8pt;
}

.zf-footnote {
    color: gray;
    font-size: 8pt;
}

/* Legacy dark mode tuning */
@media (prefers-color-scheme: dark) {
    html,
    body,
    body#top-responsive {
        background: var(--zf-background) !important;
        color: var(--zf-foreground);
    }

    body#top-responsive #toparea,
    body#top-responsive #content,
    body#top-responsive #topArticles,
    body#top-responsive .wrapper,
    body#top-responsive .zpgrid,
    body#top-responsive .zpRow,
    body#top-responsive .zpColumn,
    body#top-responsive .zpColumnItem,
    body#top-responsive .articlearea,
    #topArticles,
    #topArticles .wrapper,
    #topArticles .wrapper .zpColumnItem,
    #zpMainContent,
    #zpMainContent .zpContainer,
    #zpMainContent .zpRow,
    #zpMainContent .zpColumn,
    #zpMainContent .articlearea {
        background: transparent !important;
    }

    :root {
        --zf-background: #111512;
        --zf-foreground: #e3e5e1;
        --zf-panel-bg: rgba(28, 38, 30, 0.92);
        --zf-panel-border: #3d503e;
    }

    a {
        color: #8ab4ff;
    }

    a:visited {
        color: #c58af9;
    }

    .zf-main {
        color: inherit;
        /*background: rgba(18, 26, 20, 0.92);*/
        border: none !important;
/*        border: 1px solid var(--zf-panel-border);
        border-radius: 6px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
*/    }

    .zf-main h1,
    .zf-main h2,
    .zf-main h3,
    .zf-main h4,
    .zf-main h5,
    .zf-main h6 {
        color: var(--zf-foreground);
    }

    .zf-table-wrapper,
    .zf-summary-totals,
    .zf-summary-section,
    .zf-hero,
    .zf-card,
    .zf-cta,
    .zf-testimonial,
    .zf-contact-block,
    .zf-changelog {
        background: var(--zf-panel-bg);
        border-color: var(--zf-panel-border);
    }

    .zf-table thead {
        background: rgba(58, 80, 59, 0.9);
    }

    .zf-table th {
        color: #f7faf5;
        border-right: 1px solid rgba(26, 34, 26, 0.6);
        border-bottom: 1px solid rgba(26, 34, 26, 0.6);
    }

    .zf-table td {
        background: rgba(36, 48, 36, 0.95);
        border-right: 1px solid rgba(54, 68, 54, 0.65);
        border-bottom: 1px solid rgba(54, 68, 54, 0.65);
    }

    .zf-table tbody tr:nth-child(even) td {
        background: rgba(28, 38, 30, 0.92);
    }

    .zf-alert {
        border-color: var(--zf-panel-border);
        color: var(--zf-foreground);
    }

    .zf-alert--info {
        background: rgba(44, 68, 44, 0.85);
        border-color: #5a8a5a;
        color: #e1f6e1;
    }

    .zf-alert--error {
        background: rgba(88, 24, 24, 0.92);
        border: 1px solid #ff8080;
        color: #ffd7d7;
    }

    .zf-button {
        border-color: #7299d8;
        background: linear-gradient(#98b8f0, #5f84d2);
        color: #f5f8ff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.35);
    }

    .zf-button:link,
    .zf-button:visited {
        color: #f5f8ff;
        text-decoration: none;
    }

    .zf-button:hover,
    .zf-button:focus {
        background: linear-gradient(#adc8f5, #6f94e0);
        color: #ffffff;
        text-decoration: none;
    }

    .zf-button--secondary {
        margin-right: 0.75rem;
    }
.zf-field-validation {
        color: #ff9b9b;
    }

    .smallhint,
    .descr,
    .zf-footnote,
    .zf-text-muted {
        color: #b3c5b3;
    }
}


