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

:root {
    --navy:       #1a2e4a;
    --navy-light: #243d61;
    --accent:     #2e7dd1;
    --accent-hover: #1e5fa8;
    --text-muted-custom: #6c757d;
    --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 {
    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; 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] { display: none; }
.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-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; }

.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, 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; }
.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: #4a7fc1; 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; }

/* =====================================================
   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; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }
