.account-page {
    --account-border: rgba(17, 19, 20, 0.11);
    --account-shadow: 0 24px 70px rgba(17, 19, 20, 0.12);
    min-height: calc(100vh - 90px);
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
}

.account-page *,
.account-page *::before,
.account-page *::after {
    min-width: 0;
}

.account-page .eyebrow {
    margin: 0 0 8px;
    color: var(--olive-dark);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-script {
    margin: 0 0 12px;
    color: #b6c43c;
    font-family: "Caveat", cursive;
    font-size: clamp(2.15rem, 4vw, 3.3rem);
    font-weight: 700;
    line-height: 1;
}

.account-hero {
    position: relative;
    isolation: isolate;
    padding: 78px 0 70px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(7, 8, 8, 0.96), rgba(7, 8, 8, 0.78) 58%, rgba(7, 8, 8, 0.52)),
        url("../../img/foodtruck.png") center 46% / cover no-repeat;
}

.account-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 4px;
    background: var(--olive);
}

.account-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}

.account-hero h1,
.account-card h2,
.dashboard-section h2,
.dashboard-order h3,
.dashboard-empty h3,
.invoice-card h3,
.account-auth-story h1 {
    margin: 0;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-weight: 400;
    line-height: 0.94;
    text-transform: uppercase;
}

.account-hero h1 {
    font-size: clamp(4.2rem, 8vw, 7.2rem);
}

.account-lead {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.7;
}

.account-hero-meta {
    flex: 0 0 auto;
    min-width: 245px;
    padding: 16px 20px;
    border-left: 3px solid var(--olive);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.account-hero-meta span,
.account-hero-meta strong {
    display: block;
}

.account-hero-meta span {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.account-hero-meta strong {
    color: #fff;
    font-size: 1.02rem;
}

.account-main {
    padding: 66px 0 84px;
}

.account-card,
.dashboard-card,
.dashboard-order,
.invoice-card,
.dashboard-empty {
    border: 1px solid var(--account-border);
    border-radius: 4px;
    background: #fff;
    box-shadow: var(--account-shadow);
}

.account-card {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 46px;
}

.account-card::before,
.dashboard-profile-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--olive);
}

.account-card h2 {
    font-size: clamp(3.2rem, 5vw, 5rem);
}

.account-card-lead {
    margin: 12px 0 0;
    color: #68635d;
    line-height: 1.65;
}

.account-card-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 50%;
    background: rgba(152, 165, 31, 0.12);
    color: var(--olive-dark);
    font-size: 1.2rem;
}

.account-form {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.account-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-field {
    display: grid;
    gap: 8px;
}

.account-field-wide {
    grid-column: 1 / -1;
}

.account-form label:not(.account-check),
.account-field > label:not(.account-check) {
    display: grid;
    gap: 8px;
    color: #252625;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-form input:not([type="checkbox"]),
.account-form select,
.account-form textarea {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #d8d5cf;
    border-radius: 3px;
    background: #fbfaf8;
    color: var(--ink);
    font: 600 0.98rem "Inter", Arial, sans-serif;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.account-form textarea {
    min-height: 120px;
    padding-top: 15px;
    resize: vertical;
}

.account-form select {
    padding-right: 40px;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
    border-color: var(--olive);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(152, 165, 31, 0.13);
}

.account-input-wrap {
    position: relative;
    display: block;
}

.account-input-wrap > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 18px;
    color: #8d8b85;
    transform: translateY(-50%);
}

.account-input-wrap input:not([type="checkbox"]) {
    padding-left: 48px;
}

.account-check {
    display: flex !important;
    align-items: flex-start;
    gap: 11px !important;
    color: #5f5b55;
    font: 600 0.9rem/1.5 "Inter", Arial, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.account-check input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    accent-color: var(--olive);
}

.account-check a,
.account-switch a,
.account-card-footer a {
    color: var(--olive-dark);
    font-weight: 800;
}

.account-submit {
    width: 100%;
    min-height: 57px;
}

.account-alert,
.account-hint,
.account-status.is-error {
    padding: 14px 16px;
    border-left: 4px solid;
    line-height: 1.55;
}

.account-alert {
    margin: 22px 0 0;
}

.account-alert ul {
    margin: 0;
    padding-left: 20px;
}

.account-alert.is-error,
.account-status.is-error {
    border-color: #b74732;
    background: rgba(183, 71, 50, 0.09);
    color: #8c3022;
}

.account-alert.is-success,
.account-hint {
    border-color: var(--olive);
    background: rgba(152, 165, 31, 0.11);
    color: #5e6811;
}

.account-status {
    min-height: 0;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.account-status:empty {
    display: none;
}

.account-switch {
    margin: 28px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--account-border);
    color: #5f5b55;
    text-align: center;
}

.account-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
}

/* Login */
.account-auth-main {
    display: grid;
    min-height: calc(100vh - 90px);
    padding: 70px 0;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(8, 9, 9, 0.97) 0%, rgba(8, 9, 9, 0.88) 48%, rgba(8, 9, 9, 0.48) 100%),
        url("../../img/foodtruck.png") center / cover no-repeat;
}

