/* ===========================================================
   RentenRadar - STYLE.CSS
   Elegant Classic Design - Flexbox Layouts Only
   Brand: #174174 navy (primary), #F2F5F7 (secondary BG), #338650 accent, #1c5934 (deep accent)
   Fonts: 'Montserrat' for display, 'Roboto' for body (serif/modern pairing)
   Layouts: Only flexbox (NO grid, NO columns)
   =========================================================== */

/* ==== 1. CSS RESET & NORMALIZE ==== */
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,
main, 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;
}
*, *:before, *:after { box-sizing: inherit; }
body {
    min-height: 100vh;
    background: #F2F5F7;
    color: #222438;
    font-family: 'Roboto', 'Georgia', serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    background-color: #F2F5F7;
}
img, picture {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #174174;
    text-decoration: none;
    transition: color 0.2s;
}
a:focus, a:hover {
    color: #338650;
    outline: none;
}
ul, ol {
    margin: 0 0 1em 1.5em;
}
li {
    margin-bottom: 0.4em;
}
hr { border: 0; height: 1px; background: #e3e4e8; margin: 32px 0; }

/* ==== 2. TYPOGRAPHY SCALE, HEADINGS ==== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Georgia', serif;
    font-weight: 600;
    color: #174174;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.6rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; font-weight: 500; }
.text-section {
    max-width: 650px;
    margin-bottom: 20px;
}
@media (min-width: 900px) {
    h1 { font-size: 2.9rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }
}
p, ul, ol {
    color: #222438;
    font-size: 1rem;
    margin-bottom: 16px;
}
strong { font-weight: 600; color: #174174; }
.faq-list h3 {
    font-size: 1.1rem;
    color: #174174;
    margin-bottom: 6px;
    font-weight: 500;
}

/* ==== 3. LAYOUT CONTAINERS / FLEXBOX ==== */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.content-wrapper {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px 0 rgba(23,65,116,0.07);
    padding: 40px 20px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
section {
    margin-bottom: 60px;
    padding: 40px 0 20px 0;
}
@media (max-width: 900px) {
    .content-wrapper { padding: 30px 10px; }
    section { padding: 28px 0 14px 0; margin-bottom: 40px; }
}

/* ==== 4. HEADER, NAV & MOBILE MENU ==== */
header {
    background: #fff;
    border-bottom: 2px solid #F2F5F7;
    box-shadow: 0 4px 16px rgba(23,65,116,0.035);
    position: relative;
    z-index: 30;
}
header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 70px;
    padding: 0 20px;
}
header img[alt='RentenRadar'] {
    height: 42px;
    margin-right: 22px;
}
nav {
    display: flex;
    gap: 18px;
    align-items: center;
}
nav a {
    font-family: 'Montserrat', 'Georgia', serif;
    font-size: 1rem;
    color: #174174;
    padding: 7px 0;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
    border-bottom: 2px solid #338650;
    color: #338650;
    background: none;
}
.cta-button {
    display: inline-block;
    font-family: 'Montserrat', 'Georgia', serif;
    font-weight: 600;
    font-size: 1rem;
    background: #338650;
    border-radius: 8px;
    color: #fff;
    padding: 12px 26px;
    margin-left: 18px;
    box-shadow: 0 2px 6px rgba(23,65,116,0.07);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.cta-button:hover, .cta-button:focus {
    background: #1c5934;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(51,134,80,0.09);
}
/* MOBILE NAVIGATION BUTTONS */
.mobile-menu-toggle {
    display: none;
    background: #174174;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    cursor: pointer;
    z-index: 49;
    transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: #338650;
    color: #fff;
}

/* Mobile nav menu */
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: 0 8px 32px rgba(23,65,116,0.12);
    transform: translateX(-100%);
    transition: transform 0.36s cubic-bezier(.7,.18,.22,1);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 34px;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-close {
    background: none;
    border: none;
    color: #174174;
    font-size: 2.2rem;
    align-self: flex-end;
    margin: 12px 18px 0 0;
    cursor: pointer;
    z-index: 1005;
    transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #338650; }
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 38px 0 0 24px;
}
.mobile-nav a {
    color: #174174;
    font-family: 'Montserrat', serif;
    font-size: 1.15rem;
    padding: 11px 0;
    border-bottom: 1px solid #F2F5F7;
    width: 220px;
    transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    color: #338650;
    border-bottom: 1px solid #338650;
    background: none;
}

@media (max-width: 1000px) {
    nav {
        display: none;
    }
    .mobile-menu-toggle { display: block; }
}
@media (max-width: 1000px) {
    header .cta-button {
        display: none;
    }
}

/* Overlay when mobile menu open (if needed) */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(23,65,116,0.13);
    z-index: 1001;
    display: none;
}
.mobile-menu.active ~ .mobile-menu-overlay { display: block; }

/* ==== 5. SECTIONS & FLEX UTILITIES ==== */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
@media(max-width: 900px) {
    .section { padding: 26px 8px; margin-bottom: 36px; }
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}
.card {
    margin-bottom: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(23,65,116,0.05);
    padding: 28px 20px 24px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-width: 270px;
    flex: 1 1 275px;
}
.card:hover {
    box-shadow: 0 6px 20px rgba(23,65,116,0.11);
    transition: box-shadow 0.19s;
}
.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;
}
@media (max-width: 768px) {
    .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}
