/* === CSS RESET & NORMALIZE === */
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 {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  line-height: 1.6;
  background: #F5F6FA;
  color: #232531;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 90px; /* for cookie banner space */
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #1692B8;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #1E2337;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* === TYPOGRAPHY (Elegant Classic) === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #1E2337;
  margin-bottom: 24px;
  font-weight: 700;
}
h1 {
  font-size: 2.375rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
}
p, ul, ol, blockquote, figure {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 18px;
}
blockquote {
  font-style: italic;
  padding-left: 12px;
  border-left: 4px solid #F4D58D;
  color: #332c13;
  background: #f9f6ee;
  margin-bottom: 12px;
}
strong {
  font-weight: 600;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(30,35,55,0.05);
  border-radius: 14px;
}

@media (min-width: 1024px) {
  .content-wrapper {
    gap: 30px;
  }
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 10px 0 rgba(30,35,55,0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0 0 0 0;
  min-height: 70px;
}
.logo {
  padding: 13px 24px 13px 20px;
  display: flex;
  align-items: center;
}
.main-navigation {
  display: none;
}
.cta-button {
  margin-left: auto;
  margin-right: 20px;
  padding: 10px 24px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: #1692B8;
  color: #fff;
  font-size: 1.13rem;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 2px 9px 0 rgba(30,35,55,0.12);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: none;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: #1E2337;
  color: #F4D58D;
  box-shadow: 0 3px 16px 0 rgba(22,146,184,0.13);
}
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  padding: 8px 16px;
  background: none;
  color: #1E2337;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 120;
  margin-left: auto;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #1692B8;
}

/* DESKTOP NAV */
@media (min-width: 900px) {
  .main-navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    margin-right: 14px;
  }
  .main-navigation a {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    color: #1E2337;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.17s, color 0.17s;
  }
  .main-navigation a:hover, .main-navigation a:focus {
    background: #F4D58D;
    color: #1E2337;
  }
  .cta-button {
    display: block;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 320px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(30,35,55,0.13);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.37,.59,.27,.93);
  display: flex;
  flex-direction: column;
  padding: 20px 22px 20px 25px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: #1E2337;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #1692B8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-size: 1.13rem;
  color: #1E2337;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 500;
  padding: 11px 0;
  border-radius: 6px;
  background: none;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F4D58D;
  color: #1692B8;
}

/* BACKDROP FOR MENU */
body.menu-open::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,35,55,0.27);
  z-index: 115;
  pointer-events: all;
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

/* === HERO, SECTION, LISTS === */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
  border: none;
  box-shadow: none;
}
.section {
  /* from above, overrule section defaults */
}
ul.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin: 18px 0 0 0;
}
ul.feature-grid li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.06rem;
  background: #f4f3ef;
  padding: 12px 16px;
  border-radius: 11px;
  min-width: 185px;
  margin-bottom: 0;
  color: #1E2337;
  box-shadow: 0 1px 4px 0 rgba(30, 35, 55, 0.06);
  transition: background 0.16s, box-shadow 0.16s;
}
ul.feature-grid li:hover {
  background: #F4D58D;
  color: #1E2337;
  box-shadow: 0 3px 10px 0 rgba(22,146,184,0.09);
}

/* === CARDS & SERVICE CARDS === */
.service-cards, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin: 20px 0 0 0;
  align-items: stretch;
  justify-content: flex-start;
}
.service-card {
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(30, 35, 55, 0.09);
  border-radius: 15px;
  padding: 28px 22px 20px 22px;
  min-width: 230px;
  max-width: 325px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #efeee7;
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 8px 30px 0 rgba(22,146,184,0.11);
  transform: translateY(-2px) scale(1.03);
}
.service-card strong {
  color: #1692B8;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.18rem;
}

/* === TESTIMONIALS === */
.testimonial-slider, .testimonial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #fffbe7;
  border-radius: 13px;
  box-shadow: 0 1px 10px 0 rgba(30, 35, 55, 0.08);
  min-width: 200px;
  max-width: 355px;
  margin-bottom: 20px;
  border-left: 5px solid #F4D58D;
  color: #232531;
  position: relative;
  transition: box-shadow 0.18s, border-color 0.16s;
}
.testimonial-card span {
  font-size: 0.93rem;
  color: #1692B8;
  font-family: 'Open Sans', Arial, sans-serif;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 25px 0 rgba(22,146,184,0.13);
  border-left: 5px solid #1692B8;
}
.testimonial-card blockquote {
  background: none;
  padding: 0 0 0 8px;
  border-left: 3px solid #F4D58D;
  color: #232531;
}

/* === CTA BUTTONS GENERIC === */
.cta-button, .cookie-banner .cookie-btn {
  background: #1692B8;
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 9px rgba(30,35,55,0.08);
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.13rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 11px 27px;
  margin-top: 0;
  margin-bottom: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, outline 0.16s;
  outline: none;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #1E2337;
  color: #F4D58D;
  box-shadow: 0 3px 16px 0 rgba(22,146,184,0.14);
}

