/* ════════════════════════════════════════════
   UNTERSEITEN — Gemeinsame Styles
   MarktDesk · Marktbase · MarktOrga
   ════════════════════════════════════════════ */

/* ── Produktfarben per body-class ── */
.product-marktdesk { --product-color: #2E7D32; --product-color-light: rgba(46,125,50,.08); }
.product-marktbase  { --product-color: #18235E; --product-color-light: rgba(24,35,94,.08); }
.product-marktorga  { --product-color: #E8580A; --product-color-light: rgba(232,88,10,.08); }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.us-hero {
    background: linear-gradient(135deg, var(--ms-green-dark, #145929) 0%, var(--ms-green, #1E7A3C) 100%);
    padding: 72px 0 64px;
    position: relative;
    overflow: hidden;
}

.us-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
    pointer-events: none;
}

.us-hero__inner {
    max-width: 720px;
    position: relative;
}

.us-hero__eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.75);
    margin-bottom: 16px;
}

.us-hero__h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 20px;
}

.us-hero__sub {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255,255,255,.85);
    margin: 0 0 32px;
    max-width: 600px;
}

.us-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.us-hero__actions .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,.55);
    background: transparent;
}

.us-hero__actions .btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.12);
    color: #fff;
}

/* ════════════════════════════════════════════
   FEATURE GRID
   ════════════════════════════════════════════ */
.us-features {
    padding: 64px 0;
    background: #F9FAFB;
}

.us-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .us-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .us-feature-grid { grid-template-columns: 1fr; }
}

.us-feature-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 28px 24px;
    transition: box-shadow .18s ease, border-color .18s ease;
    border-top: 3px solid transparent;
}

.us-feature-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border-top-color: var(--product-color, #374151);
}

.us-feature-card__icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 14px;
}

.us-feature-card__titel {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

.us-feature-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
}

/* ════════════════════════════════════════════
   HIGHLIGHT BLOCK
   ════════════════════════════════════════════ */
.us-highlight {
    padding: 52px 0;
}

.us-highlight__inner {
    background: var(--product-color-light, rgba(0,0,0,.05));
    border-left: 4px solid var(--product-color, #374151);
    border-radius: 0 14px 14px 0;
    padding: 36px 40px;
    max-width: 780px;
}

.us-highlight__headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
}

.us-highlight__text {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

/* ════════════════════════════════════════════
   WORKFLOW STEPS (MarktOrga)
   ════════════════════════════════════════════ */
.us-workflow {
    padding: 56px 0;
    background: #fff;
}

.us-workflow__headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 32px;
}

.us-workflow__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    counter-reset: none;
    flex-wrap: wrap;
}

.us-workflow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 120px;
    position: relative;
    text-align: center;
    padding: 0 12px;
}

.us-workflow__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -1px;
    width: 2px;
    height: 20px;
    background: #E5E7EB;
}

@media (min-width: 600px) {
    .us-workflow__step:not(:last-child)::after {
        top: 18px;
        right: -24px;
        width: calc(100% - 60px);
        height: 2px;
        background: linear-gradient(90deg, var(--product-color, #374151), #E5E7EB);
        left: 50%;
        transform: translateX(30px);
    }
}

.us-workflow__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--product-color, #374151);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.us-workflow__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
}

/* ════════════════════════════════════════════
   LEISTUNGEN (Wartung-Seiten)
   ════════════════════════════════════════════ */
.us-leistungen {
    padding: 56px 0;
    background: #F9FAFB;
}

.us-leistungen__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 680px) {
    .us-leistungen__inner { grid-template-columns: 1fr; }
}

.us-leistungen__headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}

.us-leistungen__headline--excluded {
    color: #6B7280;
}

