/* ========================================================== */
/* =============== CSS RESET & FONT IMPORT ================== */
/* ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;600;700&display=swap');

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,
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;
}

body {
  min-height: 100vh;
  background: #F2EFEA;
  color: #1F2937;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1F2937;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.76,0,.22,1);
}
a:hover, a:focus {
  color: #8C6239;
}
ul, ol {
  list-style-position: inside;
  padding-left: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

/* ===================== BRAND COLORS ===================== */
:root {
  --clr-primary: #1F2937;
  --clr-secondary: #8C6239;
  --clr-accent: #F2EFEA;
  --clr-electric1: #19AFFF;
  --clr-electric2: #FF38A1;
  --clr-electric3: #FFD600;
  --clr-electric4: #3affc3;
}

/* ========================================================== */
/* =============== BASE LAYOUT CONTAINERS =================== */
/* ========================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(25,175,255,0.06), 0 1.5px 6px 0 rgba(140,98,57,0.08);
  transition: box-shadow 0.25s cubic-bezier(.76,0,.22,1), transform 0.12s cubic-bezier(.76,0,.22,1);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(255,56,161,0.11), 0 4px 16px 0 rgba(25,175,255,0.09);
  transform: translateY(-3px) scale(1.012);
  z-index: 2;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(31,41,55, 0.11);
  color: #222326;
  transition: box-shadow 0.22s cubic-bezier(.76,0,.22,1);
  min-width: 0;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 28px 0 rgba(25,175,255,0.15), 0 2px 14px 0 rgba(140,98,57,0.11);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 1rem;
  margin-bottom: 12px;
  justify-content: flex-start;
}

footer .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}

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

/* ========================================================== */
/* =============== TYPOGRAPHY ============================== */
/* ========================================================== */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--clr-primary);
  margin-bottom: 0.2em;
}

h1 {
  font-size: 2.6rem;
  color: var(--clr-electric1);
  /* Electric blue headline */
  text-shadow: 2px 2px 0 #fff99b, 0 6px 24px rgba(25,175,255,0.13);
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  color: var(--clr-secondary);
  text-shadow: 0 2px 12px rgba(140,98,57,0.19);
  margin: 0 0 8px 0;
}

h3 {
  font-size: 1.25rem;
  color: var(--clr-primary);
}

h4 {
  font-size: 1.1rem;
  color: var(--clr-primary);
}

p, li, a, span, label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--clr-primary);
  line-height: 1.7;
}

p.subheadline, .subheadline {
  font-size: 1.25rem;
  color: var(--clr-electric2);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

strong {
  font-weight: bold;
  color: var(--clr-secondary);
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--clr-electric1), var(--clr-electric2));
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 0.85em 2em;
  border-radius: 30px;
  margin-top: 14px;
  box-shadow: 0 2px 18px 0 rgba(255,56,161,0.09),0 2px 6px 0 rgba(25,175,255,0.13);
  transition: background 0.24s cubic-bezier(.76,0,.22,1), box-shadow 0.22s cubic-bezier(.76,0,.22,1), transform .12s cubic-bezier(.76,0,.22,1);
  text-shadow: 0 0 12px rgba(31,41,55,0.11);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
}
.primary-cta:hover, .primary-cta:focus {
  background: linear-gradient(90deg, var(--clr-electric2), var(--clr-electric1));
  color: #fff;
  box-shadow: 0 4px 30px 0 rgba(25,175,255,0.18), 0 4px 16px 0 rgba(255,56,161,0.12);
  transform: translateY(-2px) scale(1.035);
}

/* ========================================================== */
/* ================ MAIN NAVIGATION ========================= */
/* ========================================================== */

header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(31,41,55, 0.06);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  width: 100%;
  justify-content: flex-start;
  font-family: 'Montserrat', Arial, sans-serif;
}

.main-nav > a {
  font-weight: 600;
  color: #1F2937;
  background: none;
  border-radius: 4px;
  padding: 7px 14px;
  margin-right: 2px;
  transition: color 0.18s, background 0.22s;
}

.main-nav > a.primary-cta {
  margin-left: auto;
}

.main-nav > a:hover, .main-nav > a:focus {
  background: var(--clr-electric4);
  color: var(--clr-secondary);
}

