/* =================================================
   Minimal CSS Reset & Normalize
   ================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 16px; }
body {
  background: #fff;
  color: #154370;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { padding-left: 1.1em; margin-bottom: 1.5em; }
li { margin-bottom: 0.5em; }
button {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}
:focus { outline: 2px solid #17B250; outline-offset: 2px; }

/* ================================
   Brand variables (fallbacks!)
   ================================ */
:root {
  --color-primary: #154370;
  --color-secondary: #17B250;
  --color-accent: #F7F7F7;
  --color-bg: #fff;
  --color-content: #154370;
  --color-muted: #7b868c;
  --color-shadow: rgba(21,67,112,0.06);
  --radius: 10px;
  --shadow: 0 2px 12px var(--color-shadow);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ================================
   General Typography, Headings
   ================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.16;
  margin-bottom: 28px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-top: 24px;
  margin-bottom: 16px;
}
h4, h5 { margin-bottom: 8px; }
p {
  margin-bottom: 1.2em;
  font-size: 1.08rem;
  color: var(--color-content);
}
.text-section h2,
.text-section h1 { margin-bottom: 18px; }

strong, b { color: var(--color-primary); font-weight: bold; }
.em { color: var(--color-secondary); }

/* ================================
   Containers, Layout, Sections
   ================================ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}


.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
}
.hero-section {
  padding: 64px 0 48px 0;
  background: var(--color-accent);
  box-shadow: 0 2px 16px var(--color-shadow);
}
.hero-section h1 { color: var(--color-primary); margin-bottom: 18px; }
.hero-section p { color: var(--color-content); margin-bottom: 32px; }

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 28px 22px;
  flex: 1 1 240px;
  min-width: 216px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature img { width: 36px; height: 36px; margin-bottom: 8px; }
.feature:hover {
  box-shadow: 0 4px 28px 0 rgba(32,48,68,0.10);
  transform: translateY(-2px) scale(1.025);
}

/* Spacing Utility for cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  flex: 1 1 240px;
  transition: box-shadow 0.16s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 32px 0 rgba(21,67,112,0.12);
  transform: translateY(-2px) scale(1.015);
}

.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
   ================================ */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--color-shadow), 0 1px 0 #eaeaea inset;
  padding: 20px 24px;
  max-width: 520px;
  margin-bottom: 20px;
  color: #173e5d;
  font-size: 1.09rem;
}
.testimonial-card p {
  margin-bottom: 6px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #173e5d;
}
.testimonial-card span {
  font-size: 1rem;
  color: #5991bb;
  letter-spacing: 0.2px;
}

/* ================================
   Footer
   ================================ */
