/* =============================================
   VPN-Kostenlos.com – Custom Styles
   Bootstrap 5.3 Override & Extensions
   ============================================= */

:root {
    --vpn-green:   #198754;
    --vpn-dark:    #0d1117;
    --vpn-blue:    #0d6efd;
    --vpn-gold:    #ffc107;
    --card-shadow: 0 2px 16px rgba(0,0,0,.08);
    --transition:  .25s ease;
}

/* ---- Base ---- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #212529;
    scroll-behavior: smooth;
}

a { color: var(--vpn-blue); }
a:hover { color: #0a58ca; }

/* ---- Affiliate Notice ---- */
.affiliate-notice {
    font-size: .8rem;
    letter-spacing: .01em;
    border-bottom: 1px solid rgba(0,0,0,.1);
}

/* ---- Hero ---- */
.hero-section {
    background: linear-gradient(135deg, #0d1117 0%, #1a2a4a 60%, #0d3b5e 100%);
    min-height: 72vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/img/hero-pattern.svg') center/cover no-repeat;
    opacity: .08;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(25,135,84,.2);
    border: 1px solid rgba(25,135,84,.4);
    color: #4ade80;
    padding: .3rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    letter-spacing: .05em;
    margin-bottom: 1.25rem;
}

/* ---- VPN Provider Cards ---- */
.vpn-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.vpn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.vpn-card.featured {
    border-color: var(--vpn-green);
    border-width: 2px;
    position: relative;
}

.vpn-card .badge-featured {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--vpn-green);
    color: #fff;
    font-size: .72rem;
    padding: .3rem .8rem;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.vpn-logo {
    max-height: 48px;
    object-fit: contain;
}

.rating-score {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--vpn-green);
}

/* ---- Comparison Table ---- */
.comparison-table {
    font-size: .92rem;
}

.comparison-table thead th {
    background: #212529;
    color: #fff;
    padding: 1rem .75rem;
    white-space: nowrap;
    border: none;
}

.comparison-table tbody tr:hover {
    background-color: rgba(25,135,84,.05);
}

.comparison-table td {
    vertical-align: middle;
    padding: .85rem .75rem;
}

.check-yes { color: var(--vpn-green); font-size: 1.1rem; }
.check-no  { color: #dc3545;          font-size: 1.1rem; }

/* ---- Blog Cards ---- */
.blog-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
}

.blog-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #0d1117;
    display: block;
}

.blog-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a2a4a, #0d3b5e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.4);
    font-size: 3rem;
}

.blog-meta {
    font-size: .8rem;
    color: #6c757d;
}

.category-badge {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .25rem .6rem;
    border-radius: 4px;
}

/* ---- Pros / Cons ---- */
.pros-cons-list li {
    padding: .35rem 0;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.pros-cons-list .icon-pro  { color: var(--vpn-green); flex-shrink: 0; margin-top: .1rem; }
.pros-cons-list .icon-con  { color: #dc3545;          flex-shrink: 0; margin-top: .1rem; }

/* ---- Rating Stars ---- */
.stars { letter-spacing: .1em; }

/* ---- Affiliate CTA Buttons ---- */
.btn-affiliate {
    background: var(--vpn-green);
    border: none;
    color: #fff;
    padding: .65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
}

.btn-affiliate:hover {
    background: #146c43;
    color: #fff;
    transform: translateY(-1px);
}

.btn-affiliate-outline {
    border: 2px solid var(--vpn-green);
    color: var(--vpn-green);
    background: transparent;
    padding: .6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
}

.btn-affiliate-outline:hover {
    background: var(--vpn-green);
    color: #fff;
}

/* ---- Section Headers ---- */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header .section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--vpn-green);
    margin-bottom: .5rem;
}

/* ---- Feature Icons ---- */
.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ---- Stats ---- */
.stat-box {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vpn-green);
    line-height: 1;
    display: block;
}

/* ---- FAQ Accordion ---- */
.faq-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(25,135,84,.08);
    color: #155724;
    box-shadow: none;
}

