/* =====================================================
   titus-hildebrand.de — Custom Styles
   ===================================================== */

:root {
    --navy:       #1a2e4a;
    --navy-light: #243d61;
    --accent:     #1e5fa8;   /* 6.45:1 on white; was #2e7dd1 (4.23:1, too light for text) */
    --accent-hover: #174a85;
    --text-muted-custom: #5c636a;
    --border-light: #e8ecf0;
    --section-bg: #f8fafc;
}

/* ---- Global ---- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2d3748;
    background: #fff;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* ---- Navbar ---- */
.bg-navy { background-color: var(--navy) !important; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255,255,255,.82); }
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active { color: #fff; }

/* Language switcher */
.lang-btn {
    color: rgba(255,255,255,.6);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    padding: .1rem .3rem;
    border-radius: 4px;
    transition: color .15s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: #fff; background: rgba(255,255,255,.15); }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.6); }
.site-footer small { color: rgba(255,255,255,.55); }
.site-footer a.hover-white:hover { color: #fff !important; }

/* =====================================================
   CV / HOMEPAGE
   ===================================================== */
.cv-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 3.5rem 0;
}

.cv-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.3);
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.cv-name { font-size: 2.2rem; font-weight: 700; margin-bottom: .3rem; }
.cv-subtitle { font-size: 1.1rem; opacity: .85; }
.cv-contact a { color: rgba(255,255,255,.88); text-decoration: none; }
.cv-contact a:hover { color: #fff; text-decoration: underline; }

.cv-section { padding: 2.5rem 0; }
.cv-section + .cv-section { border-top: 1px solid var(--border-light); }
.cv-section-title {
    line-height: 1.5;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.cv-entry { margin-bottom: 1.4rem; }
.cv-entry-title { font-weight: 600; font-size: 1rem; line-height: 1.5; margin-bottom: .15rem; }
.cv-entry-org { color: var(--text-muted-custom); font-size: .9rem; }
.cv-entry-period {
    font-size: .82rem;
    color: var(--accent);
    font-weight: 500;
    white-space: nowrap;
}
.cv-entry-desc { font-size: .9rem; color: #4a5568; margin-top: .3rem; }

/* =====================================================
   STUDY PAGES
   ===================================================== */
.study-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 2.5rem 0;
}

.study-progress .progress { height: 8px; border-radius: 4px; }

/* Study item card */
.item-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.item-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.item-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .8rem;
}
/* Wrapper gives the rounded border — image itself stays rectangular */
.diagram-wrapper {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 8px;
    background: #fff;
    display: inline-block;
    margin: 1rem 0;
}
.item-diagram {
    max-width: 100%;
    display: block;
    cursor: zoom-in;
}

/* Navy number badge on study items */
.badge-num {
    background: var(--navy);
    color: #fff;
    font-size: .8rem;
    min-width: 1.6rem;
}

/* Rating buttons */
.rating-group { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.rating-group input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rating-group input:focus-visible + .rating-label,
input[type=radio]:focus-visible + .expertise-pill { outline: 2px solid #b7791f; outline-offset: 2px; }
.rating-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.2rem;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    cursor: pointer;
    font-weight: 500;
    font-size: .9rem;
    transition: all .15s;
    user-select: none;
    background: #fff;
}
.rating-label:hover { border-color: #adb5bd; }
.rating-group input[value=retain]:checked + .rating-label { background: #d1fae5; border-color: #10b981; color: #065f46; }
.rating-group input[value=adapt]:checked  + .rating-label { background: #fef3c7; border-color: #f59e0b; color: #78350f; }
.rating-group input[value=drop]:checked   + .rating-label { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }

.adapt-field { display: none; margin-top: .8rem; }
.adapt-field.visible { display: block; }

/* =====================================================
   DELPHI LANDING PAGE
   ===================================================== */
.delphi-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3d6e 60%, #2a5298 100%);
    color: #fff;
    padding: 4rem 0;
}
.delphi-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
}
.delphi-hero-sub { font-size: 1.05rem; opacity: .85; max-width: 620px; }

.btn-white-navy {
    background: #fff;
    color: var(--navy);
    border: 2px solid #fff;
    font-weight: 600;
}
.btn-white-navy:hover { background: var(--section-bg); color: var(--navy); border-color: var(--section-bg); }
.btn-white-navy {
    --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: var(--section-bg); --bs-btn-hover-border-color: var(--section-bg);
    --bs-btn-active-color: var(--navy); --bs-btn-active-bg: var(--section-bg); --bs-btn-focus-shadow-rgb: 255, 255, 255;
}
.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
    font-weight: 600;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-outline-white {
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255,255,255,.1); --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255,255,255,.15); --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.bg-light-custom { background: var(--section-bg); }

/* Fact cards */
.delphi-fact-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}
.delphi-fact-icon { font-size: 1.4rem; color: var(--accent); margin-top: .1rem; flex-shrink: 0; }
.delphi-fact-label { font-size: .75rem; font-weight: 700; text-transform: uppercase;
                     letter-spacing: .06em; color: var(--text-muted-custom); }
.delphi-fact-value { font-size: .92rem; font-weight: 600; color: var(--navy); }

/* Benefit cards */
.delphi-benefit-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.4rem;
    background: #fff;
    height: 100%;
}
.delphi-benefit-icon {
    width: 2.4rem;
    height: 2.4rem;
    background: #eef4fd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: .8rem;
}
.delphi-benefit-title { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.delphi-benefit-text  { font-size: .88rem; color: #4a5568; margin: 0; line-height: 1.6; }

/* Delphi steps */
.delphi-steps { display: flex; flex-direction: column; gap: 0; }
.delphi-step {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-light);
}
.delphi-step:last-child { border-bottom: none; }
.delphi-step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}
.delphi-step-title { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.delphi-step-text  { font-size: .88rem; color: #4a5568; margin: 0; line-height: 1.6; }
.text-accent { color: var(--accent) !important; }

/* CTA card */
.delphi-cta-card {
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.75rem;
    background: #f0f7ff;
    max-width: 520px;
}
.delphi-cta-check {
    width: 2.4rem;
    height: 2.4rem;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Thesis title block */
.delphi-thesis-block {
    border-left: 4px solid var(--accent);
    background: #f0f7ff;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
}
.delphi-thesis-label { font-size: .75rem; font-weight: 700; text-transform: uppercase;
                       letter-spacing: .07em; color: var(--accent); margin-bottom: .4rem; }
.delphi-thesis-title { font-size: .97rem; font-weight: 600; color: var(--navy);
                       font-style: italic; margin-bottom: .3rem; }
.delphi-thesis-super { font-size: .82rem; color: var(--text-muted-custom); }

/* BPM Lifecycle strip */
/* BPM Lifecycle (shared component) */
.bpm-cycle-wrap {
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.1rem 1rem .85rem;
    margin: 1rem 0;
}
.bpm-cycle {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .45rem;
    align-items: start;
}
@media (max-width: 767px) {
    .bpm-cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 459.98px) {
    .bpm-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bpm-cycle-phase {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: .65rem .35rem .55rem;
    text-align: center;
    background: #fff;
    font-size: .76rem;
}
.bpm-cycle-phase-focus {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    box-shadow: 0 5px 16px rgba(28,42,74,.25);
    position: relative;
    top: -5px;
}
.bpm-cycle-phase-related {
    background: #eef3fb;
    border-color: #4a7fc1;
}
.bpm-cycle-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    margin-bottom: .35rem;
}
.bpm-cycle-phase-focus   .bpm-cycle-num { background: rgba(255,255,255,.2); color: #fff; }
.bpm-cycle-phase-related .bpm-cycle-num { background: #c5d8f5; color: #1c4e8a; }
.bpm-cycle-name { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.bpm-cycle-badge {
    display: inline-block;
    font-size: .59rem;
    padding: .1rem .32rem;
    border-radius: 3px;
    margin-top: .3rem;
    white-space: nowrap;
    font-weight: 600;
}
.bpm-cycle-phase-focus   .bpm-cycle-badge { background: rgba(255,255,255,.22); color: #fff; }
.bpm-cycle-phase-related .bpm-cycle-badge { background: #3a6aa6; color: #fff; }
.bpm-cycle-caption { font-size: .76rem; color: var(--text-muted-custom); margin: .7rem 0 0; }

/* Simple image frame for delphi.php (no overflow clip) */
.delphi-img-frame {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

/* AI-Augmented BPM Framework */
.abpm-framework {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    font-size: .78rem;
}
.abpm-title {
    background: var(--navy);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: .6rem 1rem;
    margin: 0;
    font-size: .82rem;
}
.abpm-grid {
    display: grid;
    grid-template-columns: 130px repeat(6, 1fr);
    border-bottom: 1px solid var(--border-light);
}
.abpm-grid:last-of-type { border-bottom: none; }
.abpm-phase-hdr {
    background: #e8ecf0;
    font-weight: 600;
    text-align: center;
    padding: .45rem .3rem;
    border-left: 1px solid var(--border-light);
    font-size: .74rem;
    line-height: 1.3;
    color: var(--navy);
}
.abpm-focus-hdr {
    background: var(--navy);
    color: #fff;
    position: relative;
}
.abpm-focus-badge {
    display: block;
    background: #f59e0b;
    color: #fff;
    font-size: .65rem;
    border-radius: 4px;
    padding: 1px 5px;
    margin: 2px auto 0;
    width: fit-content;
}
.abpm-row-hdr {
    padding: .5rem .6rem;
    line-height: 1.35;
    color: var(--navy);
    border-right: 1px solid var(--border-light);
}
.abpm-row-hdr small { color: var(--text-muted-custom); }
.abpm-cell {
    padding: .45rem .4rem;
    border-left: 1px solid rgba(0,0,0,.07);
    text-align: center;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: center;
}
.abpm-cell-empty { background: #f8f9fa; }
.abpm-cell-pre     { background: #fefce8; color: #713f12; font-weight: 500; border-radius: 6px; margin: 4px; }
.abpm-cell-inproc  { background: #dcfce7; color: #14532d; font-weight: 500; border-radius: 6px; margin: 4px; }
.abpm-cell-runtime { background: #f3e8ff; color: #581c87; font-weight: 500; border-radius: 6px; margin: 4px; }
.abpm-focus-cell   { outline: 2px solid var(--navy); outline-offset: -3px; font-weight: 700 !important; }
.abpm-row-pre     { background: #fffef0; }
.abpm-row-inproc  { background: #f0fdf4; }
.abpm-row-runtime { background: #faf5ff; }
.abpm-caption {
    font-size: .74rem;
    color: var(--text-muted-custom);
    text-align: center;
    padding: .5rem 1rem;
    margin: 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
}

/* Proposal section (Round 1 class proposals) */
.proposal-section {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    background: var(--section-bg);
}
.proposal-block {
    background: #fff;
    position: relative;
}

/* =====================================================
   ADMIN PAGES
   ===================================================== */
.admin-sidebar {
    min-height: calc(100vh - 60px);
    background: var(--section-bg);
    border-right: 1px solid var(--border-light);
    padding: 1.5rem 1rem;
}
.admin-sidebar .nav-link { color: #2d3748; border-radius: 8px; padding: .5rem 1rem; }
.admin-sidebar .nav-link:hover { background: #e2e8f0; }
.admin-sidebar .nav-link.active { background: var(--accent); color: #fff; }

.stat-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    text-align: center;
}
.stat-card .stat-number { font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.stat-card .stat-label  { font-size: .85rem; color: var(--text-muted-custom); margin-top: .2rem; }

.badge-retain { background: #d1fae5; color: #065f46; }
.badge-adapt  { background: #fef3c7; color: #78350f; }
.badge-drop   { background: #fee2e2; color: #7f1d1d; }
.badge-na     { background: #f1f5f9; color: #475569; }

/* Rating: Keine Angabe (no response) */
.rating-group input[value=na]:checked + .rating-label {
    background: #f1f5f9; border-color: #94a3b8; color: #475569;
}

/* Category badges on class cards */
.item-cat-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 999px;
    letter-spacing: .03em;
    white-space: nowrap;
}
.item-cat-falk  { background: var(--navy);  color: #fff; }
.item-cat-neu   { background: #1C7293;      color: #fff; }
.item-cat-disp  { background: #64748b;      color: #fff; }
.item-cat-r1neu { background: #b45309;      color: #fff; }

/* Per-class note, e.g. for classes newly proposed by the panel */
.item-note {
    font-size: .86rem;
    line-height: 1.55;
    color: #78350f;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: .6rem .8rem;
}

/* Attribute rounds: class strip, one chip per class */
.class-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.class-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .4rem;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
button.class-chip   { cursor: pointer; font-family: inherit; line-height: 1; }
.class-chip:hover    { border-color: var(--navy); color: var(--navy); }
.class-chip.done     { background: #dcfce7; border-color: #86efac; color: #15803d; }
.class-chip.current  { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Attribute rounds: the panel holding one class */
.class-panel {
    background: #fff;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    padding: 1.5rem;
}
@media (max-width: 576px) {
    .class-panel { padding: 1rem; }
}
.class-panel .item-card {
    border-color: var(--border-light, #e2e8f0);
}

/* Admin: edit and delete controls stay hidden until the lock is opened */
.admin-actions { display: none; }
body.editing-unlocked .admin-actions { display: revert; }
body.editing-unlocked td.admin-actions { display: table-cell; }
body.editing-unlocked th.admin-actions { display: table-cell; }

/* Highlight for the class the participant is sent back to */
.item-card.has-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.item-card-error {
    display: flex;
    align-items: flex-start;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: .55rem .8rem;
    margin-bottom: .85rem;
    font-size: .87rem;
    line-height: 1.5;
}

/* Legend below the model diagram */
.model-legend {
    margin-top: .85rem;
    padding: .75rem .9rem;
    background: #f1f5f9;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 8px;
    font-size: .78rem;
    line-height: 1.6;
    color: #475569;
    overflow-wrap: break-word;
}
.model-legend-title {
    display: block;
    font-weight: 700;
    color: #334155;
    margin-bottom: .2rem;
}

/* Optional naming question below a class */
.naming-block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light, #dee2e6);
}
.naming-heading {
    font-size: .875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .5rem;
}
.naming-options .form-check { margin-bottom: .25rem; }
.naming-options .form-check-label { font-size: .9rem; }
.naming-other-input { max-width: 22rem; }

/* Definition / Distinction / Example blocks */
.item-field-block { font-size: .91rem; line-height: 1.6; }
.item-field-label {
    font-weight: 700;
    color: #1e293b;
    margin-right: .25rem;
}
.item-field-value { color: #374151; }
.item-field-example { background: #f8fafc; border-radius: 6px; padding: .35rem .6rem; }
.item-field-label-ex { color: #1C7293; }
.item-field-value-ex { font-style: italic; color: #334155; }

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-card {
    max-width: 420px;
    margin: 3rem auto;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.auth-card h1 { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 4px; }

/* Utility */
.btn-navy {
    background: var(--navy); color: #fff; border: none;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--navy-light); --bs-btn-hover-border-color: var(--navy-light);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--navy-light); --bs-btn-focus-shadow-rgb: 26, 46, 74;
}
.btn-navy:hover { background: var(--navy-light); color: #fff; }

/* ── Expertise scale 1–5 ─────────────────────────────────────────────────── */
.expertise-block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light, #dee2e6);
}
.expertise-heading {
    font-size: .875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .25rem;
}
.expertise-desc {
    font-size: .8rem;
    color: #64748b;
    margin-bottom: .75rem;
    line-height: 1.4;
}
.expertise-scale {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.expertise-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    font-size: .9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s, transform .1s;
    user-select: none;
}
.expertise-pill:hover {
    border-color: var(--accent, #2e7dd1);
    background: #eff6ff;
    color: var(--accent, #2e7dd1);
    transform: scale(1.08);
}
input[type=radio]:checked + .expertise-pill {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    transform: scale(1.08);
}
.scale-anchor {
    font-size: .75rem;
    color: #64748b;
    white-space: nowrap;
}
.scale-anchor-lo { margin-right: .1rem; }
.scale-anchor-hi { margin-left: .1rem; }

/* Closing page of an attribute round: demographic fields */
.profile-field { margin-bottom: 1.1rem; max-width: 30rem; }
.profile-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .3rem;
}
.profile-field.has-error { padding: .5rem; border-radius: 8px; }

/* ── Rechnungen im Admin-Bereich ─────────────────────────────── */
.invoice-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.invoice-card > h2 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin: 0 0 .9rem; }
.invoice-card summary { cursor: pointer; }
.invoice-item { border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; padding: .85rem; margin-bottom: .75rem; }
.invoice-sticky { position: sticky; top: 5.5rem; }
@media (max-width: 1399.98px) { .invoice-sticky { position: static; } }
.invoice-totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.invoice-totals dt { font-weight: 400; color: #64748b; }
.invoice-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.invoice-totals-grand { border-top: 1px solid #cbd5e1; margin-top: .35rem; padding-top: .55rem !important; font-size: 1.15rem; }
.invoice-totals-grand dt { color: #1a2e4a; font-weight: 600; }
.invoice-totals-grand dd { font-weight: 700; }
.invoice-preview iframe { display: block; width: 100%; height: 80vh; min-height: 32rem; border: 0; }
#invoice-form button[aria-disabled="true"] { opacity: .65; pointer-events: none; }


/* Muted text inside the light call-to-action card of /delphi: 6.09:1 instead of 4.34:1 */
.delphi-cta-card .text-muted { color: #5c636a !important; }
