/* ===================================================
   VORSORGE-DASHBOARD
   Wille & Würde – Sicherheit, Ordnung, Vorsorge
   Tokens kommen aus css/base.css
   =================================================== */

body {
    font-size: 15px;
    background-color: var(--d-bg);
    min-height: 100vh;
}

a { color: var(--d-primary); }
a:hover { text-decoration: underline; }

/* ===================================================
   AUTH GATE (Loading)
   =================================================== */
.auth-gate {
    position: fixed;
    inset: 0;
    background: var(--d-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-gate-content {
    text-align: center;
    color: var(--d-text-muted);
    font-size: 0.95rem;
}

.auth-gate-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--d-border);
    border-top-color: var(--d-primary);
    border-radius: 50%;
    animation: gateSpin 0.7s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes gateSpin { to { transform: rotate(360deg); } }

/* ===================================================
   LOGIN SCREEN
   =================================================== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--d-bg);
    padding: 2rem 1rem;
}

.login-card {
    background: var(--d-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo-image {
    height: 44px;
    width: auto;
}

.login-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--d-text);
}

.login-subtitle {
    text-align: center;
    color: var(--d-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.login-form { display: flex; flex-direction: column; gap: 1rem; }

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--d-text);
    margin-bottom: 0.35rem;
}

.form-field input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--d-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--d-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
    outline: none;
    border-color: var(--d-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 143, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--d-text-muted);
    padding: 0.2rem;
}

.password-toggle:hover { color: var(--d-text); }

.login-submit-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--d-accent);
    color: var(--d-text);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.25rem;
}

.login-submit-btn:hover:not(:disabled) { background: var(--d-accent-hover); }
.login-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.forgot-password-link {
    text-align: center;
    font-size: 0.85rem;
    color: var(--d-primary);
    display: block;
}

.login-message {
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
}

.login-message.error {
    display: block;
    background: #fef2f2;
    color: var(--d-danger);
    border: 1px solid #fecaca;
}

.login-message.success {
    display: block;
    background: var(--d-success-light);
    color: var(--d-success);
    border: 1px solid #bbf7d0;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--d-text-muted);
}

.login-footer a {
    color: var(--d-primary);
    font-weight: 500;
}

/* ===================================================
   DASHBOARD HEADER
   =================================================== */
.dash-header {
    background: var(--d-white);
    border-bottom: 1px solid var(--d-border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dash-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-logo-image {
    height: 42px;
    width: auto;
}

.dash-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Primary CTA in header */
.dash-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--d-text);
    background: var(--d-accent);
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.dash-nav-cta:hover {
    background: var(--d-accent-hover);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Avatar wrapper with dropdown */
.dash-avatar-wrapper {
    position: relative;
}

.dash-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid var(--d-border-light);
    border-radius: 999px;
    padding: 0.25rem 0.6rem 0.25rem 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-avatar-btn:hover {
    border-color: var(--d-border);
    background: var(--d-bg);
}

.dash-avatar-btn.active {
    border-color: var(--d-primary);
    background: var(--d-bg);
}

.dash-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--d-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.dash-avatar-chevron {
    color: var(--d-text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.dash-avatar-btn.active .dash-avatar-chevron {
    transform: rotate(180deg);
}

/* Dropdown menu */
.dash-avatar-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--d-white);
    border: 1px solid var(--d-border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
    z-index: 200;
    padding: 0.35rem 0;
}

.dash-avatar-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dash-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--d-text);
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.dash-dropdown-item:hover {
    background: var(--d-bg);
    text-decoration: none;
}

.dash-dropdown-item svg {
    color: var(--d-text-muted);
    flex-shrink: 0;
}

.dash-dropdown-divider {
    height: 1px;
    background: var(--d-border-light);
    margin: 0.25rem 0;
}

.dash-dropdown-logout {
    color: var(--d-danger);
}

.dash-dropdown-logout svg {
    color: var(--d-danger);
}

/* ===================================================
   SUCCESS BANNER (Post-Purchase)
   =================================================== */
.success-banner {
    background: linear-gradient(135deg, var(--d-primary) 0%, #0056c7 50%, var(--d-primary) 100%);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.success-banner-inner {
    max-width: 560px;
    margin: 0 auto;
}

.success-icon-wrap {
    margin-bottom: 1.25rem;
}

.success-icon-wrap svg {
    color: var(--d-accent);
}

.success-banner h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.success-banner p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.success-dismiss-btn {
    background: var(--d-accent);
    color: var(--d-text);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.success-dismiss-btn:hover {
    background: var(--d-accent-hover);
}

/* ===================================================
   MAIN LAYOUT
   =================================================== */
.dash-main {
    padding: 2rem 0 4rem;
}

.dash-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dash-greeting {
    margin-bottom: 1.5rem;
}

.dash-greeting h1 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--d-text);
}

.dash-greeting-sub {
    color: var(--d-text-light);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* Security bar */
.security-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--d-success-light);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.15rem;
    font-size: 0.85rem;
    color: var(--d-success);
    margin-bottom: 1.5rem;
}

.security-bar svg { flex-shrink: 0; }

/* ===================================================
   CARDS
   =================================================== */
.dash-card {
    background: var(--d-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--d-border-light);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.dash-card:hover {
    box-shadow: var(--shadow-md);
}

.card-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--d-text);
    margin-bottom: 1.15rem;
}

.card-section-title svg {
    color: var(--d-primary);
    flex-shrink: 0;
}

.card-text {
    font-size: 0.875rem;
    color: var(--d-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===================================================
   DOCUMENT CARD
   =================================================== */
.document-card {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--d-primary);
}

.card-header-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon {
    background: var(--d-primary-light);
    color: var(--d-primary);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--d-text);
    margin-bottom: 0.15rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--d-text-muted);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.status-active {
    background: var(--d-success-light);
    color: var(--d-success);
    border: 1px solid #bbf7d0;
}

.status-draft {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* No testament */
.no-testament-card {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-bottom: 1.5rem;
}

.no-testament-content svg {
    color: var(--d-text-muted);
    margin-bottom: 1rem;
}

.no-testament-content h2 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-testament-content p {
    color: var(--d-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* ===================================================
   ACTION BUTTONS
   =================================================== */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.action-primary {
    background: var(--d-accent);
    color: var(--d-text);
    font-weight: 600;
}

.action-primary:hover {
    background: var(--d-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.action-secondary {
    background: var(--d-white);
    color: var(--d-text);
    border: 1px solid var(--d-border);
}

.action-secondary:hover {
    border-color: var(--d-primary);
    color: var(--d-primary);
}

/* Link button */
.link-btn {
    background: none;
    border: none;
    color: var(--d-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.link-btn:hover { text-decoration: underline; }

/* ===================================================
   GRID LAYOUT
   =================================================== */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dash-col-left,
.dash-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===================================================
   CHECKLIST
   =================================================== */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.checklist-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--d-border-light);
    position: relative;
}

.checklist-item:last-child { border-bottom: none; }

.checklist-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--d-border-light);
    color: var(--d-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.checklist-item.completed .checklist-marker {
    background: var(--d-success);
    color: #fff;
}

.checklist-item.active .checklist-marker {
    background: var(--d-primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 61, 143, 0.2);
}

.checklist-number { font-size: 0.75rem; }

.checklist-content { flex: 1; }

.checklist-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--d-text);
    margin-bottom: 0.1rem;
}

.checklist-item.completed .checklist-label {
    color: var(--d-text-muted);
}

.checklist-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--d-text-muted);
    line-height: 1.5;
}

/* ===================================================
   GUIDE TIPS (Storage)
   =================================================== */
.guide-tips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-tip {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--d-bg);
    border-radius: var(--radius-md);
}

.guide-tip-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--d-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--d-primary);
    border: 1px solid var(--d-border-light);
}