.us-leistungen__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.us-leistungen__list--included li::before {
    content: '✓';
    color: var(--product-color, #22c55e);
    font-weight: 700;
    margin-right: 10px;
}

.us-leistungen__list--excluded li::before {
    content: '✕';
    color: #9CA3AF;
    font-weight: 700;
    margin-right: 10px;
}

.us-leistungen__list li {
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}

/* ════════════════════════════════════════════
   PREIS BLOCK
   ════════════════════════════════════════════ */
.us-preis {
    padding: 52px 0;
    background: #fff;
    text-align: center;
}

.us-preis__inner {
    max-width: 480px;
    margin: 0 auto;
}

.us-preis__betrag {
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--product-color, #111827);
    line-height: 1.1;
    margin-bottom: 12px;
}

.us-preis__hinweis {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

/* ════════════════════════════════════════════
   FAQ (details/summary — kein JS)
   ════════════════════════════════════════════ */
.us-faq {
    padding: 56px 0;
    background: #F9FAFB;
}

.us-faq__headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 28px;
}

.us-faq__list {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.us-faq__item {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.us-faq__item[open] {
    border-color: var(--product-color, #374151);
}

.us-faq__frage {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.us-faq__frage::-webkit-details-marker { display: none; }

.us-faq__frage::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--product-color, #374151);
    transition: transform .2s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.us-faq__item[open] .us-faq__frage::after {
    content: '−';
}

.us-faq__antwort {
    padding: 0 20px 18px;
}

.us-faq__antwort p {
    font-size: 14px;
    line-height: 1.7;
    color: #4B5563;
    margin: 0;
}

/* ════════════════════════════════════════════
   ADD-ONS INTRO
   ════════════════════════════════════════════ */
.us-addons-intro {
    background: linear-gradient(135deg, var(--ms-green-dark, #145929) 0%, var(--ms-green, #1E7A3C) 100%);
    padding: 72px 0 64px;
    position: relative;
    overflow: hidden;
}

.us-addons-intro::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
    pointer-events: none;
}

.us-addons-intro__inner {
    max-width: 680px;
    position: relative;
}

.us-addons-intro .us-hero__eyebrow {
    color: rgba(255,255,255,.75);
}

.us-addons-intro__subtext {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,.85);
    margin: 0 0 28px;
}

.us-hinweis-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 32px;
}

.us-hinweis-box__icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.us-addons-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.us-addons-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.us-addons-step__num {
    font-size: 18px;
    color: rgba(255,255,255,.8);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════
   ADD-ONS GRID
   ════════════════════════════════════════════ */
.us-addons-grid {
    padding: 56px 0 72px;
    background: #F9FAFB;
}

.us-addon-card {
    display: flex;
    flex-direction: column;
}

.us-addon-card__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 14px;
}

.us-addon-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}

.us-addon-card__price {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.us-addon-card__price .woocommerce-Price-amount {
    color: var(--product-color, #111827);
}

/* ════════════════════════════════════════════
   CTA ABSCHLUSS
   ════════════════════════════════════════════ */
.us-cta-abschluss {
    background: var(--product-color, #18235E);
    padding: 64px 0;
    text-align: center;
}

.us-cta-abschluss__inner {
    max-width: 600px;
    margin: 0 auto;
}

.us-cta-abschluss__headline {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.us-cta-abschluss__text {
    font-size: 16px;
    color: rgba(255,255,255,.82);
    margin: 0 0 28px;
}

.us-cta-abschluss .btn-primary {
    background: #fff;
    color: var(--product-color, #18235E);
    border-color: #fff;
}

.us-cta-abschluss .btn-primary:hover {
    background: rgba(255,255,255,.9);
}

/* ════════════════════════════════════════════
   ADD-ONS — Filter-Pills + Karten-Grid
   ════════════════════════════════════════════ */
.ms-addons-section {
    padding: 48px 0 80px;
    background: #F9FAFB;
}

.ms-addons-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.ms-pill {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.ms-pill:hover {
    border-color: #18235E;
    color: #18235E;
}

.ms-pill.active {
    background: #18235E;
    color: #fff;
    border-color: #18235E;
}

/* Pill-Farben nach Kategorie */
.ms-pill--shop.active       { background: #E8580A; border-color: #E8580A; }
.ms-pill--daten.active      { background: #2E7D32; border-color: #2E7D32; }
.ms-pill--produktion.active { background: #18235E; border-color: #18235E; }
.ms-pill--lager.active      { background: #c2185b; border-color: #c2185b; }

.ms-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 900px) {
    .ms-addons-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ms-addons-grid { grid-template-columns: 1fr; }
}

.ms-addon-card {
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-top: 3px solid #E5E7EB;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-top-color .18s ease;
}

.ms-addon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.09);
}

/* Top-Border-Farbe per Kategorie */
.ms-addon-card[data-cat="shop"]:hover       { border-top-color: #E8580A; }
.ms-addon-card[data-cat="daten"]:hover      { border-top-color: #2E7D32; }
.ms-addon-card[data-cat="produktion"]:hover { border-top-color: #18235E; }
.ms-addon-card[data-cat="lager"]:hover      { border-top-color: #c2185b; }
.ms-addon-card[data-cat="addons"]:hover     { border-top-color: #18235E; }

.ms-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ms-card-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f8;
    border-radius: 10px;
}

/* Leere Icon-Box ausblenden */
.ms-card-icon:empty {
    display: none;
}

.ms-card-meta {
    flex: 1;
    min-width: 0;
}

.ms-card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 4px;
}

.ms-cat-shop       { color: #E8580A; }
.ms-cat-daten      { color: #2E7D32; }
.ms-cat-produktion { color: #18235E; }
.ms-cat-lager      { color: #c2185b; }
.ms-cat-addons     { color: #18235E; }
.ms-cat-sonstige   { color: #6B7280; }

.ms-card-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.ms-card-desc {
    font-size: 13.5px;
    color: #6B7280;
    line-height: 1.6;
    flex: 1;
}

.ms-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #F3F4F6;
    margin-top: auto;
}

.ms-card-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.ms-card-price span {
    font-size: 12px;
    font-weight: 400;
    color: #9CA3AF;
}

.ms-card-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #18235E;
    background: #eef0f8;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.ms-card-btn:hover {
    background: #d8ddf0;
}

/* ════════════════════════════════════════════
   ADD-ONS — Modal
   ════════════════════════════════════════════ */
.ms-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.ms-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.ms-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    transform: translateY(12px);
    transition: transform .22s ease;
}

.ms-modal-overlay.open .ms-modal {
    transform: translateY(0);
}

.ms-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 28px 20px;
    border-bottom: 1px solid #F3F4F6;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.ms-modal-icon {
    font-size: 32px;
    line-height: 1;
    width: 52px;
    height: 52px;
    background: #eef0f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ms-modal-titles {
    flex: 1;
    min-width: 0;
}

.ms-modal-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #18235E;
    margin-bottom: 4px;
}

.ms-modal-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}

.ms-modal-close {
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    flex-shrink: 0;
    transition: background .15s;
}

.ms-modal-close:hover {
    background: #E5E7EB;
}

.ms-modal-preview {
    padding: 0 28px;
    margin-top: 20px;
}

.ms-modal-preview img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
}

.ms-modal-body {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ms-modal-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

.ms-features-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6B7280;
    margin-bottom: 12px;
}

.ms-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ms-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.ms-feat-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e8f5e9;
    color: #2E7D32;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.ms-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #F3F4F6;
}

.ms-modal-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.ms-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ms-btn-more {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1.5px solid #18235E;
    color: #18235E;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.ms-btn-more:hover {
    background: #eef0f8;
}

.ms-btn-buy {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    background: #18235E;
    color: #fff;
    text-decoration: none;
    transition: background .15s;
}

.ms-btn-buy:hover {
    background: #111827;
    color: #fff;
}

@media (max-width: 600px) {
    .ms-modal {
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
    }
    .ms-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .ms-modal-overlay .ms-modal {
        transform: translateY(20px);
    }
    .ms-modal-overlay.open .ms-modal {
        transform: translateY(0);
    }
}
