/* ==========================================================
   RentenKompass International – style.css
   Vibrant Energetic theme with brand authenticity
   - Fonts: Georgia (display), Verdana (body)
   - Colors: Primary #0B3D5C, Secondary #2E6A54, Accent #babdc0
   - Layout: Mobile-first, ONLY Flexbox (no grid/columns)
   - Includes: Mobile menu + Cookie banner
   ========================================================== */

/* --------------------- CSS RESET / NORMALIZE --------------------- */
* { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; }
ul, ol { list-style-position: outside; padding-left: 1.2rem; }
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #00D1FF; outline-offset: 2px; }
::selection { background: #00D1FF; color: #0B3D5C; }

/* --------------------- THEME TOKENS --------------------- */
:root { --color-primary: #0B3D5C; --color-secondary: #2E6A54; --color-accent: #babdc0; --color-dark: #0A2233; --color-muted: #5B7383; --color-white: #FFFFFF; /* Energetic highlight accents for micro-interactions */ --electric-cyan: #00D1FF; --neon-lime: #B8FF3D; --hot-pink: #FF3DAA; /* Shadows */ --shadow-sm: 0 2px 10px rgba(11,61,92,0.08); --shadow-md: 0 10px 24px rgba(11,61,92,0.14); --shadow-lg: 0 20px 40px rgba(11,61,92,0.18); }

/* Fallbacks if custom properties not supported */
body { background: #FFFFFF; color: #0B3D5C; }

/* --------------------- TYPOGRAPHY --------------------- */
body { font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 16px; color: var(--color-primary); }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.2; letter-spacing: 0.2px; }
h1 { font-size: 36px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 700; }
p, li, a, span { font-size: 16px; }
strong { font-weight: 700; }
.lead, .hero p { font-size: 18px; color: var(--color-white); opacity: 0.95; }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .hero p { font-size: 20px; }
}

/* --------------------- GLOBAL LAYOUT WRAPPERS --------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }
section { margin-bottom: 60px; padding: 40px 0; }

/* Mandatory spacing/alignment pattern classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --------------------- HEADER --------------------- */
header { position: sticky; top: 0; z-index: 1000; background: var(--color-white); border-bottom: 4px solid var(--electric-cyan); box-shadow: var(--shadow-sm); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a { color: var(--color-primary); padding: 8px 10px; border-radius: 8px; transition: color .2s ease, background-color .2s ease, transform .2s ease; font-weight: 600; }
.main-nav a:hover { background: var(--color-accent); color: var(--color-secondary); transform: translateY(-1px); }

.header-cta { display: none; align-items: center; gap: 10px; }
.lang-switch { display: none; align-items: center; gap: 6px; color: var(--color-muted); font-size: 14px; }
.lang-switch span { background: var(--color-accent); border: 1px solid #D6E2EB; color: var(--color-primary); padding: 4px 8px; border-radius: 20px; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--color-primary); color: var(--color-white); box-shadow: var(--shadow-sm); transition: transform .2s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { transform: scale(1.03); background: #09324B; }

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
  .lang-switch { display: flex; }
}

/* --------------------- MOBILE MENU --------------------- */
.mobile-menu { position: fixed; inset: 0; background: rgba(10,34,51,0.85); backdrop-filter: saturate(120%) blur(3px); transform: translateX(100%); transition: transform .35s ease; z-index: 1500; display: flex; flex-direction: column; }
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 16px; width: 44px; height: 44px; border-radius: 12px; background: var(--hot-pink); color: var(--color-white); box-shadow: var(--shadow-sm); }
.mobile-nav { background: var(--color-white); border-top-left-radius: 16px; border-top-right-radius: 16px; margin-top: auto; padding: 24px 20px 36px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-lg); }
.mobile-nav a { padding: 14px 12px; border-radius: 10px; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; justify-content: space-between; border: 1px solid #E3ECF3; }
.mobile-nav a:hover { background: var(--color-accent); border-color: var(--electric-cyan); }

/* --------------------- BUTTONS --------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 700; letter-spacing: 0.2px; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; box-shadow: var(--shadow-sm); border: 2px solid transparent; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-primary { background: #09324B; color: var(--color-white); }
.btn-primary:hover { background: #255843; }
.btn-secondary { background: var(--color-primary); color: var(--color-white); }
.btn-secondary:hover { background: #09324B; }
.btn-ghost { background: var(--color-white); color: var(--color-primary); border-color: var(--electric-cyan); }
.btn-ghost:hover { background: var(--color-accent); }

/* Add energetic glow on focus */
.btn:focus-visible { box-shadow: 0 0 0 4px rgba(0,209,255,0.25), var(--shadow-md); }

/* --------------------- HERO --------------------- */
.hero { background: var(--color-primary); color: var(--color-white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 6px; background: var(--electric-cyan); }
.hero .container { padding-top: 28px; padding-bottom: 28px; }
.hero h1 { color: var(--color-white); text-shadow: 0 2px 0 rgba(0,0,0,0.05); }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .trust-badges span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); color: #EAF4FB; border: 1px solid rgba(255,255,255,0.2); padding: 8px 10px; border-radius: 999px; }
.hero .btn-ghost { background: rgba(255,255,255,0.1); color: #EAF4FB; border-color: #EAF4FB; }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* --------------------- GENERIC CONTENT --------------------- */
.content-wrapper > h2 { display: inline-flex; align-items: center; gap: 10px; }
.content-wrapper > h2::after { content: ""; display: inline-block; width: 36px; height: 6px; background: var(--hot-pink); border-radius: 10px; }

p + p { margin-top: 10px; }

/* USP list */
.usp-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.usp-list li { display: flex; align-items: center; gap: 10px; background: var(--color-accent); padding: 10px 12px; border-radius: 12px; border: 1px solid #E3ECF3; }
.usp-list img { width: 18px; height: 18px; }

/* KPI Row */
.kpi-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; background: var(--color-accent); border: 2px solid var(--electric-cyan); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.kpi-row strong { color: var(--color-primary); font-size: 18px; }

/* Ratings summary */
.ratings-summary { display: inline-flex; align-items: center; gap: 8px; background: var(--color-accent); color: var(--color-primary); padding: 8px 12px; border-radius: 10px; border: 1px solid #D6E2EB; }
.ratings-summary img { width: 18px; height: 18px; }

/* Feature grid (cards) */
.feature-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.feature-grid > div { flex: 1 1 260px; background: var(--color-white); border: 1px solid #E6EEF4; border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-grid > div:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--electric-cyan); }
.feature-grid h3 { color: var(--color-primary); margin-bottom: 8px; }

/* Service cards */
.service-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.service-cards article { flex: 1 1 260px; background: var(--color-white); border: 1px solid #E6EEF4; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-cards article:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--hot-pink); }
.service-cards a { color: var(--color-secondary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.service-cards a:hover { color: #255843; }

/* Step list */
.step-list { display: flex; flex-direction: column; gap: 10px; counter-reset: step; padding-left: 0; list-style: none; }
.step-list li { display: flex; align-items: center; gap: 12px; background: var(--color-accent); border: 1px solid #E3ECF3; border-left: 6px solid var(--electric-cyan); padding: 12px; border-radius: 12px; }

/* Compliance / privacy hints */
.compliance-hint, .privacy-hint, .risk-note { display: flex; align-items: center; gap: 10px; background: #F1FCFF; color: #06344C; border: 1px solid #B9F2FF; border-left: 6px solid var(--electric-cyan); border-radius: 12px; padding: 12px; }
.compliance-hint img, .privacy-hint img, .risk-note img { width: 18px; height: 18px; }

/* Testimonial list */
.testimonial-list { display: flex; flex-wrap: wrap; gap: 20px; }
.testimonial-card { flex: 1 1 260px; background: var(--color-accent); color: var(--color-primary); border: 1px solid #E3ECF3; border-radius: 14px; box-shadow: var(--shadow-sm); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { margin-top: 8px; }

/* Generic links */
.content-wrapper a { color: var(--color-secondary); font-weight: 700; }
.content-wrapper a:hover { color: #255843; text-decoration: underline; text-underline-offset: 3px; }

/* Address blocks */
address { font-style: normal; display: flex; flex-direction: column; gap: 8px; }
address p { display: flex; align-items: center; gap: 10px; }
address img { width: 18px; height: 18px; }

/* Trust badges outside hero */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badges span { display: inline-flex; align-items: center; gap: 8px; background: var(--color-accent); border: 1px solid #E6EEF4; color: var(--color-primary); padding: 8px 10px; border-radius: 999px; }

/* Details / Summary (FAQ) */
details { border: 1px solid #E6EEF4; border-radius: 12px; padding: 10px 12px; background: var(--color-white); box-shadow: var(--shadow-sm); }
summary { font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px; }
details[open] { border-color: var(--electric-cyan); box-shadow: var(--shadow-md); }
details p { margin-top: 8px; }

/* Lists within content */
.content-wrapper ul { display: flex; flex-direction: column; gap: 8px; }

/* --------------------- FOOTER --------------------- */
footer { background: #071F30; color: #D6E2EB; padding-top: 24px; }
footer a { color: #EAF4FB; }
footer a:hover { color: var(--neon-lime); }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-top > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.footer-top h3 { color: var(--neon-lime); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 0; }
footer .lang-switch { display: flex; }
footer .lang-switch span { background: rgba(255,255,255,0.08); border-color: transparent; color: #EAF4FB; }

/* --------------------- RESPONSIVE ALIGNMENT --------------------- */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

@media (min-width: 768px) {
  .cta-group { display: flex; flex-direction: row; align-items: center; gap: 12px; }
}

/* --------------------- ACCESSIBILITY & FORMS (generic) --------------------- */
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #D6E2EB; border-radius: 10px; background: #FFFFFF; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--electric-cyan); box-shadow: 0 0 0 4px rgba(0,209,255,0.20); }
label { font-weight: 700; margin-bottom: 6px; display: inline-block; }

/* --------------------- COOKIE CONSENT --------------------- */
#cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400; background: var(--color-white); border-top: 4px solid var(--hot-pink); box-shadow: 0 -8px 24px rgba(11,61,92,0.12); padding: 14px 16px; display: none; }
#cookie-banner.show { display: flex; }
#cookie-banner .cookie-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
#cookie-banner p { color: var(--color-primary); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; border-radius: 10px; }
.cookie-accept { background: var(--color-secondary); color: var(--color-white); }
.cookie-accept:hover { background: #255843; }
.cookie-reject { background: var(--color-accent); color: var(--color-primary); border-color: var(--electric-cyan); }
.cookie-settings { background: var(--color-primary); color: var(--color-white); }
.cookie-settings:hover { background: #09324B; }

/* Cookie modal */
.cookie-modal-backdrop { position: fixed; inset: 0; background: rgba(10,34,51,0.7); display: none; z-index: 1600; }
.cookie-modal-backdrop.show { display: flex; align-items: center; justify-content: center; }
.cookie-modal { width: 92%; max-width: 680px; background: var(--color-white); border-radius: 16px; border: 2px solid var(--electric-cyan); box-shadow: var(--shadow-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; transform: translateY(20px); transition: transform .25s ease; }
.cookie-modal-backdrop.show .cookie-modal { transform: translateY(0); }
.cookie-modal h3 { color: var(--color-primary); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid #E6EEF4; border-radius: 10px; background: var(--color-accent); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* --------------------- UTILITY FLEX HELPERS --------------------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }

/* --------------------- PAGE-SPECIFIC ENHANCEMENTS --------------------- */
/* Index and other pages share the same component classes. Below are extras where needed. */
.kpi-row p { text-align: center; }

/* Country cards on internationale-rentenfaelle */
.country-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.country-cards article { flex: 1 1 260px; background: var(--color-white); border: 1px solid #E6EEF4; border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.country-cards article:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--electric-cyan); }

/* Contact page call-to-actions */
.hero .cta-group .btn-primary img, .cta-group .btn-ghost img { width: 18px; height: 18px; }

/* Footer spacing fix for cookie banner overlap */
body { padding-bottom: 0; }

/* --------------------- MISC VISUALS --------------------- */
hr { border: none; height: 1px; background: #E6EEF4; margin: 20px 0; }
blockquote { border-left: 6px solid var(--hot-pink); padding-left: 12px; color: var(--color-primary); background: var(--color-accent); border-radius: 10px; }

/* --------------------- RESPONSIVE TWEAKS --------------------- */
@media (min-width: 576px) {
  .logo img { height: 40px; }
}

@media (min-width: 768px) {
  .hero .container { padding-top: 44px; padding-bottom: 44px; }
  .content-wrapper { gap: 24px; }
}

@media (min-width: 1024px) {
  .content-wrapper { gap: 28px; }
}

/* --------------------- SAFETY: PREVENT OVERLAP --------------------- */
section, .card, .testimonial-card, .service-cards article, .feature-grid > div, .country-cards article { margin-bottom: 0; }

/* --------------------- PRINT (basic) --------------------- */
@media print {
  header, footer, #cookie-banner, .mobile-menu { display: none !important; }
  a { text-decoration: underline; color: #000; }
  body { color: #000; }
}

/* --------------------- END --------------------- */
