/* === 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F4F0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1a2327;
}
ol, ul {
  list-style: none;
  padding-left: 0;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* === BRAND COLOR VARIABLES === */
:root {
  --color-primary: #156075;
  --color-secondary: #E3A939;
  --color-accent: #F6F4F0;
  --color-dark: #14313b;
  --color-text: #1a2327;
  --color-link: #156075;
  --color-card-shadow: rgba(21,96,117,0.07);
  --color-danger: #E53935;
  --color-success: #3EDB94;
  --color-bg-hover: #f0ebdd;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--color-primary);
}
h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol, li, strong, span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 400;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
.text-section p, .text-section ul, .text-section li {
  font-size: 1rem;
}

/* === LAYOUT UTILITIES === */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1040px;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: white;
  box-shadow: 0 4px 32px var(--color-card-shadow);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 40px rgba(21,96,117,0.18);
  transform: translateY(-6px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px 20px 24px;
}
.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;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(21,96,117,0.10);
  border-left: 6px solid var(--color-secondary);
}
.testimonial-card p {
  color: #21282f;
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0;
}
.testimonial-author {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: -6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === MAIN NAVIGATION === */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  box-shadow: 0 3px 12px rgba(21,96,117,0.06);
  min-height: 67px;
  padding: 0 18px;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 10px 14px;
  border-radius: 7px;
  margin: 0 2px;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:not(.cta-primary):hover {
  background: var(--color-bg-hover);
  color: var(--color-secondary);
}
.main-nav img {
  height: 36px;
  width: auto;
  margin-right: 18px;
}
.cta-primary {
  background: var(--color-secondary);
  color: #fff !important;
  border-radius: 32px;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 4px 20px rgba(227,169,57,0.18);
  transition: background 0.18s, color 0.18s, transform 0.16s;
  border: none;
  outline: none;
  display: inline-block;
  margin-left: 8px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-primary);
  color: var(--color-secondary) !important;
  transform: translateY(-2px) scale(1.04);
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 16px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  z-index: 1102;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1200;
  box-shadow: 0 6px 44px rgba(21,96,117,0.19);
  transform: translateX(-105%);
  transition: transform 0.36s cubic-bezier(0.67,0,0.33,1);
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  right: 28px;
  top: 18px;
  font-size: 2.2rem;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1211;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 0 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-primary);
  padding: 14px 0;
  text-align: left;
  width: 100%;
  transition: color 0.2s;
  border-radius: 10px;
}
.mobile-nav a:hover, .mobile-nav a:active {
  color: var(--color-secondary);
  background: #f3f0e4;
  padding-left: 10px;
}

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 0 0;
  box-shadow: 0 -2px 20px rgba(21,96,117,0.10);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: underline;
  margin-right: 16px;
  transition: color 0.19s;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-contact p {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 6px;
}
footer .content-wrapper {
  align-items: flex-start;
  gap: 36px;
  flex-direction: row;
  justify-content: space-between;
}

/* === BUTTONS === */
button, .cta-primary, .cookie-btn {
  cursor: pointer;
  outline: none;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}
button:active, .cta-primary:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* === LINKS === */
a {
  color: var(--color-link);
}
a:focus {
  outline: 2px solid var(--color-secondary);
}

/* === LISTS === */
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0px;
  line-height: 1.6;
  position: relative;
}
ul li strong {
  color: var(--color-secondary);
}

/* === CARDS, TESTIMONIALS & BOXES === */
.card {
  min-width: 260px;
  max-width: 400px;
  margin-right: 24px;
}

/* === SPACINGS === */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.container {
  margin-bottom: 0;
}
.content-wrapper, .card-container, .content-grid {
  margin-bottom: 0;
}
section:last-child {
  margin-bottom: 0;
}

/* === MAP SNIPPET (Kontakt Page) === */
.map-snippet {
  background: var(--color-accent);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.98rem;
  color: var(--color-primary);
  margin-top: 12px;
  box-shadow: 0 2px 10px rgba(21,96,117,0.09);
}