footer {
  background: var(--color-accent);
  padding: 36px 0 24px 0;
  border-top: 1px solid #eff3f7;
  color: var(--color-content);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #536179;
  font-size: 0.98rem;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
  color: #717d8f;
  margin-top: 8px;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ================================
   Header, Navigation, CTA
   ================================ */
header {
  background: #fff;
  box-shadow: 0 2px 14px var(--color-shadow);
  position: relative;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
header a img {
  height: 38px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
nav .cta, a.cta {
  background: var(--color-secondary);
  color: #fff !important;
  border-radius: 22px;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.01rem;
  padding: 10px 28px;
  box-shadow: 0 2px 12px rgba(23,178,80,0.13);
  transition: background 0.16s, box-shadow 0.13s, transform 0.12s;
}
nav .cta:hover, a.cta:hover {
  background: #139940;
  box-shadow: 0 2px 16px rgba(23,178,80,0.23);
  transform: translateY(-2px) scale(1.035);
}

/* Hide burger by default, show on mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 8px;
  font-size: 2.1em;
  padding: 0 18px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  border: none;
  box-shadow: 0 2px 10px rgba(23,178,80,0.10);
  transition: background 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #139940;
}

/* ================================
   Mobile Navigation
   ================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9000;
  background: #fff;
  transition: transform 0.38s cubic-bezier(.68,-0.55,.27,1.55);
  box-shadow: 0 2px 32px var(--color-shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 19px;
  right: 25px;
  background: transparent;
  color: var(--color-secondary);
  font-size: 2rem;
  border: none;
  z-index: 2;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-primary);
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 80px;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 12px 0;
  border-radius: 7px;
  min-width: 180px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

@media (max-width: 1100px) {
  .container { max-width: 100%; }
}
@media (max-width: 768px) {
  header .container { flex-direction: row; }
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-menu { display: flex; }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu.open { display: none !important; }
}

/* ================================
   Content/Section Responsive Layout
   ================================ */
@media (max-width: 992px) {
  .features-grid, .content-grid {
    flex-direction: column;
    gap: 32px;
  }
  .feature, .card { max-width: 100%; }
}
@media (max-width: 768px) {
  .section { padding: 28px 8px; }
  .hero-section { padding: 40px 0 32px 0; }
  .features-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    font-size: 1em;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact { font-size: 0.96rem; }
}

/* ================================
   Lists, UL/OL Styles
   ================================ */
ul, ol {
  margin-bottom: 1.2em;
  padding-left: 1.4em;
  color: #18507c;
}
ul li, ol li { margin-bottom: 0.33em; }
ol li { margin-bottom: 0.2em; }
ul strong, ol strong { color: var(--color-primary); }

/* ================================
   Buttons, Forms
   ================================ */
button, .cta {
  font-family: var(--font-display);
  font-weight: bold;
  letter-spacing: 0.01em;
  border: none;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 22px;
  font-size: 1rem;
  padding: 10px 30px;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.12s, transform 0.13s;
  box-shadow: 0 2px 12px rgba(23,178,80,0.09);
  text-align: center;
}
button.cta, .cta {
  display: inline-block;
}
button:hover, .cta:hover, button:focus, .cta:focus {
  background: #139940;
  box-shadow: 0 2px 18px rgba(23,178,80,0.18);
  transform: translateY(-1px) scale(1.032);
}

/* ================================
   Contact Details in Kontakt
   ================================ */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin-bottom: 36px;
}
.contact-details li {
  font-size: 1.08rem;
  color: #173e5d;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-details img {
  width: 18px; height: 18px;
  margin-right: 6px;
}

/* ================================
   Social Links
   ================================ */
.social-links {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  margin-top: 12px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 2px 7px var(--color-shadow);
  transition: background 0.12s, box-shadow 0.13s, transform 0.13s;
}
.social-links img { width: 20px; height: 20px; }
.social-links a:hover, .social-links a:focus {
  background: var(--color-secondary);
  box-shadow: 0 3px 12px rgba(23,178,80,0.18);
  transform: scale(1.07);
}

/* ================================
   Cookie Consent Banner & Modal
   ================================ */
.cookie-banner {
  position: fixed;
  z-index: 50000;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-content);
  box-shadow: 0 -2px 20px rgba(20,45,60,0.09);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 24px 20px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: fadeInUpCookie 0.44s cubic-bezier(.35,1.53,.51,.79) 1;
}
@keyframes fadeInUpCookie {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  border-radius: 22px;
  padding: 10px 28px;
  border: none;
  cursor: pointer;
  margin: 0;
  transition: background 0.13s, color 0.13s, box-shadow 0.12s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #139940;
}
.cookie-btn.reject {
  background: #eaeaea;
  color: var(--color-primary);
  border: 1px solid #e0e5ea;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ebeef3;
  color: var(--color-secondary);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(25,40,48,0.22);
  z-index: 51000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s;
}
.cookie-modal-overlay.open { opacity: 1; pointer-events: all; }
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 34px 0 rgba(24,60,100,0.13);
  padding: 28px 22px 22px 22px;
  min-width: 295px;
  max-width: 98vw;
  width: 410px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  animation: fadeInCookieModal 0.35s cubic-bezier(.54,1.42,.49,.99) 1;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; transform: scale(.94) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
}
.cookie-toggle input[type="checkbox"] {
  appearance: none;
  width: 38px; height: 22px;
  border-radius: 15px;
  background: #e9e9e9;
  position: relative;
  outline: none;
  transition: background 0.14s;
  vertical-align: middle;
}
.cookie-toggle input[type="checkbox"]:checked {
  background: var(--color-secondary);
}
.cookie-toggle input[type="checkbox"]::before {
  content: "";
  display: block;
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(30,50,80,.08);
  transition: left 0.14s;
}
.cookie-toggle input[type="checkbox"]:checked::before {
  left: 19px;
}
.cookie-category.essential input[type="checkbox"] {
  pointer-events: none;
  background: #d2f6e2;
}
.cookie-modal-buttons {
  display: flex; gap: 16px; margin-top: 9px;
}

@media (max-width: 550px) {
  .cookie-modal { width: 98vw; padding: 15vw 3vw 3vw 3vw; }
}

/* ================================
   Accessibility Helpers
   ================================ */
a:focus, button:focus, .cta:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  background: #e2fbef !important;
  color: var(--color-primary);
}

/* ================================
   Micro-animations/effects
   ================================ */
.cta, button, .feature, .card, .mobile-menu, .social-links a, .testimonial-card {
  transition-timing-function: cubic-bezier(.44,1.56,.52,1);
}

/* ================================
   Utilities
   ================================ */
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mb-16 { margin-bottom: 16px; }

/* ================================
   Hierarchy/Spacing Consistency
   ================================ */
h1, h2, h3, h4, h5, h6 { margin-top: 0; font-family: var(--font-display); }

/* ================================
   Special Classes for Provided Patterns
   ================================ */
.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;
}

/* Prevent unwanted element overlap and enforce gap on small screens */
@media (max-width: 500px) {
  .features-grid, .content-grid, .card-container {
    gap: 14px;
  }
  .section, .hero-section { padding-left: 2vw; padding-right: 2vw; }
}

/* ================================
   End of Style
   ================================ */