.faq-accordion .accordion-button:focus { box-shadow: none; }

/* ---- Breadcrumb ---- */
.breadcrumb-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-item + .breadcrumb-item::before { color: #adb5bd; }

/* ---- Sticky CTA Box ---- */
.sticky-cta {
    position: sticky;
    top: 80px;
}

/* ---- Free Badge ---- */
.free-badge {
    background: linear-gradient(135deg, #198754, #0f5132);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .2rem .6rem;
    border-radius: 4px;
}

/* ---- Table striped hover ---- */
.table-hover tbody tr:hover td { background-color: rgba(25,135,84,.04); }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.animate-up {
    animation: fadeInUp .5s ease forwards;
}

/* ---- Dark Section ---- */
.bg-vpn-dark {
    background: var(--vpn-dark);
}

/* ---- Footer Links ---- */
.footer-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* =============================================
   RESPONSIVE – Mobile First
   ============================================= */

/* Vergleichstabellen auf Mobilgeräten scrollbar machen */
.table-responsive-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Kleine Tablets & große Handys (≤768px) */
@media (max-width: 767.98px) {

    /* Hero */
    .hero-section {
        min-height: auto;
        padding: 3rem 0 2.5rem;
    }
    .hero-section h1 { font-size: 1.75rem; line-height: 1.25; }
    .hero-section .lead { font-size: 1rem; }
    .hero-badge { font-size: .78rem; }

    /* Sidebar: auf Mobile unter den Content verschieben, nicht sticky */
    .sticky-cta { position: static !important; top: auto !important; }

    /* Auf Mobile unwichtige Sidebar-Widgets ausblenden */
    .sidebar-hide-mobile { display: none !important; }

    /* Bewertungs-Score */
    .rating-score { font-size: 1.7rem; }

    /* VPN Cards – CTA-Buttons untereinander */
    .vpn-card .d-flex.gap-2 { flex-direction: column; }
    .vpn-card .btn { width: 100%; }
    .btn-affiliate, .btn-affiliate-outline { width: 100%; justify-content: center; }

    /* Blog Bild-Placeholder kleiner */
    .blog-card-img-placeholder { height: 130px; font-size: 2.2rem; }

    /* Pros/Cons lesbarer */
    .pros-cons-list { font-size: .9rem; }

    /* Feature-Icon kleiner */
    .feature-icon-box { width: 48px; height: 48px; font-size: 1.15rem; }

    /* Stat-Boxen */
    .stat-number { font-size: 2rem; }

    /* Vergleichstabelle: kleinere Schrift + horizontal scrollbar */
    .comparison-table { font-size: .78rem; white-space: nowrap; }
    .comparison-table thead th { padding: .7rem .5rem; font-size: .75rem; }
    .comparison-table td { padding: .6rem .5rem; }

    /* Footer: Newsletter-Form untereinander */
    footer .d-flex.gap-2.flex-wrap { flex-direction: column; }
    footer .form-control { width: 100% !important; }

    /* Footer Social-Icons: zentrieren */
    footer .d-flex.gap-2.mt-3 { justify-content: center; }

    /* Allgemeine Tabellen */
    .table { font-size: .85rem; }

    /* Article Sidebar -> unter Artikel */
    .article-sidebar-widget { margin-top: 1.5rem; }
}

/* Kleine Handys (≤576px) */
@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 1.5rem; }
    .display-4 { font-size: 2rem !important; }
    .display-5 { font-size: 1.75rem !important; }

    /* Navbar Brand kleiner */
    .navbar-brand .fw-bold { font-size: .95rem; }

    /* Breadcrumb kürzer */
    .breadcrumb-item:not(:last-child):not(:first-child) { display: none; }

    /* VPN Logo */
    .vpn-logo { max-height: 36px; }

    /* Buttons volle Breite */
    .btn-lg { padding: .65rem 1rem; font-size: .95rem; }

    /* Karten-Innenabstand */
    .card-body.p-4 { padding: 1.25rem !important; }

    /* Rating Score */
    .rating-score { font-size: 1.5rem; }
}
