/* =========================
   Reset & Base Variables
   ========================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  /* Brand palette */
  --color-primary: #102A43; /* Navy */
  --color-secondary: #2C7A7B; /* Teal */
  --color-accent: #F7FAFC; /* Light */
  /* Extended tints/shades to support creative_artistic while staying on-brand */
  --color-ink: #0E2740;
  --color-teal-700: #285E61;
  --color-teal-500: #2C7A7B;
  --color-teal-300: #81E6D9;
  --color-blue-100: #E6EEF5;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F7FAFC;
  --color-muted: #5A6C7D;
  --color-border: #D6E2EE;
  --color-warning: #F6AD55; /* small highlight tag only */

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 6px rgba(16,42,67,0.08);
  --shadow-md: 0 8px 18px rgba(16,42,67,0.12);
  --shadow-lg: 0 14px 30px rgba(16,42,67,0.16);

  --container-max: 1200px;
}

/* =========================
   Typography
   ========================= */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--color-ink);
  background: var(--color-accent);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif; color: var(--color-primary); margin: 0 0 12px 0; letter-spacing: 0.2px; }

h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.25; margin-top: 8px; }
h3 { font-size: 18px; line-height: 1.3; color: var(--color-teal-700); }

p { margin: 0 0 14px 0; font-size: 16px; color: var(--color-ink); }
.subheadline { font-size: 18px; color: var(--color-muted); }
strong { color: var(--color-primary); }

ul, ol { margin: 0 0 14px 20px; padding: 0; }
li { margin: 6px 0; }

/* Links with creative underline */
a { color: var(--color-secondary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--color-teal-700); }
a.btn { text-decoration: none; }

/* =========================
   Containers & Layout (Flex-only)
   ========================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex; /* flex-only layout */
  flex-direction: column; /* mobile-first */
  gap: 20px;
}

.content-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex; /* flex-only */
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
}

/* Decorative artistic corner accents (solid colors for compatibility) */
.content-wrapper::before, .content-wrapper::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: var(--color-teal-300);
  border-radius: 3px;
  opacity: 0.8;
}
.content-wrapper::before { top: 14px; left: 14px; transform: rotate(12deg); }
.content-wrapper::after { bottom: 14px; right: 14px; transform: rotate(-12deg); }

/* Section spacing (both element and class as required) */
section, .section { margin-bottom: 60px; padding: 40px 0; }
.section { padding: 40px 20px; }

/* Required flex patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.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; background: var(--color-surface); border: 1px solid var(--color-border); border-left: 6px solid var(--color-secondary); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--color-primary); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Prevent overlaps and ensure breathing room */
.content-grid > *,.card-container > *, .text-image-section > *, .feature-item > * { flex: 1 1 240px; min-width: 220px; }

/* =========================
   Header & Navigation
   ========================= */
header { position: sticky; top: 0; z-index: 1000; background: var(--color-surface); box-shadow: 0 1px 0 var(--color-border); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }

.logo img { height: 32px; }

.main-nav { display: none; align-items: center; gap: 14px; }
.main-nav a { color: var(--color-primary); font-weight: 600; padding: 8px 10px; border-radius: 10px; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.main-nav a:hover { background: var(--color-blue-100); color: var(--color-teal-700); transform: translateY(-1px); }

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

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mobile-menu-toggle:focus-visible { outline: 3px solid var(--color-teal-300); outline-offset: 2px; }

/* Mobile slide-in menu */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 86vw; max-width: 360px;
  background: var(--color-primary);
  color: #fff;
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -8px 0 26px rgba(16,42,67,0.25);
  z-index: 1200;
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff; cursor: pointer;
}
.mobile-nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-nav a { color: #fff; font-weight: 600; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.06); }
.mobile-nav a:hover { background: rgba(255,255,255,0.12); }

/* =========================
   Buttons
   ========================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 700; border: 2px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease; cursor: pointer; }
.btn.primary { background: var(--color-secondary); color: #fff; box-shadow: var(--shadow-sm); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--color-teal-700); }
.btn.secondary { background: #fff; color: var(--color-secondary); border-color: var(--color-secondary); }
.btn.secondary:hover { background: var(--color-blue-100); color: var(--color-teal-700); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-teal-300); outline-offset: 2px; }

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

/* Trust badges */
.trust-badges ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.trust-badges li { display: flex; align-items: center; gap: 8px; background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 12px; }
.trust-badges img { width: 18px; height: 18px; }

/* Text blocks */
.text-section { display: flex; flex-direction: column; gap: 8px; }

/* Artistic section headers: underline bar */
.content-wrapper > h2 { position: relative; padding-bottom: 6px; }
.content-wrapper > h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 6px; width: 74px; background: var(--color-teal-300); border-radius: 6px; }

/* Testimonials (readable: dark text on light background) */
.testimonial-card p { margin: 0; color: var(--color-primary); }
.testimonial-card strong { color: var(--color-teal-700); }

/* Cards hover micro-interaction */
.card:hover, .content-wrapper:hover { box-shadow: var(--shadow-md); }