/* === HOVER EFFECTS, SHADOWS, TRANSITIONS === */
.card, .testimonial-card, .cta-primary, .cookie-btn {
  transition: box-shadow 0.18s, background 0.19s, color 0.19s, transform 0.14s;
}
.card:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 2px 32px rgba(21,96,117,0.19);
}

/* === ANIMATIONS === */
@keyframes ctabounce {
  0% {transform: scale(1);}
  60% {transform: scale(1.06);}
  100% {transform: scale(1);}
}
.cta-primary:active {
  animation: ctabounce 0.18s;
}

@keyframes fadeUp {
  0% {opacity: 0; transform: translateY(12px);}
  85%{opacity: 0.93;}
  100% {opacity: 1; transform: translateY(0);}
}
.section, .testimonial-card, .cta-primary {
  animation: fadeUp 0.77s cubic-bezier(0.51,0.26,0.26,1) both;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe7;
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -1px 30px rgba(21,96,117,0.10);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  padding: 16px 28px;
  font-size: 1rem;
  transition: transform 0.35s, opacity 0.26s;
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(130%);
  pointer-events: none;
}
.cookie-banner-text {
  color: var(--color-primary);
  font-size: 1.03rem;
  line-height: 1.7;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 24px;
  padding: 10px 26px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin: 0 4px;
  border: none;
}
.cookie-btn:active, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn.cookie-settings {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.cookie-settings:active, .cookie-btn.cookie-settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21,96,117,0.39);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  padding: 32px 28px;
  max-width: 370px;
  width: 95vw;
  box-shadow: 0 12px 50px 0 rgba(21,96,117,0.18);
  animation: fadeUp 0.44s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h3 {
  margin-bottom: 0px;
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: bold;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category label {
  flex: 1;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width:18px;height:18px;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

/* === RESPONSIVE DESIGN (MOBILE FIRST) === */
@media (max-width: 1199px) {
  .container {
    max-width: 920px;
  }
  .main-nav {
    padding: 0 9px 0 6px;
    gap: 12px;
  }
  footer .content-wrapper {
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 98vw;
  }
  .main-nav {
    gap: 8px;
  }
  footer .content-wrapper {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 96%;
  }
  .container {
    padding: 0 9px;
  }
  .section {
    padding: 22px 5px;
    margin-bottom: 38px;
  }
  section {
    padding: 24px 0;
    margin-bottom: 38px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .testimonial-card {
    padding: 14px 8px;
    border-radius: 12px;
  }
  footer {
    padding: 22px 0 0 0;
  }
  .footer-nav {
    gap: 14px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.26rem;
  }
  h2 {
    font-size: 1rem;
  }
  .section {
    padding: 13px 2px;
    margin-bottom: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 19px 9px;
    font-size: 1rem;
  }
  .cookie-modal {
    padding: 22px 10px;
    font-size: 1rem;
  }
}

/* === UTILITY CLASSES === */
.mr-2 {margin-right: 2px;}
.mr-4 {margin-right: 4px;}
.mt-2 {margin-top: 2px;}
.mt-4 {margin-top: 4px;}
.text-center {text-align: center;}

/* === OVERRIDES FOR HIGH CONTRAST IN TESTIMONIALS/REVIEWS === */
.testimonial-card {
  background: #fff;
  color: #1a2327;
  border-left: 6px solid var(--color-secondary);
}
.testimonial-card p, .testimonial-card .testimonial-author {
  color: #1a2327 !important;
}

/* === HIDE SCROLLBAR FOR MOBILE MENU === */
.mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* === HIDE UNWANTED OUTLINE FOR BUTTONS === */
button::-moz-focus-inner, .cta-primary::-moz-focus-inner,
.cookie-btn::-moz-focus-inner {
  border: 0;
}

/* === END === */
