/* =========================
   Reset & Base (Mobile-first)
   ========================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: Verdana, Geneva, sans-serif; font-size: 16px; line-height: 1.6; color: #0B3A53; background: #FFFFFF; }
img { max-width: 100%; height: auto; display: block; }
a { color: #2E7D32; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
a:hover, a:focus { color: #FF2D55; }
:focus-visible { outline: 3px solid #00E5FF; outline-offset: 2px; }

/* =========================
   Design Tokens (Brand + Vibrant Accents)
   ========================= */
:root {
  --color-primary: #0B3A53; /* Brand primary */
  --color-secondary: #2E7D32; /* Brand secondary */
  --color-accent: #F5F7FA; /* Brand accent background */
  --color-ink: #0B3A53; /* Base text */
  --color-electric: #00E5FF; /* Vibrant accent */
  --color-hot: #FF2D55; /* Vibrant CTA */
  --color-sun: #FFB703; /* Vibrant support */
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px;
  --shadow-soft: 0 6px 16px rgba(11,58,83,0.12);
  --shadow-pop: 0 10px 24px rgba(0,229,255,0.25);
}

/* =========================
   Typography
   ========================= */
h1, h2, h3, h4 { font-family: "Trebuchet MS", Tahoma, sans-serif; color: var(--color-primary); line-height: 1.25; margin: 0 0 12px 0; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; letter-spacing: 0.2px; }
h3 { font-size: 18px; letter-spacing: 0.15px; }
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
p { margin: 0 0 10px 0; }
strong { font-weight: 700; }

/* =========================
   Layout Containers (Flexbox only)
   ========================= */
header, main, footer, section { display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 18px; }

/* Global section spacing (breathing room + energy) */
section { padding: 36px 0; margin-bottom: 28px; }
@media (min-width: 768px) { section { padding: 48px 0; margin-bottom: 40px; } }

/* Alternating section backgrounds for dynamism */
main > section:nth-of-type(even) { background: var(--color-accent); }

