/* =====================
   SpringWind Exklusivimmobilien
   Luxury Premium Flexbox CSS
   ===================== */

/* CSS RESET & BASE 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,
main, 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 {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F4F5F8;
  color: #142334;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #142334;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E5B871;
  outline: none;
}
ul,ol {
  margin-left: 1.2em;
  padding-left: 1.1em;
}

/* Font Embeds (Google Fonts) */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #142334;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.3rem; margin-bottom: 20px; }
h2 { font-size: 1.65rem; margin-bottom: 18px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
h4 { font-size: 1.1rem; }

@media (min-width: 600px){
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
}

p, ul, ol, li, span, cite, blockquote {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #142334;
}
p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 18px;
}
.subheadline {
  color: #7C6142;
  font-size: 1.22rem;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  margin-bottom: 24px;
}
strong {
  color: #142334;
  font-weight: 700;
}

/* =====================
   LUXURY PREMIUM COLORS
   ===================== */
:root {
  --primary: #142334;
  --secondary: #E5B871;
  --accent: #F4F5F8;
  --dark: #1A212E;
  --mid: #A8987C;
  --white: #fff;
  --border: #E5B87144;
  --shadow: 0 2px 14px rgba(20,35,52,0.06);
}

/* =====================
   LAYOUT STRUCTURE
   ===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}
.text-section {
  max-width: 720px;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  section {
    margin-bottom: 34px;
    padding: 24px 10px;
    border-radius: 12px;
  }
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 2px 12px rgba(17,30,45,0.05);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 16px;
  transition: filter 0.25s;
}
@media (max-width: 768px) {
  header .container {
    gap: 8px;
    padding-right: 0;
  }
  header img {
    height: 38px;
  }
}
nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
nav a {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0.015em;
  color: #142334;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: color 0.2s, border-color 0.2s;
  padding: 8px 0;
}
nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: var(--secondary);
  border-radius: 1px;
  transition: width 0.23s;
  margin-top: 5px;
}
nav a:hover,
nav a:focus {
  color: var(--secondary);
}
nav a:hover::after,
nav a:focus::after {
  width: 80%;
}

header .button-primary {
  margin-left: 16px;
}

/* =====================
   BUTTONS
   ===================== */
.button-primary,
.button-primary:visited {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  border: none;
  outline: none;
  padding: 11px 28px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(228,198,108,0.09);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s, box-shadow 0.23s, transform 0.17s;
  position: relative;
  text-align: center;
  display: inline-block;
}
.button-primary:hover, .button-primary:focus {
  background: #FFD581;
  color: #142334;
  box-shadow: 0 2px 24px rgba(180,157,85,0.18);
  transform: translateY(-2px) scale(1.035);
}
.button-secondary {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--secondary);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.button-secondary:hover,
.button-secondary:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Micro-interactions for all button tags */
button {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
}

/* =====================
   MOBILE MENU
   ===================== */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  header nav,
  header .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #142334;
    cursor: pointer;
    position: absolute;
    right: 26px;
    top: 17px;
    z-index: 31;
    width: 40px;
    height: 40px;
    line-height: 1;
    border-radius: 20px;
    transition: background 0.15s, color 0.15s;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus { background: #e5b87122; color: #B9934D; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,35,52,0.90);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-102%);
  transition: transform 0.36s cubic-bezier(.41,.85,.52,1.5);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 25px 34px 14px 0;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  border-radius: 16px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
  background: #e5b87122;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 94vw;
  padding: 24px 26px;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem;
  padding: 12px 0 12px 0;
  color: #fff;
  transition: color 0.17s;
  border-bottom: 1px solid #ffffff12;
  width: 100%;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
}

@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* =====================
   SECTIONS & FLEX PATTERNS
   ===================== */

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 16px;
}
.features-grid > div {
  flex: 1 1 235px;
  background: var(--accent);
  border-radius: 16px;
  padding: 32px 22px 28px 22px;
  box-shadow: var(--shadow);
  border: 1.3px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
  min-width: 210px;
  min-height: 246px;
  position: relative;
  z-index: 1;
}
.features-grid > div img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  margin-bottom: 12px;
}
.features-grid > div h3 {
  font-size: 1.11rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-family: 'Playfair Display';
}
.features-grid > div span {
  margin-top: 8px;
  color: #B9934D;
  font-size: 0.99rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}
.features-grid > div:hover {
  box-shadow: 0 2px 26px rgba(120,95,45,0.09);
  transform: translateY(-3px) scale(1.035);
  border-color: var(--secondary);
}

@media (max-width: 900px) {
  .features-grid {
    gap: 18px;
  }
  .features-grid > div {
    min-width: 175px;
    padding: 22px 10px 22px 10px;
  }
}
@media (max-width: 650px) {
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .features-grid > div {
    width: 100%;
    min-width: 0;
    min-height: 0;
  }
}

/* Section helpers */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 22px 24px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 250px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(90,60,20,0.12);
  transform: translateY(-3px) scale(1.025);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
