/* WerteTest mindbizz - Migration des bestehenden Looks (teal/orange) */

:root {
    --color-teal: #1b858b;
    --color-teal-dark: #136066;
    --color-teal-deep: #0e4a4f;
    --color-teal-light: #e9f3f4;
    --color-orange: #e8a341;
    --color-orange-light: #fbe9c6;
    --color-orange-text: #3d2804;
    --color-orange-dark: #8f550b;
    --color-text: #222;
    --color-muted: #8c8c8c;
    --color-border: #8c8c8c;
    --color-bg: #ffffff;
    --radius: 22px;
    --gap: 14px;
    --maxw: 1100px;
    --maxw-result: 1240px;
}

* { box-sizing: border-box; }

/* hidden-Attribut muss auch gegen display:grid/flex gewinnen */
[hidden] { display: none !important; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.wt-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 32px 24px 64px;
    text-align: center;
}

.wt-header {
    margin-bottom: 24px;
}

.wt-logo {
    max-width: 320px;
    width: 60%;
    height: auto;
    margin: 12px auto 18px;
    display: block;
}

.wt-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 24px;
}

.wt-header h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 24px 0 8px;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 12px 0;
}

.wt-link {
    color: var(--color-teal);
    text-decoration: none;
}
.wt-link:hover { text-decoration: underline; }

.wt-intro, .wt-links, .wt-status, .wt-question, .wt-progress, .wt-outro, .wt-empty {
    max-width: 780px;
    margin: 14px auto;
}

.wt-links { font-size: 0.95rem; }

.wt-status {
    font-weight: 500;
}

/* Buttons */
.wt-btn {
    display: inline-block;
    background: var(--color-teal);
    color: #fff;
    border: 2px solid var(--color-teal);
    border-radius: var(--radius);
    padding: 10px 18px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.05s;
    min-width: 0;
    text-align: center;
}
.wt-btn:hover {
    background: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
}
.wt-btn:active { transform: translateY(1px); }

.wt-btn-cta {
    background: var(--color-teal);
    font-size: 1.05rem;
    padding: 12px 28px;
}

.wt-btn-large {
    font-size: 1.1rem;
    padding: 14px 32px;
    min-width: 220px;
}

/* Werte-Auswahl-Grid */
.wt-section-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 24px 0 12px;
    color: var(--color-text);
}

.wt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    max-width: 920px;
    margin: 0 auto;
}

.wt-grid .wt-btn {
    padding: 10px 12px;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 800px) {
    .wt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .wt-grid { grid-template-columns: 1fr; }
}

/* Ausgewählte Werte über dem Grid */
.wt-selected {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    max-width: 920px;
    margin: 0 auto 18px;
}
@media (max-width: 800px) {
    .wt-selected { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .wt-selected { grid-template-columns: 1fr; }
}

/* Suchfeld */
.wt-search {
    margin: 18px auto 4px;
    max-width: 560px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.wt-search input {
    flex: 1;
    padding: 10px 14px;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    outline: none;
    font-family: inherit;
}
.wt-search input:focus {
    border-color: var(--color-teal);
}
.wt-btn-icon {
    background: var(--color-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.wt-btn-icon:hover { filter: brightness(0.92); }
.wt-search-hint {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 4px auto 14px;
    max-width: 560px;
}

/* Turnier */
.wt-question {
    font-weight: 600;
    margin: 32px auto 24px;
    font-size: 1.05rem;
}

.wt-versus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 24px 0;
}

.wt-or {
    color: var(--color-muted);
    font-style: normal;
}

.wt-progress {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* ===========================================================================
   Ergebnisseite
   Mobil eine Spalte, ab Tablet nutzt sie die Breite: Top 3 nebeneinander,
   darunter drei Karten, dann das Angebot als Band über die ganze Breite.
   =========================================================================== */

body[data-phase="done"] .wt-container { max-width: var(--maxw-result); }
/* "Finde Deine Werte" passt nur zu Auswahl und Turnier */
body[data-phase="done"] .wt-header h2 { display: none; }

.wt-result { text-align: left; }

.wt-eyebrow {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-orange-dark);
}

.wt-res-hero {
    max-width: 760px;
    margin: 28px auto 34px;
    text-align: center;
}
.wt-res-title {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem);
    line-height: 1.15;
    font-weight: 700;
}
.wt-res-sub {
    margin: 0;
    color: #555;
    font-size: 1.05rem;
}

/* Platz 1 bis 3 */
.wt-podium {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.wt-podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 190px;
    padding: 26px 22px 24px;
    text-align: center;
    background: linear-gradient(160deg, #fff8ea 0%, var(--color-orange-light) 100%);
    border: 2px solid var(--color-orange);
    border-radius: 20px;
    box-shadow: 0 14px 34px -24px rgba(143, 85, 11, 0.7);
}
.wt-podium-1 {
    background: linear-gradient(160deg, #ffefcc 0%, #f8d593 100%);
    border-width: 3px;
}
.wt-podium-rank {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--color-orange);
    color: var(--color-orange-text);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.wt-podium-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange-dark);
}
.wt-podium-wert {
    font-size: clamp(1.25rem, 0.95rem + 0.9vw, 1.6rem);
    line-height: 1.2;
    color: var(--color-orange-text);
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}
.wt-podium-lang .wt-podium-wert {
    font-size: clamp(1rem, 0.55rem + 0.8vw, 1.3rem);
}

/* Drei Karten: Platz 4 bis 8, Ebenen, Bedürfnisse */
.wt-res-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 56px;
}
.wt-card {
    padding: 22px 24px 24px;
    background: #fff;
    border: 1px solid #dbe8e9;
    border-radius: 18px;
    box-shadow: 0 12px 30px -26px rgba(14, 74, 79, 0.8);
}
.wt-card h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}
.wt-card-sub {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-muted);
}
/* "(nach Spiral Dynamics)" als ganze zweite Zeile, verlinkt auf die Erklärung */
.wt-card-sub-link {
    display: table;
    margin-top: 2px;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}
