/* Calm Tide Beratung – Elegant Classic UI – style.css */

/* === 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F3F6F9;
  color: #222;
}
a { color: inherit; text-decoration: none; }
a:focus { outline: 2px solid #22BABB; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.5em; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* === Brand Color Variables (fallbacks for wide support) === */
:root {
  --primary: #123865;
  --secondary: #22BABB;
  --accent: #F3F6F9;
  --heading: 'Montserrat', 'Georgia', serif;
  --body: 'Roboto', 'Georgia', serif;
  --serif: 'Georgia', Times, serif;
}

/* === Typography === */
body {
  font-family: var(--body), var(--serif);
  font-size: 16px;
  font-weight: 400;
  background: var(--accent);
  color: #252525;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading), var(--serif);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol, li {
  font-family: var(--body), var(--serif);
  font-weight: 400;
  font-size: 1rem;
  color: #303445;
}
p { margin-bottom: 18px; }
strong { font-weight: bold; color: var(--primary); }
em, i { font-style: italic; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

/* === Layout Containers === */
.container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px 0 rgba(18,56,101,0.04);
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .content-wrapper {
    padding: 0;
  }
  .text-section {
    padding: 20px 12px;
    border-radius: 9px;
  }
}

/* === Section Spacing & Utility Flex Containers === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(18,56,101,0.07);
  position: relative;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 26px 0 rgba(18,56,101,0.13);
}
.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: center;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(18,56,101,0.06);
  padding: 24px 28px;
  margin-bottom: 20px;
  max-width: 500px;
  transition: box-shadow 0.17s;
}
.testimonial-card:focus, .testimonial-card:hover {
  box-shadow: 0 8px 18px 0 rgba(18,56,101,0.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 32px;
  }
  .card-container,
  .content-grid,
  .feature-grid,
  .icon-grid,
  .service-cards-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-slider, .customer-logos {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

/* === Header & Navigation === */
header {
  background: #fff;
  border-bottom: 1px solid #E0E6EB;
  padding: 0;
  position: relative;
  z-index: 99;
  width: 100%;
  box-shadow: 0 2px 10px 0 rgba(18,56,101,0.02);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo img {
  height: 44px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--body), var(--serif);
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--primary);
  padding: 8px 0 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border-bottom-color 0.19s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.cta-button.primary {
  background: var(--primary);
  color: #fff;
  font-family: var(--heading);
  font-size: 1.05rem;
  padding: 10px 28px;
  border-radius: 32px;
  border: none;
  font-weight: 500;
  transition: background 0.18s, transform 0.17s, box-shadow 0.18s;
  box-shadow: 0 2px 8px 0 rgba(18,56,101,0.08);
  margin-left: 12px;
  display: inline-block;
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px 0 rgba(34,186,187,0.13);
}
.cta-button {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-family: var(--heading);
  padding: 10px 26px;
  border-radius: 28px;
  font-size: 1rem;
  margin-top: 4px;
  margin-bottom: 4px;
  font-weight: 500;
  box-shadow: 0 1px 6px 0 rgba(18,56,101,0.07);
  transition: background 0.15s, color 0.17s, border 0.16s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: #fff;
  border: 1.5px solid var(--secondary);
}

/* === Mobile Navigation === */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.72,.01,.07,.98);
  box-shadow: 4px 0 24px 0 rgba(18,56,101,0.15);
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  visibility: hidden;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--primary);
  margin: 18px 28px 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 32px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--heading), var(--serif);
  font-size: 1.14rem;
  color: var(--primary);
  border-bottom: 1.5px solid transparent;
  padding: 10px 0;
  width: 100%;
  display: block;
  transition: color 0.19s, border-bottom-color 0.19s, background 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(34,186,187,0.09);
  border-bottom: 1.5px solid var(--secondary);
}

@media (max-width: 940px) {
  .main-nav {
    display: none;
  }
  .cta-button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2.25rem;
    margin-right: 6px;
    cursor: pointer;
    position: relative;
    z-index: 1400;
    padding: 5px 12px;
    transition: color 0.19s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    color: var(--secondary);
  }
}

@media (min-width: 941px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* === Hero Section === */
.hero {
  background: linear-gradient(128deg, #F3F6F9 0%, #fff 100%);
  padding-top: 54px;
  padding-bottom: 54px;
  margin-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 0;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.3rem;
  letter-spacing: 0.01em;
  font-weight: 700;
}
.hero p {
  font-size: 1.18rem;
  color: #222e3a;
}
@media (max-width: 768px) {
  .hero {
    padding: 24px 0 26px 0;
    margin-bottom: 18px;
  }
}


/* === Feature/Service Grids === */
.feature-grid, .icon-grid, .service-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.feature-grid li, .icon-grid li, .service-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(34,186,187,0.06);
  padding: 28px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.12s;
}
.service-card:hover, .feature-grid li:hover, .icon-grid li:hover {
  box-shadow: 0 6px 24px 0 rgba(18,56,101,0.10);
  border-color: var(--secondary);
}
.feature-grid img, .icon-grid img, .service-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}
.icon-grid li span {
  font-size: 1.06rem;
  color: var(--primary);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .feature-grid, .icon-grid, .service-cards-grid {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .feature-grid li, .icon-grid li, .service-card {
    min-width: unset;
    width: 100%;
    padding: 20px 14px;
    border-radius: 10px;
  }
}

/* === Lists in Text Sections === */
.text-section ul, .content-wrapper ul, .content-wrapper ol {
  margin-bottom: 16px;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section ul li,
.text-section ol li,
.content-wrapper ul li,
.content-wrapper ol li {
  margin-bottom: 0;
  color: #444c51;
  font-size: 1rem;
}

/* === Testimonials === */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 22px;
  justify-content: flex-start;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #14223b;
  font-family: var(--serif);
  margin-bottom: 10px;
}
.testimonial-meta {
  color: var(--primary);
  font-family: var(--heading);
  font-size: 0.98rem;
  margin-top: 4px;
  opacity: 0.9;
}
.customer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  align-items: center;
}
.customer-logos img {
  height: 34px;
  opacity: 0.88;
  filter: grayscale(0.4);
  transition: opacity 0.16s, filter 0.19s;
}
.customer-logos img:hover {
  opacity: 1;
  filter: none;
}

