/* === 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;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { display: block; }
body { line-height: 1; }
ol,ul { list-style: none; }
blockquote,q { quotes: none; }
blockquote:before,blockquote:after,
q:before,q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; border: 0; }
*,*::before,*::after { box-sizing: border-box; }


/* === BRAND VARIABLES & FALLBACKS === */
:root {
  --color-primary: #2B2D42;
  --color-secondary: #8D99AE;
  --color-accent: #F8F32B;
  --color-bg: #fff;
  --color-bg-invert: #191922;
  --color-card-bg: #fff;
  --color-testimonial-bg: #FAFAFA;
  --color-btn-hover: #FFD600;
  --color-link: #2B2D42;
  --color-link-hover: #F8F32B;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --shadow-1: 0 3px 18px rgba(32,28,59,0.07);
  --shadow-2: 0 1.5px 8px rgba(43,45,66,0.13);
  --radius: 18px;
}

body {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-bg);
  min-height: 100vh;
  letter-spacing: 0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }

@media (min-width:768px){
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.3rem; }
  h3 { font-size: 1.5rem; }
}

p, ul, ol {
  margin-bottom: 16px;
}
strong { font-weight: 700; }
em { font-style: italic; }

/* === CONTAINER & BASIC LAYOUTS === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 28px 24px;
  position: relative;
  display: flex; flex-direction: column;
  transition: box-shadow .22s cubic-bezier(.4,.09,.53,1), transform .22s cubic-bezier(.4,.09,.53,1);
}
.card:hover {
  box-shadow: 0 7px 28px rgba(43,45,66,0.16);
  transform: translateY(-3px) scale(1.015);
}

.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(--color-testimonial-bg);
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: var(--shadow-2);
  min-width: 240px;
  transition: box-shadow .22s cubic-bezier(.4,.09,.53,1), transform .18s cubic-bezier(.4,.09,.53,1);
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(43,45,66,0.17);
  transform: translateY(-2.5px) scale(1.012);
}
/* Extra readability for testimonials */
.testimonial-card p, .testimonial-card strong, .testimonial-card span {
  color: #1b1d2a;
  font-size: 1.1rem;
}
.testimonial-meta { display: flex; flex-direction: column; gap: 2px; }

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

/* FLEXBOX Feature Grids */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 14px;
  align-items: stretch;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  flex: 1 1 240px;
  min-width: 220px;
  padding: 26px 20px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .16s, transform .18s;
  border-left: 6px solid var(--color-accent);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 34px rgba(246,243,43,0.13),0 2px 16px rgba(42,45,66,.12);
  border-left: 6px solid var(--color-primary);
  transform: scale(1.022);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
}

/* === NAVIGATION BAR === */
header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0; left: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(33,31,76,0.06);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 600;
}
.main-nav > a {
  color: var(--color-primary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  transition: background .15s, color .14s;
  font-size: 1rem;
}
.main-nav > a.cta.primary {
  background: var(--color-accent);
  color: #191922;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(246,243,43, 0.09);
  margin-left: 10px;
  letter-spacing: 0.03em;
}
.main-nav > a.cta.primary:hover {
  background: var(--color-btn-hover);
  color: var(--color-primary);
}
.main-nav > a:hover,
.main-nav > a:focus {
  color: var(--color-accent);
  background: rgba(249,242,43,0.11);
}
.main-nav img {
  height: 44px; width: auto;
  margin-right: 20px;
  border-radius: 5px;
  background: var(--color-accent);
  box-shadow: 0 1.5px 5px rgba(43,45,66,0.05);
  padding: 2px 6px;
  transition: background .26s;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  background: var(--color-accent);
  color: #191922;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 7px 15px 7px 15px;
  margin-left: auto;
  margin-right: 8px;
  cursor: pointer;
  transition: background .15s;
  box-shadow: 0 2px 7px rgba(42,45,66,.09);
  z-index: 203;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
}
@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  z-index: 200;
  left: 0; top: 0; height: 100vh;
  width: 100vw;
  background: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 38px 38px 20px;
  transform: translateX(-100vw);
  transition: transform 0.3s cubic-bezier(.64,.02,.5,1.04);
  box-shadow: 0 4px 24px rgba(43,45,66,0.26);
  opacity: 0.99;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2.3rem;
  border: none;
  border-radius: 10px;
  margin-bottom: 18px;
  padding: 4px 17px;
  transition: background .16s, color .13s;
}
.mobile-menu-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.mobile-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background .13s, color .14s;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: #252627;
}

