/* RESET & BASE STYLES (mobile-first) */
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.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FAFAFA;
  color: #28384A;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #204B6D;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #C2882C;
  outline: none;
}
*,*:before,*:after{box-sizing:inherit;}

/* --- FONT FACE: Playfair Display and Open Sans --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Open+Sans:wght@400;600&display=swap');

/* ---- LAYOUT CONTAINER ---- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1160px;
  box-sizing: border-box;
}

/* ---- FLEX PATTERNS FROM REQUIREMENTS ---- */
.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: 18px;
  box-shadow: 0 4px 18px rgba(32,75,109,0.07);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- HEADER ---- */
header {
  background: linear-gradient(90deg, #f1f6fb 0%, #e9e3fc 100%);
  box-shadow: 0 2px 12px rgba(32,75,109,0.06);
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  min-height: 64px;
}
.logo-link img {
  height: 42px;
  width: auto;
  border-radius: 8px;
}

/* ---- MAIN NAVIGATION ---- */
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #204B6D;
  border-radius: 6px;
  padding: 6px 14px;
  transition: background 0.17s, color 0.18s;
}
.main-nav a:hover,
.main-nav a.active {
  background: #D9E6F1;
  color: #C2882C;
}
.button.button-primary {
  background: #C3E4FB;
  color: #204B6D;
  border: none;
  border-radius: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  padding: 10px 26px;
  margin-left: 18px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(32,75,109,0.09);
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  outline: none;
}
.button.button-primary:hover,
.button.button-primary:focus {
  background: #204B6D;
  color: #fff;
}
.button.button-secondary {
  background: #FEF6E0;
  color: #C2882C;
  border: none;
  border-radius: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  padding: 10px 26px;
  margin-top: 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(200,136,44,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  outline: none;
}
.button.button-secondary:hover,
.button.button-secondary:focus {
  background: #C2882C;
  color: #fff;
}

/* ---- MOBILE MENU (BURGER) ---- */
.mobile-menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #204B6D;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 102;
  margin-left: 12px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #C2882C;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg,#f8f5fe 40%,#d1e5f7 100%);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,.14,.14,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 28px 0 0;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #204B6D;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.19s, color 0.22s;
  z-index: 305;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #e3e7f2;
  color: #C2882C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 38px 36px;
  width: 100%;
  margin-top: 16px;
}
.mobile-nav a {
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  color: #204B6D;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 10px;
  background: transparent;
  transition: background 0.15s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #D9E6F1;
  color: #C2882C;
}