.account-auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 490px);
    align-items: center;
    gap: clamp(48px, 8vw, 110px);
}

.account-auth-story {
    max-width: 640px;
    color: #fff;
}

.account-auth-story h1 {
    font-size: clamp(5rem, 8.5vw, 8rem);
}

.account-auth-story > p:not(.account-script) {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    line-height: 1.75;
}

.account-auth-story ul {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.account-auth-story li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.account-auth-story li i {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--olive);
    font-size: 0.7rem;
}

.account-auth-card {
    width: 100%;
    padding: 42px;
}

.account-card-footer {
    display: grid;
    gap: 5px;
    margin-top: 28px;
    padding-top: 23px;
    border-top: 1px solid var(--account-border);
    color: #6c6861;
    font-size: 0.9rem;
}

/* Registrierung */
.registration-card {
    max-width: 900px;
}

.registration-main {
    background:
        radial-gradient(circle at 10% 15%, rgba(152, 165, 31, 0.09), transparent 24%),
        var(--paper);
}

/* Dashboard */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: -96px 0 34px;
    position: relative;
    z-index: 2;
}

.dashboard-summary article {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 17px 20px;
    border: 1px solid var(--account-border);
    background: #fff;
    box-shadow: 0 14px 40px rgba(17, 19, 20, 0.1);
}

.dashboard-summary i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: rgba(152, 165, 31, 0.12);
    color: var(--olive-dark);
}

.dashboard-summary span {
    color: #746f68;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-summary strong {
    color: var(--ink);
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 2rem;
    font-weight: 400;
}

.dashboard-grid {
    align-items: start;
}

.dashboard-card {
    position: sticky;
    top: 112px;
    padding: 34px;
    overflow: hidden;
}

.dashboard-avatar {
    display: grid;
    width: 66px;
    height: 66px;
    margin-bottom: 23px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font: 400 2.2rem "Bebas Neue", Impact, sans-serif;
}

.dashboard-card h2 {
    overflow-wrap: anywhere;
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.dashboard-profile {
    display: grid;
    gap: 0;
    margin-top: 24px;
    border-top: 1px solid var(--account-border);
}

.dashboard-profile > div {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid var(--account-border);
    color: #353535;
    overflow-wrap: anywhere;
}

.dashboard-profile i {
    margin-top: 3px;
    color: var(--olive-dark);
}

.dashboard-profile span,
.dashboard-profile small {
    display: block;
}

.dashboard-profile span {
    font-size: 0.9rem;
    font-weight: 700;
}

.dashboard-profile small {
    margin-bottom: 3px;
    color: #88837b;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-actions {
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

.dashboard-actions form,
.dashboard-actions button {
    width: 100%;
}

.dashboard-section + .dashboard-section {
    margin-top: 54px;
}

#bestellungen {
    scroll-margin-top: 116px;
}

.loyalty-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 34px;
    padding: 28px;
    border: 1px solid rgba(152, 165, 31, 0.34);
    border-radius: 4px;
    background:
        radial-gradient(circle at 100% 0, rgba(152, 165, 31, 0.16), transparent 38%),
        #fff;
    box-shadow: 0 16px 46px rgba(17, 19, 20, 0.08);
}

