/* ========= CSS RESET & BASE STYLES ========== */
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,
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #22303a;
  background-color: #F6F6F2;
  min-height: 100vh;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #285063;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #EF6E4C;
  outline: none;
}

/* ========= BRAND TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #285063;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem;  margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 8px;  }
h4 { font-size: 1.125rem; margin-bottom: 6px; }

p, ul, ol { font-size: 1rem; }
strong { font-weight: 700; }

/* ========= COLOR PALETTE & UTILITY ========= */
:root {
  --primary: #285063;
  --secondary: #EF6E4C;
  --accent: #F6F6F2;
  --pastel-rose: #FFE1E6;
  --pastel-lavender: #F3EDFC;
  --pastel-mint: #DDFFFB;
  --pastel-peach: #FFF1E4;
  --pastel-yellow: #FEF9D6;
  --pastel-sky: #E7F3FF;
}

.bg-pastel-mint { background: var(--pastel-mint); }
.bg-pastel-peach { background: var(--pastel-peach); }
.bg-pastel-rose { background: var(--pastel-rose); }
.bg-pastel-lavender { background: var(--pastel-lavender); }
.bg-pastel-yellow { background: var(--pastel-yellow); }
.bg-pastel-sky { background: var(--pastel-sky); }

.text-accent { color: var(--secondary); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* ========= COMMON LAYOUT CONTAINERS ========= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* -------------- FLEX LAYOUT PATTERNS --------- */
.card-container,
.card-grid,
.feature-grid,
.features, 
.content-grid,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; padding: 0;
        background: var(--accent); border-radius: 20px;
        box-shadow: 0 2px 8px rgba(40,80,99,0.08);
        transition: box-shadow 0.18s, transform 0.22s;
      }
.card:hover,
.card:focus {
  box-shadow: 0 6px 18px rgba(40,80,99,0.18);
  transform: translateY(-4px) scale(1.012);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: var(--pastel-mint);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(40,80,99,0.09);
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  max-width: 490px;
}
.testimonial-card p {
  color: #22303a;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #5b7384;
  font-style: italic;
  font-size: 0.98rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-peach);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(239,110,76,0.06);
  padding: 20px 18px 20px 18px;
  min-width: 200px;
  max-width: 340px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.19s;
}
.feature-item img {
  width: 48px; height: 48px;
  margin-bottom: 0.5em;
}
.feature-item:hover, .feature-item:focus {
  background: var(--pastel-rose);
  box-shadow: 0 8px 24px rgba(40,80,99,0.11);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 15px;
}
.service-item {
  flex: 1 1 320px;
  background: var(--pastel-lavender);
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(40,80,99,0.06);
  padding: 20px 18px;
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 450px;
  transition: box-shadow 0.18s, background 0.18s;
}
.service-item:hover, .service-item:focus {
  background: var(--pastel-sky);
  box-shadow: 0 8px 24px rgba(40,80,99,0.14);
}

