/* ==================== 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,
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #FCFAF6;
  color: #1B2028;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0;
}
a {
  color: #1B2028;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #F3D87A; }

/* ==================== BRAND COLORS & FONTS ==================== */
:root {
  --ce-primary: #1B2028;
  --ce-secondary: #F3D87A;
  --ce-accent: #90D1C6;
  --ce-bg: #FCFAF6;
  --ce-dark: #15171c;
  --ce-gold: #F3D87A;
  --ce-gold-dark: #d4bd66;
  --ce-card-bg: #fff;
  --ce-muted: #51576a;
  --ce-border: #ece4c3;
  --ce-shadow: 0 4px 28px 0 rgba(27,32,40,0.08);
  --ce-radius: 16px;
  --ce-font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --ce-font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* -------------------- TYPOGRAPHY -------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ce-font-display);
  color: var(--ce-primary);
  font-weight: 700;
}
h1    { font-size: 2.5rem; margin-bottom: 18px; line-height: 1.14; letter-spacing: -1px; }
h2    { font-size: 2rem; margin-bottom: 16px; line-height: 1.18; }
h3    { font-size: 1.375rem; margin-bottom: 12px; line-height: 1.22; }
h4    { font-size: 1.125rem; margin-bottom: 10px; }

p, ul, li, ol { color: var(--ce-dark); font-family: var(--ce-font-body); font-size: 1rem; }
p { margin-bottom: 16px; }
strong { color: var(--ce-primary); font-weight: bold; }


/* ==================== LAYOUT: SECTIONS + CONTAINERS ==================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1140px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--ce-card-bg);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  transition: box-shadow .25s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(27,32,40,0.21);
  transform: translateY(-4px) scale(1.01);
}
.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 {
  background: var(--ce-card-bg);
  border: 1px solid var(--ce-gold);
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  max-width: 340px;
}
@media (min-width: 700px) {
  .testimonial-card {
    min-width: 320px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Grid of features on homepage (/) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  list-style: none;
  align-items: stretch;
}
.feature-grid li {
  background: var(--ce-card-bg);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  padding: 28px 18px;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 320px;
  margin-bottom: 12px;
  box-shadow: var(--ce-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  transition: box-shadow .2s, border-color .15s, transform .2s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 28px 0 rgba(27,32,40,0.21);
  border-color: var(--ce-gold-dark);
  transform: translateY(-3px) scale(1.01);
}
.feature-grid h3 { font-size: 1.125rem; margin-bottom: 5px; }
.feature-grid img { height: 40px; width: 40px; }

/* Text-only section formatting */
.text-section {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section > ul {
  padding-left: 22px;
  margin-bottom: 14px;
}
.text-section li {
  padding-bottom: 8px;
}

/* FAQ in Kontakt */
.text-section ul { list-style: disc; }


/* ==================== BUTTONS & LINKS ==================== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--ce-gold), var(--ce-gold-dark));
  color: var(--ce-primary);
  font-family: var(--ce-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 32px;
  padding: 0.8em 2.2em;
  margin-top: 12px;
  margin-bottom: 6px;
  transition: background 0.22s, color 0.22s, transform .18s, box-shadow .2s;
  box-shadow: 0 2px 8px 0 rgba(200,183,98,0.08);
  letter-spacing: 0.02em;
  cursor: pointer;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, var(--ce-gold-dark), var(--ce-gold));
  color: var(--ce-dark);
  box-shadow: 0 8px 24px 0 rgba(243,216,122,0.13);
  transform: translateY(-2px) scale(1.02);
}

/* Standard link inside card/section */
.text-section a:not(.cta-primary), .content-wrapper a:not(.cta-primary) {
  color: var(--ce-accent);
  text-decoration: underline;
  font-weight: 500;
  transition: color .2s;
}
.text-section a:not(.cta-primary):hover {
  color: var(--ce-gold-dark);
}


/* ==================== HEADER + NAV ==================== */
header {
  width: 100%;
  background: rgba(255,255,255,0.91);
  box-shadow: 0 2px 18px 0 rgba(27,32,40,0.06);
  z-index: 30;
  position: sticky;
  top: 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
}
header nav a {
  font-family: var(--ce-font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ce-primary);
  border-radius: 6px;
  padding: 6px 12px;
  transition: color .19s, background .16s;
  position: relative;
  z-index: 2;
}
header nav a:hover {
  color: var(--ce-gold);
  background: rgba(243,216,122,.08);
}
header nav img {
  height: 34px;
  width: auto;
  margin-right: 15px;
}
header .cta-primary {
  margin-left: auto;
  margin-right: 0;
}

/* Hide desktop nav on mobile, show burger */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: var(--ce-primary);
  z-index: 90;
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: background .2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(243,216,122,.21);
  color: var(--ce-gold-dark);
}

