/* === DashParts Geometric Structured Style CSS === */

/* RESET & BASELINE ------------------------------ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, 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;
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #18314F;
  background: #F7F7FB;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-size: 1rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #255C99;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}
a:hover, a:focus {
  color: #FFB700;
  outline: none;
}
ul, ol {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #255C99;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }

blockquote {
  background: #F4D35E;
  color: #255C99;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  border-left: 6px solid #255C99;
  margin: 18px 0;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(24,49,79,0.07);
}

strong {
  font-weight: 700;
  color: #18314F;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 17px;
  padding-right: 17px;
  display: flex;
  flex-direction: column;
  gap: 0; /* Top-level usage only; children get explicit gap or margin */
}

.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

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

/* === HEADER & NAVIGATION ----------------------- */
header {
  background: #fff;
  box-shadow: 0 3px 16px rgba(24,49,79,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px;
  gap: 18px;
}
header a img {
  height: 32px;
  width: auto;
  margin-right: 30px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #255C99;
  padding: 5px 0;
  border-bottom: 2.5px solid transparent;
  border-radius: 0;
  letter-spacing: 0;
  transition: color 0.2s, border-bottom 0.2s, background 0.1s;
  font-weight: 600;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #F4D35E;
  border-bottom: 2.5px solid #F4D35E;
  background: #255C9915;
}

.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: #255C99;
  border: none;
  border-radius: 12px 2px 12px 2px;
  box-shadow: 0 3px 9px rgba(36,92,153,0.13);
  padding: 11px 38px;
  margin-left: 28px;
  transition: background 0.2s, color 0.2s, transform 0.19s, box-shadow 0.19s;
  cursor: pointer;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #F4D35E;
  color: #255C99;
  box-shadow: 0 4px 24px rgba(36,92,153,0.16);
  transform: translateY(-2px) scale(1.027);
}

/* --- Mobile Burger Button --- */
.mobile-menu-toggle {
  display: none;
  background: #255C99;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.21s, box-shadow 0.21s, color 0.21s;
  z-index: 201;
}
.mobile-menu-toggle:focus {
  background: #255C99dd;
}
.mobile-menu-toggle:hover {
  background: #F4D35E;
  color: #255C99;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #255C99ee;
  box-shadow: 0 6px 64px rgba(24,49,79,0.19);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  z-index: 2200;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.27s cubic-bezier(.8,.09, .73, 1.05), opacity 0.23s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu .mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.4rem;
  border: none;
  padding: 13px 28px 12px 24px;
  margin: 10px 0 0 5px;
  align-self: flex-start;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}
.mobile-menu .mobile-menu-close:hover {
  color: #F4D35E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 46px auto 0 28px;
  padding: 0;
  width: 82vw;
  max-width: 370px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1.8px solid transparent;
  transition: color 0.23s, border-bottom 0.18s;
  border-radius: 0;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F4D35E;
  border-bottom: 1.8px solid #F4D35E;
}

@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
  .content-wrapper {
    max-width: 98vw;
  }
}

@media (max-width: 950px) {
  header nav,
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 500px) {
  header .container { padding: 7px 6px; }
  .mobile-menu .mobile-menu-close { font-size: 2rem; }
}

