:root {
    --orange: #ff7900;
    --orange-hover: #ff8c22;

    --bg: #121212;
    --card: #232323;
    --field: #303030;
    --field-focus: #363636;

    --ink: #f7f7f7;
    --muted: #a8adb0;
    --line: #505050;

    --danger: #ff8d85;
}


/* =========================================================
   GRUNDLAYOUT
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #111111 0%,
            #171717 100%
        );

    font:
        16px/1.45
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--ink);
}


.shell {
    width: min(720px, 100%);
    margin: auto;
    padding: 28px 18px 80px;
}


.card {
    background: var(--card);

    border-radius: 24px;

    padding: 32px;

    box-shadow:
        0 22px 60px rgba(0, 0, 0, .42);
}


/* =========================================================
   POWERGROUP
   ========================================================= */

.brand {
    width: 100%;

    margin-bottom: 40px;

    color: #ffffff;

    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.08em;

    text-align: center;
}

.brand span {
    color: var(--orange);
}


/* =========================================================
   TITEL
   ========================================================= */

.step {
    margin-top: 28px;

    color: var(--orange);

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .06em;
}


h1 {
    margin: 8px 0 12px;

    color: #ffffff;

    font-size: clamp(30px, 7vw, 46px);
    line-height: 1.05;
}


h2 {
    margin-bottom: 4px;

    color: #ffffff;

    font-size: 20px;
}


.lead,
.photos p,
.hint {
    color: var(--muted);
}


/* =========================================================
   FORMULAR
   ========================================================= */

form {
    display: grid;

    gap: 18px;

    margin-top: 28px;
}


label {
    display: grid;

    gap: 7px;

    color: #eeeeee;

    font-weight: 700;
}


input,
textarea {
    width: 100%;

    border: 1.5px solid var(--line);
    border-radius: 13px;

    padding: 14px 15px;

    background: var(--field);
    color: #ffffff;

    font: inherit;

    outline: none;

    transition:
        border-color .15s,
        background .15s,
        box-shadow .15s;
}


input:focus,
textarea:focus {
    background: var(--field-focus);

    border-color: var(--orange);

    box-shadow:
        0 0 0 4px rgba(255, 121, 0, .13);
}


textarea {
    resize: vertical;
}


.bad {
    border-color: var(--danger);
}


small {
    color: var(--danger);
}


/* =========================================================
   FOTO-BEREICH
   ========================================================= */

.photos {
    margin-top: 6px;
}


.photos h2 {
    margin-top: 0;
    margin-bottom: 8px;
}


.photos p {
    margin-top: 0;
    margin-bottom: 18px;
}


.photo-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}


.photo {
    position: relative;

    min-height: 160px;

    padding: 18px 10px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 121, 0, .13) 0%,
            rgba(255, 121, 0, .055) 38%,
            #2d2d2d 75%
        );

    border: 2px dashed var(--orange);

    border-radius: 18px;

    color: #ffffff;

    cursor: pointer;

    text-align: center;

    transition:
        transform .15s,
        border-color .15s,
        background .15s,
        box-shadow .15s;
}


.photo:hover {
    transform: translateY(-2px);

    border-color: var(--orange-hover);

    background:
        radial-gradient(
            circle at center,
            rgba(255, 121, 0, .20) 0%,
            rgba(255, 121, 0, .08) 42%,
            #303030 78%
        );

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .25);
}


/* Oranger Kreis mit + */

.photo-plus {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--orange);

    color: #ffffff;

    font-size: 34px;
    font-weight: 500;
    line-height: 1;

    box-shadow:
        0 5px 16px rgba(255, 121, 0, .28);
}


/* Foto 1 / Foto 2 / Foto 3 */

.photo strong {
    margin-top: 2px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
}


/* Text darunter */

.photo-info {
    color: #d6d6d6;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.3;
}


/* Dateiname nach Auswahl */

