/* ══════════════════════════════════════════════
   HAUSBROT · Auth Pages
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --brown:      #7a4a1e;
    --brown-dark: #5a3412;
    --brown-lt:   #c8956a;
    --brown-pale: #f5ede3;
    --cream:      #f8f3ea;
    --muted:      #6b5a47;
    --border:     #ddd8d0;
    --red:        #c0392b;
    --green:      #3a7a2e;
    --radius:     12px;
}

body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    font-family: Lato, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1a1208;
    min-height: 100vh;
}

/* ── Header ── */
.ah-header {
    background: var(--brown);
    padding: 20px 24px;
    text-align: center;
}
.ah-header-eyebrow {
    margin: 0;
    color: #e8d5be;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}
.ah-header-title {
    margin: 4px 0 2px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    display: block;
}
.ah-header-sub {
    margin: 0;
    color: var(--brown-lt);
    font-size: 11px;
    letter-spacing: 1px;
}

/* ── Page wrapper ── */
.ah-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 60px;
}

/* ── Card ── */
.ah-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 2px 24px rgba(80,40,10,.10);
    padding: 36px 40px;
    width: 100%;
    max-width: 460px;
}
@media (max-width: 500px) {
    .ah-card { padding: 28px 20px; }
}
.ah-card--wide { max-width: 680px; }

.ah-card-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1208;
}
.ah-card-subtitle {
    margin: 0 0 28px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Form fields ── */
.ah-field { margin-bottom: 18px; }
.ah-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a3520;
    margin-bottom: 6px;
}
.ah-field input[type="text"],
.ah-field input[type="email"],
.ah-field input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1208;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.ah-field input:focus {
    border-color: var(--brown-lt);
    box-shadow: 0 0 0 3px rgba(200,149,106,.15);
}
.ah-field input.is-error { border-color: var(--red); }
.ah-field-err {
    display: block;
    font-size: 12px;
    color: var(--red);
    margin-top: 4px;
    min-height: 16px;
}

/* ── Customer type selector ── */
.ah-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}
.ah-type-card {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 14px 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    background: #fff;
    user-select: none;
}
.ah-type-card:hover { border-color: var(--brown-lt); }
.ah-type-card.active {
    border-color: var(--brown);
    background: var(--brown-pale);
}
.ah-type-card input[type="radio"] { display: none; }
.ah-type-icon { font-size: 24px; margin-bottom: 6px; }
.ah-type-label { font-size: 13px; font-weight: 700; color: #4a3520; display: block; }
.ah-type-desc  { font-size: 11px; color: var(--muted); margin-top: 2px; display: block; }

/* ── Buttons ── */
.ah-btn {
    display: inline-block;
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.3px;
}
.ah-btn:active { transform: scale(.99); }
.ah-btn-primary { background: var(--brown); color: #fff; }
.ah-btn-primary:hover { background: var(--brown-dark); }
.ah-btn-outline {
    background: transparent;
    color: var(--brown);
    border: 1.5px solid var(--brown-lt);
}
.ah-btn-outline:hover { background: var(--brown-pale); }

/* ── Divider ── */
.ah-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 12px;
}
.ah-divider::before, .ah-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Alert / status messages ── */
.ah-alert {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}
.ah-alert-success { background: #edf7ea; color: #2d6a24; border: 1px solid #b3dba9; }
.ah-alert-error   { background: #fdf0ef; color: var(--red); border: 1px solid #f5c0bb; }
.ah-alert-info    { background: var(--brown-pale); color: var(--brown-dark); border: 1px solid #e0c5a8; }

/* ── Footer links ── */
.ah-footer-links {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}
.ah-footer-links a { color: var(--brown); text-decoration: none; font-weight: 600; }
.ah-footer-links a:hover { text-decoration: underline; }
.ah-footer-links .sep { margin: 0 8px; color: var(--border); }

/* ── Verify email page ── */
.ah-verify-icon {
    width: 64px; height: 64px;
    background: var(--brown-pale);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--brown);
}

/* ── Profile page ── */
.ah-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.ah-avatar {
    width: 52px; height: 52px;
    background: var(--brown-pale);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brown);
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}
.ah-profile-name { font-size: 18px; font-weight: 700; margin: 0 0 2px; }
.ah-profile-email { font-size: 13px; color: var(--muted); margin: 0; }
.ah-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ah-badge-privat    { background: #e8f0fe; color: #2a5ccc; }
.ah-badge-baeckerei { background: #fff3e0; color: #b55900; }
.ah-badge-verified  { background: #edf7ea; color: #2d6a24; }
.ah-badge-unverified { background: #fdf0ef; color: var(--red); }

.ah-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}
@media (max-width: 400px) { .ah-info-grid { grid-template-columns: 1fr; } }
.ah-info-item { background: var(--cream); border-radius: 8px; padding: 12px 14px; }
.ah-info-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.ah-info-value { font-size: 14px; font-weight: 600; color: #1a1208; }

/* ── Orders table ── */
.ah-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1208;
    margin: 0 0 14px;
    padding-top: 4px;
}
.ah-orders-empty {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    padding: 32px 0;
    background: var(--cream);
    border-radius: 8px;
}
.ah-order-card {
    background: var(--cream);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
@media (max-width: 500px) { .ah-order-card { flex-direction: column; } }
.ah-order-info { flex: 1; min-width: 0; }
.ah-order-title { font-size: 14px; font-weight: 700; color: #1a1208; margin: 0 0 4px; }
.ah-order-meta  { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.ah-order-total { font-size: 13px; font-weight: 600; color: var(--brown-dark); }
.ah-order-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.ah-btn-edit {
    display: inline-block;
    padding: 7px 14px;
    background: var(--brown);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.ah-btn-edit:hover { background: var(--brown-dark); }

.status-aktiv      { background: #edf7ea; color: #2d6a24; }
.status-storniert  { background: #fdf0ef; color: var(--red); }
.status-abgeholt   { background: #f0f4f8; color: #4a6580; }
.status-meldet     { background: #fff8e1; color: #8a6900; }

/* ── Page footer ── */
.ah-page-footer {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    padding: 20px 16px 32px;
}
.ah-page-footer a { color: var(--muted); }
