/* ============================================
   DSGVO Cookie Consent Banner
   ============================================ */

/* ── Banner ────────────────────────────────────────────────────── */
#cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    max-width: 860px;
    margin: 0 auto;
    background: #22262e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.4rem 1.8rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;

    /* Hidden by default */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(.4, 0, .2, 1), transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

#cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Icon + Text ────────────────────────────────────────────────── */
.cookie-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.cookie-text {
    flex: 1;
    min-width: 220px;
}

.cookie-text strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #e8eaed;
    margin-bottom: 0.3rem;
}

.cookie-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #b0b5be;
    line-height: 1.55;
    margin: 0;
}

.cookie-text a {
    color: #7ab0d4;
    text-decoration: underline;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.cookie-btn-essential {
    background: transparent;
    color: #b0b5be;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-btn-essential:hover {
    border-color: #5b8fb9;
    color: #e8eaed;
}

.cookie-btn-all {
    background: linear-gradient(135deg, #5b8fb9, #3d6f94);
    color: #fff;
    box-shadow: 0 3px 12px rgba(91, 143, 185, 0.25);
}

.cookie-btn-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(91, 143, 185, 0.35);
}

/* ── Legal Pages ────────────────────────────────────────────────── */
.legal-section {
    padding-top: 9rem;
}

.legal-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #e8eaed;
    margin-bottom: 2rem;
}

.legal-card {
    background: #262a33;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.2rem;
}

.legal-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #5b8fb9;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8eaed;
    margin: 1rem 0 0.4rem;
}

.legal-card p {
    color: #b0b5be;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-card address {
    font-style: normal;
    color: #b0b5be;
    font-size: 0.9rem;
    line-height: 1.9;
}

.legal-back {
    margin-top: 2rem;
}

/* ── Datenschutz Placeholder Notice ────────────────────────────── */
.legal-placeholder-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(193, 127, 89, 0.1);
    border: 1px solid rgba(193, 127, 89, 0.35);
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.5rem;
    color: #c17f59;
}

.legal-placeholder-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-placeholder-notice strong {
    display: block;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #d4996f;
}

.legal-placeholder-notice p {
    font-size: 0.85rem;
    color: #b0b5be;
    margin: 0;
    line-height: 1.6;
}

/* ── Blog Grid ──────────────────────────────────────────────────── */
.page-hero {
    position: relative;
    padding: 9rem 0 5rem;
    background: linear-gradient(135deg, #1a1d23 0%, #1e2530 50%, #1a1d23 100%);
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, #1a1d23 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.page-hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0.5rem 0 1rem;
    color: #e8eaed;
}

.page-hero-content h1 .accent {
    color: #5b8fb9;
}

.page-hero-content p {
    color: #b0b5be;
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: #262a33;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 350ms cubic-bezier(.4, 0, .2, 1);
}

.blog-card:hover {
    border-color: rgba(91, 143, 185, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.blog-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #2a2f38;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(.4, 0, .2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
}

.blog-card-body {
    padding: 1.4rem;
}

.blog-card-date {
    font-size: 0.78rem;
    color: #7a8190;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.6rem;
}

.blog-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8eaed;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: #b0b5be;
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-cta {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7ab0d4;
    letter-spacing: 0.3px;
}

.blog-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #7a8190;
}

.blog-empty svg {
    margin: 0 auto 1rem;
}

.blog-empty h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: #b0b5be;
    margin-bottom: 0.4rem;
}

/* ── Blog Post Detail ───────────────────────────────────────────── */
.post-cover {
    position: relative;
    height: 420px;
    overflow: hidden;
    margin-top: 80px;
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 29, 35, 0.25) 0%, rgba(26, 29, 35, 0.85) 100%);
}

.post-article {
    padding: 3rem 0 5rem;
}

.post-article .container--narrow {
    max-width: 780px;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #7a8190;
    margin-bottom: 2rem;
}

.post-breadcrumb a {
    color: #7ab0d4;
}

.post-breadcrumb a:hover {
    color: #e8eaed;
}

.post-breadcrumb span:not(:last-child) {
    color: #7a8190;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.post-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0.5rem 0 1rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-meta-date,
.post-meta-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #7a8190;
}

/* Post body typography */
.post-body h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem;
    color: #e8eaed;
}

.post-body h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.6rem;
    color: #e8eaed;
}

.post-body p {
    color: #b0b5be;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.post-body ul,
.post-body ol {
    color: #b0b5be;
    padding-left: 1.5rem;
    list-style: disc;
    margin-bottom: 1.2rem;
    line-height: 1.85;
}

.post-body a {
    color: #7ab0d4;
}

.post-footer-nav {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 640px) {
    #cookie-banner {
        flex-direction: column;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 14px 14px 0 0;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }

    .post-cover {
        height: 220px;
    }
}

/* ── Content Blocker Placeholders ───────────────────────────────── */
.cb-placeholder {
    display: none;
    /* shown by JS when consent is missing */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #22262e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #b0b5be;
    min-height: 220px;
}

.cb-placeholder svg {
    color: #5b8fb9;
    opacity: 0.6;
    flex-shrink: 0;
}

.cb-placeholder-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #e8eaed;
    margin-bottom: 0.25rem;
}

.cb-placeholder-text {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 0.5rem;
}

.cb-accept-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, #5b8fb9, #3d6f94);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(91, 143, 185, 0.25);
}

.cb-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 143, 185, 0.35);
}

.cb-privacy-note {
    font-size: 0.75rem;
    color: #7a8190;
    margin-top: 0.25rem;
}

.cb-privacy-note a {
    color: #7ab0d4;
    text-decoration: underline;
}

/* Maps container */
.maps-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.maps-wrapper .cb-placeholder {
    border-radius: 12px;
    min-height: 320px;
}

.maps-wrapper iframe.cb-blocked {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 12px;
    display: none;
}

/* reCAPTCHA blocked notice */
.recaptcha-notice {
    background: rgba(91, 143, 185, 0.07);
    border: 1px solid rgba(91, 143, 185, 0.2);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    font-size: 0.82rem;
    color: #b0b5be;
    display: none;
    /* shown by JS when not consented */
}

.recaptcha-notice a {
    color: #7ab0d4;
    text-decoration: underline;
}