.feature-grid, .features {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: flex-start;
}
.feature {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(23,65,116,0.07);
    padding: 32px 22px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    min-width: 230px;
    flex: 1 1 250px;
    transition: box-shadow .18s;
}
.feature img {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
}
.feature:hover {
    box-shadow: 0 6px 24px rgba(23,65,116,0.10);
}

/* ==== 6. TESTIMONIALS ==== */
.testimonial-slider {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
    margin-top: 12px;
    flex-wrap: wrap;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 22px;
    min-width: 260px;
    background: #fff;
    color: #222438;
    border-left: 5px solid #338650;
    border-radius: 9px;
    box-shadow: 0 1px 8px rgba(23,65,116,0.12);
    font-size: 1.1rem;
    transition: box-shadow 0.16s, border-color 0.21s;
    margin-bottom: 18px;
}
.testimonial-card:hover {
    box-shadow: 0 6px 18px rgba(23,65,116,0.19);
    border-left-color: #174174;
}
.testimonial-card p {
    color: #222438;
    font-size: 1.15rem;
    margin-bottom: 0;
}
.testimonial-card span {
    font-size: 0.97rem;
    color: #338650;
    font-style: italic;
    margin-left: 6px;
}

/* ==== 7. FAQ LIST ==== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 24px 0;
}
.faq-list > div {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 20px 18px;
    box-shadow: 0 0px 4px rgba(23,65,116,0.04);
}

/* ==== 8. FOOTER ==== */
footer {
    background: #174174;
    color: #fff;
    padding: 36px 0 24px 0;
    margin-top: 50px;
    font-size: 1rem;
}
footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.footer-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}
.footer-navigation a {
    color: #fff;
    opacity: 0.92;
    transition: color 0.23s, opacity 0.17s;
    font-family: 'Montserrat', serif;
    font-size: 1rem;
}
.footer-navigation a:hover, .footer-navigation a:focus {
    color: #338650;
    opacity: 1;
}
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    opacity: 0.92;
    font-size: 0.98rem;
}
.footer-contact a {
    color: #fff;
    display: flex;
    align-items: center;
    font-family: 'Roboto', serif;
}
.footer-contact img {
    margin-right: 6px;
    height: 18px;
    width: 18px;
    filter: invert(1);
}
.footer-brand {
    margin-bottom: 6px;
    font-weight: 300;
    opacity: 0.91;
    font-family: 'Roboto', serif;
    font-size: 0.99rem;
}

