/* =============================
   CSS RESET & NORMALIZE
   ============================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 20px; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0 0 16px 0; }
button { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #0C6A3A; outline-offset: 2px; }

/* =============================
   THEME VARIABLES (with fallbacks)
   ============================= */
:root {
  --primary: #0B3D5D;
  --secondary: #0C6A3A;
  --accent: #F4F6F8;
  --ink: #0B2A3E;
  --ink-soft: #24465E;
  --muted: #6B7A88;
  --white: #FFFFFF;
  --warning: #F5A623;
  --danger: #E23D28;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --shadow-s: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-m: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-l: 0 14px 40px rgba(0,0,0,0.18);
  --gap-s: 12px;
  --gap-m: 20px;
  --gap-l: 30px;
}

/* =============================
   TYPOGRAPHY (Modern Bold)
   ============================= */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--ink, #0B2A3E);
  background: var(--accent, #F4F6F8);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: "Trebuchet MS", Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 800;
  color: var(--primary, #0B3D5D);
  letter-spacing: 0.2px;
}
h1 { font-size: 32px; line-height: 1.15; margin-bottom: 12px; }
h2 { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.3; margin-top: 12px; }
p, li { font-size: 16px; }
strong { font-weight: 800; }

/* Typography scale on larger screens */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* =============================
   LAYOUT WRAPPERS (Flex-only)
   ============================= */
.container {
  display: flex; /* flex container as required */
  width: 100%;
  justify-content: center;
  padding: 0 16px;
}
.content-wrapper {
  display: flex; /* flex container */
  flex-direction: column; /* mobile-first */
  flex-wrap: wrap;
  gap: var(--gap-m);
  width: 100%;
  max-width: 1180px;
  padding: 24px 0;
}
/* Headings inside wrappers span full width */
.content-wrapper > h1,
.content-wrapper > h2 { flex: 1 1 100%; }

/* Generic section spacing for semantic <section> */
section { margin: 0 0 48px 0; }

/* =============================
   MANDATORY SPACING PATTERNS (exact)
   ============================= */
.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 & NAVIGATION
   ============================= */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white, #FFFFFF);
  border-bottom: 4px solid var(--primary, #0B3D5D);
  box-shadow: var(--shadow-s);
}
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--gap-m); }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; }

