/* =============================================================
 * TUT Sonnenschutz V2 — Vergleichstabelle + Marken-Karten
 * Basis-Klassen (Sections, Buttons, Cards) kommen aus der
 * gtp/snp/zap/wtp-CSS-Kette.
 * ============================================================= */

/* ---- Vergleich „Welcher Sonnenschutz passt?" ---- */
.tut-ssn-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    background: #fff;
}
.tut-ssn-compare {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
}
.tut-ssn-compare th,
.tut-ssn-compare td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}
.tut-ssn-compare thead th {
    background: linear-gradient(135deg, #0e1b3d, #1a327b);
    color: #fff;
    font-size: 15px;
    letter-spacing: -0.01em;
    padding-top: 18px;
    padding-bottom: 18px;
    position: relative;
}
.tut-ssn-compare thead th.tut-ssn-compare-crit {
    background: #0b1530;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
}
.tut-ssn-compare-badge {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c8a44e;
    margin-bottom: 4px;
}
.tut-ssn-compare tbody th {
    text-align: left;
    font-weight: 600;
    color: #475569;
    background: #fafbfd;
    white-space: nowrap;
}
.tut-ssn-compare tbody td {
    color: #1e293b;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.tut-ssn-compare tbody tr:hover td { background: #f8f9fc; }
.tut-ssn-compare tfoot td {
    padding: 18px;
    border-bottom: none;
    background: #fafbfd;
}
.tut-ssn-compare-btn {
    font-size: 13px;
    padding: 10px 18px;
    white-space: nowrap;
}
.tut-ssn-compare-note {
    margin-top: 14px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

/* ---- Marken-Karten ---- */
.tut-ssn-brands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.tut-ssn-brand {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}
.tut-ssn-brand:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.14);
}
.tut-ssn-brand-media {
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}
.tut-ssn-brand-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tut-ssn-brand:hover .tut-ssn-brand-media img { transform: scale(1.04); }
.tut-ssn-brand-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tut-ssn-brand-origin {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c8a44e;
    margin-bottom: 6px;
}
.tut-ssn-brand-body h3 {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: #0e1b3d;
}
.tut-ssn-brand-tagline {
    margin: 0 0 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
}
.tut-ssn-brand-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}
.tut-ssn-brand-facts {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tut-ssn-brand-facts li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    color: #475569;
}
.tut-ssn-brand-facts li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c8a44e;
    font-weight: 700;
}
.tut-ssn-brand-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.tut-ssn-brand-links a {
    font-size: 13px;
    font-weight: 700;
    color: #1a327b;
    text-decoration: none;
    transition: color 0.2s;
}
.tut-ssn-brand-links a:hover { color: #c8a44e; }

@media (max-width: 640px) {
    .tut-ssn-compare { font-size: 13px; }
    .tut-ssn-compare th, .tut-ssn-compare td { padding: 10px 12px; }
    .tut-ssn-brands { gap: 16px; }
}

/* ---- Produkt-Finder 2.0 ---- */
.tut-ssn-finder {
    max-width: 860px;
    margin: 0 auto;
    background: linear-gradient(150deg, #0b1530 0%, #16295e 60%, #1a327b 100%);
    border-radius: 22px;
    padding: 34px 42px 38px;
    box-shadow: 0 26px 70px rgba(14, 27, 61, 0.35);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.tut-ssn-finder::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 78, 0.18), transparent 70%);
    pointer-events: none;
}

/* Progress */
.tut-ssn-finder-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}
.tut-ssn-finder-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 64px;
}
.tut-ssn-finder-dot i {
    font-style: normal;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.55);
    transition: all 0.35s ease;
}
.tut-ssn-finder-dot em {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.35s;
}
.tut-ssn-finder-dot.is-active i {
    background: #c8a44e;
    border-color: #c8a44e;
    color: #0b1530;
    box-shadow: 0 0 0 5px rgba(200, 164, 78, 0.2);
}
.tut-ssn-finder-dot.is-active em { color: #c8a44e; }
.tut-ssn-finder-line {
    flex: 0 0 56px;
    height: 2px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.35s;
}
.tut-ssn-finder-line.is-active { background: #c8a44e; }

/* Stage & Steps */
.tut-ssn-finder-stage { position: relative; min-height: 300px; }
.tut-ssn-finder-step {
    display: none;
    animation: ssnStepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tut-ssn-finder-step.is-current { display: block; }
.tut-ssn-finder-step.is-leaving { display: none; }
@keyframes ssnStepIn {
    from { opacity: 0; transform: translateX(26px); }
    to   { opacity: 1; transform: translateX(0); }
}
.tut-ssn-finder-q {
    margin: 0 0 20px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
}

/* Bild-Antwort-Karten */
.tut-ssn-finder-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.tut-ssn-finder-cards--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tut-ssn-finder-cards--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tut-ssn-finder-cards button {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    background-image: linear-gradient(180deg, rgba(10, 18, 40, 0) 35%, rgba(10, 18, 40, 0.88) 100%), var(--card-img);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}
.tut-ssn-finder-cards button:hover,
.tut-ssn-finder-cards button:focus-visible {
    transform: translateY(-5px) scale(1.015);
    border-color: #c8a44e;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(200, 164, 78, 0.18);
}
.tut-ssn-finder-card-label {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-align: left;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Zurück / Reset */
.tut-ssn-finder-back,
.tut-ssn-finder-reset {
    margin-top: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}
.tut-ssn-finder-back:hover,
.tut-ssn-finder-reset:hover { color: #c8a44e; }
.tut-ssn-finder-resultstep { text-align: center; }

/* Ergebnis-Bühne */
.tut-ssn-finder-result {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 26px;
    align-items: center;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 22px;
    animation: ssnResultIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ssnResultIn {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tut-ssn-finder-result-media {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.tut-ssn-finder-result-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.tut-ssn-finder-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0b1530;
    background: #c8a44e;
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 10px;
}
.tut-ssn-finder-title {
    margin: 0 0 8px;
    font-size: 27px;
    letter-spacing: -0.01em;
    color: #fff;
}
.tut-ssn-finder-desc {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}
.tut-ssn-finder-facts {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.tut-ssn-finder-facts li {
    position: relative;
    padding-left: 24px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}
.tut-ssn-finder-facts li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c8a44e;
    font-weight: 700;
}
.tut-ssn-finder-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.tut-ssn-finder-alt {
    margin: 14px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}
.tut-ssn-finder-alt-link {
    color: #c8a44e;
    font-weight: 700;
    text-decoration: none;
}
.tut-ssn-finder-alt-link:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .tut-ssn-finder { padding: 24px 18px 28px; }
    .tut-ssn-finder-q { font-size: 18px; }
    .tut-ssn-finder-line { flex-basis: 30px; }
    .tut-ssn-finder-result { grid-template-columns: 1fr; padding: 16px; }
    .tut-ssn-finder-result-media { aspect-ratio: 16 / 9; }
    .tut-ssn-finder-cards button { aspect-ratio: 16 / 9; }
}
