/* ==================================================
   CSS RESET & NORMALIZATION
   ================================================== */
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.6;
  background: #FAFAF8;
  min-height: 100vh;
  color: #232325;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}
a {
  color: #213459;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #F0A500;
  outline-offset: 2px;
}
strong, b {
  font-weight: bold;
}

/* FONTS (Elegant Classic)
   Display: Playfair Display, Body: Source Serif Pro as closest fallback */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Serif+Pro:wght@400;600&display=swap');

html, body {
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', Times, serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  color: #213459;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; margin-bottom: 28px; }
h2 { font-size: 2rem; margin-bottom: 26px; }
h3 { font-size: 1.3rem; margin-bottom: 16px; }
h4 { font-size: 1.1rem; }

p, ul, ol, li {
  font-family: 'Source Serif Pro', Georgia, Times, serif;
  font-size: 1rem;
  color: #232325;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li { margin-bottom: 10px; }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 13px 32px;
  background: #213459;
  color: #FFFFFF;
  border-radius: 24px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  border: none;
  box-shadow: 0 2px 12px rgba(33,52,89,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.08s;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 8px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #F0A500;
  color: #213459;
  box-shadow: 0 4px 22px rgba(240,165,0,0.14);
  transform: translateY(-2px) scale(1.032);
}

/* GENERAL CONTAINER */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* HEADER NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 6px rgba(33,52,89,0.06);
  position: sticky;
  top: 0;
  z-index: 51;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 0;
}
.logo img {
  height: 48px;
  width: auto;
  margin-right: 18px;
  display: block;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Source Serif Pro', Georgia, Times, serif;
  color: #213459;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F0A50022;
  color: #F0A500;
}
.main-nav .btn-primary {
  margin-left: 12px;
  padding: 9px 22px;
  font-size: 1rem;
}

/* ============== MOBILE NAVIGATION ============== */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #213459;
  cursor: pointer;
  display: none; /* Hidden on desktop */
  margin-left: 18px;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F0A50033;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 18px rgba(33,52,89,0.13);
  z-index: 65;
  padding: 34px 24px 0 24px;
  transform: translateX(-105vw);
  transition: transform 0.33s cubic-bezier(.68,-0.55,.27,1.55);
  opacity: 0.98;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #213459;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.15s;
  padding: 6px;
  border-radius: 50%;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #F0A50044;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
  width: 100%;
}
.mobile-nav a {
  color: #213459;
  font-family: 'Source Serif Pro', serif;
  font-size: 1.25rem;
  padding: 14px 0 14px 12px;
  border-radius: 7px;
  transition: background 0.14s, color 0.1s;
  display: flex;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F0A50013;
  color: #F0A500;
}

/* =========================================
   MAIN LAYOUT & SECTIONS
   ========================================= */
