/* CSS RESET & 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, 
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 {
  line-height: 1.5;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #2E3052;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  display: block;
}

/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900|Montserrat:400,600,700&display=swap');

:root {
  --primary: #2E3052;
  --secondary: #C6BBC8;
  --accent: #F6E6E6;
  --white: #fff;
  --black: #1A1A1A;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --radius: 18px;
  --shadow: 0 2px 16px 0 rgba(46,48,82,0.09), 0 1.5px 6px 0 rgba(46,48,82,0.11);
}

body {
  font-size: 1rem;
  background-color: var(--accent);
  color: var(--primary);
  font-family: var(--font-body);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.18;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.35rem;
}
h4 {
  font-size: 1.15rem;
}
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.3rem; }
}

p, li, dl, dd, dt {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--primary);
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
ul li {
  margin-bottom: 8px;
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px;
}
.content-wrapper {
  margin: 0 auto;
  padding: 0;
}

/* HEADER */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 1.5px 8px rgba(46,48,82,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 20px 0;
  position: relative;
  z-index: 50;
}
header > a:first-child {
  margin-right: 26px;
  display: flex;
  align-items: center;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
.cta-button {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 11px 28px;
  border-radius: var(--radius);
  margin-left: 24px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow 0.18s;
  box-shadow: 0 1px 12px rgba(46,48,82,0.06);
  letter-spacing: 0.02em;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.037);
  box-shadow: 0 3px 24px rgba(46,48,82,0.09);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 105;
  font-size: 2rem;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 8px 16px;
  border-radius: 50%;
  display: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu-toggle:active {
  background: var(--primary);
  color: var(--white);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--primary);
  color: var(--white);
  z-index: 110;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.45,0.05,0.55,1);
  pointer-events: none;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: var(--white);
  padding: 18px 26px 0 0;
  cursor: pointer;
  align-self: flex-start;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 72px 32px 0 0;
  min-width: 230px;
}
.mobile-nav a {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.24rem;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 12px;
  letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Show mobile menu toggle and hide desktop nav on small screens */
@media (max-width: 1023px) {
  header nav, header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .mobile-menu-close {
    padding-top: 10px;
  }
  .mobile-nav {
    gap: 20px;
    margin: 56px 18px 0 0;
    min-width: 60vw;
  }
}

/* MAIN LAYOUT */
main {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}
/* Section and wrapper spacing: CRITICAL SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .container, .content-wrapper { max-width: 96vw; }
}
@media (max-width: 600px) {
  section { padding: 30px 0; }
}

/* HERO */
.hero {
  background: var(--primary);
  color: var(--white);
  border-radius: 0 0 38px 38px;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 64px 0 40px 0;
}
.hero h1, .hero p, .hero .cta-button {
  color: var(--white);
}
.hero .cta-button {
  margin-top: 32px;
  background: var(--secondary);
  color: var(--primary);
}
.hero .cta-button:hover, .hero .cta-button:focus {
  background: var(--white);
  color: var(--primary);
}
@media (max-width: 700px) {
  .hero { padding: 38px 0 28px 0; border-radius: 0 0 21px 21px; }
}

/* Feature / Icon Grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 30px 0 0 0;
}
.feature-grid > div {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 330px;
  padding: 32px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  transform: translateY(-5px) scale(1.022);
  box-shadow: 0 4px 30px 0 rgba(46,48,82,0.13);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
}
.feature-grid h3 {
  margin-bottom: 11px;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.13rem;
}
.feature-grid p {
  color: var(--primary);
  margin-bottom: 0;
}
@media (max-width: 1140px) {
  .feature-grid { gap: 20px; }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: unset;
  }
}

/* About Highlight / Why Choose Us / Sections */
.about-highlight, .why-choose-us, .services-intro, .services-detail, .service-process, .contact-form, .contact-details, .legal-text, .team {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 20px;
}
.about-highlight ul, .why-choose-us ul, .team ul, .services-detail ul, .service-process ol {
  margin: 18px 0 24px 18px;
}
.about-highlight ul li, .why-choose-us ul li, .team ul li, .services-detail ul li, .service-process ol li {
  font-size: 1.05rem;
  margin-bottom: 6px;
  list-style: disc;
}

/* Card Container Example */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 240px;
  max-width: 410px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 38px rgba(46,48,82,0.13);
  transform: translateY(-7px) scale(1.018);
}

/* Content Grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Text-Image Section */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* Testimonial card */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 26px;
  background: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 1.5px 10px rgba(46,48,82,0.06);
  border-left: 6px solid var(--primary);
  animation: fadeInUp 0.6s ease both;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px 12px;
  }
}
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(28px); }
  to { opacity:1; transform: translateY(0); }
}

/* CTA Banner */
.cta-banner {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 38px 18px;
  margin-bottom: 0;
}
.cta-banner h2, .cta-banner p {
  color: var(--white);
}
.cta-banner .cta-button {
  margin-top: 21px;
  background: var(--secondary);
  color: var(--primary);
}
.cta-banner .cta-button:hover, .cta-banner .cta-button:focus {
  background: var(--white);
  color: var(--primary);
}

