/* ==== CSS RESET & BASE ===== */
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, 
main, 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%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #194258;
  background-color: #F2EDE7;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #194258;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #5D8C71;
}
strong {
  font-weight: 600;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #194258;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #194258;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* General container */
.container {
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #fff;
  border-bottom: 1px solid #d7dbdf;
  box-shadow: 0 2px 8px rgba(25,66,88,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 28px;
}
header img {
  height: 50px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 5px 4px;
  font-weight: 500;
  transition: color 0.18s;
  color: #194258;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #5D8C71;
  transition: width 0.2s;
  position: absolute;
  bottom: -2px; left: 0;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}
.main-nav a:hover, .main-nav a:focus {
  color: #5D8C71;
}

.btn.primary {
  background: #194258;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  padding: 12px 32px;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(25,66,88,0.07);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  outline: none;
  display: inline-block;
  margin-left: 16px;
}
.btn.primary:hover, .btn.primary:focus {
  background: #5D8C71;
  box-shadow: 0 3px 16px rgba(93,140,113,0.17);
  color: #fff;
}

button.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  outline: none;
  font-size: 2rem;
  color: #194258;
  cursor: pointer;
  padding: 4px 10px;
  margin-left: 8px;
  z-index: 101;
}

/* ==== MOBILE NAV ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  background: #fff;
  box-shadow: -4px 0 32px rgba(25,66,88,0.12);
  width: 320px;
  max-width: 92vw;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 30px 24px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  color: #194258;
  position: absolute;
  top: 16px; right: 18px;
  cursor: pointer;
  z-index: 202;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #5D8C71;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 48px;
}
.mobile-nav a {
  color: #194258;
  font-size: 1.1rem;
  padding: 12px 0 10px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2EDE7;
  color: #5D8C71;
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  button.mobile-menu-toggle {
    display: block;
  }
  .btn.primary {
    margin-left: 0;
  }
  .header-flex {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  header img {
    height: 40px;
  }
}

/* ==== SECTIONS ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:last-child {
  margin-bottom: 0;
}
.main {
  padding-top: 96px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* ==== FEATURE GRID ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature {
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 350px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 20px rgba(25,66,88,0.07);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}
.feature:hover {
  box-shadow: 0 7px 32px rgba(93,140,113,0.17);
  transform: translateY(-3px) scale(1.019);
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.feature p {
  font-size: 1rem;
  color: #194258;
  margin-bottom: 0;
}
.feature div strong {
  color: #194258;
  font-weight: bold;
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .feature-grid {
    justify-content: flex-start;
    gap: 18px;
  }
  .feature {
    padding: 24px 14px;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature {
    max-width: 100%;
    min-width: auto;
  }
}

/* ==== TESTIMONIALS ==== */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.testimonial-card {
  background: #F2EDE7;
  color: #194258;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 28px;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(25,66,88,0.08);
  min-width: 260px;
  max-width: 400px;
  flex: 1 1 250px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.testimonial-card p {
  font-style: italic;
  color: #194258;
  font-size: 1rem;
}
.testimonial-card div {
  font-size: 0.98rem;
  color: #5D8C71;
  margin-top: 4px;
  font-weight: 600;
}

.ratings-overview {
  margin-top: 12px;
  color: #194258;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

@media (max-width: 768px) {
  .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* ==== CARDS & LAYOUT PATTERNS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(25,66,88,0.08);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 250px;
  min-height: 140px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width:768px) {
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==== FOOTER ==== */
footer {
  background: #194258;
  color: #fff;
  padding: 38px 0 10px 0;
  font-size: 1rem;
  margin-top: 40px;
  border-top: 5px solid #5D8C71;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.footer-nav a {
  color: #F2EDE7;
  font-weight: 500;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-decoration: none;
  font-size: 0.98rem;
  padding: 2px 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #5D8C71;
  text-decoration: underline;
}
.footer-address {
  margin-bottom: 10px;
  color: #f2ede7;
  font-size: 0.97rem;
}
.footer-links {
  color: #b0bfc9;
  margin-bottom: 8px;
}
.footer-links a {
  color: #b0bfc9;
  text-decoration: underline;
}
.footer-links a:hover, .footer-links a:focus {
  color: #5D8C71;
  text-decoration: none;
}
.footer-credits {
  color: #d2dae2;
  font-size: 0.93rem;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .footer-nav, .footer-links {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ==== TABLES (on Preise page) ==== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(25,66,88,0.07);
  margin-bottom: 18px;
}
thead {
  background: #194258;
  color: #fff;
}
th, td {
  padding: 16px 10px;
  font-size: 1rem;
  text-align: left;
  border-bottom: 1px solid #e4e9ed;
}
th {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}
@media (max-width: 768px) {
  table, thead, tbody, tr, th, td {
    display: block;
  }
  tr {
    padding-bottom: 16px;
    border-bottom: 1px solid #e4e9ed;
  }
  th, td {
    padding: 12px 5px;
  }
}

/* ==== COOKIE CONSENT BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #194258;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px 16px 16px;
  box-shadow: 0 -2px 16px rgba(25,66,88,0.11);
  z-index: 250;
  border-radius: 18px 18px 0 0;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.24s, visibility 0.24s;
}
.cookie-banner.hide {
  opacity: 0;
  visibility: hidden;
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  color: #194258;
  text-align: center;
  max-width: 580px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.cookie-banner .cookie-btn {
  padding: 10px 28px;
  border-radius: 22px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
  font-weight: 600;
}
.cookie-banner .cookie-btn.accept {
  background: #194258;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #F2EDE7;
  color: #194258;
  border: 1px solid #194258;
}
.cookie-banner .cookie-btn.settings {
  background: #5D8C71;
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px #5D8C7155;
}

/* Cookie modal overlay */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  background: rgba(25,66,88,0.23);
  z-index: 400;
}
.cookie-modal-backdrop.open {
  display: block;
}
/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-56%) scale(0.94);
  background: #fff;
  color: #194258;
  width: 95vw;
  max-width: 380px;
  padding: 32px 24px 24px 24px;
  border-radius: 18px;
  box-shadow: 0 2px 38px rgba(25,66,88,0.22);
  z-index: 410;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.23s, transform 0.23s, visibility 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,-50%) scale(1.01);
}
.cookie-modal h3 {
  margin-bottom: 17px;
  font-size: 1.1rem;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 13px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #5D8C71;
  margin-top: 3px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #194258;
  cursor: pointer;
  user-select: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 10px 18px;
  font-size: 0.99rem;
  border-radius: 16px;
}
.cookie-modal .cookie-btn.save {
  background: #194258;
  color: #fff;
}
.cookie-modal .cookie-btn.cancel {
  background: #F2EDE7;
  color: #194258;
  border: 1px solid #194258;
}
.cookie-category span.note {
  color: #5D8C71;
  font-size: 0.97rem;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 20px 8px 14px 8px;
    max-width: 98vw;
  }
}

