/* WissensWelt "soft_pastel" style – Modern, gentle, pastel, mobile-first, flexbox only */

/* ==================== CSS RESET & BASE ==================== */
html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F8FAFB;
  color: #233D4D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
}
a {
  color: #F39237;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #ea6976;
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #233D4D;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.75rem; margin-bottom: 22px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.13rem; margin-bottom: 10px; }

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

.subheadline {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  color: #5f7990;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
strong { font-weight: 700; }
em { font-style: italic; }

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

/* ==================== SOFT PASTEL COLOR PALETTE ==================== */
:root {
  --primary: #233D4D;
  --secondary: #F39237;
  --accent: #E8E8E8;
  --pastel-blue: #BFD7ED;
  --pastel-pink: #F5CEDD;
  --pastel-yellow: #fff1ba;
  --pastel-lilac: #E4C1F9;
  --pastel-mint: #C3F5E1;
  --pastel-peach: #FFE5D4;
  --button-gradient: #BFD7ED;
  --shadow: 0 4px 20px 0 rgba(120,120,160,0.09);
}

/* ==================== HEADER & NAV ==================== */
header {
  background: linear-gradient(90deg, #BFD7ED 0%, #F5CEDD 100%);
  box-shadow: 0 2px 10px 0 rgba(180,180,200,0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px;
  gap: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', serif;
  font-weight: 600;
  color: #233D4D;
  font-size: 1rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s;
}
header nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: #F39237;
  border-radius: 2px;
  transition: width 0.2s;
  margin-top: 3px;
}
header nav a:hover:after,
header nav a:focus:after {
  width: 80%;
}
header nav a:hover, header nav a:focus {
  color: #F39237;
}

.cta-btn {
  background: linear-gradient(90deg, #FFC4A3 0%, #B8F2E6 100%);
  color: #233D4D;
  font-family: 'Montserrat', 'Roboto', serif;
  font-weight: 700;
  font-size: 1.11rem;
  padding: 12px 32px;
  border-radius: 32px;
  border: none;
  outline: none;
  box-shadow: var(--shadow);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.26s, color 0.16s, box-shadow 0.18s;
  margin-left: 12px;
  margin-top: 0;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #F5CEDD 0%, #BFD7ED 100%);
  color: #233D4D;
  box-shadow: 0 5px 16px 0 rgba(233,174,187, 0.09);
}

/* ==================== MAIN LAYOUT ==================== */
main {
  padding-bottom: 50px;
}
section {
  background: #fff;
  border-radius: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow 0.23s;
}

@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    border-radius: 18px;
    margin-bottom: 44px;
  }
  header .container {
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==================== CARD PATTERNS & FLEX CONTAINERS ==================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.card {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.14s;
  min-width: 275px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(180,160,180,0.14);
  transform: translateY(-2px) 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;
}
@media (max-width: 768px) {
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

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

/* =============== TESTIMONIAL CARDS =============== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  margin-bottom: 20px;
  background: var(--pastel-blue);
  border-radius: 24px;
  box-shadow: 0 2px 14px 2px rgba(120,140,180,0.09);
  color: #233D4D;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
  color: #233D4D;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 1em;
  font-weight: 700;
  color: #7b5684;
}

/* Ensure contrast on all testimonial cards */
.testimonial-card {
  background: #fffbe6;
}

/* =================== CATEGORY TABS (Faktenseite) ================== */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 8px 0 20px 0;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}
.category-tabs a {
  background: #BFD7ED;
  color: #233D4D;
  border-radius: 16px;
  padding: 7px 18px;
  margin-right: 0;
  transition: background 0.19s, color 0.14s;
  box-shadow: 0 1px 6px 0 rgba(180,200,230,0.07);
}
.category-tabs a:hover, .category-tabs a:focus {
  background: #F5CEDD;
  color: #b4436c;
}

.facts-summary h3 {
  color: #B1626E;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* =================== FOOTER ================== */
footer {
  background: linear-gradient(90deg, #fff1ba 0%, #E4C1F9 100%);
  padding: 34px 0 20px 0;
  box-shadow: 0 -2px 12px 0 rgba(120,120,160,0.06);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.footer-links nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 1em;
  color: #5F7990;
  margin-bottom: 0;
}
.footer-info p {
  color: #554A5E;
  font-size: 0.93em;
  margin-bottom: 2px;
}
.footer-brand {
  font-size: 1em;
  color: #757D8D;
}
footer a {
  color: #7765ae;
  font-weight: 600;
  transition: color 0.19s;
}
footer a:hover, footer a:focus {
  color: #FFA26B;
}

@media (max-width: 768px) {
  footer .container,
  footer .content-wrapper {
    align-items: flex-start;
  }
  .footer-links nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* =================== BUTTONS & INTERACTIONS =================== */
button, .cta-btn {
  border: none;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.17s, color 0.17s, outline 0.17s;
  outline: none;
}
button:focus, .cta-btn:focus {
  outline: 2px solid #F39237;
  outline-offset: 2px;
}

/* =============== MOBILE BURGER MENU =============== */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 201;
  display: none;
  background: #fff9f2;
  color: #233D4D;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 3px 14px rgba(180,160,140,0.09);
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F5CEDD;
}

@media (max-width: 930px) {
  header nav,
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(120deg, #F5CEDD 0%, #E4C1F9 80%);
  width: 100vw;
  height: 100vh;
  z-index: 210;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.7,.1,.27,1);
  box-shadow: 4px 0 32px 5px rgba(244,200,207, 0.18);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  background: #fffbe6;
  color: #B1626E;
  font-size: 2.3rem;
  border-radius: 30px;
  padding: 10px 14px;
  margin: 20px 0 10px 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(120,110,70,0.09);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFC4A3; color: #233D4D;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 36px;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: #233D4D;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: left;
  padding: 8px 0;
  border-radius: 12px;
  transition: background 0.17s, color 0.18s;
  width: 100vw;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE5D4;
  color: #A0516B;
}

@media (min-width: 931px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* =================== COOKIE CONSENT BANNER =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 220;
  background: #FFF0F5;
  box-shadow: 0 -4px 24px rgba(150, 130, 170, 0.15);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 32px 36px 24px 36px;
  justify-content: space-between;
  width: 100vw;
  flex-wrap: wrap;
  animation: cookieSlideIn 0.5s cubic-bezier(.5,.8,.2,1) 1 forwards;
  transform: translateY(100%);
}
.cookie-banner.show {
  transform: translateY(0);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: #3F2E56;
  font-size: 1.05rem;
  max-width: 600px;
  flex: 2;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 24px;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: background 0.18s, color 0.14s, box-shadow 0.13s;
  margin-left: 0;
  box-shadow: 0 1px 6px 0 rgba(180,180,180,0.06);
}
.cookie-btn.accept {
  background: #C3F5E1;
  color: #233D4D;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #B8F2E6;
  color: #045355;
}
.cookie-btn.reject {
  background: #F5CEDD;
  color: #B1626E;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFCEC3;
  color: #A0516B;
}
.cookie-btn.settings {
  background: #fffbe6;
  color: #807099;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E4C1F9;
  color: #6A397B;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 10px 16px 10px;
    gap: 10px;
  }
  .cookie-banner__text {
    max-width: 100%;
    font-size: 0.98rem;
  }
  .cookie-banner__actions {
    gap: 9px;
  }
}

/* ============ COOKIE MODAL ============ */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 221;
  background: rgba(120, 100, 130, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeModal 0.23s;
}
@keyframes fadeModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFF0F5;
  border-radius: 24px;
  box-shadow: 0 2px 22px 0 rgba(100,80,140,0.13);
  padding: 34px 28px 26px 28px;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  position: relative;
  animation: cookieModalPopIn 0.34s cubic-bezier(.7,.1,.27,1);
}
@keyframes cookieModalPopIn {
  0% { transform: scale(0.95); opacity:0; }
  80% {transform: scale(1.03); }
  100% {transform: scale(1); opacity:1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  color: #233D4D;
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #FFE5D4;
  color: #A0516B;
  font-size: 1.5rem;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.1s;
  z-index: 2;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F5CEDD;
  color: #8A374C;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.cookie-category .toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #FFD5E5;
  border-radius: 13px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 8px;
}
.cookie-category .toggle:checked {
  background: #B8F2E6;
}
.cookie-category .toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
  box-shadow: 0 2px 6px 0 rgba(100,100,120,0.12);
}
.cookie-category .toggle:checked:before {
  left: 19px;
}
.cookie-category label {
  font-size: 1.03rem;
  color: #233D4D;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.cookie-category .essential {
  color: #569d87;
  font-size: 1.04em;
}

/* ============ END COOKIE MODAL ============ */

/* ================= MEDIA QUERIES & ADJUSTMENTS ================= */
@media (max-width: 650px) {
  .container {
    padding: 0 5px;
  }
  h1 { font-size: 1.38rem; }
}
@media (max-width: 400px) {
  .card, section {
    padding: 17px 5px;
  }
  .cookie-modal {
    padding: 16px 7px 20px 10px;
    min-width: unset;
    max-width: 99vw;
  }
}

/* =================== MISCELLANEOUS CLASSES =================== */
@media (max-width: 501px) {
  .logo img {
    max-width: 96px;
    height: auto;
  }
}
ul li:last-child, ol li:last-child { margin-bottom: 0; }

/* Style highlight icons in index services and highlights */
section ul li img {
  margin-right: 12px;
  width: 44px;
  height: 44px;
  vertical-align: middle;
  background: #C3F5E1;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 0 14px rgba(180,220,210,0.08);
  margin-bottom: 8px;
}
section ul li h3 {
  display: inline-block;
  font-size: 1.1rem;
  margin-bottom: 7px;
  color: #795D91;
}

section ul {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-bottom: 10px;
}

@media (max-width: 650px) {
  section ul {
    gap: 12px;
  }
  section ul li {
    padding-left: 0;
  }
}

/* =========== ANIMATIONS FOR INTERACTIVITY =========== */
.card, .cta-btn, .testimonial-card, .category-tabs a, .cookie-btn {
  transition: box-shadow 0.19s, background 0.16s, color 0.13s, transform 0.2s;
}
.card:hover, .card:focus-within {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 8px 24px 0 rgba(180,160,180,0.14);
}

.cta-btn:active, .cookie-btn:active {
  transform: scale(0.975);
}

/* ========== FORM FIELDS (if present) ========== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  border: 1.5px solid #E4C1F9;
  padding: 10px 13px;
  margin-bottom: 16px;
  width: 100%;
  background: #fff;
  transition: border-color 0.16s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #F5CEDD;
  box-shadow: 0 0 2px 2px #F5CEDD44;
  outline: none;
}

label {
  color: #074750;
  font-size: 1.08em;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 7px;
}

/* END OF STYLE */