/* === CTA Section (Call To Action) === */
.cta {
  background: var(--primary);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 26px 0 rgba(18,56,101,0.08);
  margin-bottom: 38px;
}
.cta .content-wrapper {
  align-items: center;
}
.cta h2 {
  color: #fff;
  font-size: 2rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.cta p {
  color: #e6f0f7;
  font-size: 1.13rem;
}
.cta .cta-button.primary, .cta .cta-button {
  margin-top: 10px;
  margin-bottom: 10px;
  background: #fff;
  color: var(--primary);
  border: 1.5px solid #fff;
  font-weight: 600;
}
.cta .cta-button.primary:hover, .cta .cta-button.primary:focus {
  background: var(--secondary);
  border: 1.5px solid var(--secondary);
  color: #fff;
}
@media (max-width: 768px) {
  .cta {
    border-radius: 9px;
    margin-bottom: 18px;
  }
}

/* === Footer === */
footer {
  background: #fff;
  border-top: 1px solid #E0E6EB;
  padding: 36px 0 0 0;
  margin-top: 52px;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.98rem;
  font-family: var(--body), var(--serif);
  color: #2c3847;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  height: 19px;
  width: 19px;
  opacity: 0.83;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #232d3b;
  color: #fff;
  padding: 24px 20px 24px 20px;
  box-shadow: 0 -4px 24px 0 rgba(18,56,101,0.10);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  min-height: 54px;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.30s cubic-bezier(.7,.05,.46,1), visibility 0.12s;
}
.cookie-banner.visible {
  opacity: 1;
  visibility: visible;
}
.cookie-banner p {
  color: #fff;
  font-size: 1.03rem;
  margin-bottom: 0;
  margin-right: 18px;
}
.cookie-btn {
  margin: 4px 7px;
  border-radius: 22px;
  padding: 8px 23px;
  background: #fff;
  color: var(--primary);
  font-family: var(--heading);
  font-size: 1rem;
  border: 1.3px solid var(--primary);
  margin-left: 7px;
  transition: background 0.15s, color 0.14s, border 0.17s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
  border: 1.3px solid var(--secondary);
  font-weight: 600;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1.3px solid var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #eaeff1;
  color: var(--secondary);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--secondary);
  border: 1.3px solid var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e6f8f7;
  color: var(--primary);
  border: 1.3px solid var(--primary);
}
@media (max-width: 480px) {
  .cookie-banner {
    padding: 20px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-banner p {
    margin-right: 0;
  }
}

/* === Cookie Modal === */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,56,101,0.47);
  z-index: 2110;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 430px;
  width: 96vw;
  padding: 30px 24px 26px 24px;
  box-shadow: 0 8px 40px 0 rgba(18,56,101,0.17);
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: fadeInModal 0.34s cubic-bezier(.62,0,.34,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 7px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
  gap: 12px;
}
.cookie-modal-category label {
  color: #253a4c;
  font-size: 1rem;
  font-family: var(--body), var(--serif);
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 12px;
  border: 1.4px solid #d1dde7;
  background: #e6eaef;
  position: relative;
  transition: background 0.14s, border 0.13s;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.15s cubic-bezier(.5,0,.15,1);
  box-shadow: 0 2px 6px 0 rgba(18,56,101,0.14);
}
.cookie-toggle input:checked ~ .slider {
  left: 18px;
  background: var(--secondary);
}
.cookie-toggle input:checked ~ .slider {
  background: var(--secondary);
}
.cookie-modal-buttons {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-buttons .cookie-btn {
  font-size: 0.99rem;
  padding: 7px 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 12px;
  font-size: 1.5rem;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}

@media (max-width: 520px) {
  .cookie-modal {
    max-width: 96vw;
    padding: 16px 7px 16px 7px;
    border-radius: 10px;
  }
}

/* === Miscellaneous === */
::-webkit-scrollbar {
  width: 8px;
  background: #E0E6EB;
}
::-webkit-scrollbar-thumb {
  background: #CED7E2;
  border-radius: 8px;
}

/* === Utility Classes (Optional) === */
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* === Focus Rings for Accessibility === */
button:focus, .cta-button:focus, a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(34,186,187,0.08);
}

/* === Animations === */
.cta-button, .service-card, .card, .feature-grid li, .icon-grid li, .testimonial-card, .main-nav a, .footer-nav a {
  transition: box-shadow 0.19s, background 0.16s, color 0.13s, transform 0.11s;
}

/* === Print Styles === */
@media print {
  header, nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none !important; }
  body { background: #fff; color: #222; }
}
