/* ============================================================
   Baumann Beratung – Custom Styles
   ============================================================ */

/* ---------- Inter Font (lokal) ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter/Inter-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter/Inter-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter/Inter-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter/Inter-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/inter/Inter-ExtraBold.ttf') format('truetype');
}

/* ---------- CSS Custom Properties (überschreibbar via config) ---------- */
:root {
    --bs-primary: var(--color-primary, #02426b);
    --bs-secondary: var(--color-secondary, #1a6fa0);
    --color-accent: var(--color-accent-val, #e8a54b);
    --color-light: var(--color-light-val, #f4f7fa);
    --color-dark: var(--color-dark-val, #1a1a2e);
    --color-text: var(--color-text-val, #333333);
}

/* ---------- Global ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--bs-primary);
}

section {
    padding: 5rem 0;
}

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

/* ---------- Navbar ---------- */
.navbar {
    transition: background-color .3s ease, box-shadow .3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--bs-primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--bs-primary) !important;
    transition: color .2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width .3s ease, left .3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 66, 107, .82) 0%, rgba(26, 111, 160, .65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.hero .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, .9);
}

/* ---------- Buttons ---------- */
.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    padding: .75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 165, 75, .4);
    color: #fff;
}

.btn-outline-light {
    border-radius: 50px;
    padding: .75rem 2rem;
    font-weight: 600;
}

/* ---------- Intro Section ---------- */
.intro-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    border-left: 4px solid var(--color-accent);
    padding-left: 1.25rem;
    margin: 2rem 0;
}

/* ---------- Service Cards ---------- */
.service-card {
    border: none;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    background: #fff;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(2, 66, 107, .12);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ---------- About / Profile ---------- */
.profile-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--color-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.qualification-list {
    list-style: none;
    padding: 0;
}

.qualification-list li {
    padding: .5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.qualification-list li::before {
    content: '\f26a';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-info-item i {
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-top: .2rem;
}

.form-control:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 .2rem rgba(26, 111, 160, .2);
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, .7);
    padding: 3rem 0 1.5rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .2s;
}

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

.footer-divider {
    border-color: rgba(255, 255, 255, .15);
    margin: 1.5rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    section {
        padding: 3.5rem 0;
    }

    .profile-img {
        width: 200px;
        height: 200px;
        margin-bottom: 2rem;
    }

    .hero {
        min-height: 90vh;
    }
}

/* ---------- Animations (intersection observer) ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