/* === FOOTER === */
footer {
  background: #1E2337;
  color: #f7f6f3;
  padding: 55px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  border-top: 6px solid #1692B8;
  margin-top: 45px;
}
.footer-logo {
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 14px;
  justify-content: center;
}
.footer-nav a {
  color: #F4D58D;
  font-size: 1.05rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 500;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  font-size: 0.97rem;
  color: #dad8cb;
  text-align: center;
}
.footer-info a {
  color: #F4D58D;
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-info a:hover, .footer-info a:focus {
  color: #fff;
}

/* === RESPONSIVE FLEXBOX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 13px 0 rgba(30,35,55,0.08);
  border-radius: 13px;
  padding: 22px 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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 20px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === TEXT & RICH CONTENT === */
.text-section {
  font-family: 'Open Sans', Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}
.text-section h2 {
  margin-bottom: 14px;
}
.text-section ul, .text-section ol {
  margin-bottom: 20px;
  padding-left: 16px;
  list-style-type: disc;
}
.text-section li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #1E2337;
}
.text-section a {
  color: #1692B8;
  text-decoration: underline;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #1E2337;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 16px;
  box-shadow: 0 -2px 14px rgba(30,35,55,0.14);
  font-size: 1rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  animation: banner-in 0.6s ease;
}
@keyframes banner-in {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  margin: 0 7px;
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 16px;
}
.cookie-banner .cookie-btn.btn-settings {
  background: #F4D58D;
  color: #1E2337;
  font-weight: 600;
}
.cookie-banner .cookie-btn.btn-settings:hover, .cookie-banner .cookie-btn.btn-settings:focus {
  background: #fff;
  color: #1692B8;
}
.cookie-banner .cookie-btn.btn-reject {
  background: transparent;
  border: 1.5px solid #F4D58D;
  color: #F4D58D;
  font-weight: 600;
}
.cookie-banner .cookie-btn.btn-reject:hover, .cookie-banner .cookie-btn.btn-reject:focus {
  background: #F4D58D;
  color: #1E2337;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1032;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,35,55,0.22);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #fff;
  color: #232531;
  max-width: 410px;
  width: 96vw;
  border-radius: 18px;
  box-shadow: 0 5px 40px rgba(30,35,55,0.16);
  padding: 28px 18px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: modal-in 0.35s;
  position: relative;
  z-index: 1034;
}
@keyframes modal-in {
  0% { transform: scale(0.94) translateY(32px); opacity: 0.3; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  margin-bottom: 6px;
  color: #1E2337;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 22px;
  top: 16px;
  background: none;
  color: #1E2337;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #1692B8;
}
.cookie-switch-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-switch-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.cookie-switch-label {
  font-size: 1rem;
  color: #1E2337;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
}
/* Simple toggle switch */
.cookie-switch {
  position: relative;
  width: 40px;
  height: 21px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ddd;
  border-radius: 20px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-switch-slider {
  background: #1692B8;
}
.cookie-switch-slider:before {
  position: absolute;
  content: '';
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 3.5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(30,35,55,0.09);
  transition: transform 0.2s;
}
.cookie-switch input:checked + .cookie-switch-slider:before {
  transform: translateX(18px);
}
.cookie-switch-label.disabled {
  opacity: 0.54;
}

/* === SPACING & FLEX LAYOUTS (MANDATORY) === */
.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; }

/* === MISC === */
::-webkit-scrollbar {
  width: 7px;
  background: #f4f3ef;
}
::-webkit-scrollbar-thumb {
  background: #E7E9F7;
  border-radius: 8px;
}

/* Animation for cards appearing */
@media (min-width: 900px) {
  .service-card, .testimonial-card {
    animation: fade-in-up 0.75s;
  }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1180px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 12px;
  }
  header {
    flex-direction: row;
    align-items: center;
    padding: 0 0 0 0;
  }
  .footer-nav {
    gap: 14px 15px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.19rem; }
  .section, section { padding: 22px 0; }
  .service-card, .testimonial-card { min-width: 150px; max-width: 100%; }
  .testimonial-slider, .service-cards, .service-list { flex-direction: column; gap: 20px; }
  .footer-logo { margin-bottom: 10px; }
  .footer-info { font-size: 0.89rem; }
}
@media (max-width: 600px) {
  .footer-nav { flex-direction: column; gap: 8px 0; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 15px; padding: 19px 7px; }
}

/* === VISUAL HIERARCHY & MICROINTERACTIONS === */
.service-card, .testimonial-card, .card {
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.service-card:hover, .testimonial-card:hover, .card:hover {
  box-shadow: 0 5px 22px 0 rgba(22,146,184,0.17);
  transform: translateY(-3px) scale(1.025);
}

button:focus, .cta-button:focus {
  outline: 2px solid #1692B8;
}

/* === Z-INDEX LAYERING (MENU, MODAL, COOKIE BANNER) === */
.mobile-menu, .mobile-menu-toggle, .mobile-menu-close { z-index: 151; }
.cookie-modal { z-index: 1034; }
.cookie-banner { z-index: 1001; }
header { z-index: 40; }

/* === FORM ELEMENTS (KONTAKT ETC.) === */
input, textarea, select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 15px;
  background: #f9f7ef;
}
input:focus, textarea:focus, select:focus {
  border-color: #1692B8;
  outline: none;
}

/* === ACCESSIBILITY COLOR HIGHLIGHTS (TO ENSURE CONTRAST) === */
.testimonial-card, .testimonial-card blockquote, .cookie-banner, .cookie-modal {
  color: #1E2337;
  background: #fffbe7;
}
.cookie-banner .cookie-btn, .cookie-banner .cookie-btn.btn-settings { color: #1E2337 !important; }
.cookie-banner .cookie-btn.btn-reject { color: #F4D58D !important; border-color: #F4D58D; }

/* === PRINT (OPTIONAL) === */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .section, section, .container {
    box-shadow: none !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
