/* ==== CSS RESET & NORMALIZATION ==== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #183153;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* ==== BRAND VARIABLES ==== */
:root {
  --color-primary: #183153;
  --color-secondary: #27A6A6;
  --color-accent: #F6F6F9;
  --color-light: #fff;
  --color-dark: #183153;
  --color-text: #1c2a41;
  --color-muted: #546781;
  --color-shadow: rgba(24, 49, 83, 0.06);
  --radius: 14px;
  --shadow-subtle: 0 3px 20px rgba(24, 49, 83, 0.07);
  --shadow-hover: 0 8px 24px rgba(24, 49, 83, 0.11);
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}
h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }

p {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-body);
}

b, strong {
  font-weight: 600;
  color: var(--color-primary);
}

/* Link hover underline for navigation and content */
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
  outline: none;
  transition: color 0.15s;
}

/* ==== GENERAL LAYOUT STRUCTURE ==== */
.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: 0;
}

main {
  background: var(--color-light);
  min-height: 60vh;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 0.2s;
}
section:last-child { margin-bottom: 0; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.text-section {
  padding: 0;
  background: none;
  box-shadow: none;
}


ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--color-text);
  padding-left: 2px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* ==== NAVIGATION BAR ===== */
header {
  background: var(--color-light);
  box-shadow: 0 2px 16px rgba(24,49,83,0.04);
  position: sticky;
  top: 0;
  z-index: 98;
}
nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav > a img {
  height: 40px;
  margin-right: var(--spacing-md);
}
nav ul {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}
nav ul li {
  list-style: none;
}
nav ul li a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 500;
  padding: 8px 0px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
nav ul li a:hover, nav ul li a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
  text-decoration: none;
}

.cta-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .02em;
  font-weight: 600;
  padding: 11px 32px;
  border-radius: 28px;
  box-shadow: 0px 3px 16px rgba(39,166,166,0.10);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  margin-left: var(--spacing-md);
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  outline: none;
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  padding: 6px 16px;
  border: none;
  cursor: pointer;
  margin-left: var(--spacing-md);
  transition: background 0.2s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,49,83,0.98);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.87,0,.13,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--spacing-md);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.3rem;
  margin-bottom: var(--spacing-md);
  border: none;
  align-self: flex-end;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.13);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.125rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 10px 0;
  border-radius: 8px;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
  outline: none;
}

@media (max-width: 1024px) {
  nav ul {
    gap: var(--spacing-md);
  }
}
@media (max-width: 900px) {
  nav ul {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 800px) {
  .container { max-width: 98vw; }
}

/* ==== MAIN CONTENT ==== */
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--color-accent);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: flex-start;
  position: relative;
}
.section:last-child,
section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* For text-image-section (not in sample html, but included per instructions) */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--color-light);
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 0.2s, transform 0.17s;
  position: relative;
  min-width: 212px;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.025);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
  min-width: 210px;
}
.testimonial-card > p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.testimonial-card > span {
  font-size: 1rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-style: normal;
}

@media (max-width: 650px) {
  .testimonial-card {
    padding: 16px 10px;
    font-size: 0.97rem;
  }
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-light);
  border-top: 1px solid #edf1f7;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: flex-start;
  justify-content: flex-start;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}
footer ul li a {
  color: var(--color-secondary);
  font-weight: 500;
  transition: color .13s;
}
footer ul li a:hover { color: var(--color-primary); }

.contact-footer {
  color: var(--color-muted);
  margin-bottom: 6px;
  font-size: 0.94rem;
  font-family: var(--font-body);
}
footer p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ==== BUTTONS & INTERACTIVE ==== */
button, .cta-primary, .mobile-menu-toggle {
  cursor: pointer;
  outline: none;
  transition: background 0.16s, color 0.16s, box-shadow 0.20s;
}
button:active, .cta-primary:active, .mobile-menu-toggle:active {
  filter: brightness(0.95);
}

/* ==== FORMS (for kontakt, subscribe) ==== */
input, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  background: #fafbfe;
  box-shadow: 0 2px 6px rgba(24,49,83, .03);
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  transition: border 0.13s;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  background: #fff;
}