/* === HERO SECTION ---------------------- */
.hero-section {
  background: #255C99 linear-gradient(109deg,#255C99 60%,#F4D35E 140%);
  color: #fff;
  border-radius: 0 0 40px 0;
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.hero-section .container {
  min-height: 240px;
  align-items: center;
  justify-content: center;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.hero-section h1, .hero-section h2, .hero-section h3 {
  color: #fff;
  letter-spacing: 0.03em;
}
.hero-section p {
  color: #fff;
  font-size: 1.17rem;
  margin-bottom: 8px;
  font-weight: 500;
}
.hero-section .cta-btn {
  background: #F4D35E;
  color: #255C99;
  margin-left: 0;
  margin-top: 18px;
}
.hero-section .cta-btn:hover, .hero-section .cta-btn:focus {
  background: #fff;
  color: #255C99;
  box-shadow: 0 4px 24px rgba(36,92,153,0.17);
}

/* === FLEX SPACING & ALIGNMENT CLASSES -------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px 4px 22px 4px;
  box-shadow: 0 3px 16px rgba(24,49,79,0.07);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 16px 4px 16px 6px;
  box-shadow: 0 2px 10px rgba(24,49,79,0.06);
  position: relative;
  background: #fff;
  padding: 28px 26px 24px 26px;
  min-width: 260px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 7px 24px rgba(36,92,153,0.13);
  transform: translateY(-2px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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: #F7F7FB;
  border-radius: 14px 2.5px 14px 5px;
  box-shadow: 0 2px 12px rgba(24,49,79,0.045);
  margin-bottom: 20px;
  border-left: 6px solid #255C99;
  color: #18314F;
  max-width: 560px;
}
.testimonial-card p {
  font-size: 1.08rem;
  padding-right: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: auto;
  color: #255C99;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: 12px 2px 12px 2px;
  background: #F7F7FB;
  padding: 20px 18px;
  box-shadow: 0 2px 10px rgba(24,49,79,0.04);
  margin-bottom: 20px;
}
/* --- Features grid for landing/section cards --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 12px;
}
.features-grid > div {
  background: #fff;
  border-radius: 14px 2px 16px 6px;
  box-shadow: 0 2px 10px rgba(24,49,79,0.06);
  padding: 24px 20px 20px 20px;
  flex: 1 1 230px;
  min-width: 190px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.17s, transform 0.13s;
  margin-bottom: 20px;
}
.features-grid > div img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.features-grid > div:hover {
  box-shadow: 0 8px 26px rgba(36,92,153,0.07);
  transform: translateY(-2px) scale(1.013);
}

@media (max-width: 900px) {
  .features-grid { justify-content: center; }
  .features-grid > div { max-width: 98vw; }
  .content-grid { flex-direction: column; gap: 20px; }
}
@media (max-width: 600px) {
  .section { margin-bottom: 36px; padding: 24px 7px; }
  .hero-section { padding: 25px 0 28px 0; margin-bottom: 26px; }
}

/* === FORMS ------------------------------ */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
  max-width: 480px;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #255C99;
  font-size: 1rem;
  margin-bottom: 3px;
}
input[type="email"], input[type="text"], textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: 1.7px solid #255C9922;
  border-radius: 10px 2px 10px 2px;
  padding: 12px 16px;
  background: #fff;
  color: #18314F;
  margin-bottom: 7px;
  outline: none;
  transition: border-color 0.17s, box-shadow 0.17s;
}
input[type="email"]:focus,input[type="text"]:focus,textarea:focus {
  border-color: #255C99;
  box-shadow: 0 0 0 2px #F4D35E55;
}
button[type="submit"] {
  background: #255C99;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 32px;
  border: none;
  border-radius: 10px 3px 13px 3px;
  box-shadow: 0 3px 13px rgba(36,92,153,0.08);
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.18s, color 0.16s, box-shadow 0.15s, transform 0.13s;
}
button[type="submit"]:hover, button[type="submit"]:focus {
  background: #F4D35E;
  color: #255C99;
  box-shadow: 0 6px 24px rgba(36,92,153,0.16);
  transform: translateY(-1px) scale(1.018);
}
@media (max-width: 480px) {
  form { max-width: 99vw; }
}