/* ==================== MOBILE NAVIGATION ==================== */
.mobile-menu {
  position: fixed;
  top: 0;   left: 0;
  width: 100vw;  height: 100vh;
  background: rgba(26,24,19,0.97);
  z-index: 1100;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.77,.2,.34,1.01);
  display: flex;
  flex-direction: column;
  padding-top: 54px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 24px;
  background: transparent;
  border: none;
  color: var(--ce-secondary);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1300;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: background .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background-color: rgba(243,216,122,0.15);
}
.mobile-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 36px 32px 32px 32px;
}
.mobile-nav a {
  color: var(--ce-secondary);
  font-family: var(--ce-font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  padding: 12px 0;
  text-decoration: none;
  font-weight: 500;
  width: 100%;
  border-bottom: 1px solid rgba(243,216,122,0.11);
  transition: color .18s, background .12s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  color: var(--ce-gold-dark);
  background: rgba(243,216,122,0.10);
  border-radius: 6px;
  padding-left: 18px;
}


/* ==================== HERO & CTA ==================== */
main > section:first-child {
  background: linear-gradient(120deg, #fff8e0 0%, #f5eee2 60%, #fffbe3 100%);
  border-bottom: 1px solid var(--ce-border);
  padding-top: 36px;
  padding-bottom: 42px;
  margin-bottom: 60px;
}
main > section:first-child h1 {
  color: var(--ce-primary);
  font-size: 2.7rem;
  margin-bottom: 16px;
}
main > section:first-child .cta-primary {
  margin-top: 18px;
}


/* ==================== TESTIMONIALS ==================== */
.testimonial-card {
  /* see above for default */
  background: #fff;
  color: #181b22;
  border: 1.5px solid var(--ce-gold);
  margin-bottom: 20px;
  min-height: 152px;
}
.testimonial-card p {
  color: #15171c;
  font-size: 1.05rem;
  margin-bottom: 3px;
  font-style: italic;
  line-height: 1.5;
}
.testimonial-card strong {
  color: var(--ce-primary);
  font-size: 1rem;
  margin-bottom: 6px;
}
.testimonial-card .stars {
  color: var(--ce-gold);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: 8px;
  font-family: var(--ce-font-display);
  font-weight: 700;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--ce-primary);
  color: #f1efea;
  width: 100%;
  padding: 0;
  margin-top: 60px;
}
footer .container {
  padding: 35px 16px 22px 16px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #f9efd8;
  font-size: 1rem;
  font-family: var(--ce-font-display);
  font-weight: 500;
  margin-bottom: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  transition: background .14s, color .14s;
}
footer nav a:hover {
  background: var(--ce-gold-dark);
  color: var(--ce-primary);
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 7px;
}
.footer-legal a {
  color: var(--ce-secondary);
  font-size: 0.98rem;
  text-decoration: underline;
  margin-bottom: 0;
  padding: 2px 0;
}
.footer-contact {
  color: #f3efd4;
  font-size: 0.98rem;
  line-height: 1.5;
}
.footer-contact img {
  height: 15px;
  width: 15px;
  vertical-align: middle;
  margin-right: 7px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a img {
  height: 28px;
  width: 28px;
  background: #fff8e0;
  border-radius: 8px;
  transition: box-shadow .18s;
  box-shadow: 0 1px 7px 0 rgba(146,115,24,.06);
}
.footer-social a:hover img {
  box-shadow: 0 2px 18px 0 rgba(255,215,63,0.28);
  background: #fcf4cf;
}


/* ==================== COOKIE CONSENT BANNER ==================== */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: rgba(27, 32, 40, 0.98);
  color: #fffbe3;
  z-index: 2200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 10px 24px 10px;
  box-shadow: 0 -6px 32px 0 rgba(27,32,40,0.13);
  gap: 23px;
  flex-direction: row;
  flex-wrap: wrap;
  font-family: var(--ce-font-body);
  font-size: 1rem;
}
#cookie-consent-banner p {
  margin: 0;
  color: #fffbe6;
  flex: 1 1 230px;
  min-width: 196px;
}
.cookie-btn {
  background: var(--ce-gold);
  color: var(--ce-primary);
  border: none;
  border-radius: 24px;
  padding: 7px 22px;
  font-size: 1rem;
  font-family: var(--ce-font-display);
  font-weight: 600;
  margin: 0 9px;
  cursor: pointer;
  transition: background .22s, color .16s;
  box-shadow: 0 2px 12px 0 rgba(243,216,122,0.10);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--ce-gold-dark);
}
.cookie-settings-btn {
  background: transparent;
  color: #fffde5;
  border: 1.5px solid var(--ce-gold);
  border-radius: 24px;
  font-size: 1rem;
  padding: 7px 22px;
  font-family: var(--ce-font-display);
  margin: 0 4px;
  cursor: pointer;
  transition: background .22s, color .16s, border-color .13s;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--ce-gold);
  color: var(--ce-primary);
}