/* ==== ICONS IMAGES IN OFFER ==== */
.content-wrapper ul img {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

/* ==== SPACING UTILS (CRITICAL) ==== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.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;
}

/* ==== RESPONSIVE BREAKPOINTS ==== */
@media (max-width: 768px) {
  nav {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
  section, .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 8px;
  }
  .card-container, .content-grid, .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .feature-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  section, .section {
    padding: 18px 2vw;
  }
  .container {
    padding: 0 2vw;
  }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-light);
  border-top: 1px solid #e5e9f2;
  box-shadow: 0 -2px 12px rgba(24,49,83,0.06);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 14px 16px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  gap: 16px;
  animation: cookie-fade-in 0.66s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-fade-in {
  0% { opacity: 0; transform: translateY(100px); }
  100% { opacity: 1; transform: none; }
}
.cookie-banner p {
  color: var(--color-primary);
  font-size: 1rem;
  margin: 0 0 4px 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cookie-banner-btn, .cookie-settings-btn {
  padding: 8px 23px;
  border-radius: 28px;
  border: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.13s;
  box-shadow: 0 2px 12px var(--color-shadow);
  cursor: pointer;
}
.cookie-banner-btn.reject {
  background: #d3d8e5;
  color: var(--color-primary);
}
.cookie-banner-btn.accept:hover,
.cookie-banner-btn.accept:focus {
  background: var(--color-primary);
}
.cookie-banner-btn.reject:hover,
.cookie-banner-btn.reject:focus {
  background: #E3E3EA;
  color: var(--color-secondary);
}
.cookie-settings-btn {
  background: var(--color-light);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  margin-left: 8px;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Cookie modal set-up */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,49,83,0.7);
  z-index: 5010;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  min-width: 330px;
  max-width: 94vw;
  padding: 34px 28px 32px 28px;
  box-shadow: 0 8px 32px rgba(24,49,83,0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.33s cubic-bezier(.52,0,.29,1);
  position: relative;
}
@keyframes cookie-modal-in {
  0% { opacity:0; transform: translateY(60px) scale(0.95);}
  100% { opacity:1; transform: none; }
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 14px;
  background: transparent;
  color: var(--color-primary);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  padding: 0 5px;
  border-radius: 50%;
  transition: background 0.14s;
}
.cookie-modal-close:hover {
  background: #f4f6fa;
}
.cookie-modal-categories {
  margin: 18px 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category-label {
  font-weight: 500;
  min-width: 120px;
  color: var(--color-primary);
}
.cookie-switch {
  appearance: none;
  width: 40px;
  height: 24px;
  background: #ddd;
  border-radius: 13px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  margin-right: 10px;
}
.cookie-switch:checked {
  background: var(--color-secondary);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.18s;
  box-shadow: 0 1px 6px rgba(24,49,83,0.10);
}
.cookie-switch:checked:before {
  left: 19px;
}
.cookie-category-desc {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 16px;
  justify-content: flex-end;
}

@media (max-width: 499px) {
  .cookie-modal-content {
    min-width: unset;
    padding: 16px 6vw 20px 7vw;
  }
}

/* ==== MICRO-INTERACTIONS ==== */
.card, .testimonial-card, .cta-primary, .cookie-banner-btn, .cookie-settings-btn, .mobile-menu-toggle {
  transition: box-shadow 0.16s, background 0.19s, color 0.12s, transform 0.17s;
}

.card:hover, .card:focus-within, .testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.025);
}

.cta-primary:active { transform: scale(0.97); }

/* ==== CUSTOM SCROLLBARS FOR MINIMALIST FEEL ==== */
::-webkit-scrollbar {
  width: 7px;
  background: #f6f6fa;
}
::-webkit-scrollbar-thumb {
  background: #e7ecf2;
  border-radius: 6px;
}

/* ==== ACCESSIBILITY ==== */
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* ==== Z-INDEX LAYERING ==== */
.mobile-menu, .cookie-modal, .cookie-banner {
  z-index: 1000;
}

/* ==== OTHER ==== */
hr {
  border: none;
  border-top: 1px solid #edf1f7;
  margin: var(--spacing-md) 0;
}

/* ==== END ==== */