.wt-card-sub-link:hover,
.wt-card-sub-link:focus-visible { color: var(--color-teal-dark); text-decoration-style: solid; }
.wt-card-intro {
    margin: 0 0 16px;
    color: #666;
    font-size: 0.9rem;
}

.wt-rest {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wt-rest li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    background: var(--color-teal-light);
    border-radius: 12px;
    color: #134a4e;
    font-weight: 500;
}
.wt-rest-rank {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-teal-dark);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}
.wt-rest-wert { overflow-wrap: break-word; hyphens: auto; min-width: 0; }

.wt-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wt-bar-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    row-gap: 1px;
    margin-bottom: 7px;
}
.wt-bar-dot {
    align-self: center;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.wt-bar-name { font-size: 0.98rem; }
/* Unterzeile: steht unter Name und Prozent, damit nichts eingerückt umbricht */
.wt-bar-tag {
    order: 3;
    flex-basis: 100%;
    color: var(--color-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}
.wt-bar-pct {
    margin-left: auto;
    font-weight: 700;
    color: var(--color-teal-dark);
    white-space: nowrap;
}
.wt-bar-track {
    height: 10px;
    border-radius: 99px;
    background: #eef3f3;
    overflow: hidden;
}
.wt-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--color-teal);
}

/* Störer "Das war erst der Anfang": sitzt auf der Kante zum Angebotsband,
   halb über dem Ergebnis, halb über dem Band. Ganze Fläche ist ein Link nach unten. */
.wt-anfang {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 660px;
    margin: -22px auto -40px;
    padding: 22px 30px 44px;
    border-radius: 20px;
    background: linear-gradient(160deg, #f4c06a 0%, var(--color-orange) 100%);
    box-shadow: 0 18px 36px -22px rgba(61, 40, 4, 0.75);
    color: var(--color-orange-text);
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wt-anfang:hover,
.wt-anfang:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -22px rgba(61, 40, 4, 0.85);
}
.wt-anfang-titel {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(1.35rem, 1.05rem + 1vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
}
.wt-anfang-text {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
}
/* Pfeil nach unten, wippt leicht */
.wt-anfang-pfeil {
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
    animation: wt-wippen 1.6s ease-in-out infinite;
}
@keyframes wt-wippen {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .wt-anfang-pfeil { animation: none; }
    .wt-anfang { transition: none; }
}
/* Platz für den überstehenden Störer im Band */
.wt-anfang + .wt-offer { padding-top: 92px; }

/* Angebot: 7-Tage-Impulsserie, als Band über die volle Bildschirmbreite.
   Der Hintergrund wird per border-image nach links und rechts hinausgemalt.
   Das verbreitert die Seite nicht, es gibt also keinen Querscroll. */
.wt-offer {
    padding: 64px 0 68px;
    border-image: linear-gradient(150deg, #17767c 0%, var(--color-teal-deep) 100%) fill 0 / / 0 100vw;
    color: #fff;
}
.wt-offer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 52px;
    align-items: start;
}
.wt-eyebrow-hell { color: #ffd38a; }
.wt-offer-title {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.3rem);
    line-height: 1.2;
    color: #fff;
}
.wt-offer-text {
    max-width: 62ch;
    margin: 0 0 30px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
}
.wt-days-title {
    margin: 0 0 14px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd38a;
}
.wt-days {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wt-day {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
}
.wt-day-nr {
    flex-shrink: 0;
    min-width: 62px;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--color-orange);
    color: var(--color-orange-text);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}
.wt-day-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wt-day-titel { font-size: 1rem; color: #fff; }
.wt-day-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.86);
}
.wt-day-text em {
    font-style: normal;
    font-weight: 600;
    color: #ffe2ad;
}

.wt-offer-side {
    position: sticky;
    top: 24px;
    scroll-margin-top: 16px;
}
#serie-box { scroll-margin-top: 16px; }
.wt-btn.wt-nur-schmal { display: none; }
.wt-form-card {
    padding: 30px 28px 24px;
    background: #fff;
    color: var(--color-text);
    border-radius: 20px;
    box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.55);
    text-align: left;
}
.wt-form-card h4 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    color: var(--color-teal-dark);
}
.wt-form-intro {
    margin: 0 0 20px;
    color: #555;
    font-size: 0.92rem;
}