/* Price highlight inside <span> (e.g., Mest populär) */
.text-section h3 span { display: inline-flex; align-items: center; padding: 4px 8px; margin-left: 8px; border-radius: 999px; background: var(--color-warning); color: #452B0B; font-size: 14px; font-weight: 800; }

/* Lists in content wrappers for clarity */
.content-wrapper ul { padding-left: 18px; }
.content-wrapper ul li { padding-left: 2px; }

/* =========================
   Footer
   ========================= */
footer { background: var(--color-primary); color: #d7e4ef; }
footer a { color: #eaffff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { background: transparent; border: 0; box-shadow: none; color: inherit; }
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: 24px; }
footer .text-section { flex: 1 1 220px; min-width: 220px; }
footer .text-section h3 { color: #fff; }
footer .logo img { filter: brightness(0) invert(1); height: 30px; }
footer p, footer strong {color: white;}

/* =========================
   Forms (generic styles for potential inputs)
   ========================= */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--color-border); background: #fff; color: var(--color-primary);
}
input:focus, textarea:focus, select:focus { outline: 3px solid var(--color-teal-300); border-color: var(--color-teal-700); }

/* =========================
   Cookie Consent Banner & Modal
   ========================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300;
  display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center;
  background: #FFFFFF; color: var(--color-primary);
  border-top: 3px solid var(--color-teal-300);
  box-shadow: 0 -8px 28px rgba(16,42,67,0.12);
  padding: 16px 18px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 14px; border-radius: 12px; font-weight: 700; border: 2px solid transparent; cursor: pointer; }
.cookie-btn.accept { background: var(--color-secondary); color: #fff; }
.cookie-btn.accept:hover { background: var(--color-teal-700); }
.cookie-btn.reject { background: #fff; color: var(--color-secondary); border-color: var(--color-secondary); }
.cookie-btn.reject:hover { background: var(--color-blue-100); }
.cookie-btn.settings { background: var(--color-surface-alt); color: var(--color-primary); border-color: var(--color-border); }

/* Cookie modal */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(16,42,67,0.45); display: none; align-items: center; justify-content: center; z-index: 1400; }
.cookie-backdrop.open { display: flex; }
.cookie-modal {
  width: min(94vw, 640px);
  background: #fff; color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}
.cookie-backdrop.open .cookie-modal { transform: translateY(0); }
.cookie-modal .rows { display: flex; flex-direction: column; gap: 12px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px dashed var(--color-border); border-radius: 12px; background: var(--color-surface-alt); }
/* Toggle style */
.toggle { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #d9e7f2; border: 1px solid var(--color-border); display: inline-flex; align-items: center; padding: 2px; }
.toggle input { appearance: none; width: 100%; height: 100%; margin: 0; }
.toggle::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transform: translateX(0); transition: transform 0.2s ease, background 0.2s ease; }
.toggle input:checked + .knob, .toggle input:checked ~ .knob { /* reserved if using extra markup */ }
.toggle.checked { background: var(--color-teal-300); }
.toggle.checked::after { transform: translateX(20px); background: #fff; }
.cookie-modal .actions { display: flex; justify-content: flex-end; gap: 10px; }

/* =========================
   Utilities
   ========================= */
.muted { color: var(--color-muted); }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: var(--color-surface-alt); color: var(--color-primary); font-size: 12px; border: 1px solid var(--color-border); }
.hr { width: 100%; height: 1px; background: var(--color-border); margin: 8px 0; }

/* =========================
   Page-specific touches
   ========================= */
/* Hero h1 gets a lively underline bar */
.content-wrapper > h1 { position: relative; padding-bottom: 8px; }
.content-wrapper > h1::after { content: ""; position: absolute; left: 0; bottom: 0; height: 8px; width: 110px; background: var(--color-teal-300); border-radius: 8px; }

/* Contact info icons alignment */
.content-wrapper p img { display: inline-block; vertical-align: middle; margin-right: 6px; }

/* =========================
   Accessibility & Focus
   ========================= */
:focus-visible { outline: 3px solid var(--color-teal-300); outline-offset: 2px; }

/* =========================
   Responsive (mobile-first)
   ========================= */
@media (min-width: 640px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .logo img { height: 36px; }
}

@media (min-width: 768px) {
  /* Show desktop nav and header CTAs */
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  .container { gap: 24px; }
  .content-wrapper { padding: 28px; }

  /* Arrange footer columns */
  footer .content-wrapper { flex-direction: row; align-items: flex-start; }

  /* Text-image sections side-by-side */
  .text-image-section { flex-direction: row; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .logo img { height: 40px; }
  header .container { padding-top: 16px; padding-bottom: 16px; }
}

/* =========================
   Ensured Minimum Spacing Between Cards/Sections
   ========================= */
.content-wrapper + .content-wrapper, .card + .card, .testimonial-card + .testimonial-card { margin-top: 20px; }

/* =========================
   Print basics (optional)
   ========================= */
@media print { header, footer, .mobile-menu, .cookie-banner, .cookie-backdrop { display: none !important; } body { background: #fff; } .content-wrapper { box-shadow: none; } }
