/* 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 {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #fff;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #2B4664;
  background: #FFFFFF;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}

/* MONTSERRAT for HEADINGS, ROBOTO for BODY */
h1, h2, h3, h4, h5, h6, .cta {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* TYPOGRAPHY SCALE */
h1 { font-size: 2.75rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
p, ul, ol, li, table, th, td { font-size: 1rem; line-height: 1.65; color: #2B4664; }
strong, b { font-weight: 700; }

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

/* CONTAINER UTILS */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FLEXBOX LAYOUTS (MANDATORY PATTERNS) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFEFCA;
  border-radius: 32px;
  box-shadow: 0 6px 24px rgba(43, 70, 100, 0.06);
  position: relative;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 2.5px solid #35577D;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 3px 12px rgba(43, 70, 100, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: #B57C2C;
  box-shadow: 0 8px 32px rgba(43, 70, 100, 0.15);
}
.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;
  background: #fff;
  border-left: 8px solid #E6A243;
  border-radius: 20px;
  box-shadow: 0 3px 12px rgba(43, 70, 100, 0.08);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section { margin-bottom: 24px; }

section:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section { padding: 24px 8px; }
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .testimonial-card { flex-direction: column; gap: 10px; }
}

/* HEADER */
header {
  background: #35577D;
  color: #fff;
  padding: 0;
  position: relative;
  box-shadow: 0 4px 16px rgba(43, 70, 100, 0.07);
  z-index: 1060;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
}
header img {
  height: 50px;
  width: auto;
  margin-right: 26px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  text-decoration: none;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 1.06rem;
  padding: 7px 13px;
  border-radius: 30px;
  transition: background 0.16s, color 0.16s;
  position: relative;
  line-height: 1.2;
}
nav a:hover, nav a.cta:hover, .footer-nav a:hover {
  background: #E6A243;
  color: #fff;
}
nav a.cta {
  background: #E6A243;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(230, 162, 67,0.10);
  border-radius: 36px 13px 36px 13px;
  padding: 9px 24px;
  margin-left: 16px;
  border: none;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
nav a.cta:active { background: #B57C2C; }

/* Burger menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  padding: 6px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1061;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E6A243;
  color: #fff;
}

@media (max-width: 1024px) {
  nav { gap: 10px; }
  nav a { font-size: 1rem; }
}
@media (max-width: 960px) {
  nav a.cta { margin-left: 9px; }
}
@media (max-width: 900px) {
  nav a:not(.cta) { padding: 7px 8px; }
}
@media (max-width: 760px) {
  nav { display: none !important; }
  .mobile-menu-toggle { display: inline-block; }
}

/* MOBILE MENU (Overlay) */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #35577D;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.5,0,0.4,1);
  box-shadow: 4px 0 32px rgba(43,70,100, .09);
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 20px 0 0 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1201;
  align-self: flex-start;
  transition: color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #E6A243;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 34px;
  width: 100%;
  padding: 0 27px 0 27px;
}
.mobile-nav a {
  padding: 15px 0;
  text-decoration: none;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  border-bottom: 1.5px solid rgba(255,255,255, 0.08);
  transition: background 0.16s, color 0.16s;
  border-radius: 10px;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.cta {
  background: #E6A243;
  color: #fff;
  margin: 18px 0 0 0;
  font-size: 1.3rem;
  padding: 15px 16px;
  border-radius: 12px 32px 12px 32px;
  box-shadow: 0 3px 16px rgba(230,162,67,0.15);
}
.mobile-nav a:hover {
  background: #E6A243;
  color: #fff;
}

/* MAIN LAYOUT GENERAL */
main {
  min-height: 60vh;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* UL/LI STYLE FOR FEATURE LISTS */
ul {
  list-style: none;
  margin-bottom: 0;
}
ul li {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
ul li:last-child {
  margin-bottom: 0;
}
ul li img {
  height: 26px;
  width: 26px;
  flex-shrink: 0;
}

/* BUTTONS, LINKS, CTAS */
.cta, button, .button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #E6A243;
  color: #fff !important;
  border: none;
  border-radius: 18px 42px 18px 42px;
  font-size: 1.13rem;
  font-weight: 700;
  padding: 14px 34px;
  box-shadow: 0 2px 12px rgba(230, 162, 67, 0.15);
  margin-top: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.04em;
  transition: background 0.17s, color 0.17s, transform 0.17s, box-shadow 0.17s;
}
.cta:focus, .cta:hover, button:focus, button:hover, .button:focus, .button:hover {
  background: #35577D;
  color: #fff !important;
  transform: translateY(-1.5px) scale(1.03);
  box-shadow: 0 6px 20px rgba(43, 70, 125, 0.16);
}

/* TABLES (Preise) */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(43,70,125,0.07);
  border-radius: 14px;
  overflow: hidden;
}
thead th {
  background: #35577D;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 10px;
  text-align: left;
}
tbody td {
  padding: 13px 10px;
  border-bottom: 1px solid #FFEFCA;
}
tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td {
    padding: 11px 7px;
    position: relative;
    border-bottom: 1px solid #E6A243;
    font-size: 1rem;
  }
  tbody tr { margin-bottom: 12px; }
}

/* TESTIMONIAL CARD CONTRAST SAFE */
.testimonial-card {
  background: #FFFFFF;
  color: #2B4664;
  border-left: 8px solid #E6A243;
}
.testimonial-card strong {
  color: #2B4664;
  font-size: 1.08rem;
}
.testimonial-card p {
  color: #2B4664;
  font-size: 1.08rem;
  margin: 0;
}

/* FOOTER */
footer {
  background: #35577D;
  color: #fff;
  font-size: 0.995rem;
  padding: 32px 0 16px 0;
  box-shadow: 0 -3px 12px rgba(43, 70, 100, 0.10);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}
.footer-nav a {
  text-decoration: none;
  color: #FFEFCA;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  border-radius: 4px;
  padding: 2px 7px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover {
  background: #E6A243;
  color: #fff;
}
.contact-info {
  color: #FFEFCA;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.contact-info img {
  height: 21px;
  width: 21px;
  margin-right: 4px;
}
@media (max-width: 560px) {
  .footer-nav, .contact-info { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* FORMS & INPUTS (if present) */
input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  padding: 10px 13px;
  border: 2px solid #E6A243;
  border-radius: 9px;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #35577D;
  outline: none;
  box-shadow: 0 2px 9px #FFEFCA;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  font-weight: 500;
}

/* GEOMETRIC DECOR (for geometric_structured style) */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: 15px; right: 15px;
  width: 54px; height: 54px;
  background: rgba(53,87,125,0.08);
  border-radius: 0 24px 0 24px;
  z-index: 0;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 10px; left: 14px;
  width: 40px; height: 40px;
  background: rgba(230,162,67,0.09);
  border-radius: 24px 0 24px 0;
  z-index: 0;
}
.section > .container, .section > * { position: relative; z-index: 1; }
@media (max-width: 600px) {
  .section:before, .section:after { display: none; }
}

/* MICROHOVER EFFECTS & INTERACTIONS */
a, .cta, button {
  transition: color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.14s;
}
h1, h2, h3 { transition: color 0.18s; }
.card, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.14s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 40px rgba(43, 70, 125, 0.18);
  border-color: #B57C2C;
}
input, textarea {
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* UTILITIES */
.d-none { display: none !important; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 1990;
  background: #fff;
  border-top: 5px solid #E6A243;
  box-shadow: 0 -4px 24px rgba(53, 87, 125, 0.15);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  transition: transform 0.38s cubic-bezier(0.5,0,0.4,1), opacity 0.3s;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 10px 20px;
  border-radius: 8px 32px 8px 32px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  background: #E6A243;
  color: #fff;
  cursor: pointer;
  margin-left: 5px;
  box-shadow: 0 2px 10px rgba(230,162,67,0.08);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #35577D;
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #E6A243;
  border: 1.5px solid #E6A243;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #E6A243;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 16px 8px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-actions { width: 100%; justify-content: flex-end; }
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  z-index: 2100;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(43,70,125,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 28px 8px 28px 8px;
  box-shadow: 0 8px 42px rgba(43,70,125,0.17);
  padding: 32px 28px 24px 28px;
  min-width: 310px;
  max-width: 90vw;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #2B4664;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  color: #2B4664;
  font-weight: 600;
}
.cookie-modal .cookie-actions {
  margin-top: 22px;
  display: flex;
  gap: 13px;
}
.cookie-modal .close-modal {
  background: #E6A243;
  color: #fff;
  border: none;
  border-radius: 10px 20px 10px 20px;
  padding: 9px 18px;
  margin-left: auto;
  cursor: pointer;
}
.cookie-modal .close-modal:hover { background: #35577D; color: #fff; }
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 45px; height: 24px;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFEFCA;
  border: 2px solid #E6A243;
  border-radius: 24px;
  transition: .2s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 2px; bottom: 2px;
  background: #E6A243;
  border-radius: 50%;
  transition: .2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #E6A243;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background: #fff;
}
.toggle-switch input:disabled + .toggle-slider {
  background: #d0d4db;
  pointer-events: none;
  border-color: #aab1bb;
}
.toggle-switch input:disabled + .toggle-slider:before {
  background: #aab1bb;
}

/* Z-INDEX & NO OVERLAP */
header { z-index: 1060; }
footer { z-index: 1030; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 1990; }
.cookie-modal { z-index: 2100; }

/* GEOMETRIC/STRUCTURED EXTRAS */
h1,h2,h3 { text-transform: none; }
h1,h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  color: #35577D;
}

.card, .testimonial-card {
  border-radius: 16px 40px 16px 40px;
  border-width: 2.5px;
}

/* FINAL RESPONSIVE TWEAKS */
@media (max-width: 420px) {
  .container { padding: 0 5px; }
  .section { padding: 16px 0px; }
}
@media (max-width: 320px) {
  .cta { font-size: 1rem; padding: 10px 18px; }
}

/* Hide decorative geometric elements on print */
@media print {
  .section:before, .section:after, header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
}