/* Hero (first section): bold + high-energy */
main > section:first-of-type { background: var(--color-primary); color: #FFFFFF; position: relative; }
main > section:first-of-type .container { gap: 24px; }
main > section:first-of-type h1, main > section:first-of-type h2, main > section:first-of-type h3, main > section:first-of-type p, main > section:first-of-type a { color: #FFFFFF; }
main > section:first-of-type .content-wrapper { border-left: 6px solid var(--color-electric); padding-left: 16px; }

/* =========================
   Header & Navigation
   ========================= */
header { position: sticky; top: 0; background: #FFFFFF; border-bottom: 3px solid var(--color-accent); z-index: 9000; box-shadow: 0 2px 12px rgba(11,58,83,0.05); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 38px; width: auto; }

.main-nav { display: none; align-items: center; gap: 14px; }
.main-nav a { display: flex; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--color-primary); border: 2px solid transparent; font-weight: 600; }
.main-nav a:hover { color: var(--color-hot); border-color: var(--color-electric); background: #ECFEFF; }

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

/* Mobile burger */
.mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--color-primary); background: #FFFFFF; color: var(--color-primary); font-size: 22px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); background: var(--color-accent); }

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

/* =========================
   Mobile Menu Overlay
   ========================= */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(11,58,83,0.96); display: flex; flex-direction: column; padding: 20px; gap: 16px; transform: translateX(100%); transition: transform .35s ease; z-index: 10000; }
.mobile-menu .mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 2px solid #FFFFFF; background: transparent; color: #FFFFFF; font-size: 20px; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mobile-nav a { display: flex; padding: 14px 12px; border-radius: 10px; background: rgba(255,255,255,0.08); color: #FFFFFF; font-size: 18px; border: 2px solid transparent; }
.mobile-nav a:hover { background: rgba(255,255,255,0.16); border-color: var(--color-electric); }

/* Open states supported (JS can toggle any of these) */
.mobile-menu.open, .mobile-menu.is-open, body.menu-open .mobile-menu { transform: translateX(0); }

/* =========================
   Buttons
   ========================= */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 14px; border: 2px solid var(--color-electric); background: var(--color-secondary); color: #FFFFFF !important; font-weight: 800; letter-spacing: 0.3px; text-decoration: none; box-shadow: var(--shadow-pop); transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); background: #1f5f23; border-color: var(--color-sun); box-shadow: 0 14px 30px rgba(11,58,83,0.25); }
.button:active { transform: translateY(0); }

/* =========================
   Text Blocks & Lists
   ========================= */
.text-section { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.text-section ul, .text-section ol { padding-left: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.text-section li { list-style: none; display: flex; align-items: center; gap: 10px; padding-left: 0; }
.text-section li img { width: 20px; height: 20px; }

/* Ordered lists general spacing */
ol.text-section, .text-section ol { counter-reset: item; }

/* =========================
   Testimonials (high contrast)
   ========================= */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FFFFFF; color: var(--color-ink); border: 2px solid #E6EEF3; border-left: 6px solid var(--color-hot); border-radius: 16px; box-shadow: var(--shadow-soft); }
.testimonial-card p { margin: 0; }

/* =========================
   Footer
   ========================= */
footer { background: var(--color-primary); color: #FFFFFF; }
footer .container { gap: 20px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: #ECFEFF; border: 2px solid transparent; padding: 6px 8px; border-radius: 10px; }
.footer-nav a:hover { color: #FFFFFF; border-color: var(--color-electric); background: rgba(255,255,255,0.06); }
footer a.button { align-self: flex-start; background: var(--color-hot); border-color: var(--color-sun); }

/* =========================
   Cards (generic)
   ========================= */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #FFFFFF; border: 1px solid #E6EEF3; border-radius: 14px; box-shadow: var(--shadow-soft); }

/* =========================
   Content grid & text-image sections (Flexbox only)
   ========================= */
.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; }
.text-image-section .text, .text-image-section .image { display: flex; flex: 1 1 280px; }

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

/* =========================
   Header CTA alignment in content wrappers
   ========================= */
.content-wrapper > .text-section:last-child { margin-bottom: 4px; }

/* =========================
   Tables (if any appear later)
   ========================= */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #E6EEF3; }
th { background: var(--color-accent); font-family: "Trebuchet MS", Tahoma, sans-serif; }

/* =========================
   Forms (baseline, if added later)
   ========================= */
input, select, textarea { width: 100%; padding: 12px 14px; border: 2px solid #D8E6EE; border-radius: 12px; font-family: inherit; font-size: 16px; background: #FFFFFF; color: var(--color-ink); transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--color-electric); box-shadow: 0 0 0 4px rgba(0,229,255,0.15); outline: none; }
label { font-weight: 600; margin-bottom: 6px; display: inline-flex; }

/* =========================
   Lists inside sections
   ========================= */
section ul { display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
section li { list-style: none; }

/* =========================
   Micro-interactions
   ========================= */
@media (hover: hover) { .button { will-change: transform; } }

/* =========================
   Cookie Consent Banner & Modal
   ========================= */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; background: var(--color-primary); color: #FFFFFF; border-top: 4px solid var(--color-electric); z-index: 12000; transform: translateY(100%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.show, .cookie-banner.visible, body.cookie-open .cookie-banner { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-text { display: flex; flex-direction: column; gap: 8px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-accept, .cookie-reject, .cookie-settings { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; border: 2px solid transparent; font-weight: 800; cursor: pointer; }
.cookie-accept { background: var(--color-hot); color: #FFFFFF; border-color: var(--color-sun); }
.cookie-reject { background: #FFFFFF; color: var(--color-primary); border-color: var(--color-electric); }
.cookie-settings { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.cookie-accept:hover { filter: brightness(1.05); }
.cookie-reject:hover, .cookie-settings:hover { background: rgba(255,255,255,0.12); }

.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 13000; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.cookie-modal.open, .cookie-modal.visible, body.cookie-modal-open .cookie-modal { opacity: 1; pointer-events: all; }
.cookie-modal-content { width: 100%; max-width: 680px; background: #FFFFFF; color: var(--color-ink); border-radius: 16px; border: 2px solid #E6EEF3; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #E6EEF3; border-radius: 12px; background: var(--color-accent); }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cookie-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--color-primary); background: transparent; color: var(--color-primary); cursor: pointer; }

/* =========================
   Accessibility helpers
   ========================= */
.visually-hidden { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* =========================
   Desktop Enhancements
   ========================= */
@media (min-width: 992px) {
  .container { gap: 28px; }
  .content-wrapper { gap: 20px; }
  header .container { padding-top: 12px; padding-bottom: 12px; }
}

/* =========================
   Mandatory Spacing/Alignment Classes (as required)
   ========================= */
.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; }

/* =========================
   Additional polish for lists and star icon lines
   ========================= */
.text-section img[alt^="Bewertung"] { width: 18px; height: 18px; }

/* =========================
   Header link emphasis (vibrant underline on hover)
   ========================= */
.main-nav a { position: relative; }
.main-nav a::after { content: ""; display: block; position: relative; height: 3px; width: 0; background: var(--color-electric); transition: width .2s ease; border-radius: 2px; }
.main-nav a:hover::after { width: 100%; }

/* =========================
   Ensure gaps between blocks (no overlap)
   ========================= */
.content-wrapper > * + * { margin-top: 0; }

/* =========================
   Hero links contrast
   ========================= */
main > section:first-of-type a { color: #ECFEFF; }
main > section:first-of-type a:hover { color: var(--color-sun); }
main > section:first-of-type .button { background: var(--color-hot); border-color: var(--color-electric); }

/* =========================
   Utility spacing
   ========================= */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

/* =========================
   Z-index sanity
   ========================= */
header { z-index: 9000; }
.mobile-menu { z-index: 10000; }
.cookie-banner { z-index: 12000; }
.cookie-modal { z-index: 13000; }

/* =========================
   Print basics
   ========================= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  section { padding: 0; margin: 0 0 16px 0; }
}
