/* Complete CSS styles for all pages with mobile menu and cookie banner */
/* =========================
   CSS Reset & Base Normalize
   ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* =========================
   Theme Variables (with fallbacks)
   ========================= */
:root {
  --primary: #0A3A5E; /* deep trust blue */
  --secondary: #2DAE7F; /* friendly green */
  --accent: #F5F8FC; /* light background */
  --text: #243B53; /* readable dark */
  --muted: #627D98; /* muted text */
  --warm-1: #FFF7F0; /* warm friendly tint */
  --warm-2: #FFEDE0; /* deeper warm tint */
  --border: #E6ECF3;
  --shadow: 0 6px 18px rgba(10, 58, 94, 0.08);
  --shadow-lg: 0 12px 28px rgba(10, 58, 94, 0.12);
  --radius: 14px;
}

/* =========================
   Base Typography & Layout
   ========================= */
body {
  font-family: Verdana, "Trebuchet MS", Arial, sans-serif;
  color: var(--text);
  background: var(--accent);
  line-height: 1.6;
  letter-spacing: 0.1px;
}

h1, h2, h3, h4, h5, h6 { font-family: "Trebuchet MS", Verdana, Arial, sans-serif; color: var(--primary); line-height: 1.25; }
h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p, li { font-size: 16px; }
small, .small { font-size: 14px; color: var(--muted); }

/* Links */
main a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
main a:hover { color: #084062; }
main a.cta-button, main a.cta-secondary { text-decoration: none; }

/* Lists with friendly bullets */
ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
ul li { display: flex; align-items: flex-start; gap: 10px; }
ul li::before { content: ""; flex: 0 0 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--secondary); box-shadow: 0 1px 0 rgba(0,0,0,0.06); }

ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
ol li { padding-left: 4px; }

/* Containers */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 24px; }

/* Sections */
section { padding: 30px 0; display: flex; }
section > .container { gap: 20px; }

/* Card-like content wrapper for warm, friendly look */
.content-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* Calls to action area */
.cta-area { display: flex; flex-wrap: wrap; gap: 12px; }

