/* ===========================================================
   PensionVision Monochrome Sophisticated Style
   Responsive, Modern. All Flex, No CSS Grid.
   Brand: Montserrat/Source Sans Pro, Black/White/Grey, #18568C, #AD6F00 used sparingly.
   =========================================================== */

/* ==== CSS RESET ==== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
   margin: 0;
   padding: 0;
   border: 0;
   font-size: 100%;
   font: inherit;
   vertical-align: baseline;
   box-sizing: border-box;
}
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-size: 16px;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background: #fff;
    color: #181818;
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    line-height: 1.7;
    letter-spacing: 0.02em;
    min-height: 100vh;
    font-size: 16px;
}

img {
    max-width: 100%;
    display: block;
}
a {
    color: #181818;
    text-decoration: none;
    transition: color 0.2s;
}
a:focus {
    outline: 2px solid #18568C;
    outline-offset: 2px;
}
a:hover {
    color: #18568C;
    text-decoration: underline;
}
ul, ol {
    margin-left: 24px;
}
strong {
    font-weight: 700;
}

/* ==== TYPOGRAPHY / HEADINGS ==== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.2;
}
h1 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}
h2 {
    font-size: 2.1rem;
    margin-bottom: 16px;
}
h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Spacing for visual hierarchy */
.section h2:not(:first-child),
.section h1:not(:first-child) {
    margin-top: 16px;
}