/* ==== 9. COOKIE CONSENT BANNER & MODAL ==== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #222438;
    color: #fff;
    z-index: 9004;
    padding: 20px 18px;
    box-shadow: 0 -2px 19px rgba(23,65,116,0.1);
    justify-content: space-between;
    gap: 22px;
    font-size: 1.07rem;
    animation: slideUpBanner 0.45s cubic-bezier(.29,.5,.17,1);
}
@keyframes slideUpBanner {
    0% { transform: translateY(120%); opacity:0; }
    100% { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-message {
    flex: 1 1 60%;
    color: #fff;
    font-size: 1.07rem;
}
.cookie-banner .cookie-controls {
    display: flex;
    gap: 16px;
    margin-left: 14px;
}
.cookie-btn {
    font-family: 'Montserrat', serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    cursor: pointer;
    transition: background 0.19s, color 0.18s, border 0.17s;
}
.cookie-btn.accept {
    background: #338650;
    color: #fff;
}
.cookie-btn.settings {
    background: #fff;
    color: #174174;
    border: 1.5px solid #338650;
}
.cookie-btn.reject {
    background: #fff;
    color: #888;
    border: 1.5px solid #bbb;
}
.cookie-btn:hover, .cookie-btn:focus {
    filter: brightness(1.07);
    transform: scale(1.03);
}

/* Cookie Modal */
.cookie-modal-overlay {
    position: fixed;
    z-index: 9015;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(23,65,116,0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModalOverlay 0.31s;
}
@keyframes fadeInModalOverlay {
    0% { opacity: 0; } 100% { opacity: 1; }
}
.cookie-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 440px;
    min-width: 300px;
    box-shadow: 0 8px 32px rgba(23,65,116,0.18);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: scaleFadeIn 0.34s cubic-bezier(.35,1.3,.16,1);
}
@keyframes scaleFadeIn {
    0% { transform: scale(0.80); opacity:0; }
    100% { transform: scale(1); opacity:1; }
}
.cookie-modal .modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.cookie-modal .modal-title {
    font-size: 1.22rem;
    font-family: 'Montserrat', serif;
    color: #174174;
    font-weight: 600;
}
.cookie-modal .modal-close {
    font-size: 1.7rem;
    border: none;
    background: none;
    color: #174174;
    cursor: pointer;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
    color: #338650;
}
.cookie-modal .modal-content {
    margin-top: 10px;
}
.cookie-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    margin-bottom: 13px;
}
.cookie-category label {
    font-size: 1rem;
    color: #174174;
    font-family: 'Montserrat', serif;
    font-weight: 500;
}
.cookie-switch {
    appearance: none;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #d7e7dc;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.19s;
}
.cookie-switch:checked {
    background: #338650;
}
.cookie-switch:before {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.18s;
}
.cookie-switch:checked:before {
    left: 19px;
}
.cookie-modal .cookie-description {
    font-size: 0.97rem;
    color: #555;
    margin-left: 4px;
}
.cookie-modal-buttons {
    margin-top: 18px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: flex-end;
}
@media (max-width: 650px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 7vw;
        font-size: 1rem;
        gap: 12px;
    }
    .cookie-banner .cookie-controls { margin-left: 0; gap: 8px; }
    .cookie-modal { padding: 22px 7vw; min-width: 0; max-width: 98vw; }
}

/* ==== 10. FORM ELEMENTS ==== */
input, select, textarea, button {
    font-family: inherit;
    font-size: 1rem;
    border-radius: 6px;
    border: 1.3px solid #e2e7eb;
    padding: 11px 12px;
    transition: border-color 0.18s, box-shadow 0.14s;
    color: #222438;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
    border-color: #338650;
    outline: none;
    box-shadow: 0 2px 10px rgba(51,134,80,0.06);
}
button {
    cursor: pointer;
    transition: background 0.14s, color 0.16s, box-shadow 0.13s;
}
button:focus {
    outline: 2px solid #338650;
    outline-offset: 2px;
}

/* ==== 11. TABLES ==== */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 26px 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(23,65,116,0.07);
}
th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #F2F5F7;
}
th {
    background: #f6f7fa;
    color: #174174;
    font-weight: 600;
    font-family: 'Montserrat', serif;
}
tr:last-child td { border-bottom: none; }

/* ==== 12. MISCELLANEOUS ==== */
::-webkit-input-placeholder { color: #B3B8BF; }
::-moz-placeholder { color: #B3B8BF; }
:-ms-input-placeholder { color: #B3B8BF; }
::placeholder { color: #B3B8BF; }


/* Spacing Utilities */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-40 { margin-top: 40px !important; }
.gap-20 { gap: 20px !important; }
.gap-28 { gap: 28px !important; }

/* ==== 13. RESPONSIVE LAYOUTS ==== */
@media (max-width: 900px) {
    .container {
        max-width: 99vw;
        padding: 0 10px;
    }
    .card-container, .content-grid, .feature-grid, .features, .testimonial-slider {
        flex-direction: column;
        gap: 16px;
    }
    .card, .feature, .testimonial-card {
        min-width: 0;
        width: 100%;
    }
    footer .container, .footer-navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 650px) {
    header .container {
        padding: 0 6px;
    }
    .content-wrapper, .card, .feature, .testimonial-card {
        padding-left: 7vw; padding-right: 7vw;
    }
}

/* ==== 14. ACCESSIBILITY ==== */
:focus {
    outline: 2px solid #338650;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ==== 15. PRINT STYLES ==== */
@media print {
    header, footer, .cookie-banner, .mobile-menu { display: none !important; }
    .content-wrapper, section { box-shadow: none !important; background: #fff !important; }
}

/* ==== END OF RentenRadar Elegant Classic Flexbox Formatted CSS ==== */