.loyalty-card + .dashboard-section {
    margin-top: 42px;
}

.loyalty-main {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 17px;
}

.loyalty-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #becb43;
    font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(17, 19, 20, 0.18);
}

.loyalty-card h2 {
    margin: 0;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(2.7rem, 4vw, 3.8rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.loyalty-card h2 strong {
    color: var(--olive-dark);
    font-weight: 400;
}

.loyalty-main p:last-child {
    margin: 9px 0 0;
    color: #716c65;
    font-size: 0.82rem;
    line-height: 1.5;
}

.loyalty-main p:last-child b {
    color: var(--olive-dark);
}

.loyalty-progress-wrap {
    display: grid;
    align-content: center;
    gap: 10px;
    padding-left: 30px;
    border-left: 1px solid var(--account-border);
}

.loyalty-progress-copy {
    display: grid;
    gap: 3px;
}

.loyalty-progress-copy strong {
    color: #292a28;
    font-size: 0.9rem;
}

.loyalty-progress-copy span,
.loyalty-progress-wrap small {
    color: #7c7770;
    font-size: 0.72rem;
    line-height: 1.45;
}

.loyalty-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9e7e1;
}

.loyalty-progress > span {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--olive-dark), #bdca3c);
    transition: width 0.35s ease;
}

.dashboard-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.dashboard-section-head h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
}

.dashboard-section-head > a {
    padding-bottom: 5px;
    color: var(--olive-dark);
    font-size: 0.86rem;
    font-weight: 900;
}

.dashboard-result-count {
    margin: 9px 0 0;
    color: #817c75;
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-orders,
.dashboard-invoices {
    display: grid;
    gap: 16px;
}

.dashboard-order {
    padding: 28px;
    box-shadow: 0 16px 46px rgba(17, 19, 20, 0.08);
}

.dashboard-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.order-kicker {
    margin: 0 0 5px;
    color: #817c75;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-order h3 {
    font-size: clamp(2.3rem, 4vw, 3.3rem);
}

.order-status {
    display: inline-flex;
    min-height: 32px;
    padding: 7px 11px 6px;
    align-items: center;
    background: rgba(152, 165, 31, 0.14);
    color: #626d10;
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.order-status-cancelled {
    background: rgba(183, 71, 50, 0.1);
    color: #963b2b;
}

.order-lines {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--account-border);
    border-bottom: 1px solid var(--account-border);
}

.order-lines > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #403d39;
}

.order-lines span small {
    display: block;
    margin: 2px 0 0 24px;
    color: #8a857f;
    font-size: 0.76rem;
}

.order-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.order-footer p {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}

.order-footer p span {
    padding: 5px 8px;
    background: #f1f0ec;
    color: #625e58;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.order-footer p .order-points {
    background: rgba(17, 19, 20, 0.07);
    color: #77726b;
}

.order-footer p .order-points.is-available {
    background: rgba(152, 165, 31, 0.14);
    color: var(--olive-dark);
}

.order-points i {
    margin-right: 4px;
    font-size: 0.64rem;
}

.order-footer > strong {
    color: var(--olive-dark);
    font-size: 1.2rem;
}

.order-track-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 20px;
    color: var(--olive-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.dashboard-empty {
    padding: 42px;
    text-align: center;
    box-shadow: none;
}

.dashboard-empty > i {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: rgba(152, 165, 31, 0.12);
    color: var(--olive-dark);
    font-size: 1.35rem;
}

.dashboard-empty h3 {
    font-size: 2.4rem;
}

.dashboard-empty p {
    max-width: 490px;
    margin: 10px auto 22px;
    color: #716c65;
    line-height: 1.65;
}

.dashboard-empty-small {
    padding: 34px;
}

.invoice-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 17px;
    padding: 20px 22px;
    box-shadow: 0 14px 40px rgba(17, 19, 20, 0.07);
}

