/* DrainMaster Staffelpreis-Sektion - staffelpreise.css
 * Macht den Mengenrabatt sichtbar, der bisher nur im Konfigurator stand.
 */

.dm-staffel {
    background: #f6f7f3;
    padding: clamp(48px, 7vw, 88px) 5%;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.dm-staffel__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.dm-staffel__head {
    text-align: center;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.dm-staffel__kicker {
    display: inline-block;
    background: #5c7d1f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.dm-staffel__titel {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.12;
    color: #17201a;
}

.dm-staffel__sub {
    margin: 14px auto 0;
    max-width: 620px;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.55;
    color: #55605a;
}

/* ---------- Karten ---------- */

/* ---------- Modellwahl ----------
   Der haeufigste Fehlkauf ist das falsche Modell, deshalb steht die
   Entscheidung vor den Preisen und nicht hinter einer Groessentabelle. */

.dm-staffel__modelle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 0 auto clamp(20px, 3vw, 30px);
}

.dm-staffel__modell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid #e3e7dd;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dm-staffel__modell:hover { border-color: #c3cfae; }

.dm-staffel__modell.is-aktiv {
    border-color: #5c7d1f;
    box-shadow: 0 0 0 3px rgba(92, 125, 31, 0.12);
}

.dm-staffel__modell-name {
    font-size: 17px;
    font-weight: 700;
    color: #17201a;
    line-height: 1.2;
}

.dm-staffel__modell-mass { font-size: 13px; color: #55605a; }

.dm-staffel__modell-ab { font-size: 13px; font-weight: 700; color: #5c7d1f; }

/* Die eine Regel, an der die Modellwahl haengt */
.dm-staffel__passt {
    max-width: 720px;
    margin: 0 auto clamp(22px, 3vw, 34px);
    padding: 12px 16px;
    background: #fff;
    border-left: 3px solid #5c7d1f;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #55605a;
    text-wrap: pretty;
}

.dm-staffel__passt strong { color: #17201a; display: block; }

.dm-staffel__tafel[hidden] { display: none; }

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

.dm-staffel__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.dm-staffel__karte {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 2px solid #e3e7dd;
    border-radius: 14px;
    padding: 30px 22px 24px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dm-staffel__karte:hover {
    border-color: #5c7d1f;
    box-shadow: 0 12px 34px rgba(23, 32, 26, 0.12);
    transform: translateY(-3px);
}

.dm-staffel__karte.is-top {
    border-color: #5c7d1f;
    box-shadow: 0 12px 34px rgba(120, 162, 46, 0.18);
}

.dm-staffel__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #17201a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 999px;
}

.dm-staffel__badge.is-top { background: #5c7d1f; }

.dm-staffel__menge {
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    color: #17201a;
}

.dm-staffel__menge span { font-size: 24px; font-weight: 600; color: #5f6b64; }

.dm-staffel__setup {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5f6b64;
}

.dm-staffel__preis {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 800;
    color: #17201a;
}

.dm-staffel__pro { font-size: 14px; color: #55605a; }

.dm-staffel__spar {
    margin-top: 8px;
    background: #eaf3d8;
    color: #4d6b18;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 999px;
}

.dm-staffel__spar--leer { background: transparent; color: #6b756e; font-weight: 500; }

.dm-staffel__link {
    margin-top: 16px;
    width: 100%;
    background: #17201a;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dm-staffel__karte.is-top .dm-staffel__link { background: #5c7d1f; }
.dm-staffel__link:hover { background: #5c7d1f; color: #fff !important; }
.dm-staffel__karte.is-top .dm-staffel__link:hover { background: #4d6b18; }

/* ---------- Fuss ---------- */

.dm-staffel__fuss {
    margin-top: clamp(26px, 3.5vw, 40px);
    text-align: center;
}

.dm-staffel__cta {
    display: inline-block;
    border: 2px solid #17201a;
    color: #17201a !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.dm-staffel__cta:hover { background: #17201a; color: #fff !important; }

.dm-staffel__hinweise {
    margin: 18px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 26px;
    font-size: 14px;
    color: #55605a;
}

.dm-staffel__hinweise span { display: inline-flex; align-items: center; gap: 7px; }

.dm-staffel__hinweise span::before {
    content: '';
    width: 16px; height: 16px;
    flex-shrink: 0;
    background: #5c7d1f;
    border-radius: 50%;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10.5 L8 14.5 L16 5.5' fill='none' stroke='black' stroke-width='2.6'/></svg>") center/13px no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10.5 L8 14.5 L16 5.5' fill='none' stroke='black' stroke-width='2.6'/></svg>") center/13px no-repeat;
}

@media (max-width: 600px) {
    .dm-staffel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .dm-staffel__karte { padding: 26px 12px 18px; }
    .dm-staffel__menge { font-size: 36px; }
    .dm-staffel__preis { font-size: 21px; }
    .dm-staffel__link { font-size: 14px; padding: 10px 12px; }
}
