/* 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%; vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body { background: #F2E9D8; color: #283A5D; font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh; font-size: 16px; line-height: 1.6;}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: 0.5em; }
strong { font-weight: bold; }
:focus { outline: 2px solid #8F5AFF; outline-offset: 2px; }

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

/* BRAND COLORS */
:root {
  --primary: #283A5D;
  --secondary: #F2E9D8;
  --accent: #8F5AFF;
  --accent-bg: #B388FF;
  --light: #fff;
  --dark: #19223A;
  --text: #283A5D;
  --gray: #E0DEEA;
  --success: #3DCF54;
  --danger: #DD2E44;
  --shadow: 0 4px 24px rgba(40, 58, 93, 0.13);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.7em;
  line-height: 1.2;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }
@media (min-width: 600px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.7rem; }
}
p, ul, ol, li { font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: var(--text); font-size: 1rem; }

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

/* HEADER */
header {
  background: var(--light);
  box-shadow: 0 2px 16px rgba(40,58,93,0.12);
  position: sticky; top: 0; z-index: 101;
}
header .container {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 70px; max-width: 100%;
}
.logo img { height: 46px; width: auto; }
.main-nav {
  display: flex; align-items: center; gap: 26px;
}
.main-nav a { 
  font-family: 'Open Sans', Arial, sans-serif; font-weight: 600; color: var(--primary);
  font-size: 1rem; letter-spacing: 0.02em;
  position: relative; padding: 6px 8px; border-radius: 8px; transition: background 0.2s, color 0.2s;
}
.main-nav a:not(.cta-btn):hover, .footer-nav a:hover {
  background: var(--accent-bg);
  color: var(--light);
}
.main-nav .cta-btn {
  background: var(--accent);
  color: var(--light);
  border-radius: 10px;
  font-weight: 700;
  box-shadow: var(--shadow);
  padding: 10px 50px;
  font-size: 1.05rem;
  margin-left: 10px;
  letter-spacing: 0.04em;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.main-nav .cta-btn:hover,
.cta-btn:hover {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(143,90,255,0.18);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 6px 14px;
  margin-left: 12px;
  transition: background 0.2s, color 0.2s;
  z-index: 110;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent-bg);
  color: var(--light);
}
.mobile-menu {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(40,58,93,0.98);
  color: var(--light);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 32px;
  z-index: 250;
  transform: translateX(-100%);
  transition: transform 0.44s cubic-bezier(.61,.01,0,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--accent);
  background: transparent;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  margin: 14px 26px 32px 0;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--accent-bg);
  color: var(--light);
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 27px;
}
.mobile-nav a {
  color: var(--light);
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.016em;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a.cta-btn {
  background: var(--accent);
  color: #fff;
  margin-top: 32px;
  padding: 14px 38px;
  font-size: 1.13rem;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent-bg);
  color: #fff;
}
@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  .main-nav { display: flex !important; }
}
@media (max-width: 991px) {
  .main-nav { display: none; }
  .mobile-menu-toggle,
  .mobile-menu { display: flex; }
}

/* GENERAL SECTIONS & LAYOUTS */
main {
  width: 100%; margin-top: 0;
}
section {padding: 40px 20px; background: none; }
@media (max-width: 768px) {
  section { margin-bottom: 38px; padding: 28px 8px; }
}
.content-wrapper { max-width: 900px; margin: 0 auto; }

