/* ----------------- 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F1F1F1;
  color: #1C214A;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s cubic-bezier(.65,0,.35,1);
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
li {
  margin-bottom: 8px;
}
button,
input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}

/* ----------- BRAND TYPOGRAPHY & GEOMETRIC STRUCTURED STYLE ----------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800|Open+Sans:400,600&display=swap');

:root {
  --primary: #1C214A;
  --secondary: #FFC857;
  --accent: #F1F1F1;
  --neutral-dark: #22243A;
  --neutral-mid: #78798E;
  --neutral-light: #FFFFFF;
  --shadow: 0 8px 28px 0 rgba(28,33,74,0.12);
  --radius: 14px;
  --radius-sharp: 5px;
}

h1, h2, h3, h4, .cta-nav, .cta-button, nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  text-transform: none;
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--primary);
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
  color: var(--primary);
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: .02em;
  color: var(--neutral-dark);
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
p, .content-wrapper ul, .content-wrapper ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* ------------------------- LAYOUT CONTAINERS ------------------------ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--neutral-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 20px 28px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .2s cubic-bezier(.65,0,.35,1), transform .2s cubic-bezier(.65,0,.35,1);
}
.card:hover {
  box-shadow: 0 12px 36px 0 rgba(28,33,74,0.14);
  transform: translateY(-2px) scale(1.01);
}

.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;
  background: var(--neutral-light);
  border-radius: var(--radius-sharp);
  box-shadow: 0 6px 20px 0 rgba(28,33,74,0.09);
  margin-bottom: 20px;
  flex: 1 1 350px;
  min-width: 260px;
  font-size: 1.05rem;
  border-left: 5px solid var(--secondary);
}
.testimonial-card p {
  color: #22243A;
  font-size: 1.13rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0;
  flex: 1 1 auto;
}
.testimonial-card strong {
  font-size: 1rem;
}
.testimonial-card img {
  vertical-align: middle;
  height: 22px;
}

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

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--neutral-light);
  border-radius: var(--radius-sharp);
  box-shadow: 0 4px 16px rgba(28,33,74,0.09);
  padding: 28px 16px 24px 16px;
  flex: 1 1 300px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 3px solid var(--secondary);
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 36px rgba(28,33,74,0.14);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 10px;
}

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.pricing-table > div {
  background: var(--neutral-light);
  border-radius: var(--radius-sharp);
  box-shadow: 0 4px 16px rgba(28,33,74,0.10);
  border: 2px solid var(--primary);
  padding: 28px 20px 28px 20px;
  flex: 1 1 240px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  margin-bottom: 10px;
  transition: box-shadow .2s, transform .2s;
}
.pricing-table > div:hover {
  border-color: var(--secondary);
  box-shadow: 0 12px 32px 0 rgba(255, 200, 87, 0.19);
  transform: translateY(-3px) scale(1.02);
}
.pricing-table strong {
  font-size: 1.19rem;
  color: var(--primary);
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-preview {
  background: var(--neutral-light);
  border-radius: var(--radius-sharp);
  box-shadow: 0 4px 16px rgba(28,33,74,0.10);
  padding: 24px 14px 20px 14px;
  flex: 1 1 290px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  border-bottom: 3px solid var(--secondary);
  transition: box-shadow .2s, transform .2s;
}
.blog-preview:hover {
  box-shadow: 0 10px 30px rgba(255, 200, 87, 0.16);
  transform: translateY(-2px) scale(1.016);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--neutral-light);
  border-radius: var(--radius-sharp);
  box-shadow: 0 2px 12px rgba(28,33,74,0.07);
  border-left: 4px solid var(--secondary);
  padding: 18px 16px;
}
.faq-item h3 {
  margin-bottom: 6px;
}

.contact-block {
  background: var(--neutral-light);
  border-radius: var(--radius-sharp);
  box-shadow: 0 2px 12px rgba(28,33,74,0.08);
  padding: 18px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-section {
  margin-bottom: 18px;
}

.categories {
  margin-top: 18px;
  font-size: .98rem;
}
.categories a {
  color: var(--primary);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.categories a:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* -------------------------- HEADER & NAV -------------------------- */