.main-nav img {
  height: 42px;
  margin-right: 16px;
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 26px;
  top: 24px;
  font-size: 2rem;
  z-index: 43;
  background: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  border: 2.5px solid var(--clr-electric2);
  color: var(--clr-electric2);
  transition: background 0.18s, box-shadow 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--clr-electric2);
  color: #fff;
  box-shadow: 0 0 0 4px var(--clr-electric3);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 28px 0 rgba(140,98,57,0.09);
  z-index: 110;
  transition: transform .44s cubic-bezier(0.7,0,0.23,1);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 30px 20px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: var(--clr-electric2);
  color: #fff;
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 18px;
  align-self: flex-end;
  border: 2px solid var(--clr-electric2);
  transition: background .14s, color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fff;
  color: var(--clr-electric2);
  border-color: var(--clr-electric2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 20px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-primary);
  padding: 16px 8px;
  border-radius: 10px;
  transition: background 0.17s, color 0.18s;
  background: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-electric4);
  color: var(--clr-secondary);
}

/* Hide on desktop, show on mobile */
@media (max-width: 928px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 929px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ======================== HERO SECTION ======================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ======================= LISTS & UL / OL ==================== */
ul, ol {
  margin-bottom: 20px;
  width: 100%;
}
ul li, ol li {
  padding: 14px 0 0 32px;
  position: relative;
  line-height: 1.72;
  font-size: 1.08rem;
}
ul li::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-electric1) 0%, var(--clr-electric2) 100%);
  opacity: 0.63;
}
ol li {
  list-style-type: decimal;
  color: var(--clr-electric2);
  font-weight: 600;
  padding-left: 36px;
}
ol li::marker {
  color: var(--clr-electric1);
  font-size: 1.25em;
  font-weight: bold;
}

/* ============= ICONS IN LISTS =================== */
ul li > img {
  width: 28px;
  height: 28px;
  margin-right: 7px;
  vertical-align: middle;
  margin-top: -5px;
  display: inline-block;
}

/* ========================================================== */
/* ================== TESTIMONIAL DESIGN ==================== */
/* ========================================================== */
.testimonial-card {
  border-left: 6px solid var(--clr-electric2);
  background: #fff;
  color: #1F2937;
  box-shadow: 0 4px 24px 0 rgba(255,56,161,0.08);
}
.testimonial-card strong {
  color: var(--clr-electric1);
}

/* ========================================================== */
/* ================== FOOTER ================================ */
/* ========================================================== */
footer {
  background: var(--clr-primary);
  color: #fff;
  padding: 38px 0 20px 0;
  font-size: 1rem;
  box-shadow: 0 -2px 20px 0 rgba(31,41,55,0.08);
}
footer .container {
  padding: 0 20px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.85;
  font-weight: bold;
  letter-spacing: 0.01em;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--clr-electric3);
  text-decoration: underline;
}
footer .text-section p {
  color: #fff;
  opacity: 0.8;
  font-size: 0.98rem;
}

/* ========================================================== */
/* ================ COOKIE CONSENT BANNER =================== */
/* ========================================================== */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg,var(--clr-electric1) 70%,var(--clr-electric2) 100%);
  color: #fff;
  z-index: 9999;
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  box-shadow: 0 -2px 16px 0 rgba(25,175,255,0.12);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  animation: cookieBannerFadeIn 0.7s cubic-bezier(.77,0,.175,1);
}
@keyframes cookieBannerFadeIn {
  from { opacity:0; transform:translateY(40px); }
  to { opacity:1; transform:translateY(0); }
}
#cookie-consent-banner p {
  color: #fff;
  flex-basis: 100%;
  margin-bottom: 8px;
  font-size: 1.05em;
}
#cookie-consent-banner .cookie-btn {
  background: #fff;
  color: var(--clr-electric2);
  font-weight: 700;
  border-radius: 24px;
  border: none;
  padding: 10px 23px;
  margin-left: 5px;
  margin-right: 2px;
  margin-bottom: 5px;
  font-size: 1.06em;
  transition: background 0.14s, color 0.11s, box-shadow 0.12s;
  box-shadow: 0 2px 8px 0 rgba(255,255,255,0.10);
}
#cookie-consent-banner .cookie-btn.accept {
  background: var(--clr-electric1);
  color: #fff;
}
#cookie-consent-banner .cookie-btn.reject {
  background: #fff;
  color: var(--clr-electric2);
  border: 2px solid var(--clr-electric2);
}
#cookie-consent-banner .cookie-btn.settings {
  background: var(--clr-electric3);
  color: var(--clr-primary);
}
#cookie-consent-banner .cookie-btn:hover, #cookie-consent-banner .cookie-btn:focus {
  background: var(--clr-electric2);
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(255,56,161,0.16);
}
#cookie-consent-banner .cookie-btn.settings:hover, #cookie-consent-banner .cookie-btn.settings:focus {
  background: #fff;
  color: var(--clr-electric2);
}

