/* stepper.css — externe Datei
   Modernes Stepper-Layout (nummerierte Liste)
   Variablen anpassen: Farben, Größe, Abstände
*/

:root {
    --bg: #FFFFF0;
    --card: #ffffff;
    --accent: #6366f1;
    /* primär (Indigo) */
    --accent-2: #06b6d4;
    /* sekundär (Teal) */
    --muted: #6b7280;
    --text: #0f172a;
    --gap: 18px;
    --radius: 12px;
    --step-size: 44px;
    --max-width: 900px;
    --shadow: 0 8px 28px rgba(2, 6, 23, 0.06);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

/*
body {
    margin: 0;
    font-family: "Trebuchet MS", sans-serif;
    color: #543948;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 28px;
    display: flex;
    justify-content: center;
}
*/

/* Container */
.stepper-wrap {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Stepper list */
.stepper {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* Single step */
.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.5));
    padding: 12px 16px;
    border-bottom: 3px solid #543948;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: default;
    outline: none;
}

/* keyboard focus */
.step:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.10);
}

/* Step marker area (number + connector) */
.step-marker {
    position: relative;
    width: var(--step-size);
    min-width: var(--step-size);
    height: var(--step-size);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* decorative vertical connector between steps */
.step-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--step-size) + 8px);
    bottom: -8px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.05));
    /* hide connector by default for last child (handled in li) */
    opacity: 1;
}

/* hide connector for last step via class on .step (see HTML example uses :last-child too) */
.step:last-child .step-marker::after {
    display: none
}

/* number / icon */
.step-number {
    width: 100%;
    height: 100%;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.18);
    user-select: none;
}

/* completed state */
.step.is-complete .step-number {
    background: linear-gradient(135deg, #10b981, #059669);
    /* green */
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.12);
}

.step.is-complete .step-number::before {
    content: "✓";
    font-weight: 800;
    font-size: 1rem;
}

/* current / active step */
.step.is-current .step-number {
    outline: 3px solid rgba(99, 102, 241, 0.14);
    transform: scale(1.03);
}

/* content */
.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    margin: 0 0 6px 0;
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.2;
}

.step-desc {
    margin: 0;
    color: #543948;
    /* color: var(--muted); */
    font-size: 0.95rem;
    line-height: 1.4;
}

/* small meta / badge on right */
.step-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #543948;
    /* color: var(--muted); */
    font-size: 0.88rem;
}

/* compact variant: less padding */
.step--compact {
    padding: 8px 12px;
    border-radius: 8px;
}

/* responsive tweaks */
@media (max-width:640px) {
    body {
        padding: 18px
    }

    .step {
        gap: 12px;
        padding: 10px
    }

    .step-number {
        font-size: 0.95rem;
        border-radius: 8px
    }

    .step-title {
        font-size: 1rem
    }

    .step-desc {
        font-size: 0.93rem
    }

    .step-marker::after {
        left: calc(var(--step-size)/2 - 1.5px)
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    .step {
        transition: none
    }

    .step:focus {
        transform: none
    }
}