/* Hide desktop nav on mobile */
@media (max-width: 991px) {
  .main-nav { display: none !important; }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* === BUTTONS & CTA === */
.cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  padding: 13px 30px;
  box-shadow: 0 3px 14px rgba(246,243,43,0.10);
  border: none;
  background: var(--color-accent);
  color: #191922;
  text-decoration: none;
  margin-top: 8px;
  cursor: pointer;
  transition: background .14s, color .13s, box-shadow .13s, transform .14s;
}
.cta.primary, .btn.primary {
  background: var(--color-accent);
  color: #111;
}
.cta.secondary, .btn.secondary {
  background: var(--color-primary);
  color: #fff;
}
.cta:hover, .btn:hover,
.cta:focus, .btn:focus {
  background: var(--color-btn-hover);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(246,243,43,0.12);
  outline: none;
}

/* === LINKS === */
a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color .13s, background .13s;
}
a:hover, a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* === LISTS, TABLES, BLOCKQUOTES === */
ul, ol {
  margin: 0 0 20px 14px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 5px;
}
ul li strong, ol li strong {
  font-weight: 700;
  color: var(--color-primary);
}
blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 0 0 1em .8em;
  padding: .7em 1em;
  background: #fffbe0;
  color: #16171d;
  border-radius: 6px;
  font-style: italic;
}

/* === TEXT SECTIONS === */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.text-section ul {
  margin-top: 0.6em;
  margin-bottom: 1em;
}
.text-section img {
  vertical-align: middle;
  width: 1.35em;
  height: 1.35em;
  margin-right: 7px;
  margin-bottom: 2px;
}

/* === OL for Prozesse === */
ol {
  counter-reset: step;
  margin-left: 0;
}
ol li {
  counter-increment: step;
  margin-bottom: 19px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 0px;
}
ol li::before {
  content: counter(step) ".";
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: bold;
  margin-right: 12px;
  font-size: 1.1em;
}
ol img {
  margin-right: 3px;
  width: 28px;
  height: 28px;
}

/* === Footer === */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 34px 0 16px 0;
  font-size: 15px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-accent);
  text-decoration: underline;
  font-size: 1.01em;
  margin-right: 10px;
  transition: color .13s;
}
.footer-nav a:hover {
  color: #fff;
}
footer address {
  font-style: normal;
  margin-bottom: 10px;
  color: #f4f4f4;
}
footer small {
  color: var(--color-secondary);
  letter-spacing: .03em;
}

/* === Spacing rules to prevent overlap === */
section + section {
  margin-top: 38px;
}
.content-wrapper > * {
  margin-bottom: 0px;
}
.feature-grid > div, .testimonial-card, .card {
  margin-bottom: 20px;
}

/* --- Responsive: Mobile-first, up to Desktop --- */
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .section { padding: 27px 5px; margin-bottom: 38px; }
  .feature-grid { flex-direction: column; gap: 18px; }
  .content-grid, .card-container { flex-direction: column; gap: 16px; }
  .testimonial-card, .feature-item { flex-direction: column; align-items: flex-start; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 430px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.23rem; }
  .feature-grid > div { min-width: 0; padding: 12px 6px; }
  .card { padding: 16px 7px; }
  .container { padding: 0 3px; }
}
@media (min-width: 769px) {
  .container { padding: 0 28px; }
  .feature-grid { flex-direction: row; }
  .content-grid { flex-direction: row; }
  .testimonial-card { flex-direction: row; align-items: center; }
  .text-image-section { flex-direction: row; align-items: center; }
}


/* === Vibrant/Energetic Color Energy === */
section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(251,241,55,0.04);
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:nth-child(even) {
  background: #FCFCFB;
}