header {
  background: var(--neutral-light);
  box-shadow: 0 4px 22px rgba(20,22,53,0.075);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  min-height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
}
nav {
  display: flex;
  gap: 32px;
}
nav a {
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 0;
  border-bottom: 2.5px solid transparent;
  border-radius: 0;
  transition: border-color 0.18s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}
nav a:hover,
nav a:focus {
  border-color: var(--secondary);
}
.cta-nav {
  background: var(--secondary);
  color: var(--primary) !important;
  border-radius: var(--radius-sharp);
  padding: 8px 26px;
  margin-left: 14px;
  transition: background 0.15s, box-shadow 0.18s, color 0.15s;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
  border: none;
  box-shadow: 0 2px 8px rgba(255,200,87,0.09);
}
.cta-nav:hover, .cta-nav:focus {
  background: #FFD86E;
  color: var(--neutral-dark) !important;
  box-shadow: 0 6px 18px rgba(255,200,87,0.15);
}

/* --------------- MOBILE MENU (HAMBURGER NAVIGATION) --------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  margin-left: 16px;
  cursor: pointer;
  z-index: 5002;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--secondary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28,33,74,.93);
  color: var(--neutral-light);
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.67,-0.01,.24,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.1rem;
  position: absolute;
  top: 26px;
  right: 28px;
  z-index: 10001;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #FFF5DB;
}
.mobile-nav {
  margin-top: 82px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  width: 100%;
  align-items: flex-start;
  padding: 16px 38px;
}
.mobile-nav a {
  color: var(--neutral-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 12px 0;
  width: 100%;
  border-radius: 0 8px 8px 0;
  transition: background 0.17s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

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

/* -------------------------- CTA BUTTONS ------------------------- */
.cta-button {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-sharp);
  padding: 16px 44px;
  font-weight: 800;
  font-size: 1.13rem;
  letter-spacing: 0.03em;
  border: none;
  box-shadow: 0 2px 12px rgba(255,200,87,0.10);
  margin-top: 8px;
  transition: background 0.16s, color 0.13s, box-shadow .15s, transform .12s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: #FFD86E;
  color: var(--neutral-dark);
  box-shadow: 0 10px 30px rgba(255,200,87,0.18);
  transform: scale(1.03) translateY(-2px);
}

/* -------------------------- FOOTER ---------------------------- */
footer {
  background: var(--primary);
  color: var(--neutral-light);
  padding: 44px 0 0 0;
  margin-top: 80px;
}
footer .footer-wrapper {
  border-top: 2px solid #202456;
  padding: 32px 0;
  gap: 28px 48px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--secondary);
  font-size: 1.02rem;
  font-weight: 600;
  border-bottom: none;
  padding: 0;
  transition: color .16s;
}
footer nav a:hover,
footer nav a:focus {
  color: #FFD86E;
}
footer .contact-mini {
  font-size: .98rem;
  line-height: 1.8;
  color: var(--accent);
}
footer img {
  height: 42px;
  width: auto;
  margin-bottom: 10px;
}

/* ------------------------ COOKIE BANNER ------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--neutral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 20px 22px;
  box-shadow: 0 -4px 24px rgba(28,33,74,0.12);
  z-index: 10000;
  font-size: 1rem;
  transition: transform .30s cubic-bezier(.67,-0.01,.24,1);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner p {
  margin-bottom: 0;
  color: var(--neutral-light);
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-sharp);
  padding: 10px 22px;
  margin: 0 7px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 1.5px 8px rgba(255,200,87,0.1);
  transition: background .16s, color .15s, transform .13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFD86E;
  color: var(--neutral-dark);
  transform: scale(1.03);
}
.cookie-settings-btn {
  background: transparent;
  color: var(--secondary);
  padding: 10px 18px;
  border-radius: var(--radius-sharp);
  border: 2px solid var(--secondary);
  font-weight: bold;
  margin-left: 10px;
  transition: background .15s, color .15s, border-color .13s;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: #FFD86E;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 11000;
  inset: 0;
  background: rgba(34,36,58,0.91);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .19s;
  visibility: visible;
  opacity: 1;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  visibility: hidden;
}
.cookie-modal {
  background: var(--accent);
  color: var(--primary);
  border-radius: 16px;
  max-width: 380px;
  width: 94vw;
  box-shadow: 0 8px 44px rgba(28,33,74,0.18);
  padding: 32px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  font-size: 1rem;
}
.cookie-modal h2 {
  font-size: 1.24rem;
  margin-bottom: 12px;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ececec
}
.cookie-modal .toggle-switch {
  width: 50px;
  height: 28px;
  background: #dadadd;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background .17s;
}
.cookie-modal .toggle-switch[aria-checked="true"] {
  background: var(--secondary);
}
.cookie-modal .toggle-switch .toggle-thumb {
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 22px;
  height: 22px;
  background: var(--neutral-light);
  border-radius: 50%;
  transition: left .15s cubic-bezier(.67,-0.01,.24,1);
}
.cookie-modal .toggle-switch[aria-checked="true"] .toggle-thumb {
  left: 25px;
  background: var(--primary);
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--secondary);
}

/* ------------------- SPACING & LAYOUT (MANDATORY) ------------------- */
/* Already included with flexbox classes above */