.features-grid {
  display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.feature-item {
  background: var(--light);
  border-radius: 22px;
  box-shadow: var(--shadow);
  flex: 1 1 245px;
  min-width: 230px; max-width: 305px;
  padding: 30px 22px 26px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
  margin-bottom: 20px;
  transition: transform 0.22s, box-shadow 0.22s;
}
.feature-item img { width: 38px; height: 38px; margin-bottom: 4px; }
.feature-item h3 { color: var(--accent); margin-bottom: 0.34em; font-size: 1.18rem; }
.feature-item:hover, .feature-item:focus { transform: translateY(-5px) scale(1.008); box-shadow: 0 8px 30px rgba(40,58,93,0.20); }

/* CARD-BASED SECTIONS */
.card-container, .service-list, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--light);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px; position: relative;
  display: flex; flex-direction: column;
  padding: 24px 20px; min-width: 230px;
}
@media (max-width: 860px) {
  .features-grid, .card-container, .service-list, .card-grid {
    flex-direction: column; gap: 15px;
  }
  .card, .feature-item { min-width: unset; max-width: 100%; }
}

/* SERVICE LIST (beratungen) */
.service-list {
  display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px;
}
.service-item {
  background: var(--light);
  border-radius: 18px;
  box-shadow: var(--shadow);
  flex: 1 1 235px;
  min-width: 230px; max-width: 340px;
  padding: 30px 24px 24px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 13px;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.service-item h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 0.3em; }
.service-item .price {
  margin-top: 6px;
  font-size: 1.1rem;
  background: var(--accent);
  color: var(--light);
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 8px; letter-spacing: 0.01em;
}
.service-item:hover, .service-item:focus { transform: translateY(-4px) scale(1.015); box-shadow: 0 11px 28px rgba(40,58,93,0.15); }

/* CTA BUTTONS */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--light);
  border: none;
  font-family: 'Cinzel', serif;
  padding: 13px 38px;
  border-radius: 14px;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  box-shadow: var(--shadow);
  transition: background 0.19s, color 0.19s, box-shadow 0.17s, transform 0.16s;
  cursor: pointer;
}
.cta-btn:active { transform: scale(0.97); }

/* CONTENT GRID (for double column blocks) */
.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) {
  .content-grid,
  .text-image-section {
    flex-direction: column; gap: 16px;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex; align-items: center; gap: 20px; padding: 20px;
  background: var(--light);
  border-left: 6px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 17px rgba(40,58,93,0.10);
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--dark);
  max-width: 800px;
  transition: box-shadow 0.15s;
}
.testimonial-card p { color: var(--primary); margin-right: 1.2em; font-size: 1.075rem; }
.testimonial-card span { font-size: 1rem; color: var(--accent); font-style: italic; white-space: nowrap; }
.testimonial-card:hover, .testimonial-card:focus { box-shadow: 0 7px 22px rgba(40,58,93,0.16); }