h1, h2 {
  color: var(--color-primary);
  text-shadow: 0 2px 22px rgba(248,243,43,0.10);
  font-weight: 900;
}
h1 {
  background: linear-gradient(90deg, #F8F32B 40%, #8D99AE 130%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
  text-shadow: 0 4px 28px rgba(243, 242, 43, 0.05),0 2px 8px rgba(43,45,66,.02);
}

hr {
  border: 0;
  border-top: 3px solid var(--color-accent);
  margin: 29px 0;
  border-radius: 4px;
}

/* === MICRO-ANIMATIONS === */
.cta, .btn, .feature-grid > div, .card, .testimonial-card {
  transition: box-shadow .19s, transform .16s, background .18s;
}
.cta:active, .btn:active, .feature-grid > div:active, .testimonial-card:active {
  transform: scale(0.97);
}

/* === TABLES === */
table {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  background: #fff;
  margin: 18px 0 24px 0;
  border: 1px solid #e5e6e8;
  font-size: 0.98rem;
}
th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #f0f1fa;
}
th {
  background: var(--color-accent); color: #191922;
}

/* === ACCESSIBILITY & CONTRAST === */
*[aria-current="page"], a.active {
  color: var(--color-primary) !important;
  font-weight: 800;
  box-shadow: 0 2px 0 0 var(--color-accent) inset;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #191922;
  color: #fff;
  padding: 23px 10px 18px 10px;
  box-shadow: 0 -3px 24px rgba(27, 29, 46, 0.18);
  border-radius: 15px 15px 0 0;
  z-index: 1004;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  animation: cookieBannerIn 0.5s ease;
}
@keyframes cookieBannerIn { from { transform: translateY(160px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner p {
  margin: 0 0 7px 0; color: #fffbe0; font-size: 1.03rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 15px;
  margin: 0 auto;
}
.cookie-banner .btn,
.cookie-banner .cta {
  min-width: 100px;
  font-size: 1.02rem;
}
.cookie-banner .btn.settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .btn.reject {
  background: #fff;
  color: #191922;
  border: 1.5px solid #F8F32B;
}
.cookie-banner .btn.accept {
  background: var(--color-accent);
  color: #191922;
  border: none;
}
.cookie-banner .btn:hover, .cookie-banner .cta:hover {
  background: var(--color-btn-hover);
  color: var(--color-primary);
}

/* === COOKIE MODAL === */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,31,44,0.71);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn .4s;
}
@keyframes cookieModalFadeIn { from { opacity:0; } to { opacity: 1; } }
.cookie-modal.open {
  display: flex;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 6px 32px rgba(43,45,66,0.23);
  max-width: 410px;
  padding: 30px 27px 27px 27px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: cookieDialogPop .4s cubic-bezier(.61,-0.19,.61,1.26);
}
@keyframes cookieDialogPop { from { transform:scale(.8); opacity:.3;} to { transform:scale(1); opacity:1; } }
.cookie-modal-header {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 900;
  margin-bottom: 8px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.1rem;
  position: absolute;
  top: 14px; right: 30px;
  cursor: pointer;
  transition: color .13s;
  z-index: 1200;
}
.cookie-modal-close:hover {
  color: var(--color-primary);
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 13px;
}
.cookie-category-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
}
.cookie-category-toggle {
  width: 38px; height: 22px;
  background: var(--color-secondary);
  border-radius: 18px;
  position: relative;
  cursor: pointer;
  border: none;
  outline: none;
}
.cookie-category-toggle[aria-checked='true'] { background: var(--color-accent); }
.cookie-category-toggle::before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(43,45,66,0.18);
  transition: left .15s;
}
.cookie-category-toggle[aria-checked='true']::before {
  left: 18px;
}
.cookie-category-label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category-desc {
  font-size: 0.96rem;
  color: var(--color-secondary);
}
.cookie-modal-btns {
  margin-top: 18px;
  display: flex; gap: 20px;
  justify-content: flex-end;
}

/* === ACCESSIBILITY === */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* === SCROLLBAR for ENERGETIC style === */
body::-webkit-scrollbar {
  width: 10px; background: #f4f7cc;
}
body::-webkit-scrollbar-thumb {
  background: var(--color-accent); border-radius: 10px;
}
body::-webkit-scrollbar-thumb:hover {
  background: #fffb23;
}

/* === MISC & OVERRIDES === */
::-selection { background: var(--color-accent); color: #2B2D42; }

/* --- Animation for page elements --- */
.fade-in { animation: fadeInUp 0.65s cubic-bezier(.7,.06,.3,1.02) both; }
@keyframes fadeInUp { 0% { opacity:0; transform:translate3d(0,32px,0); } 100% { opacity:1; transform:none;} }

/* === END === */