main {
  min-height: 600px;
  background: transparent;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(33,52,89,0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* Elegant Section Header Contrasts for classic look */
section h1, section h2 {
  color: #213459;
  margin-top: 0;
}
section p {
  font-size: 1.1rem;
  max-width: 700px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* ========== FLEX CONTAINER CLASSES =========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(33,52,89,0.09);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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;
  background: #F6F7F9;
  border-radius: 13px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(33,52,89,0.05);
  font-size: 1.13rem;
  color: #232325;
  transition: box-shadow 0.2s, background 0.18s;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #213459;
  margin-left: 18px;
  font-family: 'Source Serif Pro', serif;
}
.testimonial-card:hover,
.testimonial-card:focus {
  background: #F3EEE9;
  box-shadow: 0 6px 18px rgba(33,52,89,0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F8F7F5;
  border-radius: 13px;
  box-shadow: 0 1px 6px rgba(33,52,89, 0.03);
  padding: 24px 18px 22px 18px;
  min-width: 220px;
  flex: 1 1 240px;
  transition: box-shadow 0.15s, background 0.15s;
  margin-bottom: 20px;
  max-width: 350px;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  filter: grayscale(18%) opacity(0.92);
}
.feature-item h3 {
  font-size: 1.17rem;
  color: #213459;
  margin-bottom: 7px;
  margin-top: 0;
}
.feature-item p {
  color: #47484D;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 6px 20px rgba(33,52,89,0.12);
  background: #F0F4FB;
  z-index: 1;
}
/* =========== Feature-Grid Utility ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* =========== Footer =========== */
footer {
  background: #213459;
  color: #fff;
  padding: 48px 0 30px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}
.footer-logo img {
  width: 60px;
  height: auto;
  margin-bottom: 11px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Source Serif Pro', serif;
  opacity: 0.94;
  transition: color 0.18s, opacity 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #F0A500;
  opacity: 1;
}
.footer-contact p, .footer-contact a {
  color: #E8E9EA;
  font-size: 0.97rem;
  line-height: 1.5;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #F0A500;
}

/* =====================================================
   COOKIE CONSENT BANNER & PREFERENCES MODAL
   ===================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  padding: 22px 18px;
  background: #213459;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 -1px 20px rgba(33,52,89,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: cookieBannerIn 0.55s cubic-bezier(.32,1.3,.41,1);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(140px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  font-family: 'Source Serif Pro', serif;
  font-size: 1rem;
  border: none;
  border-radius: 18px;
  padding: 11px 28px;
  margin-bottom: 2px;
  transition: background 0.16s, color 0.16s, box-shadow 0.13s;
  cursor: pointer;
}
.cookie-consent-banner .accept {
  background: #F0A500;
  color: #213459;
  font-weight: 700;
}
.cookie-consent-banner .accept:hover,
.cookie-consent-banner .accept:focus {
  background: #fff;
  color: #213459;
  box-shadow: 0 3px 10px #F0A50033;
}
.cookie-consent-banner .reject {
  background: #fff;
  color: #213459;
}
.cookie-consent-banner .reject:hover,
.cookie-consent-banner .reject:focus {
  background: #F0A500;
  color: #213459;
}
.cookie-consent-banner .settings {
  background: transparent;
  color: #F0A500;
  text-decoration: underline;
}
.cookie-consent-banner .settings:hover,
.cookie-consent-banner .settings:focus {
  color: #fff;
}

/* Cookie Modal 
   -------------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33,52,89,0.60);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.32s cubic-bezier(.42,0,.58,1);
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #213459;
  border-radius: 24px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 4px 38px rgba(33,52,89,0.13);
  padding: 32px 36px 24px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalIn 0.35s cubic-bezier(.32,1.3,.47,1);
}
@keyframes modalIn {
  0% { transform: translateY(90px) scale(0.97); opacity: 0; }
  100% { transform:translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-switch {
  margin-left: auto;
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  appearance: none;
  width: 36px;
  height: 18px;
  background: #d8dadb;
  outline: none;
  border-radius: 10px;
  position: relative;
  transition: background 0.13s;
  vertical-align: middle;
  cursor: pointer;
}
.cookie-modal .cookie-switch input[type="checkbox"]:checked {
  background: #F0A500;
}
.cookie-modal .cookie-switch input[type="checkbox"]:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  height: 14px;
  width: 14px;
  background: #fff;
  border-radius: 7px;
  transition: transform 0.17s;
  box-shadow: 0 1px 3px #21345922;
}
.cookie-modal .cookie-switch input[type="checkbox"]:checked:before {
  transform: translateX(18px);
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  color: #213459;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.13s;
  border-radius: 50%;
  padding: 4px;
}
.cookie-modal .close-cookie-modal:hover,
.cookie-modal .close-cookie-modal:focus {
  background: #F0A5002e;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}


/* ================= MEDIA QUERIES ================ */
@media (max-width: 992px) {
  .container {
    max-width: 100%;
    padding: 0 10px;
    gap: 12px;
  }
  footer .container {
    flex-direction: column;
    gap: 30px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  section {
    padding: 24px 6px;
    border-radius: 11px;
  }
  .section {
    padding: 24px 6px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    z-index: 69;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid { gap: 12px; }
  .footer-nav { flex-direction: row; gap: 9px; }
  header .container {
    padding: 13px 10px;
  }
  .content-wrapper, .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    text-align: left;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .feature-item, .card {
    padding: 16px 9px;
    margin-bottom: 13px;
  }
}
@media (max-width: 530px) {
  html { font-size: 14px; }
  footer { padding: 31px 0 22px 0; }
  .footer-logo img { width: 47px; }
  section h1, section h2 { font-size: 1.2rem; }
}

/* ==================== UTILITIES ======================= */
.text-center { text-align: center !important; }
.d-flex { display: flex !important; }
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-32 { margin-top: 32px!important; }
.mb-32 { margin-bottom: 32px!important; }
.mt-16 { margin-top: 16px!important; }
.mb-16 { margin-bottom: 16px!important; }

/* ==================== MISC MICRO-INTERACTIONS ===================== */
.card, .feature-item {
  transition: transform 0.13s cubic-bezier(.46,.03,.52,.96), box-shadow 0.16s;
}
.card:hover, .feature-item:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 7px 23px rgba(33,52,89,0.17);
  z-index: 3;
}

/* =================== FORM STYLES (Kontakt) ===================== */
input[type="text"], input[type="email"], textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #C3C6CC;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  margin-bottom: 15px;
  background: #FCFAF7;
  transition: border-color 0.17s, background 0.14s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #F0A500;
  background: #fffdeb;
}
label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Source Serif Pro', serif;
  font-size: 1rem;
}

/* =================== ICON LISTS ===================== */
.text-section ul li img {
  width: 28px;
  margin-right: 9px;
  vertical-align: middle;
  filter: grayscale(10%) opacity(0.9);
}

/* ===================== ACCESSIBILITY ===================== */
:focus-visible {
  outline: 2px solid #F0A500;
  outline-offset: 2px;
}

/* ============ Z-INDEX SAFEGUARDS =============== */
header { z-index: 50; }
.mobile-menu { z-index: 65; }
.cookie-consent-banner { z-index: 96; }
.cookie-modal-overlay { z-index: 120; }

/* ============== PRINT STYLES ============== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  section { border: none !important; box-shadow: none !important; background: #fff; }
}

/* ===== END OF CSS ===== */