/* ==== CONTAINER ==== */
.container {
    width: 100%;
    max-width: 1250px;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==== HEADER ==== */
header {
    background: #fff;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 200;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 14px 0;
}
header img {
    max-height: 42px;
    width: auto;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.main-nav a {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #181818;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color .15s, color .15s;
}
.main-nav a:hover, .main-nav a:focus {
    color: #18568C;
    border-bottom: 2px solid #18568C;
}

/* ==== BUTTONS ==== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 32px;
    border-radius: 32px;
    background: #181818;
    color: #fff;
    border: none;
    cursor: pointer;
    outline: none;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(24,24,24,0.05);
    letter-spacing: 0.03em;
    transition: background 0.15s, color 0.15s, box-shadow 0.18s;
    text-decoration: none;
    position: relative;
}
.btn-primary:hover, .btn-primary:focus {
    background: #222;
    color: #AD6F00;
    box-shadow: 0 4px 18px 0 rgba(24,56,120,0.13);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    border-radius: 28px;
    border: 1px solid #7A7A7A;
    background: #fff;
    color: #181818;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.14s, color 0.14s, border-color .17s;
    cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #f4f4f4;
    border-color: #AD6F00;
    color: #AD6F00;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 9px 19px;
    border-radius: 28px;
    border: 1px solid transparent;
    background: transparent;
    color: #222;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.14s, border-color 0.17s;
    cursor: pointer;
}
.btn-ghost:hover, .btn-ghost:focus {
    color: #AD6F00;
    border-color: #AD6F00;
    background: #f7f7f7;
}

/* ==== HERO SECTION ==== */
.hero {
    background: #fff;
    border-bottom: 1px solid #ededed;
    padding: 48px 0 36px 0;
}
.hero .container {
    display: flex;
    flex-direction: column;
}
.hero h1 {
    color: #181818;
    font-size: 2.4rem;
    font-weight: 800;
    margin-top: 8px;
    margin-bottom: 16px;
}
.hero p {
    font-size: 1.18rem;
    color: #606060;
    margin-bottom: 18px;
}

/* ==== SECTIONS & FLEX LAYOUTS ==== */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 18px 1px rgba(0,0,0,0.03);
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: #FAFAFC;
    border-radius: 14px;
    padding: 28px 28px 23px 28px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
    margin-bottom: 20px;
    position: relative;
    flex: 1 1 230px;
    min-width: 230px;
    max-width: 360px;
    transition: box-shadow 0.15s, border-color 0.15s;
    border: 1.5px solid #ececec;
}
.card:hover, .card:focus-within {
    box-shadow: 0 8px 28px 3px rgba(20,20,30,0.11);
    border-color: #D0D7DE;
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 32px 0 rgba(30,30,40,0.08);
    margin-bottom: 20px;
    max-width: 430px;
    min-width: 210px;
    border: 1.2px solid #ECECEC;
    transition: box-shadow 0.15s, border 0.16s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
    box-shadow: 0 8px 32px 0 rgba(20,40,60,0.14);
    border-color: #CCC;
}
.testimonial-card p {
    font-size: 1.09rem;
    color: #232323;
    margin-bottom: 4px;
}
.testimonial-card strong {
    color: #181818;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 16px;
}
.features-grid > div {
    background: #fafafc;
    border-radius: 13px;
    box-shadow: 0 1px 11px 0 rgba(0,0,0,0.04);
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 300px;
    padding: 30px 22px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    border: 1.5px solid #ECECEC;
    transition: box-shadow 0.15s, border 0.14s;
}
.features-grid > div:hover {
    box-shadow: 0 6px 24px 1px rgba(15,20,40,0.10);
    border-color: #18568C;
}
.features-grid img {
    width: 48px;
    margin-bottom: 3px;
    filter: grayscale(100%) contrast(110%);
}
.features-grid h3 {
    font-size: 1.02rem;
    color: #181818;
    margin-bottom: 4px;
    font-weight: 700;
}
.features-grid p {
    color: #555;
}

/* =========================
   FAQ
   ========================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.faq-item {
    background: #fafafc;
    padding: 18px 22px 14px 22px;
    border-radius: 11px;
    box-shadow: 0 0px 9px rgba(0,0,0,0.04);
    border: 1.1px solid #eaeaea;
    margin-bottom: 10px;
    transition: box-shadow 0.12s, border 0.12s;
}
.faq-item:hover, .faq-item:focus-within {
    box-shadow: 0 4px 16px 2px rgba(32,32,54,0.10);
    border-color: #18568C;
}
.faq-item h3 {
    font-size: 1.1rem;
    color: #222;
}

/* ==== TEXT BLOCKS / GENERIC STYLES ==== */
.text-section {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.text-section ul, .text-section ol {
    margin-top: 5px;
    margin-bottom: 5px;
}
.text-section li {
    margin-bottom: 5px;
}

/* ==== SERVICE LIST (Dienstleistungen) ==== */
.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 12px;
}
.service-list .text-section {
    flex: 1 1 280px;
    background: #FAFAFC;
    border-radius: 13px;
    padding: 22px 20px 18px 20px;
    border: 1.5px solid #ECECEC;
    transition: border 0.14s, box-shadow 0.14s;
}
.service-list .text-section:hover {
    border-color: #AD6F00;
    box-shadow: 0 6px 20px 0 rgba(140,90,0,0.10);
}
.service-list span {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
    margin-left: 6px;
}

/* ==== RATING SUMMARY ==== */
.rating-summary {
    margin-top: 26px;
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
    background: #f8f8fa;
    border-radius: 9px;
    padding: 16px 22px;
    box-shadow: 0 2px 12px 0 rgba(50,60,90,0.05);
    display: inline-flex;
}
.rating-summary strong {
    color: #AD6F00;
    font-weight: 700;
}

/* ==== FOOTER ==== */
footer {
    background: #1c1c1f;
    color: #fff;
    padding: 36px 0 20px 0;
    border-top: 1.8px solid #ECECEC;
}
.footer-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-nav a {
    color: #f1f1f1;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 0.98rem;
    transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
    color: #AD6F00;
    text-decoration: underline;
}
.contact-info {
    font-size: 1.01rem;
    color: #d3d3d7;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-info a {
    color: #AD6F00;
    text-decoration: underline;
    font-weight: 600;
}
footer img {
    max-width: 44px;
    margin-bottom: 8px;
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
    display: none;
    background: #fff;
    color: #181818;
    border: 1.5px solid #1c1c1f;
    border-radius: 50%;
    font-size: 1.8rem;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 24px;
    top: 16px;
    cursor: pointer;
    z-index: 300;
    transition: background 0.16s, border-color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: #181818;
    color: #fff;
    border-color: #18568C;
}
.mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(33,34,35,0.97);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.33s cubic-bezier(0.51, 0.13, 0.33, 1.01);
    pointer-events: none;
    opacity: 0;
}
.mobile-menu.open {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
}
.mobile-menu-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    align-self: flex-end;
    margin: 22px 30px 6px 0;
    cursor: pointer;
    transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #AD6F00; }
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0 0 36px;
}
.mobile-nav a {
    color: #fff;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 11px 0;
    transition: color 0.17s, background 0.18s;
    border-radius: 4px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
    color: #AD6F00;
    background: rgba(255,255,255,0.045);
}

/* Hide main nav on mobile, show burger */
@media (max-width: 900px) {
    .main-nav, .btn-primary {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}
@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ==== TESTIMONIALS GRID ==== */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
}