/* =====================
   TESTIMONIALS
   ===================== */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 12px 0;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 26px 30px 22px 30px;
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(100,100,100,0.10);
  min-width: 240px;
  flex: 1 1 280px;
  position: relative;
  border-left: 5px solid var(--secondary);
  margin-bottom: 20px;
  overflow: visible;
}
.testimonial-card blockquote {
  color: #222;
  font-size: 1.06rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  margin-bottom: 9px;
  line-height: 1.5;
}
.testimonial-card cite {
  color: var(--primary);
  font-size: 0.97rem;
  font-style: normal;
  font-family: 'Lato', sans-serif;
  align-self: flex-end;
}

@media (max-width: 700px) {
  .testimonial-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    padding: 18px 13px 18px 17px;
    border-radius: 13px;
    min-width: 0;
  }
}

/* =========================
  LISTS & SECTIONS DETAILS
  ========================= */
ul, ol {
  margin-bottom: 18px;
}
li {
  margin-bottom: 9px;
  line-height: 1.65;
}
.services-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.services-list li {
  background: var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
  transition: box-shadow 0.18s, border-left 0.18s;
}
.services-list li:hover {
  box-shadow: 0 2px 22px rgba(180,157,85,0.10);
  border-left: 4px solid #FFD581;
}
.services-list li h3 {
  margin-bottom: 2px;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}
.services-list li span {
  color: #B9934D;
  font-size: 0.95rem;
  margin-top: 6px;
  display: block;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 32px 0 16px 0;
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 0;
}
footer nav a {
  color: var(--secondary);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s;
}
footer nav a:hover,
footer nav a:focus {
  color: #FFD581;
}
footer div {
  color: #E5B871;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
}
@media (max-width:650px) {
  footer .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  footer nav {
    gap: 16px;
  }
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  padding: 24px 20px 24px 20px;
  box-shadow: 0 -10px 40px rgba(20,35,52, 0.1);
  border-top: 1.5px solid var(--border);
  z-index: 2000;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  transition: transform 0.27s cubic-bezier(.81,.08,.49,1.21), opacity 0.33s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__msg {
  flex: 1;
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  line-height: 1.64;
}
.cookie-banner__buttons {
  display: flex;
  gap: 18px;
}
.cookie-banner__buttons .cookie-btn {
  border-radius: 26px;
  border: none;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 28px;
  transition: background 0.15s, color 0.15s, box-shadow 0.22s;
  box-shadow: 0 1px 7px rgba(229,184,113,0.07);
  margin-left: 0;
}
.cookie-banner__buttons .cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner__buttons .cookie-btn.accept:hover {
  background: #FFD581;
  color: #142334;
}
.cookie-banner__buttons .cookie-btn.reject {
  background: #E7E7E9;
  color: #888;
}
.cookie-banner__buttons .cookie-btn.reject:hover {
  background: #eee9e1;
  color: var(--primary);
}
.cookie-banner__buttons .cookie-btn.settings {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--primary);
  padding: 10px 22px;
}
.cookie-banner__buttons .cookie-btn.settings:hover {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 750px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 18px 10px;
    font-size: 0.97rem;
    align-items: flex-start;
  }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20,35,52,0.56);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(.51,.13,.83,1.24);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal__content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 64px rgba(20,35,52,0.15);
  max-width: 425px;
  min-width: 290px;
  padding: 34px 26px 26px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #AAA;
  cursor: pointer;
  transition: color 0.17s;
  border-radius: 12px;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  color: var(--secondary);
  background: #E5B87125;
}
.cookie-modal__title {
  font-size: 1.28rem;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-modal__category {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cookie-modal__category label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
}
.cookie-modal__category .cookie-toggle {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal__category .always-on {
  color: #64a123;
  font-size: 0.92rem;
  font-weight: bold;
  margin-left: 7px;
}
.cookie-modal__actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal__actions .cookie-btn {
  padding: 10px 22px;
}
@media (max-width: 430px) {
  .cookie-modal__content {
    min-width: 92vw;
    padding: 16px 8px 14px 8px;
  }
}

/* =====================
   ANIMATIONS & EFFECTS
   ===================== */
@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(16px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.section, .features-grid > div, .testimonial-card, .card, .services-list li {
  animation: fade-in-up 0.45s ease both;
}
.button-primary, .button-secondary, .card:hover, .features-grid > div:hover {
  transition: box-shadow 0.19s, color 0.17s, background 0.17s, transform 0.19s, border-color 0.19s;
}

/* =====================
   TYPOGRAPHY HIERARCHY
   ===================== */
@media (max-width: 450px) {
  h1 { font-size: 1.54rem; }
  h2 { font-size: 1.17rem; }
}

/* =====================
   ADDITIONAL FLEX LAYOUT CLASSES
   ===================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* =====================
   ACCESSIBILITY
   ===================== */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* =====================
   MISCELLANEOUS
   ===================== */
hr {
  border: 0;
  border-top: 2px solid #f2e4d1;
  margin: 36px 0;
}
::-webkit-scrollbar { width: 7px; background: #F4F5F8; }
::-webkit-scrollbar-thumb { background: #E5B871; border-radius: 8px; }

/* =====================
   PRINT SUPPORT
   ===================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
}
