/* ==================== 
   Wissensfunken - Elegant Classic Theme
   Style.css - All Pages, Flexbox Only, Responsive
   ==================== */

/* --- RESET & BASE STYLES --- */
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;
  background: transparent;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #263040;
  background-color: #FAFAF7;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

*:focus {
  outline: 2px solid #224768;
  outline-offset: 2px;
}

ul, ol {
  margin: 1em 0 1.5em 1.5em;
  padding: 0 0 0 1.2em;
}
li {
  margin-bottom: 0.5em;
}
a {
  color: #224768;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2CB05;
  text-decoration: underline;
}

/* Typography Hierarchy */
h1 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #224768;
  margin-bottom: 24px;
}
h2 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #224768;
  margin-bottom: 20px;
}
h3 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #4E5A6D;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.125rem;
  color: #5E6675;
  margin-bottom: 12px;
}
p, .subheadline {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.125rem;
  color: #2b2e36;
  margin-bottom: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #E2E6EB;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(34, 71, 104, 0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 0;
  min-height: 68px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #224768;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F2CB05;
}

.cta {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(34, 71, 104, 0.08);
}
.cta.primary {
  background: #224768;
  color: #fff;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #F2CB05;
  color: #224768;
}
.cta.secondary {
  background: #fff;
  color: #224768;
  border: 2px solid #224768;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #224768;
  color: #fff;
}

/* --- MOBILE HEADER --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #224768;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 1020;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 71, 104, 0.96);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2010;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F2CB05;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  margin-top: 22px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  padding: 12px 28px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2CB05;
  color: #224768;
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

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

/* --- HERO --- */
.hero {
  background: #E2E6EB;
  padding: 56px 0 44px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid #dadde1;
}
.hero .container {
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 16px;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #224768;
}
.hero .subheadline {
  color: #5e6675;
  font-size: 1.25rem;
  margin-bottom: 18px;
  font-style: italic;
}
.hero .cta {
  margin-top: 18px;
}

/* --- FEATURES --- */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(34, 71, 104, 0.03);
}
.features .feature-grid,
.features .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 270px;
  min-width: 230px;
  background: #FAFAF7;
  border-radius: 10px;
  border: 1px solid #E2E6EB;
  padding: 28px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
  box-shadow: 0 2px 10px rgba(34, 71, 104, 0.06);
}
.feature img {
  width: 50px;
  height: 50px;
}
.feature h3 {
  color: #224768;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.feature p {
  margin-bottom: 0;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 28px rgba(34, 71, 104, 0.13);
  border-color: #F2CB05;
  transform: translateY(-4px) scale(1.02);
}

/* --- CARD & FLEXBOX CONTAINER UTILS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid #dfe3e6;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 16px rgba(34, 71, 104, 0.05);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px rgba(34, 71, 104, 0.12);
  border-color: #F2CB05;
  transform: scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 26px;
  gap: 8px;
}
.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;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .content-grid, .features .feature-grid, .features .feature-list, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .card {
    min-width: unset;
    width: 100%;
  }
}

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

/* --- TESTIMONIALS --- */
.testimonials {
  background: #fdfcf9;
  padding: 40px 20px;
  border-radius: 12px;
  margin-bottom: 60px;
  box-shadow: 0 1px 8px rgba(34, 71, 104, 0.03);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #FFF;
  border: 1px solid #E2E6EB;
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(34, 71, 104, 0.06);
  color: #222;
  max-width: 600px;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.13s;
}
.testimonial-card p {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.125rem;
  color: #263040;
  margin-bottom: 6px;
  line-height: 1.7;
}
.testimonial-card span {
  color: #224768;
  font-size: 1rem;
  font-style: italic;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(34, 71, 104, 0.13);
  border-color: #F2CB05;
  transform: translateY(-2px) scale(1.01);
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 18px 14px;
    max-width: 100%;
  }
}

/* --- SERVICES LIST --- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin-left: 0;
  margin-bottom: 24px;
}
.services-list li {
  background: #FAFAF7;
  border-radius: 8px;
  border: 1px solid #E2E6EB;
  padding: 18px 16px;
  font-size: 1rem;
  color: #253043;
  margin-bottom: 0;
  line-height: 1.6;
}
.services-list li strong {
  color: #224768;
  font-weight: 600;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.services-list li span {
  color: #F2CB05;
  font-weight: 700;
  font-size: 1.1em;
}

/* --- FOOTER --- */
footer {
  background: #224768;
  color: #fff;
  padding: 36px 0 16px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #FFE;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  padding: 8px 0;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F2CB05;
}
.brand-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.brand-details img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}
.brand-details p {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #FFE;
}