/* ==== RESPONSIVE RULES ==== */
@media (max-width: 1200px) {
    .footer-flex {
        gap: 18px;
    }
    .features-grid {
        gap: 12px;
    }
}
@media (max-width: 950px) {
    .footer-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .features-grid {
        gap: 11px;
    }
}
@media (max-width: 768px) {
    .header-flex {
        flex-direction: row;
        gap: 10px;
    }
    .container {
        padding: 0 9px;
    }
    .section {
        padding: 24px 8px;
        margin-bottom: 38px;
    }
    .features-grid, .service-list, .card-container, .testimonials-grid, .faq-list {
        gap: 13px;
    }
    .feature-item, .card, .testimonial-card {
        min-width: 0;
        width: 100%;
    }
    .content-grid, .footer-flex {
        flex-direction: column;
        gap: 14px;
    }
    .text-image-section {
        flex-direction: column;
        gap: 18px;
    }
    .hero {
        padding: 26px 0 18px 0;
    }
    .main-nav {
        display: none;
    }
}
@media (max-width: 560px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.23rem; }
    .btn-primary, .btn-secondary { font-size: 0.97rem; }
    .mobile-nav a { font-size: 1.02rem; }
    .footer-flex, .contact-info { gap: 10px; }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #242424;
    color: #fff;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
    z-index: 11000;
    box-shadow: 0 -2px 22px 0 rgba(30,30,60,0.13);
    gap: 30px;
    flex-wrap: wrap;
    transition: transform 0.35s cubic-bezier(.46,.03,.4,.95), opacity 0.19s;
}
.cookie-banner.hide {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner__text {
    flex: 1 1 240px;
    font-size: 1rem;
    color: #f7f7fa;
}
.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.cookie-banner button,
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
    font-size: 1rem;
    min-width: 119px;
    border-radius: 33px !important;
    border: none;
    margin: 0 2px;
}
.cookie-banner .btn-primary {
    background: #18568C;
    color: #fff;
    font-weight: 700;
}
.cookie-banner .btn-primary:hover {
    background: #162848;
    color: #AD6F00;
}
.cookie-banner .btn-secondary {
    background: #fff;
    color: #222;
    border: 1px solid #d9d9d8;
    font-weight: 600;
}
.cookie-banner .btn-secondary:hover {
    background: #181818;
    color: #fff;
    border-color: #AD6F00;
}
.cookie-banner .btn-ghost {
    background: transparent;
    color: #AD6F00;
    font-weight: 600;
    border: none;
}
.cookie-banner .btn-ghost:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 680px) {
    .cookie-banner { flex-direction: column; gap: 14px; align-items: flex-start; }
    .cookie-banner__actions { gap: 10px; }
    .cookie-banner__text { font-size: .98rem; }
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(5,8,16,0.68);
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
}
.cookie-modal-overlay.open {
    display: flex;
    animation: fadeInModal 0.22s ease;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cookie-modal {
    background: #fff;
    color: #111;
    box-shadow: 0 8px 42px 5px rgba(20,20,60,0.22);
    border-radius: 14px;
    padding: 36px 28px 28px 28px;
    max-width: 420px;
    width: 94vw;
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: fadeInModalPop 0.18s cubic-bezier(.4,0,.2,1);
    position: relative;
}
@keyframes fadeInModalPop {
    from { transform: scale(0.96) translateY(18px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
    position: absolute;
    right: 18px;
    top: 16px;
    background: none;
    border: none;
    color: #181818;
    font-size: 1.5rem;
    cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #AD6F00; }
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 5px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fafafc;
    border-radius: 6px;
    padding: 12px 13px;
    font-size: .97rem;
}
.cookie-category input[type="checkbox"] {
    accent-color: #18568C;
    width: 20px;
    height: 20px;
}
.cookie-category .essential-label {
    font-weight: 700;
    color: #333;
}
.cookie-category .disabled { opacity: .66; }
.cookie-modal-actions {
    margin-top: 17px;
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
    min-width: 134px;
}

/* ==== MISC/EFFECTS ==== */
.section, .card, .features-grid > div, .testimonial-card, .faq-item, .rating-summary, .service-list .text-section {
    transition: box-shadow 0.18s, border 0.14s, background 0.12s;
}

.card, .features-grid > div, .testimonial-card, .faq-item, .service-list .text-section {
    will-change: box-shadow, border;
}

::-webkit-scrollbar {
    width: 8px;
    background: #f2f3f6;
}
::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 12px;
}

/* ==== VISUAL HIERARCHY: HIGHLIGHTS & ACCENTS ==== */
.btn-primary, .btn-secondary, .btn-ghost { box-shadow: 0 1.5px 8px 0 rgba(168,168,168,0.07); }
highlight, .highlight {
    color: #18568C;
}

/* ==== FORM INPUTS (if present) ==== */
input, textarea, select {
    font-family: inherit;
    font-size: 1.04rem;
    border-radius: 7px;
    border: 1.4px solid #d4d6db;
    padding: 11px 14px;
    margin-bottom: 12px;
    color: #191919;
    background: #fafafa;
    width: 100%;
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
    transition: border-color 0.14s, box-shadow 0.12s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #18568C;
    box-shadow: 0 1px 8px #eef4ff;
}

textarea {
    font-size: 1rem;
    min-height: 80px;
    resize: vertical;
    overflow: auto;
}

/* ==== ACCESSIBILITY/FOCUS ==== */
:focus-visible {
  outline: 2.5px dashed #18568C;
  outline-offset: 2.5px;
}

/* ===== END ===== */
