/* --- 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.5;
  background: #F5F7FA;
  color: #232A35;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
}

/* --- Global Variables (with Fallbacks) --- */
:root {
  --color-primary: #344C61;
  --color-secondary: #E3C45A;
  --color-accent: #F5F7FA;
  --color-dark: #232A35;
  --color-light: #FAFAFA;
  --color-shade: #EBEDF2;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.1;
}
h1 { font-size: 2.4rem; margin-bottom: 16px; font-weight: 800; }
h2 { font-size: 1.8rem; margin-bottom: 14px; font-weight: 700; }
h3 { font-size: 1.35rem; margin-bottom: 10px; font-weight: 600; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 500; }
p, li, address {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
strong { font-weight: 600; }

/* --- Links --- */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-secondary);
  outline: none;
}

/* --- Buttons --- */
.cta-btn, .cookie-btn, .cookie-settings-btn {
  background: linear-gradient(90deg, #344C61 20%, #3C668A 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.10rem;
  padding: 12px 34px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 12px 2px rgba(52,76,97,0.12);
  cursor: pointer;
  margin-top: 14px;
  margin-bottom: 10px;
  transition: background 0.3s, transform 0.15s, box-shadow 0.3s;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus,
.cookie-btn:hover,
.cookie-btn:focus,
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: linear-gradient(90deg, #E3C45A 20%, #FFEC86 100%);
  color: #232A35;
  box-shadow: 0 4px 20px 5px rgba(227,196,90,0.17);
  transform: translateY(-3px) scale(1.025);
}

/* --- Container + Section Spacing --- */
.container {
  width: 100%;
  max-width: 1170px;
  padding: 0 22px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:last-child {
  margin-bottom: 0 !important;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* --- Header & Main Navigation --- */
header {
  background: linear-gradient(90deg, #344C61 40%, #3C668A 100%);
  padding: 0;
  box-shadow: 0 1px 18px 0 rgba(52,76,97,0.10);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  min-height: 76px;
}
.logo img {
  height: 42px;
  width: auto;
  vertical-align: bottom;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  color: #fff;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  border-radius: 20px;
  transition: background 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: rgba(227,196,90,0.30);
  color: #232A35;
}
header .cta-btn {
  margin: 0;
  font-size: 1rem;
  padding: 10px 22px;
  font-weight: 700;
  border-radius: 24px;
  transition: background 0.2s, color 0.2s;
  background: linear-gradient(90deg, #E3C45A 40%, #FFD969 100%);
  color: #233366;
  box-shadow: 0 2px 7px 2px rgba(227,196,90,0.12);
}
header .cta-btn:hover,
header .cta-btn:focus {
  background: linear-gradient(90deg, #344C61 20%, #3C668A 100%);
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 14px;
  transition: background .14s;
  margin-left: 6px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(227,196,90,0.25);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1002;
  background: linear-gradient(110deg, #344C61 70%, #E3C45A 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.76,.01,.33,.97), opacity .27s;
  box-shadow: 4px 0 32px 0 rgba(64,76,120,0.15);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  font-weight: 700;
  background: none;
  border: none;
  color: #fff;
  align-self: flex-end;
  margin: 18px 18px 0 0;
  padding: 8px 13px;
  border-radius: 16px;
  cursor: pointer;
  transition: background .15s;
  z-index: 1003;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(227,196,90,0.22);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
  padding: 18px 32px 24px 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  padding: 14px 0 14px 10px;
  border-radius: 18px;
  transition: background 0.13s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(227,196,90,0.22);
  color: #232A35;
}

/* --- HERO Section --- */
.hero {
  background: linear-gradient(93deg, #F5F7FA 70%, #E3C45A 100%);
  border-bottom: 1.5px solid #EBEDF2;
  min-height: 260px;
}
.hero .container {
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 0;
  text-align: left;
  gap: 12px;
}
.hero h1{
  color: #344C61;
  font-size: 2.25rem;
}
.hero p{
  color: #334055;
}

/* --- Features Section --- */
.features {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 20px 0 rgba(145, 162, 178, 0.07);
  margin-bottom: 60px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F5F7FA;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(52, 76, 97, 0.07);
  padding: 28px 22px;
  width: 100%;
  max-width: 255px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform .22s;
  min-height: 250px;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
.feature-item h3{
  font-size: 1.18rem;
  font-weight: 700;
  color: #344C61;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 8px 30px 2px rgba(227,196,90,0.14), 0 2px 10px 0 rgba(52,76,97,0.08);
  transform: translateY(-5px) scale(1.04);
  background: #fffbe6;
}

/* --- Card Container (unified, for further extension) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: linear-gradient(94deg, #FAFAFA 90%, #E3C45A 110%);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(52, 76, 97, 0.06);
  position: relative;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px 4px rgba(52,76,97,0.10);
  transform: scale(1.025);
}

/* --- About Preview, About Section, About-Section --- */
.about-preview, .about, .about-section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 20px 0 rgba(145, 162, 178, 0.07);
  margin-bottom: 60px;
}
.about-preview h2, .about h2, .about-section h2 {
  color: #344C61;
  margin-bottom: 10px;
}

.about-section ul, .about ul, .about-preview ul {
  margin-top: 4px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-left: 22px;
}
.about-section ul li:before, .about ul li:before, .about-preview ul li:before {
  content: '•';
  color: #E3C45A;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-weight: bold;
}

/* --- Service List --- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-item {
  background: #F5F7FA;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 1px 8px 0 rgba(52,76,97,0.07);
  min-width: 210px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.2s;
}
.service-item:hover,
.service-item:focus-within {
  box-shadow: 0 6px 24px 4px rgba(227,196,90,0.10), 0 1px 8px 0 rgba(52,76,97,0.06);
  background: #fffbe6;
}
.service-item h3 {
  color: #344C61;
  font-size: 1.13rem;
  margin-bottom: 6px;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #FAFAFA;
  border-radius: 24px;
  box-shadow: 0 2px 24px 0 rgba(227,196,90,0.08);
  margin-bottom: 60px;
}
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(52, 76, 97, 0.09);
  padding: 20px 24px 20px 24px;
  min-width: 230px;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, background 0.2s;
  color: #232A35;
}
.testimonial-card p {
  color: #273244;
  font-weight: 500;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.testimonial-author {
  font-size: 0.96rem;
  font-weight: 600;
  color: #344C61;
  margin-bottom: 0;
}
.star-rating {
  color: #E3C45A;
  font-size: 1.14rem;
  letter-spacing: 1.5px;
  font-family: var(--font-display);
  margin-bottom: 0;
  margin-top: -13px;
}

/* --- Trust Signals --- */
.trust-signals ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-left: 10px;
}
.trust-signals ul li:before {
  content: '✔';
  color: #E3C45A;
  font-size: 1.13em;
  margin-right: 7px;
}
.trust-signals ul li {
  color: #344C61;
  font-size: 1rem;
  font-weight: 500;
}

/* --- CTA Section --- */
.cta {
  background: linear-gradient(90deg, #E3C45A 70%, #F5F7FA 100%);
  border-radius: 22px;
  box-shadow: 0 2px 20px 0 rgba(227,196,90,0.09);
  text-align: center;
  margin-bottom: 60px;
}
.cta .container {
  align-items: center;
}
.cta .content-wrapper {
  align-items: center;
  gap: 12px;
}
.cta h2 {
  color: #344C61;
  font-size: 2rem;
}

/* --- Legal, Confirmation, Cookie, etc. --- */
.legal, .confirmation, .contact {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(52, 76, 97, 0.08);
  margin-bottom: 60px;
  padding-top: 36px;
  padding-bottom: 32px;
}
.legal .content-wrapper,
.confirmation .content-wrapper,
.contact .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.legal ul, .confirmation ul {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal ul li:before, .confirmation ul li:before {
  content: '\25B6';
  margin-right: 8px;
  color: #E3C45A;
}

/* --- Kontakt Info & Details --- */
.contact-details,
.contact-map {
  background: #F5F7FA;
  border-radius: 16px;
  box-shadow: 0 1px 7px 0 rgba(52,76,97,0.06);
  padding: 18px 17px;
  margin-bottom: 20px;
  flex: 1 1 220px;
}
.contact-details p, .contact-map p {
  margin-bottom: 8px;
  font-size: 1.04rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-details img, .contact-info img {
  width: 19px;
  height: 19px;
  margin-right: 7px;
}

/* --- Footer --- */
footer {
  background: #344C61;
  color: #F5F7FA;
  padding: 32px 0 24px 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
  align-items: center;
  font-family: var(--font-display);
}
.footer-navigation a {
  color: #E3C45A;
  font-weight: 500;
  font-size: 1rem;
  margin-right: 7px;
  transition: color .2s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: #fff;
}
.footer-navigation span {
  color: #F5F7FA;
  font-size: .99rem;
  margin-left: 7px;
}
.address-block {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  margin-bottom: 5px;
}
.footer .address-block img {
  width: 19px; height: 19px;
}
.contact-info p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  font-size: .98rem;
  color: #F5F7FA;
}
footer a {
  color: #E3C45A;
}
footer a:hover {
  text-decoration: underline;
  color: #fff;
}

/* --- Responsive Spacing & Flex Patterns --- */
.card,
.feature-item,
.service-item,
.testimonial-card,
.about-section,
.legal,
.confirmation,
.cta,
.contact {
  margin-bottom: 24px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.feature-grid,
.content-grid,
.testimonial-cards,
.trust-signals ul,
.service-list,
.about ul,
.confirmation ul {
  gap: 24px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .feature-grid, .service-list, .testimonial-cards, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .card, .feature-item, .testimonial-card, .service-item {
    max-width: 100%;
  }
}

/* --- Hamburger, Navigation & Mobile --- */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #344C61;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  box-shadow: 0 -2px 18px 0 rgba(52,76,97,0.12);
  z-index: 1200;
  transition: transform 0.35s, opacity 0.26s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  font-size: 1.08rem;
  line-height: 1.4;
  color: #fff;
}
.cookie-banner .cookie-btn,
.cookie-banner .cookie-settings-btn {
  padding: 10px 20px;
  font-size: 0.99rem;
  border-radius: 14px;
  border: none;
  background: #E3C45A;
  color: #232A35;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 0;
  transition: background .22s, color .24s, box-shadow .15s;
  box-shadow: 0 2px 8px 1px rgba(227,196,90,0.10);
  cursor: pointer;
}
.cookie-banner .cookie-btn:last-of-type { margin-right: 0; }
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus,
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #344C61;
  color: #fff;
  box-shadow: 0 4px 15px 4px rgba(52,76,97,0.11);
  outline: none;
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0;
  width:100vw; height:100vh;
  z-index:1210;
  background:rgba(52,76,97,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.hidden { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(52, 76, 97, 0.22);
  padding: 42px 35px 34px 35px;
  max-width: 98vw;
  min-width: 300px;
  width: 98vw;
  max-width: 420px;
  font-family: var(--font-body);
  color: #232A35;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: cookieModalIn 0.44s cubic-bezier(.83,.01,.36,.97);
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: translateY(60px) scale(.95); }
  90% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal .modal-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: #344C61;
  font-weight: 700;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 15px; right: 14px;
  font-size: 1.6rem;
  color: #344C61;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  padding: 5px 9px;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus { background: #F5F7FA; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 12px 0;
}
.cookie-modal .cookie-category label {
  flex: 1 1 auto;
  font-size: 1.04rem;
  font-family: var(--font-body);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #E3C45A;
}
.cookie-modal .cookie-required {
  opacity: .74;
  font-style: italic;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}
.cookie-modal .cookie-btn {
  padding: 10px 24px;
  font-size: 1.01rem;
  border-radius: 14px;
  border: none;
  background: #E3C45A;
  color: #232A35;
  font-weight: 600;
  box-shadow: 0 1px 7px 1px rgba(227,196,90,0.08);
  cursor: pointer;
  transition: background .2s, color .24s;
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: #344C61;
  color: #fff;
}

/* --- Misc General --- */
::-webkit-scrollbar {
  width: 10px;
  background: #F5F7FA;
}
::-webkit-scrollbar-thumb {
  background: #E3C45A;
  border-radius: 10px;
}

/* --- Accessibility Focus Styles --- */
:focus-visible {
  outline: 2px solid #E3C45A;
  outline-offset: 2px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-32 { margin-top: 32px; }
.mt-16 { margin-top: 16px; }

/* --- Custom Responsive --- */
@media (max-width: 991px) {
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  .feature-grid, .service-list {
    gap: 18px;
  }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.13rem; }
  .container { padding-left: 4px; padding-right: 4px; }
  .hero .content-wrapper, .cta .content-wrapper, .about-preview .content-wrapper {
    padding: 18px 0;
  }
  .section, section, .cta, .features, .about, .about-section, .legal, .confirmation {
    padding: 14px 7px;
    border-radius: 12px;
  }
}

/* --- Prevent Overlapping & Ensure Spacing --- */
.card, .feature-item, .testimonial-card, .service-item  {
  margin-bottom: 20px;
}
.card-container > *,
.feature-grid > *,
.service-list > *,
.testimonial-cards > * {
  margin-bottom: 0;
}
.content-wrapper > *:not(:last-child),
.card-container > *:not(:last-child),
.feature-grid > *:not(:last-child),
.testimonial-cards > *:not(:last-child),
.service-list > *:not(:last-child) {
  margin-right: 0;
}

/* --- Print Hide for Navigation/Menu/Overlay/Banner --- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
}