/* ==== FORMS ==== */
input, select, textarea {
  border: 1px solid #baccd4;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 10px 16px;
  margin-bottom: 16px;
  transition: border 0.17s, box-shadow 0.17s;
  width: 100%;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border-color: #5D8C71;
  outline: none;
  box-shadow: 0 2px 9px rgba(93,140,113,0.08);
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 7px;
  font-weight: 500;
  color: #194258;
  display: block;
}
button[type="submit"], input[type="submit"] {
  @extend .btn.primary;
}

/* Spacing for sections and content elements */
.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 ==== */
.text-section {
  margin-bottom: 16px;
}
.text-section ul {
  margin-bottom: 12px;
}
.text-section li {
  color: #194258;
  font-size: 1rem;
}

/* CTA Buttons */
section .btn.primary {
  margin-top: 10px;
}

/* Helper: visually-hidden */
.visually-hidden {
  border: 0 !important;
  clip: rect(0,0,0,0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

/* ==== ANIMATIONS ==== */
@keyframes slideInMenu {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}
@keyframes slideOutMenu {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-menu.open {
  animation: slideInMenu 0.23s cubic-bezier(.77,0,.18,1);
}
.mobile-menu {
  animation: slideOutMenu 0.23s cubic-bezier(.77,0,.18,1);
}

.cookie-banner {
  animation: fadeIn 0.5s;
}
.cookie-modal.open {
  animation: fadeIn 0.3s;
}

/* ==== RESPONSIVE Design: MOBILE FIRST ==== */
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  section {
    padding: 28px 4px;
  }
  .content-wrapper {
    gap: 11px;
    padding-left: 0;
    padding-right: 0;
  }
  .main-nav {
    display: none;
  }
  .footer-nav, .footer-links {
    gap: 6px;
    font-size: 0.96rem;
  }
}

@media (max-width: 440px) {
  .btn.primary, .cookie-banner .cookie-btn {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 12px 0;
  }
}