.photo-selected {
    display: none;

    width: 100%;

    margin-top: 3px;

    overflow: hidden;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Echtes File-Feld verstecken */

.photo input {
    display: none;
}


/* Foto wurde gewählt */

.photo.hasfile {
    border-style: solid;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 121, 0, .23) 0%,
            rgba(255, 121, 0, .10) 45%,
            #303030 80%
        );

    box-shadow:
        inset 0 0 0 1px rgba(255, 121, 0, .20);
}


.photo.hasfile .photo-plus {
    background: #ffffff;

    color: var(--orange);
}


.photo.hasfile .photo-info {
    display: none;
}


.photo.hasfile .photo-selected {
    display: block;
}


.photo-error {
    display: block;

    margin-top: 8px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.primary,
.secondary {
    border: 0;
    border-radius: 14px;

    padding: 15px 20px;

    font: inherit;
    font-weight: 800;

    cursor: pointer;

    text-align: center;

    transition:
        background .15s,
        transform .1s;
}


.primary {
    background: var(--orange);

    color: #ffffff;
}


.primary:hover {
    background: var(--orange-hover);
}


.primary:active {
    transform: scale(.995);
}


.secondary {
    background: #3a3a3a;

    color: #ffffff;

    text-decoration: none;
}


.secondary:hover {
    background: #484848;
}


.actions {
    display: grid;

    grid-template-columns: 1fr 2fr;

    gap: 10px;
}


/* =========================================================
   FREIGABE
   ========================================================= */

.check {
    grid-template-columns: 28px 1fr;

    align-items: start;

    padding: 18px;

    background: #303030;

    border: 1px solid #484848;
    border-radius: 16px;
}


.check input {
    width: 22px;
    height: 22px;

    accent-color: var(--orange);
}


.summary {
    display: grid;

    gap: 8px;

    margin-top: 24px;
    padding: 18px;

    background: #303030;

    border: 1px solid #484848;
    border-radius: 16px;

    color: #eeeeee;
}


.summary span {
    color: var(--muted);
}


/* =========================================================
   MELDUNGEN / ABSCHLUSS
   ========================================================= */

.alert {
    padding: 14px;

    border: 1px solid #733b38;
    border-radius: 12px;

    background: #442725;

    color: #ffd8d5;

    font-weight: 700;
}


.center {
    text-align: center;
}


.success {
    width: 72px;
    height: 72px;

    margin: 10px auto 20px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255, 121, 0, .15);

    color: var(--orange);

    font-size: 36px;
}


.number {
    max-width: 360px;

    margin: 28px auto;
    padding: 20px;

    display: grid;

    gap: 4px;

    background: #303030;

    border-radius: 18px;
}


.number span {
    color: var(--muted);

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
}


.number strong {
    color: #ffffff;

    font-size: 28px;
}


.buttonlink {
    display: inline-block;

    text-decoration: none;
}


.hint {
    font-size: 14px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    position: fixed;

    right: 14px;
    bottom: 10px;

    max-width: 55vw;

    color: #8d8d8d;

    font-size: 10px;

    text-align: right;
}


/* =========================================================
   SAFARI / CHROME AUTOFILL
   ========================================================= */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;

    -webkit-box-shadow:
        0 0 0 1000px var(--field) inset;

    transition:
        background-color 9999s ease-in-out 0s;
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 560px) {

    .shell {
        padding: 12px 10px 65px;
    }

    .card {
        padding: 24px 18px;

        border-radius: 20px;
    }


    /* POWERGROUP.CH */

    .brand {
        width: 100%;

        margin-bottom: 30px;

        font-size: 21px;
        font-weight: 900;
        letter-spacing: 0.08em;

        text-align: center;
    }


    .photo-grid {
        grid-template-columns: repeat(3, 1fr);

        gap: 7px;
    }


    .photo {
        min-height: 135px;

        padding: 13px 5px;

        border-radius: 15px;
    }


    .photo-plus {
        width: 44px;
        height: 44px;

        font-size: 30px;
    }


    .photo strong {
        font-size: 13px;
    }


    .photo-info {
        font-size: 10px;
    }


    .actions {
        grid-template-columns: 1fr;
    }


    input,
    textarea,
    .primary,
    .secondary {
        font-size: 16px;
    }
}