/* Trust badges (chips) */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badges li { gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--warm-1); border: 1px solid #FFDCC3; color: var(--primary); font-weight: 600; box-shadow: 0 2px 6px rgba(255, 173, 124, 0.15); }
.trust-badges li::before { background: #FFB37B; }

/* =========================
   Header & Navigation
   ========================= */
header { position: sticky; top: 0; z-index: 900; background: #FFFFFF; box-shadow: 0 6px 18px rgba(10, 58, 94, 0.06); border-bottom: 1px solid var(--border); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
header a img { height: 36px; }

header nav { display: none; align-items: center; flex-wrap: wrap; gap: 16px; }
header nav a { color: var(--primary); font-weight: 600; padding: 8px 10px; border-radius: 10px; transition: background 0.2s ease, color 0.2s ease; }
header nav a:hover { background: var(--accent); color: #08314D; }

/* Header CTA: hidden on mobile by default */
header .cta-button { display: none; }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--warm-1); color: var(--primary); box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.mobile-menu-toggle:focus-visible { outline: 3px solid rgba(45, 174, 127, 0.35); outline-offset: 2px; }

/* =========================
   Buttons
   ========================= */
.cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; background: var(--secondary); color: #FFFFFF; font-weight: 800; border-radius: 14px; box-shadow: 0 8px 18px rgba(45, 174, 127, 0.25); transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.cta-button:hover { background: #24966D; transform: translateY(-1px); box-shadow: 0 12px 24px rgba(45, 174, 127, 0.3); }
.cta-button:active { transform: translateY(0); }
.cta-button:focus-visible { outline: 3px solid rgba(45, 174, 127, 0.35); outline-offset: 2px; }

.cta-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; background: #FFFFFF; color: var(--primary); border: 2px solid var(--primary); border-radius: 14px; font-weight: 700; box-shadow: var(--shadow); transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.cta-secondary:hover { background: var(--accent); transform: translateY(-1px); }
.cta-secondary:focus-visible { outline: 3px solid rgba(10, 58, 94, 0.25); outline-offset: 2px; }

/* =========================
   Testimonials (high contrast)
   ========================= */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FFFFFF; border: 1px solid var(--border); border-left: 6px solid var(--secondary); border-radius: 16px; box-shadow: var(--shadow); color: #162B3A; }
.testimonial-card blockquote { font-style: italic; color: #162B3A; }
.testimonial-card cite { color: var(--muted); font-weight: 700; }

/* =========================
   Footer
   ========================= */
footer { background: var(--primary); color: #FFFFFF; margin-top: 20px; }
footer .container { padding: 28px 20px; }
.footer-menus { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer-menus nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-menus nav a { color: rgba(255,255,255,0.9); padding: 6px 8px; border-radius: 10px; transition: background 0.2s ease; }
.footer-menus nav a:hover { background: rgba(255,255,255,0.08); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); }
.footer-copy { display: flex; justify-content: center; align-items: center; text-align: center; padding-top: 12px; color: rgba(255,255,255,0.85); }

/* =========================
   Mobile Menu (overlay)
   ========================= */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; background: #FFFFFF; transform: translateX(100%); transition: transform 0.3s ease; z-index: 1100; box-shadow: var(--shadow-lg); pointer-events: none; }
.mobile-menu.open { transform: translateX(0); pointer-events: auto; }
.mobile-menu-close { align-self: flex-end; margin: 16px; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; padding: 0 20px 20px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border-radius: 12px; color: var(--primary); font-weight: 700; border: 1px solid var(--border); background: #FFFFFF; box-shadow: var(--shadow); }
.mobile-nav a:hover { background: var(--warm-1); }

/* Lock scroll when menu is open (JS toggles body.menu-open) */
body.menu-open { overflow: hidden; }

/* =========================
   Cookie Consent Banner & Modal
   ========================= */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #FFFFFF; border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(10, 58, 94, 0.06); padding: 14px 16px; transform: translateY(100%); transition: transform 0.3s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-text { flex: 1 1 240px; color: var(--text); }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 700; border: 2px solid transparent; transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: #24966D; transform: translateY(-1px); }
.btn-outline { background: #FFFFFF; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--accent); }
.btn-neutral { background: var(--warm-1); color: var(--primary); border-color: #FFDCC3; }
.btn-neutral:hover { background: var(--warm-2); }

/* Cookie preferences modal */
.cookie-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 58, 94, 0.4); opacity: 0; pointer-events: none; z-index: 1300; transition: opacity 0.25s ease; }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-dialog { width: 92%; max-width: 720px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.cookie-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-options { display: flex; flex-direction: column; gap: 12px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--accent); }
.cookie-option .label { display: flex; flex-direction: column; gap: 4px; }

/* Toggle switch */
.switch { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #CBD2D9; transition: background 0.2s ease; display: flex; align-items: center; padding: 2px; }
.switch::after { content: ""; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow); transform: translateX(0); transition: transform 0.2s ease; }
input[type="checkbox"].switch-input { position: absolute; opacity: 0; }
input[type="checkbox"].switch-input:checked + .switch { background: var(--secondary); }
input[type="checkbox"].switch-input:checked + .switch::after { transform: translateX(18px); }

/* =========================
   Utility & Mandatory Patterns
   ========================= */
.section { margin-bottom: 60px; padding: 40px 20px; display: flex; flex: 1; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.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 { /* already defined above per pattern; duplicate properties kept consistent */ }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Contact highlight blocks */
.contact-cta { background: var(--warm-1); border: 1px solid #FFDCC3; }
.contact-cta p { display: flex; align-items: center; gap: 8px; }
.contact-cta img { width: 18px; height: 18px; }

/* Text section on contact page */
.text-section { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.text-section h3 { margin-top: 4px; }
.datenschutz { color: var(--muted); font-size: 14px; }

/* =========================
   Micro-interactions & Focus
   ========================= */
[tabindex], a, button { transition: box-shadow 0.2s ease, transform 0.15s ease; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(10,58,94,0.25); outline-offset: 2px; border-radius: 10px; }

/* =========================
   Responsive Rules (Mobile-first)
   ========================= */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .content-wrapper { padding: 28px; gap: 18px; }
  section { padding: 40px 0; }
  .container { gap: 28px; }
}

@media (min-width: 992px) {
  header nav { display: flex; }
  header .cta-button { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
  h1 { font-size: 40px; }
}

@media (min-width: 1200px) {
  h1 { font-size: 48px; }
}

/* =========================
   Additional Friendly Visuals
   ========================= */
/* Subtle section background alternation for warmth */
main section:nth-of-type(odd) { background: transparent; }
main section:nth-of-type(even) { background: #FAFCFF; }

/* Strong readability in testimonial/review contexts */
.testimonial-card, .testimonial-card blockquote, .testimonial-card cite { color: #172B3A; }

/* Ensure adequate spacing between all elements to prevent overlap */
.content-wrapper > * + * { margin-top: 0; }

/* =========================
   Print basics
   ========================= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; }
  .content-wrapper { box-shadow: none; border-color: #ddd; }
}