.invoice-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    background: rgba(152, 165, 31, 0.12);
    color: var(--olive-dark);
    font-size: 1.1rem;
}

.invoice-card h3 {
    font-size: 1.8rem;
}

.invoice-card p {
    margin: 5px 0 0;
    color: #77716a;
    font-size: 0.83rem;
}

.invoice-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-actions > span {
    color: var(--olive-dark);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.invoice-actions .btn {
    padding: 9px 14px 8px;
    font-size: 0.9rem;
}

.dashboard-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-pagination a,
.pagination-pages > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--account-border);
    background: #fff;
    color: #46433f;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(17, 19, 20, 0.05);
}

.dashboard-pagination a:hover,
.dashboard-pagination a.is-current {
    border-color: var(--olive);
    background: var(--olive);
    color: #fff;
}

.dashboard-pagination .pagination-arrow {
    background: var(--ink);
    color: #fff;
}

.dashboard-pagination .is-disabled {
    pointer-events: none;
    opacity: 0.32;
}

.pagination-pages > span {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .account-auth-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .account-auth-story {
        max-width: 700px;
    }

    .account-auth-story h1 br {
        display: none;
    }

    .account-auth-card {
        max-width: 620px;
        margin: 0;
    }

    .dashboard-summary {
        margin-top: -82px;
    }

    .dashboard-card {
        position: static;
    }

    .loyalty-card {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .loyalty-progress-wrap {
        padding: 20px 0 0;
        border-top: 1px solid var(--account-border);
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    .account-hero {
        padding: 54px 0 48px;
    }

    .account-hero-inner {
        display: block;
    }

    .account-hero h1 {
        font-size: clamp(3.7rem, 16vw, 5.3rem);
    }

    .account-lead {
        font-size: 0.94rem;
    }

    .account-hero-meta {
        display: none;
    }

    .account-main {
        padding: 42px 0 60px;
    }

    .account-card {
        width: 100%;
        padding: 30px 24px;
    }

    .account-form-grid {
        grid-template-columns: 1fr;
    }

    .account-field-wide {
        grid-column: auto;
    }

    .account-auth-main {
        min-height: calc(100vh - 90px);
        padding: 48px 0 54px;
        background:
            linear-gradient(rgba(8, 9, 9, 0.92), rgba(8, 9, 9, 0.97)),
            url("../../img/foodtruck.png") center / cover no-repeat;
    }

    .account-auth-story h1 {
        font-size: clamp(4rem, 18vw, 5.5rem);
    }

    .account-auth-story > p:not(.account-script),
    .account-auth-story ul {
        display: none;
    }

    .account-auth-card {
        padding: 30px 24px;
    }

    .dashboard-page .account-main {
        padding-top: 0;
    }

    .dashboard-summary {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0 0 24px;
        padding-top: 24px;
    }

    .dashboard-summary article {
        min-height: 66px;
        padding: 11px 14px;
    }

    .dashboard-section-head {
        display: block;
    }

    .loyalty-card {
        padding: 22px 20px;
    }

    .loyalty-main {
        grid-template-columns: 46px 1fr;
        gap: 13px;
    }

    .loyalty-icon {
        width: 46px;
        height: 46px;
    }

    .dashboard-section-head > a {
        display: inline-block;
        margin-top: 10px;
    }

    .dashboard-section-head h2 {
        font-size: 3.2rem;
    }

    .dashboard-card,
    .dashboard-order,
    .dashboard-empty {
        padding: 24px 20px;
    }

    .dashboard-order-head {
        display: grid;
    }

    .order-status {
        justify-self: start;
    }

    .order-lines > div,
    .order-footer {
        align-items: flex-start;
    }

    .invoice-card {
        grid-template-columns: 44px 1fr;
        padding: 18px;
    }

    .invoice-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid var(--account-border);
    }

    .dashboard-pagination {
        gap: 5px;
    }

    .dashboard-pagination a,
    .pagination-pages > span {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 420px) {
    .account-auth-story h1 {
        font-size: 3.8rem;
    }

    .order-lines > div {
        font-size: 0.86rem;
    }
}