.text-section ul {
  margin-top: 10px;
  margin-bottom: 6px;
  padding-left: 22px;
}
.text-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* =========== HEADER / NAVBAR ============ */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #edede9;
  position: relative;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 20px 10px 20px;
}
.main-nav > a img {
  height: 44px;
  width: auto;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 5px 6px;
  border-radius: 5px;
  transition: background 0.18s, color 0.17s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus, .main-nav ul li a.active {
  background: var(--pastel-mint);
  color: var(--secondary);
}
.cta-btn {
  background: linear-gradient(90deg,#EF6E4C 0%, #F9B7A5 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  padding: 12px 32px;
  box-shadow: 0 2px 10px rgba(239,110,76,0.10);
  outline: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-align: center;
  display: inline-block;
  margin-left: 15px;
  transition: background 0.22s, color 0.16s, transform 0.12s;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(90deg,#f58960 0%, #EF6E4C 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.035);
}

/* =========== HERO SECTION ============== */
.hero {
  background: linear-gradient(110deg, var(--pastel-sky) 0%, #FFF1E4 100%);
  padding: 54px 0 44px 0;
  margin-bottom: 42px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  max-width: 700px;
  background: rgba(255,255,255,0.78);
  border-radius: 24px;
  box-shadow: 0 2px 18px rgba(40,80,99,0.07);
  padding: 32px 28px;
}
.hero h1 {
  font-size: 2.2rem;
  color: var(--primary);
}
.hero p {
  font-size: 1.22rem;
  color: #525977;
  margin-bottom: 12px;
}

/* ============== SECTION TITLE ============== */
.features > .container > .content-wrapper > h2,
section > .container > .content-wrapper > h2 {
  font-size: 2rem;
  color: var(--secondary);
  letter-spacing: 0.012em;
}

/* ===================================================
   FEATURES & HIGHLIGHTS
=================================================== */
.features, .highlights {
  background: var(--pastel-sky);
  border-radius: 30px;
  padding: 40px 20px;
  margin-bottom: 60px;
  box-shadow: 0 2px 14px rgba(40,80,99,0.07);
}
.features .feature-grid {
  gap: 24px;
  width: 100%;
  justify-content: space-between;
}

/* =============== CTA SECTION ================ */
.cta {
  background: linear-gradient(90deg, var(--pastel-rose) 0%, var(--pastel-sky) 100%);
  padding: 40px 0;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}
.cta .container { align-items: center; }
.cta .content-wrapper { align-items: center; }
.cta-btn { margin-top: 16px; margin-bottom: 0; }

/* =============== ABOUT, LEGAL, TEXT SECTIONS =============== */
.about, .about-team, .legal, .contact-details {
  background: var(--pastel-yellow);
  border-radius: 28px;
  padding: 40px 20px;
  margin-bottom: 60px;
  box-shadow: 0 2px 12px rgba(239,110,76,0.06);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.text-section p { margin-bottom: 8px; font-size: 1.07rem; }
.text-section img {
  vertical-align: middle;
  margin-right: 8px;
  width: 22px;
  height: 22px;
}
.text-section li { display: flex; align-items: center; }

/* ================= FOOTER =================== */
footer {
  background: #fff;
  padding: 32px 20px 18px 20px;
  margin-top: 36px;
  border-top: 1px solid #e9e9ed;
  border-radius: 32px 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 6px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Montserrat',sans-serif;
  opacity: 0.95;
  transition: color 0.15s, opacity 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus { color: var(--secondary); opacity: 1; }

.footer-contact, .footer-impressum {
  font-size: 0.95rem;
  color: #444e59;
  text-align: center;
  margin-bottom: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.footer-contact img {
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 2px;
}
.footer-impressum {
  font-size: 0.93rem;
  color: #8995a7;
}

/* ================= MOBILE MENU (BURGER) =================== */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.97);
  z-index: 1000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.7,0.05,0.3,0.995);
  box-shadow: -8px 0 36px rgba(40,80,99,0.13);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  color: var(--primary);
  background: none;
  border: none;
  font-size: 2.4rem;
  font-family: 'Montserrat',sans-serif;
  padding: 16px 22px 8px 18px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  margin-bottom: 8px;
  align-self: flex-end;
  transition: color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-left: 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.25rem;
  padding: 10px 0;
  border-radius: 7px;
  width: 100%;
  transition: background 0.15s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-mint);
  color: var(--secondary);
}

@media (max-width: 1020px) {
  .main-nav { max-width: 97vw; }
}
@media (max-width: 970px) {
  .main-nav ul { gap: 13px; }
  .main-nav { gap: 8px; }
}
@media (max-width: 900px) {
  .main-nav { flex-wrap: wrap; }
  .main-nav .cta-btn { margin-left: 7px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .main-nav ul {
    display: none;
  }
  .main-nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 19px;
    background: none;
    border: none;
    font-size: 2.15rem;
    color: var(--primary);
    z-index: 1002;
    cursor: pointer;
    padding: 0 8px;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus { color: var(--secondary); }

  .main-nav {
    justify-content: flex-start;
    gap: 0;
    padding-right: 75px;
  }
  .main-nav > a img { height: 40px; }
  .footer-nav { gap: 10px; font-size: 0.98rem; }
  .footer-contact, .footer-impressum { font-size: 0.93rem; }
  .container { padding: 0 9px; }
  .hero .content-wrapper, .about, .about-team, .legal, .contact-details, .features, .cta {
    padding: 24px 10px;
  }
}

@media (max-width: 650px) {
  .main-nav { padding: 12px 7px 6px 7px; }
  .footer-nav { gap: 5px; flex-wrap: wrap; }
  footer { padding: 20px 6px 12px 6px; border-radius: 15px 15px 0 0; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .feature-item, .service-item {
    min-width: 95vw;
    max-width: 98vw;
    padding: 14px 12px;
  }
  .testimonial-card {
    min-width: 93vw;
    max-width: 98vw;
    padding: 13px 10px;
  }
  .content-wrapper { gap: 16px; }
}

@media (max-width: 500px) {
  .main-nav > a img { height: 34px; }
  .container { padding: 0 4px; }
  .section, .about, .about-team, .legal, .contact-details, .features, .cta { padding: 16px 2px; margin-bottom: 30px; border-radius: 11px; }
  .hero .content-wrapper { padding: 13px 4px; border-radius: 13px; }
}

/* =============== RESPONSIVE FLEX PATTERNS =============== */
@media (max-width: 1024px) {
  .feature-grid, .card-grid, .service-list {
    justify-content: flex-start;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .card-grid, .service-list, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .text-image-section { flex-direction: column; gap: 16px; align-items: center; }
  .content-wrapper { padding: 0; }
}

/* ================= COOKIE CONSENT BANNER ================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--pastel-lavender), var(--pastel-mint));
  color: #22303a;
  font-size: 1rem;
  box-shadow: 0 -2px 24px rgba(40,80,99,0.12);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 10px 14px 10px;
  gap: 22px;
  border-radius: 18px 18px 0 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.27s, transform 0.34s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-banner__msg {
  max-width: 500px;
  line-height: 1.4;
  letter-spacing: 0.005em;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  display: inline-block;
  border-radius: 16px;
  padding: 8px 18px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin: 0 3px;
  transition: background 0.18s, color 0.18s, box-shadow 0.14s;
  outline: none;
  box-shadow: 0 1px 5px rgba(40,80,99,0.06);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #EF6E4C;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus { background: var(--pastel-rose); }
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus { background: var(--pastel-mint); color: var(--secondary); }

@media (max-width:700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 13px; padding: 13px 4px 8px 4px; border-radius: 12px 12px 0 0; font-size: 0.98rem;  }
  .cookie-banner__msg { max-width: 98vw; }
}

/* ================ COOKIE SETTINGS MODAL ================ */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(40,80,99,0.15);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #22303a;
  border-radius: 18px;
  min-width: 295px;
  width: 98vw;
  max-width: 420px;
  box-shadow: 0 4px 26px rgba(40,80,99,0.19);
  padding: 25px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.22s, transform 0.21s;
}
.cookie-modal__header {
  font-family: 'Montserrat',sans-serif;
  font-size: 1.17rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.cookie-modal__cat-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal__cat {
  border-radius: 12px;
  background: var(--pastel-lavender);
  padding: 13px 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(40,80,99,0.05);
  font-size: 1rem;
  position: relative;
}
.cookie-modal__cat input[type="checkbox"] {
  width: 19px; height: 19px;
  accent-color: var(--secondary);
}
.cookie-modal__cat .cat-label {
  font-family: 'Montserrat',sans-serif;
  font-weight: 500;
  color: var(--primary);
  margin-right: 10px;
}
.cookie-modal__save-btn {
  margin-top: 7px;
}
.cookie-modal__close {
  position: absolute; right: 13px; top: 11px;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal__close:hover { color: var(--secondary); }

@media (max-width:420px) {
  .cookie-modal { padding: 16px 3vw 14px 3vw; min-width: 90vw; }
}

/* =============== ANIMATIONS & TRANSITIONS =============== */
.hero, .cta, .about, .feature-item, .service-item, .testimonial-card, .cookie-banner, .cookie-modal {
  will-change: transform, opacity;
}
@media (hover: hover) {
  .feature-item, .service-item, .cta-btn, .main-nav ul li a, .mobile-nav a, .testimonial-card {
    transition: background 0.16s, box-shadow 0.13s, color 0.13s, transform 0.13s;
  }
}

/* =================== FORM ELEMENTS ================ */
input, textarea, select {
  font-family: inherit;
  border-radius: 12px;
  border: 1px solid #ebebea;
  padding: 8px 12px;
  background: #fffdfa;
  color: #22303a;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 10px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--secondary);
  outline: none;
}
button {
  font-family: 'Montserrat',Arial,sans-serif;
}

/* =================== UTILITY ========================= */
.hide { display: none !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.m-auto { margin: auto !important; }


/* ============= CARD DESIGN FOR INDEX/SERVICES ============= */
.card {
  flex: 1 1 280px;
  min-width: 210px;
  max-width: 380px;
  padding: 23px 16px;
}

/* ============= OTHER SECTION LAYOUTS/SPECIFIC PAGES ============= */
.legal {
  background: var(--pastel-rose);
  border-radius: 20px;
}

/* =========== CHROME AUTO-FILL ========== */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  box-shadow: 0 0 0 30px #fffdfa inset !important;
  -webkit-text-fill-color: #22303a !important;
  caret-color: #285063 !important;
}

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

/* ================= CUSTOM SCROLLBARS =================== */
::-webkit-scrollbar { width: 10px; background: var(--accent); }
::-webkit-scrollbar-thumb { background: var(--pastel-mint); border-radius: 8px; }

/* ================= END OF CSS =================== */