.wt-field { display: block; margin-bottom: 16px; }
.wt-field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.wt-field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #c3d5d6;
    border-radius: 8px;
    background: #fff;
    outline: none;
}
.wt-field input:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(27, 133, 139, 0.15);
}

.wt-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    cursor: pointer;
}
.wt-check input {
    margin: 3px 0 0;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--color-teal);
}

.wt-btn-offer {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-orange-text);
    font-size: 1.05rem;
    font-weight: 700;
}
.wt-btn-offer:hover {
    background: #d9922f;
    border-color: #d9922f;
}
.wt-btn-offer:disabled {
    opacity: 0.6;
    cursor: progress;
}

.wt-serie-fehler {
    color: #c0392b;
    font-size: 0.9rem;
    margin: 10px 0 0;
    font-weight: 500;
}
/* Hinweis, wenn für die Adresse schon eine Serie läuft */
.wt-serie-warnung {
    margin: 16px 0 0;
    padding: 16px 18px 18px;
    background: var(--color-orange-light);
    border-left: 5px solid var(--color-orange);
    border-radius: 10px;
    color: var(--color-orange-text);
    font-size: 0.9rem;
    line-height: 1.45;
}
.wt-serie-warnung p { margin: 0 0 8px; }
.wt-serie-warnung .wt-serie-warnung-titel {
    font-weight: 700;
    font-size: 1rem;
}
.wt-serie-warnung .wt-btn-offer { margin-top: 12px; }
.wt-btn-zweit {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 11px 20px;
    background: #fff;
    border-color: var(--color-teal);
    color: var(--color-teal-dark);
    font-size: 0.95rem;
    font-weight: 600;
}
.wt-btn-zweit:hover {
    background: var(--color-teal-light);
}
.wt-serie-klein {
    color: #777;
    font-size: 0.82rem;
    margin: 16px 0 0;
    text-align: center;
}
.wt-serie-danke { text-align: center; }
.wt-serie-danke p { color: #3f5658; font-size: 0.95rem; margin: 0; }

/* Solange die Impulsserie aus ist */
.wt-res-outro {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.wt-res-restart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 48px 0 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}
.wt-btn-ghost {
    background: transparent;
    color: var(--color-teal-dark);
    border-color: var(--color-teal);
    padding: 8px 18px;
}
.wt-btn-ghost:hover {
    background: var(--color-teal-light);
    border-color: var(--color-teal-dark);
}

/* Tablet */
@media (max-width: 999px) {
    .wt-res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wt-card-rest { grid-column: 1 / -1; }
    .wt-card-rest .wt-rest {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .wt-offer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }
    .wt-offer-side {
        position: static;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }
    .wt-btn.wt-nur-schmal {
        display: block;
        max-width: 560px;
        margin: -8px 0 34px;
    }
}

/* Tablets und Telefone: Top 3 untereinander, sonst wird es für lange Werte zu eng */
@media (max-width: 999px) {
    .wt-podium {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .wt-podium-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "rank label" "rank wert";
        align-items: center;
        column-gap: 16px;
        row-gap: 2px;
        min-height: 0;
        padding: 16px 18px;
        text-align: left;
    }
    .wt-podium-rank {
        grid-area: rank;
        margin: 0;
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
    .wt-podium-label { grid-area: label; align-self: end; }
    .wt-podium-wert { grid-area: wert; align-self: start; }
}

@media (max-width: 760px) {
    .wt-res-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
    .wt-res-hero { margin-top: 12px; }
    .wt-offer { padding: 44px 0 48px; }
    .wt-anfang { padding: 20px 20px 42px; }
    .wt-anfang-text { font-size: 0.95rem; }
    .wt-anfang + .wt-offer { padding-top: 74px; }
    .wt-day { flex-direction: column; gap: 6px; padding: 12px 14px; }
    .wt-day-nr { min-width: 0; padding: 2px 10px; }
    .wt-form-card { padding: 24px 18px 20px; }
}

.wt-outro {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-top: 28px;
}

.wt-empty {
    color: var(--color-muted);
    margin-top: 18px;
}

.wt-footer {
    margin-top: 64px;
    font-size: 0.9rem;
    color: var(--color-muted);
}
