/* ===============================
   Nature_Organic Style - style.css
   Brand: RentenBrücke International
   Mobile-first, Flexbox-only
   ================================ */

/* --- CSS Reset & Base Normalize --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
blockquote { margin: 0; }

/* --- Design Tokens (with fallbacks) --- */
:root {
  --primary: #0B3D4E; /* deep teal */
  --secondary: #2C6E49; /* forest green */
  --accent: #F5F7FA; /* light accent */
  --sand: #F2EFE9; /* earthy sand */
  --clay: #8B6E4E; /* clay brown */
  --leaf: #5C7F67; /* muted leaf */
  --ink: #1F2D2A; /* primary text */
  --muted: #5E6B64; /* secondary text */
  --border: #D9E2DC; /* soft border */
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(15, 26, 23, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 26, 23, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --focus: 2px solid #2C6E49;
}

/* --- Base Typography --- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--ink);
  background: #FAFBF9; /* airy, nature-inspired */
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif; /* brand display */
  color: var(--primary);
  line-height: 1.25;
  margin: 0 0 12px 0;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p, li { font-size: 16px; color: var(--ink); }
small { color: var(--muted); font-size: 14px; }
strong { color: var(--primary); }

/* --- Links --- */
a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
a.btn { text-decoration: none; }

/* --- Container & Layout --- */
.container {
  display: flex; /* flexbox only */
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mandatory spacing and alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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 { background: var(--white); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.header-flex { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo img { height: 44px; width: auto; }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { color: var(--primary); font-weight: 600; padding: 8px 10px; border-radius: var(--radius-sm); }
.main-nav a:hover { background: var(--accent); color: var(--secondary); }

.header-cta { display: none; align-items: center; gap: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius-pill); border: 1px solid transparent; transition: all 0.2s ease; cursor: pointer; font-weight: 700; }
.btn-primary { background: var(--secondary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #245B3D; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--sand); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { background: #ECE7DF; }
.btn:focus { outline: var(--focus); outline-offset: 2px; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--accent); color: var(--primary); cursor: pointer; }
.mobile-menu-toggle:hover { background: #E8EEF7; }

/* --- Mobile Menu Overlay --- */
.mobile-menu { position: fixed; inset: 0; background: rgba(11, 61, 78, 0.3); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; transform: translateX(100%); transition: transform 0.3s ease; z-index: 1000; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-nav { display: flex; flex-direction: column; gap: 10px; width: 86%; max-width: 340px; background: var(--white); padding: 20px; border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.mobile-menu-close { align-self: flex-end; background: var(--accent); border: 1px solid var(--border); color: var(--primary); width: 38px; height: 38px; border-radius: var(--radius-pill); cursor: pointer; }
.mobile-nav a { display: flex; padding: 12px 10px; border-radius: var(--radius-sm); color: var(--primary); font-weight: 600; }
.mobile-nav a:hover { background: var(--accent); }

/* --- Hero Sections --- */
.hero, .thankyou-hero { position: relative; background: var(--sand); }
.hero .container, .thankyou-hero .container { padding-top: 24px; padding-bottom: 24px; }
.hero .content-wrapper, .thankyou-hero .content-wrapper { display: flex; flex-direction: column; gap: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Organic decorative leaves (decorative only) */
.hero::before, .thankyou-hero::before { content: ""; position: absolute; inset: auto auto -24px -24px; width: 120px; height: 120px; border-radius: 60% 40% 65% 35% / 55% 60% 40% 45%; background: rgba(44,110,73,0.08); z-index: 0; pointer-events: none; }
.hero::after, .thankyou-hero::after { content: ""; position: absolute; inset: -28px -28px auto auto; width: 90px; height: 90px; border-radius: 40% 60% 45% 55% / 50% 35% 65% 50%; background: rgba(11,61,78,0.06); z-index: 0; pointer-events: none; }
.hero .container, .thankyou-hero .container { position: relative; z-index: 1; }

/* Trust badges & language switch */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trust-badges span { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border); padding: 8px 12px; border-radius: var(--radius-pill); color: var(--leaf); box-shadow: var(--shadow-sm); }
.language-switch { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.language-switch span { padding: 6px 10px; background: var(--accent); border-radius: var(--radius-pill); border: 1px solid var(--border); }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--secondary); }

/* --- Generic Section Styling --- */
main section { margin-bottom: 60px; padding: 40px 0; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; }

/* Lists - organic markers */
ul li::marker { color: var(--leaf); }
ul li { margin-bottom: 8px; }
ol { padding-left: 1.2rem; }
ol li { margin-bottom: 8px; }

/* Inline CTA links */
.cta-inline-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); }
.cta-inline-links a { color: var(--secondary); font-weight: 600; }

/* Text sections */
.text-section { display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }

/* Feature and service groups */
.features .content-wrapper,
.key-services .content-wrapper,
.services-consulting .content-wrapper,
.services-acknowledgement .content-wrapper,
.services-procedure .content-wrapper,
.how-we-work .content-wrapper,
.features-what-drv-considers .content-wrapper,
.our-support .content-wrapper,
.features-countries-scenarios .content-wrapper,
.about-legal-background .content-wrapper,
.features-when-to-object .content-wrapper,
.our-procedure-services .content-wrapper,
.features-steps-timeline .content-wrapper,
.collaboration-steps .content-wrapper,
.pricing-section .content-wrapper,
.communication-section .content-wrapper,
.team-strengths .content-wrapper,
.privacy-policy-details .content-wrapper,
.dsgvo-rights .content-wrapper,
.cookie-types .content-wrapper,
.terms-main .content-wrapper { background: var(--accent); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }

/* CTA banner */
.cta-banner { display: flex; flex-direction: column; gap: 12px; background: var(--secondary); color: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-md); }
.cta-banner h2, .cta-banner p { color: var(--white); }

/* Testimonial cards - high contrast on light bg */
.testimonials .testimonial-card,
.testimonials-team .testimonial-card,
.testimonials-results .testimonial-card { background: var(--white); border: 1px solid var(--border); border-left: 6px solid var(--secondary); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--ink); }
.testimonial-card blockquote { color: var(--ink); font-style: italic; }
.testimonial-card span { color: var(--muted); }

.case-snapshots ul { display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }

/* Contact blocks */
.contact-cta .content-wrapper,
.contact-section .content-wrapper,
.contact-submit-bescheid .content-wrapper,
.contact-offer .content-wrapper,
.contact-team .content-wrapper,
.contact-request .content-wrapper,
.contact-form-infos .content-wrapper,
.cookie-questions .content-wrapper,
.contact-legal .content-wrapper,
.thank-you-contact .content-wrapper { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }

/* Icon lists */
.contact-cta ul,
.contact-section ul,
.contact-submit-bescheid ul,
.contact-offer ul,
.contact-team ul,
.contact-form-infos ul,
.cookie-questions ul,
.contact-request ul,
.contact-rights-exercise ul,
.thank-you-contact ul { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.contact-cta li,
.contact-section li,
.contact-submit-bescheid li,
.contact-offer li,
.contact-team li,
.contact-form-infos li,
.cookie-questions li,
.contact-request li,
.contact-rights-exercise li,
.thank-you-contact li { display: flex; align-items: center; gap: 10px; }
.contact-cta li img,
.contact-section li img,
.contact-submit-bescheid li img,
.contact-offer li img,
.contact-team li img,
.contact-form-infos li img,
.cookie-questions li img,
.contact-request li img,
.contact-rights-exercise li img,
.thank-you-contact li img { width: 18px; height: 18px; }

/* Map placeholder */
.map-embed-placeholder { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--border); background: var(--accent); padding: 14px; border-radius: var(--radius-md); color: var(--muted); }

/* Tips & notes */
.tip { background: #ECF4EF; color: #214235; border: 1px solid #CFE3D7; padding: 12px 14px; border-radius: var(--radius-md); }
.privacy-note { display: flex; }

/* Footer */
footer { background: #F7F5F1; border-top: 1px solid var(--border); margin-top: 30px; }
.footer-flex { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 20px 0; }
.footer-logo img { height: 44px; }
.footer-nav, .footer-legal-nav, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-legal-nav a { color: var(--primary); font-weight: 600; }
.footer-nav a:hover, .footer-legal-nav a:hover { color: var(--secondary); }
.footer-disclaimer { display: flex; padding: 10px 0 20px; color: var(--muted); }
.cookie-consent-summary { display: flex; padding: 10px 0; color: var(--muted); }

/* Thank you steps */
.thank-you-steps .content-wrapper { background: var(--accent); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }

/* --- Tables (if any in future) --- */
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--border); padding: 10px; text-align: left; }

/* --- Accessibility Focus --- */
:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(15,26,23,0.08); z-index: 1100; transform: translateY(100%); transition: transform 0.3s ease; }
.cookie-banner.open { transform: translateY(0); }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--accent); color: var(--primary); cursor: pointer; transition: background 0.2s ease; }
.cookie-btn:hover { background: #E8EEF7; }
.cookie-btn.accept { background: var(--secondary); color: var(--white); border-color: transparent; }
.cookie-btn.accept:hover { background: #245B3D; }
.cookie-btn.reject { background: #EAE6DE; color: var(--primary); }
.cookie-btn.reject:hover { background: #E2DDD3; }

/* Cookie preferences modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 1200; }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal .cookie-panel { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 680px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 20px; }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.cookie-row:last-child { border-bottom: none; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--secondary); }
.cookie-panel .panel-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* --- Utilities --- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* --- Responsive Rules --- */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  p, li { font-size: 17px; }

  .hero .container, .thankyou-hero .container { padding-top: 40px; padding-bottom: 40px; }

  .text-image-section { flex-direction: row; }
}

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

  .hero .content-wrapper, .thankyou-hero .content-wrapper { max-width: 900px; }

  /* Footer alignment */
  .footer-flex { align-items: flex-start; }
}

/* --- Page-specific fine-tuning --- */
/* Index */
.index .hero { background: var(--sand); }

/* Lists spacing in service/feature blocks */
.services-consulting ul,
.services-acknowledgement ul,
.services-procedure ul,
.how-we-work ul,
.features-what-drv-considers ul,
.our-support ul,
.features-countries-scenarios ul,
.features-when-to-object ul,
.our-procedure-services ul,
.communication-section ul,
.team-strengths ul,
.privacy-policy-details ul,
.dsgvo-rights ul,
.cookie-types ul,
.terms-main ul,
.what-to-bring ul,
.thank-you-steps ol { display: flex; flex-direction: column; gap: 8px; }

/* Steps lists */
.features-steps-timeline ol,
.collaboration-steps ol,
.thank-you-steps ol { display: flex; flex-direction: column; gap: 8px; padding-left: 1.4rem; }

/* Contact specific blocks */
.contact-calendar-info { display: flex; align-items: center; gap: 10px; background: #EDF3EF; color: #1F392E; border: 1px solid #D0E2D4; padding: 12px 14px; border-radius: var(--radius-md); font-weight: 700; }

/* Error-resilient for malformed list in ueber-uns */
.about-mission ul { display: flex; flex-direction: column; gap: 8px; list-style: disc; padding-left: 1.2rem; }

/* --- Cards (generic) --- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); transition: transform 0.2s ease, box-shadow 0.2s ease; }

/* --- Alignment helpers for content groups --- */
.content-grid { align-items: stretch; }

/* Ensure adequate spacing between components */
main section + section { margin-top: 0; }
.content-wrapper > * + * { margin-top: 0; }

/* --- High-contrast guarantee for testimonials on any bg --- */
.testimonials, .testimonials-team, .testimonials-results { background: transparent; }
.testimonials blockquote, .testimonials-team blockquote, .testimonials-results blockquote { color: #182522; }

/* --- Print basics --- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
