/* ─── Inter Font (lokal, DSGVO-konform) ───────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/inter/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/inter/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/inter/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/inter/inter-latin-800-normal.woff2') format('woff2');
}

:root {
    --gp-primary:     #2C3E6B;
    --gp-primary-dk:  #1e2d50;
    --gp-gold:        #E8B84B;
    --gp-gold-dk:     #d4a235;
    --gp-bg:          #F4F6FB;
    --gp-text:        #1a1a2e;
    --gp-muted:       #6c757d;
    --gp-border:      #dee2e6;
    --gp-white:       #ffffff;
    --gp-success:     #28a745;
    --gp-danger:      #dc3545;
    --gp-radius:      10px;
    --gp-shadow:      0 2px 16px rgba(44,62,107,.09);
    --gp-shadow-lg:   0 8px 32px rgba(44,62,107,.14);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--gp-bg); color: var(--gp-text); font-size: 15px; }
a { color: var(--gp-primary); text-decoration: none; }
a:hover { color: var(--gp-gold); }

/* ─── Navbar ─────────────────────────────────────────── */
.gp-navbar {
    background: linear-gradient(90deg, #1e2d50 0%, var(--gp-primary) 100%);
    padding: 0;
    min-height: 68px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.gp-navbar .navbar-brand {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.4px;
    padding: .5rem 0;
}
.gp-nav-link {
    color: rgba(255,255,255,.82) !important;
    font-size: .875rem;
    font-weight: 500;
    padding: .5rem .85rem !important;
    border-radius: 7px;
    transition: background .18s, color .18s;
    display: inline-flex;
    align-items: center;
}
.gp-nav-link:hover,
.gp-nav-link.active {
    background: rgba(255,255,255,.13);
    color: #fff !important;
}

/* Kategori mega-dropdown */
.gp-nav-dropdown {
    background: #fff;
    border-radius: 12px !important;
    animation: dropIn .15s ease;
}
@keyframes dropIn {
    from { opacity:0; transform:translateY(-6px); }
    to   { opacity:1; transform:translateY(0); }
}
.gp-dropdown-item {
    border-radius: 6px;
    font-size: .8rem;
    color: #444 !important;
    padding: .1rem .4rem !important;
    transition: background .12s;
    white-space: normal;
}
.gp-dropdown-item:hover {
    background: rgba(44,62,107,.07) !important;
    color: var(--gp-primary) !important;
}
@media (max-width: 991.98px) {
    .gp-nav-dropdown {
        min-width: 100% !important;
    }
    .gp-nav-dropdown .col-md-4 {
        width: 100% !important;
    }
}

/* Schnellanfrage CTA button */
.gp-btn-schnell {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: linear-gradient(135deg, #f0c040 0%, var(--gp-gold) 60%, #d4a235 100%);
    color: #1a2540 !important;
    font-weight: 800;
    font-size: .84rem;
    letter-spacing: .01em;
    padding: .5rem 1.25rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(232,184,75,.5), inset 0 1px 0 rgba(255,255,255,.25);
    transition: box-shadow .18s, transform .12s;
    white-space: nowrap;
    text-decoration: none;
}
.gp-btn-schnell:hover {
    box-shadow: 0 4px 18px rgba(232,184,75,.65), inset 0 1px 0 rgba(255,255,255,.25);
    transform: translateY(-1px);
    color: #1a2540 !important;
}
.gp-btn-schnell .bi-lightning-fill { color: #1a2540; font-size: .9rem; }

/* Register button */
.gp-btn-register {
    display: inline-flex;
    align-items: center;
    font-size: .83rem;
    font-weight: 600;
    color: #fff !important;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.55);
    border-radius: 7px;
    padding: .38rem .9rem;
    transition: background .18s, border-color .18s, color .18s;
    white-space: nowrap;
    text-decoration: none;
}
.gp-btn-register:hover {
    background: var(--gp-gold);
    border-color: var(--gp-gold);
    color: var(--gp-primary) !important;
}

/* Nav divider */
.gp-nav-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.18);
    margin: 0 .25rem;
}


/* Navbar eski .btn-gold uyumu */
.gp-navbar .btn-gold { background: var(--gp-gold); color: var(--gp-primary) !important; font-weight: 600; padding: .4rem 1.1rem !important; border-radius: 6px; }
.gp-navbar .btn-gold:hover { background: var(--gp-gold-dk); }

/* Hero */
.gp-hero {
    background: linear-gradient(135deg, var(--gp-primary) 0%, #1a2d5a 100%);
    padding: 80px 0 60px;
    color: #fff;
}
.gp-hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.2; }
.gp-hero h1 span { color: var(--gp-gold); }
.gp-hero p { font-size: 1.1rem; opacity: .85; max-width: 540px; }

/* Search Box */
.gp-search-box {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--gp-shadow-lg);
}
.gp-search-box .form-control, .gp-search-box .form-select {
    border: 1.5px solid var(--gp-border);
    border-radius: 8px;
    padding: .65rem 1rem;
    font-size: .95rem;
}
.gp-search-box .form-control:focus, .gp-search-box .form-select:focus {
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 3px rgba(44,62,107,.12);
}
.btn-primary-gp {
    background: var(--gp-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .65rem 1.6rem;
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s, transform .1s;
}
.btn-primary-gp:hover { background: var(--gp-primary-dk); color: #fff; transform: translateY(-1px); }
.btn-gold-gp {
    background: var(--gp-gold);
    color: var(--gp-primary);
    border: none;
    border-radius: 8px;
    padding: .65rem 1.6rem;
    font-weight: 700;
    transition: background .2s;
}
.btn-gold-gp:hover { background: var(--gp-gold-dk); color: var(--gp-primary); }

/* Cards */
.gp-card {
    background: #fff;
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow);
    border: 1px solid rgba(44,62,107,.07);
    transition: box-shadow .2s, transform .2s;
    overflow: hidden;
}
.gp-card:hover { box-shadow: var(--gp-shadow-lg); transform: translateY(-2px); }

/* Category Grid */
.gp-category-card {
    background: #fff;
    border-radius: var(--gp-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--gp-shadow);
    border: 2px solid transparent;
    transition: all .2s;
    cursor: pointer;
    display: block;
    color: var(--gp-text);
}
.gp-category-card:hover, .gp-category-card.active {
    border-color: var(--gp-primary);
    color: var(--gp-primary);
    box-shadow: var(--gp-shadow-lg);
    transform: translateY(-2px);
}
.gp-category-card .icon { font-size: 2rem; margin-bottom: .6rem; color: var(--gp-primary); }
.gp-category-card .name { font-weight: 600; font-size: .9rem; }

/* Gutachter Card */
.gutachter-card { border-radius: var(--gp-radius); background: #fff; box-shadow: var(--gp-shadow); border: 1px solid rgba(44,62,107,.07); overflow: hidden; transition: all .2s; }
.gutachter-card:hover { box-shadow: var(--gp-shadow-lg); transform: translateY(-2px); }
.gutachter-card .card-img-top { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gp-gold); }
.gutachter-card .badge-verified { background: var(--gp-success); color: #fff; font-size: .72rem; padding: .2rem .5rem; border-radius: 20px; }
.gutachter-card .badge-featured { background: var(--gp-gold); color: var(--gp-primary); font-size: .72rem; padding: .2rem .5rem; border-radius: 20px; font-weight: 700; }

/* Stars */
.stars { color: var(--gp-gold); }
.star-empty { color: #dee2e6; }

/* Section headings */
.gp-section-title { font-size: 1.7rem; font-weight: 800; color: var(--gp-primary); }
.gp-section-title span { color: var(--gp-gold); }
.gp-section-sub { color: var(--gp-muted); font-size: 1rem; }

/* Stats strip */
.gp-stats { background: var(--gp-primary); color: #fff; padding: 2rem 0; }
.gp-stats .stat-num { font-size: 2.2rem; font-weight: 800; color: var(--gp-gold); }
.gp-stats .stat-label { font-size: .85rem; opacity: .8; }

/* Footer */
.gp-footer { background: #141e38; color: rgba(255,255,255,.7); padding: 3rem 0 1.5rem; }
.gp-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.gp-footer a { color: rgba(255,255,255,.6); font-size: .9rem; }
.gp-footer a:hover { color: var(--gp-gold); }
.gp-footer hr { border-color: rgba(255,255,255,.1); }
.gp-footer .footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; }
.gp-footer .footer-brand > span > span { color: var(--gp-gold); }

/* Dashboard Sidebar */
.gp-sidebar {
    width: 260px;
    height: 100vh;
    background: var(--gp-primary);
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0,0,0,.15);
}
.gp-sidebar .sidebar-brand {
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}
.gp-sidebar .sidebar-brand span { color: var(--gp-gold); }
.gp-sidebar .sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.gp-sidebar .nav-item { margin: .1rem .75rem; }
.gp-sidebar .nav-link {
    color: rgba(255,255,255,.75) !important;
    padding: .65rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    transition: background .15s, color .15s;
}
.gp-sidebar .nav-link:hover, .gp-sidebar .nav-link.active {
    background: rgba(255,255,255,.14);
    color: #fff !important;
}
.gp-sidebar .nav-link.active { background: rgba(232,184,75,.2); color: var(--gp-gold) !important; font-weight: 600; }
.gp-sidebar .nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); padding: 1rem 1.75rem .3rem; }
.gp-sidebar .sidebar-footer { padding: 1rem 1.4rem; border-top: 1px solid rgba(255,255,255,.1); }
.gp-nav-badge { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:#e8253a; color:#fff; font-size:.68rem; font-weight:700; line-height:1; margin-left:auto; flex-shrink:0; }

/* Dashboard Main */
.gp-main { margin-left: 260px; min-height: 100vh; background: var(--gp-bg); }
.gp-topbar { background: #fff; border-bottom: 1px solid var(--gp-border); padding: .9rem 1.8rem; display: flex; align-items: center; justify-content: space-between; }
.gp-content { padding: 1.8rem; }

/* Dashboard Cards */
.stat-card { background: #fff; border-radius: var(--gp-radius); padding: 1.4rem 1.6rem; box-shadow: var(--gp-shadow); border-left: 4px solid var(--gp-primary); }
.stat-card.gold { border-left-color: var(--gp-gold); }
.stat-card.green { border-left-color: var(--gp-success); }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(44,62,107,.08); display: flex; align-items: center; justify-content: center; color: var(--gp-primary); font-size: 1.3rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--gp-primary); }
.stat-card .stat-title { font-size: .8rem; color: var(--gp-muted); text-transform: uppercase; letter-spacing: .05em; }

/* Lead / Auftrag cards */
.lead-card { background: #fff; border-radius: var(--gp-radius); padding: 1.2rem 1.4rem; box-shadow: var(--gp-shadow); border: 1px solid rgba(44,62,107,.07); margin-bottom: .8rem; transition: box-shadow .2s; }
.lead-card:hover { box-shadow: var(--gp-shadow-lg); }
.lead-card .badge-category { background: rgba(44,62,107,.08); color: var(--gp-primary); font-size: .78rem; padding: .25rem .65rem; border-radius: 20px; font-weight: 600; }
.lead-card .masked-info { filter: blur(4px); user-select: none; }

/* Package badge */
.pkg-free     { background: #e9ecef; color: #495057; }
.pkg-starter  { background: #cfe2ff; color: #084298; }
.pkg-pro      { background: #d1e7dd; color: #0a3622; }
.pkg-business { background: var(--gp-gold); color: var(--gp-primary); }

/* Forms */
.gp-form-card { background: #fff; border-radius: var(--gp-radius); padding: 2rem; box-shadow: var(--gp-shadow); }
.gp-form-card .form-label { font-weight: 600; font-size: .88rem; color: var(--gp-text); margin-bottom: .35rem; }
.gp-form-card .form-control, .gp-form-card .form-select {
    border: 1.5px solid var(--gp-border);
    border-radius: 8px;
    padding: .6rem .9rem;
    font-size: .93rem;
}
.gp-form-card .form-control:focus, .gp-form-card .form-select:focus {
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 3px rgba(44,62,107,.1);
}

/* Alerts */
.alert-gp-info { background: rgba(44,62,107,.07); border: 1px solid rgba(44,62,107,.15); color: var(--gp-primary); border-radius: 8px; }

[x-cloak] { display: none !important; }

.gp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

/* Quill rendered content */
.leistung-content ul, .leistung-content ol { padding-left: 1.4rem; margin-bottom: .5rem; }
.leistung-content li { margin-bottom: .25rem; }
.leistung-content a { color: var(--gp-primary); }
.leistung-content strong { font-weight: 700; }

/* Scrollbar — her zaman görünür */
::-webkit-scrollbar               { width: 6px; height: 6px; }
::-webkit-scrollbar-track         { background: #f1f3f7; border-radius: 4px; }
::-webkit-scrollbar-thumb         { background: rgba(44,62,107,.28); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover   { background: var(--gp-primary); }
* { scrollbar-width: thin; scrollbar-color: rgba(44,62,107,.28) #f1f3f7; }

/* Modal scrollbar */
.modal-body { overflow-y: auto !important; }

/* Responsive */
@media (max-width: 991px) {
    .gp-sidebar { transform: translateX(-100%); transition: transform .25s; }
    .gp-sidebar.open { transform: translateX(0); }
    .gp-main { margin-left: 0; }
    .gp-hero h1 { font-size: 1.9rem; }
}