/* COOKIE MODAL */
#cookie-settings-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 94vw;
  max-width: 420px;
  min-width: 240px;
  background: #fff;
  color: var(--clr-primary);
  border-radius: 20px;
  box-shadow: 0 4px 40px 0 rgba(25,175,255,0.15), 0 2px 24px 0 rgba(255,56,161,0.16);
  padding: 34px 24px 31px 24px;
  z-index: 10001;
  transform: translate(-50%,-50%) scale(1);
  animation: cookieModalPop 0.38s cubic-bezier(.76,0,.22,1);
  display: none;
}
#cookie-settings-modal.open {
  display: flex;
  flex-direction: column;
}
@keyframes cookieModalPop {
  from { opacity:0; transform: translate(-50%,-40%) scale(.91); }
  to   { opacity:1; transform: translate(-50%,-50%) scale(1); }
}
#cookie-settings-modal h3 {
  font-size: 1.35rem;
  color: var(--clr-electric2);
  margin-bottom: 13px;
  text-align: left;
}
#cookie-settings-modal ul {
  margin: 0 0 18px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
#cookie-settings-modal li {
  font-size: 1.04rem;
  color: var(--clr-primary);
  padding: 0;
  position: relative;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}
.cookie-toggle {
  width: 34px;
  height: 20px;
  border-radius: 12px;
  background: var(--clr-electric1);
  position: relative;
  margin-left: 4px;
  transition: background .18s;
  cursor: pointer;
}
.cookie-toggle[data-checked="false"] {
  background: #dadada;
}
.cookie-toggle .cookie-knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left .16s cubic-bezier(.76,0,.22,1);
}
.cookie-toggle[data-checked="true"] .cookie-knob {
  left: 16px;
}
#cookie-settings-modal .cookie-btns {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 8px;
}
#cookie-settings-modal .cookie-btn {
  padding: 8px 20px;
  font-size: 1.01em;
  border-radius: 20px;
}

/* ===================== GENERAL SPACING RULES =============== */
main {
  min-height: 60vh;
}
section .container {
  padding-top: 0;
  padding-bottom: 0;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card, .testimonial-card, .feature-item, .text-section {
  margin-bottom: 20px;
}

.card-container, .content-wrapper, .content-grid, .feature-item, .testimonial-card {
  gap: 20px;
}

/* Prevent absolute for content cards--only logo decorations */

/* ============= ANIMATIONS & MICROINTERACTIONS ============ */
.card, .testimonial-card, .primary-cta, .mobile-menu, .mobile-menu-close, .cookie-btn, .cookie-toggle {
  transition: all .19s cubic-bezier(.76,0,.22,1);
}
.primary-cta {
  transition: background .24s, box-shadow .18s, transform .15s;
}
.primary-cta:active {
  transform: scale(.97);
}

/* ================ RESPONSIVE BREAKPOINTS ================== */
@media (max-width: 1024px) {
  .container {
    max-width: 94vw;
    padding: 0 14px;
  }
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  section, .section {
    padding: 32px 8px;
    margin-bottom: 38px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 9vw;
  }
  h1 {font-size: 1.45rem;}
  h2 {font-size: 1.18rem;}
  .main-nav {
    display: none;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
  }
  .content-wrapper, .card-container, .content-grid, .testimonial-card, .text-image-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 2vw;
    max-width: 100vw;
  }
  .footer-nav {
    gap: 3px;
  }
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px 18px 8px;
  }
}

/* ================== EXTRAS & OVERRIDES ==================== */
main a.primary-cta, .content-wrapper > .primary-cta {
  margin-top: 18px;
}

.content-wrapper > ul, .text-section > ul {
  margin-bottom: 10px;
}

::-webkit-input-placeholder { color: #a7afb9; }
::-moz-placeholder { color: #a7afb9; }
:-ms-input-placeholder { color: #a7afb9; }
::placeholder { color: #a7afb9; }

/* ========== NARROW CARD (eg. for Immobilien/Service) ==== */
.content-wrapper > ul,
.content-wrapper > ol {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========== UTILITIES (VISIBLY-HIDDEN etc.) ============ */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============ ENSURE NO LAYOUT OVERLAP =================== */
.content-wrapper, .card-container, .content-grid, .feature-item, .testimonial-card, .text-section {
  min-width: 0;
}

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