/* Main navigation */
.main-nav { display: none; /* hidden on mobile */ align-items: center; gap: 16px; }
.main-nav a {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink, #0B2A3E);
  border-radius: var(--radius-s);
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.main-nav a:hover { background: var(--accent, #F4F6F8); color: var(--primary, #0B3D5D); transform: translateY(-1px); }
.header-cta { display: none; align-items: center; gap: 12px; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary, #0B3D5D);
  color: #fff;
  box-shadow: var(--shadow-s);
  transition: transform .2s ease, background-color .2s ease;
}
.mobile-menu-toggle:hover { transform: scale(1.04); background: #094057; }

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

/* =============================
   MOBILE MENU OVERLAY
   ============================= */
.mobile-menu {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  background: var(--white, #FFFFFF);
  transform: translateX(100%);
  transition: transform .35s ease;
  box-shadow: var(--shadow-l);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; margin: 16px; width: 44px; height: 44px; border-radius: 10px;
  background: var(--secondary, #0C6A3A); color: #fff; display: flex; align-items: center; justify-content: center;
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 24px; }
.mobile-nav a {
  display: flex; padding: 14px 12px; border-radius: 10px; font-weight: 800; color: var(--primary, #0B3D5D);
  background: var(--accent, #F4F6F8);
  transition: background-color .2s ease, transform .15s ease;
}
.mobile-nav a:hover { background: #E9EEF2; transform: translateX(4px); }

/* =============================
   HERO SECTION (Modern Bold)
   ============================= */
.hero { position: relative; overflow: hidden; }
.hero .container { background: var(--white, #FFFFFF); }
.hero .content-wrapper {
  background: var(--accent, #F4F6F8);
  border: 2px solid var(--primary, #0B3D5D);
  border-radius: var(--radius-l);
  padding: 32px 20px;
  box-shadow: var(--shadow-m);
}
/* Bold colored bar and geometric accent */
.hero .content-wrapper::before {
  content: ""; position: absolute; z-index: 0;
  top: 0; left: -10%; width: 120%; height: 12px; background: var(--secondary, #0C6A3A);
}
.hero .content-wrapper::after {
  content: ""; position: absolute; z-index: 0; right: -40px; bottom: -40px;
  width: 160px; height: 160px; border-radius: 16px; transform: rotate(12deg);
  background: var(--primary, #0B3D5D); opacity: 0.08;
}
.hero h1, .hero p, .hero .cta-group, .hero .trust-badges, .hero .location-note { position: relative; z-index: 1; }
.hero p { color: var(--ink-soft, #24465E); max-width: 780px; }
.location-note { color: var(--muted, #6B7A88); font-size: 14px; }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Trust badges */
.trust-badges { display: flex; align-items: center; justify-content: flex-start; }
.trust-badges .text-section { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; }
.trust-badges p { display: flex; align-items: center; gap: 8px; }

/* =============================
   TEXT BLOCKS & LISTS
   ============================= */
.text-section {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--white, #FFFFFF);
  border: 1px solid #E3E8ED; border-radius: var(--radius-m); box-shadow: var(--shadow-s);
  flex: 1 1 280px;
}
.text-section a { color: var(--secondary, #0C6A3A); font-weight: 800; text-decoration: underline; }
.text-section ul li, .text-section ol li { margin-bottom: 8px; }

/* Ordered list used in process sections */
ol.text-section { padding-left: 36px; }

/* =============================
   BUTTONS (Modern Bold)
   ============================= */
.btn { display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px; font-weight: 800; letter-spacing: 0.3px;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary, #0B3D5D); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: #0A3957; box-shadow: var(--shadow-m); color: white;}
.btn-secondary { background: var(--secondary, #0C6A3A); color: #fff; box-shadow: var(--shadow-s); }
.btn-secondary:hover { background: #0B6136; box-shadow: var(--shadow-m); color: #ffffff;}
.btn-outline { background: #fff; border-color: var(--primary, #0B3D5D); color: var(--primary, #0B3D5D); }
.btn-outline:hover { background: var(--accent, #F4F6F8); }
a.btn.btn-primary {color: white;}

/* =============================
   TESTIMONIALS (Readable, light bg)
   ============================= */
.testimonial-card {
  background: var(--white, #FFFFFF);
  border: 2px solid #E7ECF0;
  border-left: 6px solid var(--secondary, #0C6A3A);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  color: var(--ink, #0B2A3E);
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--ink-soft, #24465E); }

/* =============================
   FOOTER
   ============================= */
footer { background: var(--primary, #0B3D5D); color: #fff; }
footer .content-wrapper { flex-direction: row; flex-wrap: wrap; gap: 16px; }
footer .text-section { background: transparent; border: none; box-shadow: none; color: #E7F1F8 !important; flex: 1 1 260px; padding: 0; }
footer h3 {color: #A7F3C2;}
footer a { color: #A7F3C2 !important; font-weight: 800; }
footer a:hover { color: #C4F7D7; text-decoration: underline; }

/* =============================
   GENERIC CARDS (for future use)
   ============================= */
.card {
  background: var(--white, #FFFFFF);
  border: 1px solid #E3E8ED;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 20px;
}

/* =============================
   FLEX UTILITIES & CONTENT GRIDS
   ============================= */
.content-grid { align-items: stretch; }
.content-grid > * { flex: 1 1 280px; }
.text-image-section { justify-content: space-between; }
.text-image-section > * { flex: 1 1 320px; }
.feature-item > h3 { margin-bottom: 0; }

/* =============================
   RESPONSIVE BEHAVIOR
   ============================= */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}
@media (min-width: 768px) {
  .content-wrapper { flex-direction: row; }
}

/* =============================
   LINKS & MICRO INTERACTIONS
   ============================= */
a { transition: color .2s ease, background-color .2s ease; }
a:hover { color: var(--secondary, #0C6A3A); }

/* =============================
   ACCESSIBLE BADGES & ICON TEXT
   ============================= */
.text-section img { width: 18px; height: 18px; }
.text-section p img { margin-right: 8px; }

/* =============================
   COOKIE CONSENT BANNER
   ============================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: -200px; z-index: 3000;
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  background: var(--white, #FFFFFF);
  border-top: 4px solid var(--primary, #0B3D5D);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
  padding: 16px;
  transition: bottom .35s ease;
}
.cookie-banner.show { bottom: 0; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-buttons .btn { padding: 10px 14px; border-radius: 10px; }
.btn-cookie-accept { background: var(--secondary, #0C6A3A); color: #fff; }
.btn-cookie-reject { background: #EAEFF3; color: var(--ink, #0B2A3E); border: 2px solid #D3DCE4; }
.btn-cookie-settings { background: var(--primary, #0B3D5D); color: #fff; }
.btn-cookie-reject:hover { background: #E1E8EE; }

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 4000;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
  transition: opacity .3s ease;
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-panel {
  display: flex; flex-direction: column; gap: 14px; width: 92%; max-width: 680px;
  background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  padding: 20px; border: 3px solid var(--primary, #0B3D5D);
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ECF0F3; }
.cookie-modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
/* Toggle style */
.toggle { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #D7DFE6; transition: background .2s ease; }
.toggle::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; top: 3px; left: 3px; box-shadow: var(--shadow-s); transition: transform .2s ease; }
.toggle.on { background: var(--secondary, #0C6A3A); }
.toggle.on::after { transform: translateX(20px); }

/* =============================
   FORMS & MISC (future-proof)
   ============================= */
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #D7DFE6; background: #fff;
}

/* =============================
   PAGE-SPECIFIC TWEAKS
   ============================= */
/* Index: emphasize stats and reasons */
.hero + section .text-section:first-of-type { border-left: 6px solid var(--primary, #0B3D5D); }

/* Preise page: highlight packages blocks */
body:has(title:contains("Preise")) .text-section { border-left: 6px solid #0B3D5D; }

/* Kundenstimmen page: ensure high contrast */
body:has(title:contains("Kundenstimmen")) .testimonial-card { background: #fff; color: #0B2A3E; }

/* =============================
   DESKTOP SPACING ENHANCEMENTS
   ============================= */
@media (min-width: 992px) {
  section { margin-bottom: 60px; }
  .hero .content-wrapper { padding: 40px 28px; }
  .text-section { padding: 18px 20px; }
}

/* =============================
   PRINT BASICS
   ============================= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  body { background: #fff; }
}

/* =============================
   ACCESSIBILITY HINTS
   ============================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =============================
   ENSURE NO OVERLAPS (spacers)
   ============================= */
.content-wrapper > * + * { margin-top: 0; }

/* =============================
   END OF FILE
   ============================= */
