/* =====================================================
   hildebrand.info — Custom Styles
   Designsystem angelehnt an titus-hildebrand.de
   ===================================================== */

:root {
    --navy:        #1a2e4a;
    --navy-light:  #243d61;
    --accent:      #2e7dd1;
    --accent-hover:#1e5fa8;
    --text:        #2d3748;
    --text-muted-custom: #6c757d;
    --border-light:#e8ecf0;
    --section-bg:  #f8fafc;
}

/* ---- Global ---- */
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #fff;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

section { scroll-margin-top: 70px; }

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

/* ---- i18n visibility (default DE before JS runs) ---- */
[data-lang="en"] { display: none; }
html.lang-en [data-lang="en"] { display: revert; }
html.lang-en [data-lang="de"] { display: none; }

/* ---- Navbar ---- */
.bg-navy { background-color: var(--navy) !important; }
.navbar-brand { font-weight: 700; letter-spacing: .01em; }
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.82);
    font-weight: 500;
    font-size: .95rem;
    padding-left: .9rem;
    padding-right: .9rem;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active { color: #fff; }

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 4rem 0;
}
.hero-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.3);
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.hero-name { font-size: 2.3rem; font-weight: 700; margin-bottom: .4rem; }
.hero-subtitle { font-size: 1.1rem; opacity: .88; font-weight: 500; }
.hero-tags { margin-top: 1.2rem; }
.hero-tag {
    display: inline-block;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    border-radius: 50rem;
    padding: .3rem .85rem;
    margin: .2rem .25rem 0 0;
}

/* ---- Page header (sub pages) ---- */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 2.75rem 0;
}
.page-header h1 { font-size: 1.9rem; font-weight: 700; margin: 0; }
.page-header .lead { opacity: .85; margin: .5rem 0 0; font-size: 1.02rem; }
.page-header a { color: rgba(255,255,255,.85); }
.page-header a:hover { color: #fff; }

/* ---- Sections ---- */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--section-bg); }
.section-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: 1.4rem;
}
.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

/* ---- Lead / bio text ---- */
.bio-text { font-size: 1rem; line-height: 1.75; color: #3a4658; }
.bio-text p { margin-bottom: 1rem; }

/* ---- Service / info cards ---- */
.feature-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.feature-icon {
    width: 2.6rem;
    height: 2.6rem;
    background: #eef4fd;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: .9rem;
}
.feature-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.feature-text { font-size: .9rem; color: #4a5568; margin: 0; line-height: 1.6; }

/* ---- Navigation cards (homepage "Weitere Informationen") ---- */
.nav-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    background: #fff;
    height: 100%;
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.nav-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--navy);
    text-decoration: none;
}
.nav-card-icon {
    flex-shrink: 0;
    width: 2.8rem;
    height: 2.8rem;
    background: var(--navy);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.nav-card-title { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.nav-card-sub { font-size: .82rem; color: var(--text-muted-custom); margin-top: .1rem; }
.nav-card-arrow { margin-left: auto; color: var(--accent); font-size: 1.1rem; }

/* ---- Contact strip ---- */
.contact-item { display: flex; align-items: center; gap: .65rem; font-size: .98rem; }
.contact-item i { color: var(--accent); font-size: 1.15rem; }

/* ---- Books grid ---- */
.book-card {
    display: flex;
    gap: 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    background: #fff;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.book-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.book-cover {
    flex-shrink: 0;
    width: 96px;
    height: auto;
    align-self: flex-start;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.book-meta { display: flex; flex-direction: column; }
.book-title { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: .35rem; }
.book-authors { font-size: .85rem; color: #4a5568; margin-bottom: .35rem; }
.book-pub { font-size: .82rem; color: var(--text-muted-custom); line-height: 1.5; }
.book-isbn { font-size: .76rem; color: #94a0b0; margin-top: .3rem; }
.book-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: #eef4fd;
    color: var(--accent);
    border-radius: 50rem;
    padding: .15rem .6rem;
    margin-bottom: .5rem;
}

/* ---- Publication list ---- */
.pub-group-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 .35rem;
}
.pub-list { list-style: none; padding: 0; margin: 0; counter-reset: pub; }
.pub-list li {
    position: relative;
    padding: .7rem 0 .7rem 2.6rem;
    border-bottom: 1px solid var(--border-light);
    font-size: .92rem;
    line-height: 1.55;
    color: #3a4658;
}
.pub-list li:last-child { border-bottom: none; }
.pub-list li::before {
    counter-increment: pub;
    content: counter(pub);
    position: absolute;
    left: 0;
    top: .65rem;
    width: 1.9rem;
    height: 1.9rem;
    background: var(--section-bg);
    border: 1px solid var(--border-light);
    color: var(--text-muted-custom);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
}
.pub-list .pub-title { font-weight: 600; color: var(--navy); }
.pub-list .pub-src { color: var(--text-muted-custom); }

/* ---- Project / training lists ---- */
.proj-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem 1.6rem;
    background: #fff;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.proj-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.proj-card h3 i { color: var(--accent); }
.proj-list { list-style: none; padding: 0; margin: 0; }
.proj-list li {
    position: relative;
    padding: .5rem 0 .5rem 1.5rem;
    font-size: .92rem;
    line-height: 1.55;
    color: #3a4658;
    border-bottom: 1px solid #f1f4f8;
}
.proj-list li:last-child { border-bottom: none; }
.proj-list li::before {
    content: "\F287";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: .5rem;
    color: var(--accent);
    font-size: .85rem;
}
.tag-pill {
    display: inline-block;
    font-size: .84rem;
    font-weight: 500;
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--navy);
    border-radius: 50rem;
    padding: .4rem .95rem;
    margin: 0 .35rem .55rem 0;
    transition: border-color .15s, color .15s;
}
.tag-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Commandments ---- */
.cmd-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    background: #fff;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.cmd-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.cmd-num {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}
.cmd-card.cmd-bonus .cmd-num { background: var(--accent); }
.cmd-text { font-size: 1.02rem; font-weight: 600; color: var(--navy); align-self: center; line-height: 1.4; }

/* ---- Quote / source note ---- */
.source-note {
    border-left: 4px solid var(--accent);
    background: #f0f7ff;
    border-radius: 0 10px 10px 0;
    padding: .9rem 1.2rem;
    font-size: .88rem;
    color: #4a5568;
}

/* ---- Prose (Impressum / Datenschutz) ---- */
.prose { font-size: .96rem; line-height: 1.75; color: #3a4658; }
.prose h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 2rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; }
.prose a { word-break: break-word; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.62); padding: 2.5rem 0 1.75rem; }
.site-footer h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: .9rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .45rem; font-size: .92rem; }
.site-footer .footer-contact { font-size: .92rem; line-height: 1.7; }
.site-footer hr { border-color: rgba(255,255,255,.15); margin: 1.75rem 0 1.1rem; }
.site-footer small { color: rgba(255,255,255,.5); }

/* ---- Buttons ---- */
.btn-navy { background: var(--navy); color: #fff; border: none; font-weight: 600; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); font-weight: 600; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 575.98px) {
    .hero { padding: 2.75rem 0; text-align: center; }
    .hero-name { font-size: 1.8rem; }
    .hero-photo { width: 150px; height: 150px; }
    .book-card { flex-direction: column; align-items: center; text-align: center; }
    .book-cover { width: 120px; }
    .book-meta { align-items: center; }
}