.guide-tip strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.2rem;
}

.guide-tip p {
    font-size: 0.8rem;
    color: var(--d-text-light);
    line-height: 1.5;
}

/* ===================================================
   SUMMARY
   =================================================== */
.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--d-border-light);
}

.summary-item:last-child { border-bottom: none; }

.summary-label {
    font-size: 0.85rem;
    color: var(--d-text-light);
}

.summary-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--d-text);
    text-align: right;
}

/* ===================================================
   ACCOUNT
   =================================================== */
.account-details {
    display: flex;
    flex-direction: column;
}

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--d-border-light);
}

.account-row:last-child { border-bottom: none; }

.account-label {
    font-size: 0.85rem;
    color: var(--d-text-light);
}

.account-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--d-text);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--d-success-light);
    color: var(--d-success);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.unverified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fef3c7;
    color: #b45309;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===================================================
   TOGGLE SWITCHES
   =================================================== */
.notification-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    cursor: pointer;
    border-bottom: 1px solid var(--d-border-light);
}

.toggle-row:last-child { border-bottom: none; }

.frequency-select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 1px solid var(--d-border-light);
}

.frequency-label {
    font-size: 0.8rem;
    color: var(--d-text-muted);
}

.frequency-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--d-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--d-text);
    background: var(--d-white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.frequency-select:focus {
    outline: none;
    border-color: var(--d-primary);
}

.toggle-label {
    font-size: 0.85rem;
    color: var(--d-text);
}

.toggle-input {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 42px;
    height: 24px;
    background: var(--d-border);
    border-radius: 12px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--d-white);
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: var(--shadow-sm);
}

.toggle-input:checked + .toggle-switch {
    background: var(--d-primary);
}

.toggle-input:checked + .toggle-switch::after {
    transform: translateX(18px);
}

/* ===================================================
   MODALS
   =================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: var(--d-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 1.75rem;
    animation: modalSlideUp 0.25s ease-out;
}

.modal-large {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--d-text);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--d-bg);
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--d-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover { background: var(--d-border); }

/* Testament view */
.testament-view {
    padding: 3rem 2.5rem;
    background: #ffffff;
    border: none;
    border-radius: 2px;
    font-family: 'Georgia', 'Times New Roman', 'Palatino Linotype', serif;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--d-text);
    max-height: 60vh;
    overflow-y: auto;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 20px 48px rgba(0, 0, 0, 0.06);
    position: relative;
}

.testament-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: linear-gradient(90deg, #003d8f, #002d6b);
    border-radius: 0 0 2px 2px;
}

.testament-view .testament-doc-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    color: #1a1a1a;
}

.testament-view .testament-doc-heading {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.testament-view .testament-doc-paragraph {
    margin-bottom: 0.85rem;
    text-align: justify;
    hyphens: auto;
}

.testament-view .testament-doc-signature {
    margin-top: 2.5rem;
}

.testament-view .testament-doc-signature .testament-doc-paragraph {
    text-align: left;
    margin-bottom: 0.3rem;
}

.testament-view .testament-doc-signature-line {
    display: block;
    width: 280px;
    border-bottom: 1px solid #1a1a1a;
    margin: 0.5rem 0 0.25rem;
}

.testament-view .testament-doc-notice {
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-left: 3px solid #003d8f;
    border-radius: 0 4px 4px 0;
    font-size: 0.82rem;
    color: #5a5a5a;
    line-height: 1.6;
}

.testament-view .testament-doc-notice strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.testament-view .testament-doc-watermark {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.06);
    font-family: 'Georgia', serif;
    letter-spacing: 0.05em;
    pointer-events: none;
    user-select: none;
}

/* ===================================================
   FOOTER
   =================================================== */
.dash-footer {
    background: var(--d-white);
    border-top: 1px solid var(--d-border-light);
    padding: 1.5rem 2rem;
}

.dash-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-footer-inner p {
    font-size: 0.8rem;
    color: var(--d-text-muted);
}

.dash-footer-links {
    display: flex;
    gap: 1.5rem;
}

.dash-footer-links a {
    font-size: 0.8rem;
    color: var(--d-text-muted);
}

.dash-footer-links a:hover {
    color: var(--d-primary);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   TOAST NOTIFICATIONS
   =================================================== */
.toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn 0.3s ease-out forwards;
    max-width: 380px;
}

.toast.removing {
    animation: toastOut 0.25s ease-in forwards;
}

.toast-success {
    background: var(--d-success-light);
    color: var(--d-success);
    border: 1px solid #bbf7d0;
}

.toast-info {
    background: var(--d-primary-light);
    color: var(--d-primary);
    border: 1px solid #bfd4f0;
}

.toast-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.toast svg {
    flex-shrink: 0;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-10px) scale(0.97); }
}

@media (max-width: 640px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
    }

    .toast {
        max-width: 100%;
    }

    .dash-container { padding: 0 1rem; }
    .dash-nav { padding: 0 1rem; }

    .dash-nav-cta {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }

    .dash-greeting h1 { font-size: 1.35rem; }

    .document-actions {
        flex-direction: column;
    }

    .document-actions .action-btn {
        width: 100%;
        justify-content: center;
    }

    .card-header-row {
        flex-wrap: wrap;
    }

    .status-badge {
        margin-left: 0;
        order: 3;
        width: fit-content;
    }

    .dash-footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .success-banner { padding: 2rem 1rem; }

    .success-banner h2 { font-size: 1.4rem; }

    .summary-item, .account-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .summary-value, .account-value {
        text-align: left;
    }

    .modal-card { padding: 1.25rem; }

    .modal-large { max-height: 85vh; }
}

/* ===================================================
   GAST-MODUS WARNUNG
   =================================================== */
.guest-warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.guest-warning-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.guest-warning-banner svg {
    flex-shrink: 0;
    color: #b45309;
    margin-top: 2px;
}

.guest-warning-banner strong {
    display: block;
    font-size: 0.9rem;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.guest-warning-banner p {
    font-size: 0.82rem;
    color: #78350f;
    line-height: 1.5;
    margin: 0;
}

.guest-warning-banner a {
    color: var(--d-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ===================================================
   FREQUENZ-CHIPS
   =================================================== */
.frequency-chips-row {
    padding: 0.6rem 0 0.85rem;
    border-bottom: 1px solid var(--d-border-light);
}

.frequency-chips-label {
    display: block;
    font-size: 0.8rem;
    color: var(--d-text-muted);
    margin-bottom: 0.5rem;
}

.frequency-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.frequency-chip {
    cursor: pointer;
}

.frequency-chip input {
    display: none;
}

.frequency-chip span {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--d-border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--d-text-light);
    background: var(--d-white);
    transition: all 0.15s ease;
}

.frequency-chip:hover span {
    border-color: var(--d-primary);
    color: var(--d-primary);
}

.frequency-chip input:checked + span {
    background: var(--d-primary-light);
    border-color: var(--d-primary);
    color: var(--d-primary);
    font-weight: 600;
}