/* LISTS and OL/UL */
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 1em;
}
ul li, ol li { font-size: 1rem; margin-bottom: 0.6em; }

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 42px 0 24px 0;
  width: 100%;
}
footer .container {
  display: flex; flex-wrap: wrap; gap: 38px;
  justify-content: space-between; align-items: flex-start;
}
.footer-logo img { height: 48px; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center;
}
.footer-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.footer-contact p { color: #fff; opacity: 0.93; font-size: 1rem; }
@media (max-width: 730px) {
  footer .container { flex-direction: column; gap: 18px; align-items: flex-start; }
  .footer-logo img { margin-bottom: 12px; }
}

/* MISC: Modal overlay background for cookie modal */
.modal-overlay {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(40,58,93,0.64);
  z-index: 1202;
  display: flex; align-items: center; justify-content: center;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; color: var(--primary);
  box-shadow: 0 -6px 24px rgba(40,58,93,0.13);
  min-height: 80px; z-index: 1200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 8vw 13px 8vw;
  flex-wrap: wrap; gap: 18px;
  font-size: 1.05rem;
  animation: cookie-banner-fadein 0.48s cubic-bezier(.7,.17,0,1);
}
@keyframes cookie-banner-fadein {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text { flex: 1 1 250px; margin-right: 16px; }
.cookie-banner__actions { display: flex; gap: 13px; align-items: center; }
.cookie-btn,
.cookie-btn-secondary {
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 9px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  padding: 9px 22px;
  font-size: 1.01rem;
  cursor: pointer;
  transition: background 0.17s, color 0.13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary); color: var(--accent);
}
.cookie-btn-secondary {
  background: #fff; color: var(--accent);
  border: 2px solid var(--accent); font-weight: 600;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: var(--accent-bg); color: #fff;
}
.cookie-banner__settings {
  background: transparent; border: none;
  color: var(--primary); font-size: 1.01rem; font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 12px;
}
.cookie-banner__settings:hover, .cookie-banner__settings:focus { color: var(--accent); }

/* COOKIE CONSENT MODAL */
.cookie-modal {
  position: fixed; bottom: 50%; left: 50%; 
  transform: translate(-50%, 50%) scale(1);
  background: #fff; color: var(--primary);
  max-width: 420px; width: 92vw;
  border-radius: 22px;
  padding: 34px 28px 22px 28px;
  box-shadow: 0 10px 45px rgba(40,58,93,0.15);
  z-index: 1250;
  opacity: 1; transition: opacity 0.34s, transform 0.32s cubic-bezier(.7,.17,0,1);
}
.cookie-modal.hide { opacity: 0; pointer-events: none; transform: translate(-50%,60%) scale(0.97); }
.cookie-modal__header {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 0.9em;
}
.cookie-modal__category {
  margin-bottom: 19px;
  display: flex; align-items: center; gap: 15px;
}
.cookie-modal__category-label { flex: 1; font-size: 1.08rem; }
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 23px;
  background: var(--gray);
  border-radius: 50px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 19px; height: 19px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(40,58,93,0.11);
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 21px;
}
.cookie-modal__actions {
  margin-top: 14px; display: flex; gap: 11px; justify-content: flex-end;
}

/* CARD & MISCELLANEOUS ALIGNMENTS */
.card-content {
  display: flex; flex-direction: column; justify-content: center;
}

/* SPACING & GAP UTILITY CLASSES */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.gap-20 { gap: 20px; }

/* HIGH CONTRAST FOR CRITICAL SECTIONS */
.testimonial-card, .card, .feature-item, .service-item {
  color: #222; background: #fff;
}

/* ANIMATIONS & MICRO-INTERACTIONS */
.cta-btn, .main-nav .cta-btn, .feature-item, .service-item, .testimonial-card, .cookie-btn, .cookie-btn-secondary, .mobile-menu, .mobile-menu-close {
  transition: box-shadow 0.18s, background 0.15s, color 0.16s, transform 0.16s;
}

/* FOCUS FORM FIELDS (future forms support) */
input, textarea, select { 
  font-family: 'Open Sans', Arial, sans-serif; border-radius: 8px;
  border: 2px solid var(--gray); padding: 10px 12px; font-size: 1rem; transition: border 0.17s; margin-bottom: 10px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-bg);
}

/* FORMS (future) */
form {
  display: flex; flex-direction: column; gap: 18px;
}
button, input[type=submit] {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: bold;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 10px; padding: 11px 27px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
button:hover, button:focus, input[type=submit]:hover, input[type=submit]:focus {
  background: var(--primary); color: var(--accent);
}

/* RESPONSIVE RULES */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.18rem; }
  .content-wrapper { max-width: 98vw; }
  .footer-nav { flex-direction: column; gap: 6px; }
}
@media (max-width: 600px) {
  html { font-size: 15px; }
  h1 { font-size: 1.26rem; }
  h2 { font-size: 1.13rem; }
  .footer-contact p { font-size: 0.97rem; }
  .container, .content-wrapper { padding: 0; }
  .footer-logo img { height: 38px; }
  section { padding: 16px 2vw; margin-bottom: 22px; }
  .cookie-modal {
    padding: 19px 10px 15px 10px; max-width: 94vw;
  }
  .cookie-banner { padding: 13px 2vw 13px 2vw; font-size: 0.98rem; }
}

/* PRINT (future-proof) */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
  body { background: #fff; }
}