/* === TABLES (for documents) ------------------- */
table { width: 100%; border-collapse: collapse; margin: 18px 0; }
th, td {
  padding: 8px 14px;
  border: 1.2px solid #ececec;
  font-size: 1rem;
}
th {
  background: #F4D35E;
  color: #255C99;
  font-weight: bold;
}
td { background: #fff; }

/* === FOOTER ----------------------------------- */
footer {
  background: #18314F;
  color: #fff;
  padding: 0 0 15px 0;
  border-radius: 44px 0 0 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  padding: 35px 17px 0 17px;
  gap: 0;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
footer nav a {
  color: #F4D35E;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  border-bottom: 2px solid #fff;
}
footer .text-section {
  color: #fff;
  margin-bottom: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.97rem;
  opacity: 0.8;
}

@media (max-width: 900px) {
  footer .container { padding: 24px 10px 0 10px; }
  footer nav { gap: 13px; }
}

@media (max-width: 600px) {
  footer { border-radius: 22px 0 0 0; }
}

/* === RESPONSIVE FLEX ALIGNMENTS --------------- */
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .container {
    padding-left: 4vw; padding-right: 4vw; max-width: 100vw;
  }
}

/* === COOKIE CONSENT BANNER and MODAL ----------- */
.cookie-consent-banner {
  position: fixed;
  z-index: 8888;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #18314F;
  border-top: 4px solid #255C99;
  box-shadow: 0 -6px 28px rgba(24,49,79,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  gap: 22px;
  font-size: 0.98rem;
  transition: transform 0.31s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-consent-banner .cookie-text {
  flex: 1 1 350px;
  padding-right: 19px;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 7px 22px;
  border-radius: 9px 2px 10px 2px;
  border: none;
  margin: 0 0 0 0;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(36,92,153,0.06);
  background: #255C99;
  color: #fff;
  transition: background 0.15s, color 0.17s, transform 0.13s;
}
.cookie-btn.accept { background: #255C99; color: #fff; }
.cookie-btn.reject { background: #fff; color: #255C99; border: 1.6px solid #255C99; }
.cookie-btn.settings { background: #F4D35E; color: #255C99; }
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #F4D35E;
  color: #255C99;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #255C99;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #255C99;
  color: #fff;
}

@media (max-width:700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 7vw;
    gap: 15px;
  }
  .cookie-consent-actions { width: 100%; justify-content: flex-end; gap: 10px; }
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,49,79,0.48);
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadein 0.27s;
}
.cookie-modal-overlay.open { display: flex; }
@keyframes fadein { from { opacity: 0;} to { opacity: 1;} }
.cookie-modal {
  background: #fff;
  border-radius: 16px 4px 16px 6px;
  box-shadow: 0 6px 32px rgba(24,49,79,0.18);
  max-width: 430px;
  width: 95vw;
  padding: 32px 22px 22px 22px;
  position: relative;
  color: #18314F;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popscale 0.29s cubic-bezier(.61,.14,.54,.99);
}
@keyframes popscale {
  from { transform: scale(0.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 13px; top: 8px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #255C99;
  cursor: pointer;
  padding: 2px;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  color: #255C99;
  margin-bottom: 7px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 17px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  accent-color: #255C99;
  width: 20px; height: 20px;
  margin-right: 4px;
}
.cookie-category input[disabled] {
  opacity: 0.66;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}

@media (max-width:430px){
  .cookie-modal { padding: 12vw 3vw 6vw 3vw; }
}

/* === TYPOGRAPHY SCALE ------------------------------ */
/* (Applies to headings already; adding fine control for text) */
p, ul, ol, li, label, input, textarea, button, th, td {
  font-size: 1rem;
}
@media (max-width: 440px) {
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1.09rem; }
  h3 { font-size: 1rem; }
  p,ul,ol,li,label,input,textarea,button,th,td { font-size: 0.97rem; }
}

/* === GEOMETRIC SHAPE ACCENTS ---------------------- */
hr {
  border: none;
  border-top: 3px solid #F4D35E;
  border-radius: 3px 0 5px 0;
  height: 0;
  width: 60px;
  margin: 28px 0;
}
/* Optional geometric highlighting for sections/cards */
.card::before, .testimonial-card::before, .features-grid>div::before {
  content: "";
  display: block;
  width: 40px;
  height: 7px;
  background: #F4D35E;
  border-radius: 10px 2px 6px 2px;
  margin-bottom: 16px;
}
.card::before { margin-bottom: 7px; }
.features-grid>div::before { margin-bottom: 7px; }
/* Only display .before element if it doesn't clutter on mobile */
@media (max-width: 440px) {
  .card::before, .testimonial-card::before, .features-grid>div::before { display: none; }
}

/* === SPACING UTILITY CLASSES (eg for lists) ------ */
ul > li, ol > li {
  margin-bottom: 9px;
  padding-left: 0;
}

/* === ICONS IN TEXT SECTION (KONTAKT) ------------ */
.text-section img {
  vertical-align: middle;
  margin-right: 9px;
  width: 22px;
  height: 22px;
  filter: grayscale(36%) brightness(1.03);
  opacity: 0.85;
}
.text-section a {
  text-decoration: underline;
}

/* === SUBTLE ANIMATIONS / MICRO-INTERACTIONS ----- */
.card, .features-grid > div, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover, .features-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 9px 36px rgba(36,92,153,0.13);
  transform: translateY(-3px) scale(1.017);
}

/* === HIDE DEFAULT FOCUS OUTLINE, PROVIDE CUSTOM -- */
:focus {
  outline: 2.1px solid #F4D35E;
  outline-offset: 2px;
  z-index: 1;
}

/* === THANK YOU PAGE CTA STYLE ------------------- */
main .cta-btn {
  margin-top: 12px;
}

/* === DEFENSIVE MINIMUM CARD MARGIN/RESPONSIVE --- */
.card, .features-grid > div, .testimonial-card, .feature-item {
  margin-right: 0;
  min-width: 0;
}
@media (max-width:480px) {
  .card, .features-grid>div, .testimonial-card, .feature-item {
    padding-left: 9px; padding-right: 7px;
  }
}

/* === HIDE BANNER/MODAL WHEN JS TRIGGERS --------- */
.cookie-consent-banner.hide { display: none; }
.cookie-modal-overlay { display: none; }
.cookie-modal-overlay.open { display: flex; }

/* ===== END OF DashParts STRUCTURED CSS ===== */