/* Quick Links */
.quick-links {
  margin: 24px 0 0 0;
}
.quick-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-left: 0;
}
.quick-links li {
  list-style: none;
}
.quick-links a {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  padding: 5px 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.17s, color 0.17s;
}
.quick-links a:hover, .quick-links a:focus {
  background: var(--primary);
  color: var(--white);
}

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

/* FORMS (Contact Section) */
.contact-form, .contact-details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 20px;
}
.contact-form a, .contact-details a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.14s;
  font-weight: 600;
}
.contact-form a:hover, .contact-details a:hover {
  color: var(--secondary);
  text-decoration-thickness: 2.5px;
}

/* ADDRESS / FOOTER */
footer {
  width: 100%;
  background: var(--white);
  box-shadow: 0 -1.5px 8px rgba(46,48,82,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 32px 0;
  margin-top: 60px;
}
footer > img {
  width: 64px; height: 64px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
}
footer nav a {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.99rem;
  padding: 4px 10px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
footer address {
  font-style: normal;
  font-size: 0.97rem;
  color: var(--primary);
  text-align: center;
}
footer address img {
  width: 1.1em;
  height: 1.1em;
  vertical-align: sub;
  margin-right: 7px;
}
footer address span {
  display: block;
  font-size: 0.88rem;
  color: var(--secondary);
  margin-top: 5px;
}
@media (max-width: 768px) {
  footer, footer nav {
    flex-direction: column;
    gap: 13px;
    align-items: center;
  }
}

/* LEGAL TEXT */
.legal-text {
  padding: 34px 20px 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.legal-text ul {
  margin-bottom: 16px;
}
.legal-text h2 {
  margin-top: 36px;
}

/* Thank You Page */
.thank-you-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--accent);
  color: var(--primary);
}

/***** COOKIE BANNER *****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 24px 16px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 16px 0 rgba(46,48,82,0.12);
  border-radius: 24px 24px 0 0;
  animation: cookieBannerIn 0.6s cubic-bezier(.37,1.14,.5,.98) both;
}
@keyframes cookieBannerIn {
  from { transform: translateY(80px); opacity: 0;}
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--white);
  font-size: 1.08rem;
  margin-bottom: 8px;
  text-align: center;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.03rem;
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  cursor: pointer;
  margin: 0;
  box-shadow: 0 1.5px 9px rgba(255,255,255,.11);
  background: var(--secondary);
  color: var(--primary);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--white);
  color: var(--primary);
  transform: scale(1.045);
}
.cookie-banner button:last-child {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--secondary);
  box-shadow: none;
}
.cookie-banner button:last-child:hover {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 600px) {
  .cookie-banner { padding: 18px 7px; }
  .cookie-banner .cookie-buttons { gap: 10px; }
}

/***** COOKIE MODAL *****/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46,48,82,0.57);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal {
  background: var(--white);
  padding: 42px 38px 30px 38px;
  border-radius: 24px;
  color: var(--primary);
  min-width: 290px;
  max-width: 420px;
  box-shadow: 0 5px 40px rgba(46,48,82,0.17);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: cookieModalIn 0.35s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes cookieModalIn {
  from { transform: scale(0.86); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 22px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  font-size: 1.09rem;
  color: var(--primary);
  cursor: pointer;
  margin-bottom: 4px;
}
.cookie-modal .cookie-category input[type=checkbox] {
  width: 21px;
  height: 21px;
  accent-color: var(--primary);
  border-radius: 5px;
  margin-top: 2px;
  margin-right: 6px;
}
.cookie-modal .cookie-category.cookie-essential input {
  accent-color: var(--secondary);
}
.cookie-modal .cookie-category.cookie-essential label:after {
  content: ' (immer erforderlich)';
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--secondary);
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 17px;
  margin-top: 18px;
}
.cookie-modal .cookie-category input[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 28px;
  top: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .cookie-close:hover { color: var(--primary); }
@media (max-width: 500px) {
  .cookie-modal { padding: 26px 10px; min-width: 220px;}
  .cookie-modal .cookie-category label { font-size: 1rem; }
}

/* INTERACTIVES & MICROACTIONS */
a, button {
  outline: none;
  transition: color 0.13s, background 0.13s, box-shadow 0.17s;
}
a:focus, button:focus {
  box-shadow: 0 0 0 3px var(--secondary);
}

/* Miscellaneous Utility */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-40 { margin-top: 40px !important; }

/* RESPONSIVE LAYOUTS */
@media (max-width:1023px) {
  header .cta-button {
    margin-left: 0;
    margin-top: 8px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.05rem; }
  .feature-grid > div, .card, .about-highlight, .why-choose-us, .services-intro, .services-detail, .service-process, .contact-form, .contact-details, .legal-text, .team {
    padding: 22px 8px;
    border-radius: 14px;
  }
  .card-container, .content-grid { gap: 13px; }
}

/* Accessibility Contrast */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #231f20;
}

/* Hide cookie modal overlay by default */
.cookie-modal-overlay {display: none;}
.cookie-modal-overlay.open {display: flex;}

/* Hide cookie banner if not needed */
.cookie-banner[aria-hidden='true'] {display: none;}