/* ==== COOKIE MODAL ==== */
#cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(27,32,40,0.72);
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fffbe0;
  color: var(--ce-primary);
  border-radius: 32px;
  padding: 38px 30px 30px 30px;
  width: 99%;
  max-width: 410px;
  box-shadow: 0 12px 60px 0 rgba(27,32,40,0.22);
  display: flex;
  flex-direction: column;
  gap: 21px;
  font-family: var(--ce-font-body);
  animation: fadeInUp .23s ease;
}
@keyframes fadeInUp { from {transform: translateY(32px); opacity: 0;} to {transform: none; opacity: 1;} }
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: -7px;
  color: var(--ce-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.04rem;
  padding: 6px 0;
}
.cookie-category-row .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 25px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ebe0b4;
  border-radius: 22px;
  transition: background 0.22s;
}
.switch input:checked + .slider {
  background-color: var(--ce-gold);
}
.switch .slider:before {
  position: absolute;
  content: "";
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
}
.switch input:checked + .slider:before {
  transform: translateX(16px);
}
.switch input:disabled + .slider {
  opacity: 0.6;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 5px;
}
.close-cookie-modal {
  position: absolute;
  top: 21px; right: 20px;
  background: transparent;
  border: none;
  color: var(--ce-primary);
  font-size: 1.5rem;
  padding: 0 4px;
  cursor: pointer;
}
.close-cookie-modal:hover, .close-cookie-modal:focus { color: var(--ce-gold-dark); }


/* ==================== RESPONSIVENESS ==================== */
@media (max-width: 990px) {
  .container {
    max-width: 94vw;
    padding: 0 4vw;
  }
  .content-wrapper {
    gap: 21px;
  }
  .feature-grid {
    gap: 18px;
  }
  .feature-grid li { min-width: 188px; }
}
@media (max-width: 860px) {
  .footer-contact, .footer-social, .footer-legal {
    font-size: 0.95rem;
    gap: 7px;
    margin-bottom: 2px;
  }
  .footer-legal { flex-direction: row; gap: 13px; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .container { padding: 0 10px; }
  .section { padding: 32px 6px; }
  .content-wrapper, .text-section, .card-container, .content-grid {
    gap: 15px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid li {
    max-width: 100%;
    min-width: 0;
  }
  .testimonial-card {
    max-width: 100vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.98rem;
    padding: 18px 10px 18px 12px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .footer-contact br { display: none; }
  .cookie-modal-content { padding: 22px 7vw 18px 7vw; }
}


/* ==================== UI/MICRO-INTERACTIONS ==================== */
.card, .feature-grid li, .testimonial-card, .cta-primary, .cookie-btn, .cookie-settings-btn, .mobile-nav a {
  transition: box-shadow .22s, transform .14s, background .15s, color .12s, border-color .13s;
}

/* Subtle animated underline for .cta-primary on hover */
.cta-primary {
  position: relative;
  overflow: hidden;
}
.cta-primary::after {
  content: '';
  position: absolute;
  height: 3px;
  left: 32px; right: 32px; bottom: 10px;
  background: var(--ce-gold-dark);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0.61);
  transition: transform .22s, opacity .21s;
}
.cta-primary:hover::after, .cta-primary:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Focus ring for accessibility */
.cta-primary:focus, .cookie-btn:focus, .cookie-settings-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--ce-accent);
  outline-offset: 2.5px;
}

/* Selection color */
::selection { background: #fae6a3; color: #15171c; }

/* Hide scrollbar in mobile menu */
.mobile-menu {
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar {
  display: none;
}

/* ==================== UTILITIES ==================== */
.hide { display: none !important; }