@media (max-width: 600px) {
  .footer-nav, .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .brand-details {
    align-items: flex-start;
    text-align: left;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #FFF;
  color: #224768;
  box-shadow: 0 -4px 24px rgba(34,71,104,0.08);
  border-top: 1px solid #E2E6EB;
  z-index: 5000;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transition: transform 0.35s;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 10px 14px 10px;
  }
}
.cookie-banner p {
  margin: 0 0 8px 0;
  color: #263040;
  font-size: 1rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button, .cookie-banner .btn {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  padding: 9px 24px;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(34, 71, 104, 0.06);
}
.cookie-banner .accept {
  background: #224768;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #F2CB05;
  color: #224768;
}
.cookie-banner .reject {
  background: #fff;
  color: #224768;
  border: 2px solid #224768;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #F2CB05;
  color: #224768;
}
.cookie-banner .settings {
  background: #E2E6EB;
  color: #224768;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #F2CB05;
  color: #224768;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 6000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34, 71, 104, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.36s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #FFF;
  border-radius: 16px;
  width: 98%;
  max-width: 430px;
  padding: 34px 28px 20px 28px;
  box-shadow: 0 6px 32px rgba(34, 71, 104, 0.19);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalIn 0.33s cubic-bezier(.75,-0.12,.43,1.19);
}
@keyframes modalIn {
  0% { transform: translateY(90px) scale(0.96); opacity:0; }
  100% { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #224768;
  margin-bottom: 8px;
}
.cookie-modal .category-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-modal .cookie-category label {
  flex: 1 1 auto;
  color: #263040;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #224768;
  width: 22px;
  height: 22px;
}
.cookie-modal .cookie-category.essential label {
  font-weight: bold;
  color: #224768;
}
.cookie-modal .cookie-category.essential input[type="checkbox"] {
  accent-color: #AAB0BA;
  pointer-events: none;
}
.cookie-modal p {
  font-size: 1rem;
  margin: 0 0 8px 0;
  color: #586176;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 14px; right: 15px;
  background: none;
  border: none;
  font-size: 1.85rem;
  color: #224768;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus { color: #F2CB05; }
.cookie-modal-action-primary {
  background: #224768;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 26px;
}
.cookie-modal-action-secondary {
  background: #fff;
  color: #224768;
  border: 2px solid #224768;
  border-radius: 20px;
  padding: 8px 22px;
}
.cookie-modal-action-primary:hover,.cookie-modal-action-primary:focus {
  background: #F2CB05;
  color: #224768;
}
.cookie-modal-action-secondary:hover,.cookie-modal-action-secondary:focus {
  background: #F2CB05;
  color: #224768;
}

/* ======= RESPONSIVE SPACING & MOBILITY =======  */
@media (max-width: 1020px) {
  .container { padding: 0 12px; }
  .main-nav, .footer-nav { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 600px) {
  .section, .features {
    padding: 28px 6px;
    margin-bottom: 38px;
  }
  .hero {
    padding: 32px 0 28px 0;
  }
  .container {
    padding: 0 5px;
  }
}

/* ======= MICRO-INTERACTIONS ======= */
button:active, .cta:active, .cookie-banner button:active {
  transform: scale(0.98);
}
::selection {
  background: #F2CB05;
  color: #224768;
}

/* --- SCROLLBAR STYLES (elegant refinement) --- */
html {
  scrollbar-color: #F2CB05 #E2E6EB;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 8px;
  background: #E2E6EB;
}
::-webkit-scrollbar-thumb {
  background: #F2CB05;
  border-radius: 6px;
  border: 2px solid #E2E6EB;
}

/* --- UTILITY CLASSES & MISC ---*/
.hide { display:none !important; }
.show { display:block !important; }
@media (max-width: 500px) { .hide-mobile { display:none !important; } }
.text-center { text-align:center !important; }
.text-right { text-align:right !important; }

/* --- END Wissensfunken Styles --- */