/* -------------------------- HELPER CLASSES -------------------------- */
.flex {
  display: flex;
  gap: 20px;
}
.center {
  justify-content: center;
  align-items: center;
}
.align-start {
  align-items: flex-start;
}
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* -------------------- RESPONSIVE DESIGN & MOBILE ------------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 13px 0;
  }
  .section {
    margin-bottom: 36px;
    padding: 28px 8px;
    gap: 18px;
  }
  .card-container,
  .feature-grid,
  .content-grid,
  .pricing-table,
  .blog-list {
    flex-direction: column;
    align-items: stretch !important;
    gap: 18px;
  }
  .testimonial-card,
  .card,
  .feature-grid > div,
  .pricing-table > div,
  .blog-preview {
    min-width: unset;
    width: 100%;
    margin-bottom: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.13rem; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 8px;
  }
  .cookie-modal {
    padding: 15px 7px 17px 10px;
    max-width: 97vw;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.12rem; }
  h2 { font-size: 1.01rem; }
  .cta-button {
    font-size: .97rem;
    padding: 12px 18px;
  }
}

/* ------------------------ GEOMETRIC DECOR ------------------------- */
.section {
  position: relative;
  overflow: hidden;
}
.section::before {
  content: '';
  position: absolute;
  top: -48px; right: -48px;
  width: 98px; height: 98px;
  background: rgba(255, 200, 87, 0.10);
  clip-path: polygon(79% 0, 100% 63%, 45% 100%, 0 79%, 21% 17%);
  z-index: 1;
}
.section::after {
  content: '';
  position: absolute;
  bottom: -38px; left: -32px;
  width: 60px; height: 60px;
  background: rgba(28,33,74,.06);
  clip-path: polygon(0 0, 100% 13%, 90% 98%, 16% 100%);
  z-index: 1;
}
.section > * { position: relative; z-index:3; }

.feature-grid > div::after,
.card::after {
  content: '';
  display: block;
  width: 34px;
  height: 6px;
  background: var(--secondary);
  border-radius: 4px;
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  opacity: 0.19;
}

/* Remove on mobile for less clutter */
@media (max-width: 580px) {
  .section::before, .section::after,
  .feature-grid > div::after, .card::after { display: none; }
}

/* --------------------- FORM ELEMENTS (if present) ------------------- */
input, textarea, select {
  border: 2.2px solid var(--neutral-mid);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--neutral-light);
  color: var(--primary);
  font-size: 1rem;
  width: 100%;
  transition: border .14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
}

/* --------- MICRO-INTERACTIONS: links, icons, misc --------- */
a:focus {
  outline: 2px dotted var(--secondary);
  outline-offset: 2px;
}
img[alt="Bewertung"] {
  transition: filter .14s;
}
.testimonial-card:hover img[alt="Bewertung"] {
  filter: brightness(0.95) sepia(0.8) hue-rotate(-10deg) saturate(1.3);
}

/* ------------ CUSTOM SCROLLBAR (modern desktop browsers only) ---------- */
::-webkit-scrollbar {
  width: 10px;
  background: #E7E8F0;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 7px;
}

/* --------------------------------------------------------------- */
/* All flex layouts, no grid, no columns, and with correct spacing! */
/* --------------------------------------------------------------- */