/* --- MAIN --- */
main {
  min-height: 70vh;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 820px;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- SOFT PASTEL HERO SECTION ---- */
.hero {
  background: linear-gradient(110deg, #f6fafe 60%, #e9ecfa 100%);
  padding: 62px 0 46px 0;
  margin-bottom: 42px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #204B6D;
  margin-bottom: 22px;
  line-height: 1.16;
  font-weight: 700;
}
.subheadline {
  font-size: 1.15rem;
  color: #576B81;
  margin-bottom: 26px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

/* ---- FEATURES (Schwerpunkte) & Feature Blocks ---- */
.features {
  background: linear-gradient(90deg, #fce9fb 0%, #f6fdff 100%);
  border-radius: 18px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  margin: 28px 0 18px 0;
}
.feature-block {
  background: #fff9f5;
  border-radius: 16px;
  padding: 28px 20px 22px 20px;
  box-shadow: 0 2px 14px rgba(200,136,44,0.08);
  min-width: 238px;
  flex: 1 1 238px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-height: 220px;
  transition: box-shadow 0.19s, transform 0.18s;
}
.feature-block img {
  width: 38px; height: 38px;
  margin-bottom: 2px;
  opacity: 0.92;
}
.feature-block h3 {
  font-family: 'Playfair Display', serif;
  color: #C2882C;
  font-size: 1.18rem;
  font-weight: 700;
}
.feature-block p {
  font-size: 1rem;
  color: #4F5C77;
  line-height: 1.65;
}
.feature-block:hover {
  box-shadow: 0 8px 26px rgba(200,136,44,0.12);
  transform: translateY(-2px) scale(1.018);
}

/* ---- FEATURE GRID RESPONSIVE ---- */
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-block {
    min-width: 98%;
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* ---- TEXT SECTION ---- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}

.text-section h2,
.content-wrapper h2 {
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  color: #204B6D;
  font-weight: 700;
  margin-bottom: 13px;
  line-height: 1.18;
}
.text-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #C2882C;
  font-weight: 700;
}
.text-section p, .content-wrapper p, .content-wrapper ul, .content-wrapper li, .content-wrapper address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #42506E;
  line-height: 1.65;
}
.content-wrapper ul {
  margin: 14px 0 18px 21px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: disc inside;
}
.content-wrapper li {
  margin-left: 0;
  margin-bottom: 4px;
}

address {
  font-style: normal;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 7px;
  background: #faf7f0;
  border-radius: 10px;
  padding: 14px 12px;
  color: #775900;
}
address a {
  color: #204B6D;
  text-decoration: underline;
}

/* --- HOME CONTACT --- */
.home-contact {
  background: linear-gradient(95deg, #feefd9 30%, #f4feea 100%);
  border-radius: 12px;
  margin-bottom: 54px;
}
.home-contact address {
  margin-bottom: 20px;
}

/* ---- TESTIMONIALS SECTION ---- */
.testimonials {
  margin: 60px 0;
  background: #fcfdff;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.testimonial-card {
  flex: 0 1 310px;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 3px 16px rgba(32,75,109,0.14);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  color: #1B2838;
  margin-bottom: 0; /* handled by gap! */
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #2E3B46;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 10px;
  font-style: italic;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: #684606;
  font-weight: 600;
}
@media (max-width: 900px) {
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg,#e9f5fc 50%, #faf5fb 100%);
  color: #364969;
  padding: 22px 0 12px 0;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo {
  padding-top: 6px;
}
.footer-logo img {
  height: 38px;
  width: auto;
  opacity: 0.96;
  border-radius: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  font-size: 16px;
  color: #204B6D;
  padding: 2px 3px;
  transition: color 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #C2882C;
}
.footer-address,
.footer-legal {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  color: #577091;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-address img {
  height: 15px;
  width: 15px;
}
.footer-legal {
  flex-basis: 100%;
  margin-top: 24px;
  text-align: left;
  color: #bcc4d0;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #f4f8fd;
  box-shadow: 0 -3px 16px rgba(60,90,180,0.075);
  border-top: 1px solid #E6E9ED;
  z-index: 777;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 18px 18px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-consent-banner.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: #28384A;
  margin-bottom: 20px;
}
.cookie-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-actions button {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 13px;
  border: none;
  padding: 9px 21px;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.15s, color 0.16s;
}
button.cookie-accept {
  background: #C3E4FB;
  color: #204B6D;
}
button.cookie-accept:hover,
button.cookie-accept:focus {
  background: #204B6D;
  color: #fff;
}
button.cookie-reject {
  background: #FEF6E0;
  color: #C2882C;
}
button.cookie-reject:hover,
button.cookie-reject:focus {
  background: #C2882C;
  color: #fff;
}
button.cookie-settings {
  background: #e6e9ed;
  color: #204B6D;
}
button.cookie-settings:hover,
button.cookie-settings:focus {
  background: #204B6D;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed; z-index: 890;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(69, 125, 190, 0.22);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.active {
  opacity: 1; pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 28px rgba(32,75,109,0.18);
  padding: 36px 30px 30px 30px;
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
}
.cookie-modal h2 {
  font-family: 'Playfair Display',serif;
  color: #204B6D;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 13px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 7px 0;
}
.cookie-category-title {
  font-weight: 600;
  color: #204B6D;
  font-size: 16px;
}
.cookie-category-desc {
  font-size: 0.98rem;
  color: #3D4858;
}
.cookie-toggle {
  position: relative;
  width: 44px; height: 24px;
  background: #e2e7fa;
  border-radius: 18px;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-toggle[aria-checked="true"] {
  background: #C2882C;
}
.cookie-toggle-switch {
  display: block;
  background: #fff;
  height: 20px; width: 20px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(32,75,109,0.11);
  position: absolute;
  top: 2px; left: 2px;
  transition: left 0.18s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-switch {
  left: 22px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.cookie-modal button {
  font-size: 15px;
  border-radius: 12px;
  border: none;
  padding: 8px 22px;
  font-weight: 600;
  cursor: pointer;
  background: #C3E4FB;
  color: #204B6D;
  transition: background 0.15s, color 0.16s;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: #204B6D;
  color: #fff;
}

/* --- TYPOGRAPHY SCALE & HEADINGS --- */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: #204B6D;
  line-height: 1.12;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #204B6D;
  margin: 0 0 17px 0;
  line-height: 1.19;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #C2882C;
  margin-bottom: 6px;
  line-height: 1.17;
}
h4,h5,h6 {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #204B6D;
}
p {
  font-size: 1rem;
  margin-bottom: 12px;
}

/* -- CARD/GENERIC STYLES -- */
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(32,75,109,0.09);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.19s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(32,75,109,0.13);
  transform: translateY(-2px) scale(1.02);
}

/* ---- BUTTON FOCUS OUTLINE ACCESSIBILITY ---- */
button:focus,
a:focus {
  outline: 2px solid #C2882C;
  outline-offset: 2px;
}

/* --- SPACING & GAPS (unified) --- */
.section,
.features,
.about-home,
.home-contact,
.hero {
  margin-bottom: 60px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* --- RESPONSIVE DESIGN: MOBILE-FIRST --- */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .content-wrapper {
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .button.button-primary {
    display: none;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 4vw;
  }
  .header-flex,
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-nav {
    flex-direction: row;
    gap: 15px;
  }
  .content-wrapper,
  .text-section {
    padding-left: 0;
    padding-right: 0;
    max-width: 100vw;
  }
  .feature-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 14px;
  }
  .section,
  .features,
  .about-home,
  .home-contact,
  .hero {
    padding-left: 4vw;
    padding-right: 4vw;
    margin-bottom: 38px;
  }
}
@media (max-width: 540px) {
  .container {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .section,
  .features,
  .about-home,
  .home-contact,
  .hero {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  h1 {
    font-size: 1.38rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .mobile-nav a {
    font-size: 19px;
  }
  .cookie-consent-banner p {
    font-size: 0.99rem;
  }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.button,.cookie-modal button {
  transition: background 0.17s, color 0.17s, box-shadow 0.2s, transform 0.13s;
}
.button:active,.cookie-modal button:active {
  transform: scale(0.97);
}
.feature-block:active,
.card:active,
.testimonial-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 10px rgba(32,75,109,0.06);
}
.mobile-menu,
.cookie-consent-banner,
.cookie-modal-overlay {
  transition: opacity 0.22s, transform 0.33s;
}

/* --- MISC ELEMENTS --- */
hr {
  border: 0;
  border-top: 1px solid #e2e2f6;
  margin: 24px 0;
}
::-webkit-scrollbar { width: 7px; background: #f3f6ff; }
::-webkit-scrollbar-thumb {background: #e2e6fd; border-radius: 8px;}

/* --- SPECIAL: ENSURE CONTENT NEVER OVERLAPS --- */
.section, .features, .about-home, .home-contact, .hero, .testimonial-card, .feature-block, .card {
  margin-bottom: 32px;
}
.section:last-child,
.features:last-child,
.about-home:last-child,
.home-contact:last-child,
.hero:last-child {
  margin-bottom: 0;
}

/* --- Z-INDEX MANAGEMENT (for overlays/menus) --- */
header,.main-nav,.mobile-menu-toggle { z-index: 99; }
.mobile-menu { z-index: 300; }
.cookie-consent-banner { z-index: 777; }
.cookie-modal-overlay { z-index: 890; }

/* --- ACCESSIBILITY: ALWAYS DARK TEXT FOR TESTIMONIALS --- */
.testimonial-card,
.testimonial-card p,
.testimonial-meta {
  color: #1A202B;
  background: #fff;
}

/* --- END OF CSS --- */
