/* =====================================================
   Isarfischer Wissen – Professional Corporate CSS Styles
   Palette: Blue/Gray, Primary: #1A4F6E, Secondary: #337D5A, Accent: #F3F6ED
   Fonts: Ubuntu (Display Headings), Roboto (Body)
   Layout: Flexbox-only, Responsive, Corporate Spacing
====================================================== */

/* --------------------- CSS RESET & NORMALIZE ------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #23303a;
  background: #f8fafd;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  text-decoration: none;
  color: #1A4F6E;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #337D5A;
  outline: none;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Ubuntu', 'Roboto', Arial, sans-serif;
  color: #1A4F6E;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {font-size: 2.5rem;}
h2 {font-size: 2rem;}
h3 {font-size: 1.37rem;}
h4 {font-size: 1.16rem;}

/* ---------------------- TYPOGRAPHY ---------------------- */
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #25394a;
}
strong {font-weight: 700; color: #1A4F6E;}
blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #38516c;
  margin-bottom: 8px;
}
cite {
  font-size: 0.96rem;
  color: #556372;
  margin-left: 4px;
  font-style: normal;
}

/* --------------------- CONTAINER & SECTIONS ------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px 0 rgba(27,56,78,0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Corp. Card + Grid Patterns */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(27,56,78,0.07);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 24px 0 rgba(27,56,78,0.13);
  transform: translateY(-2px) scale(1.015);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ----------------------- NAVIGATION --------------------- */
header {
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(26, 79, 110, 0.07);
  position: relative;
  z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  padding: 18px 20px 12px 20px;
}
.main-nav > a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #25394a;
  opacity: 0.95;
  transition: color 0.18s, opacity 0.18s;
  padding: 7px 13px;
  border-radius: 6px;
  position: relative;
  text-align: center;
}
.main-nav > a.cta-btn {
  background: #1A4F6E;
  color: #fff !important;
  font-weight: 700;
  border-radius: 18px;
  padding: 8px 24px;
  box-shadow: 0 2px 6px 0 rgba(26,79,110,0.07);
  margin-left: 8px;
  transition: background 0.23s, box-shadow 0.18s;
}
.main-nav > a.cta-btn:hover, .main-nav > a.cta-btn:focus {
  background: #337D5A;
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(27, 56, 78, 0.12);
}
.main-nav > a:hover, .main-nav > a:focus {
  color: #1A4F6E;
  background-color: #F3F6ED;
  opacity: 1;
}
.main-nav img {
  height: 38px; width: auto; margin-right: 10px;
  vertical-align: middle;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 12px;
  top: 17px;
  background: #1A4F6E;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 145;
  border: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #337D5A;
}
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.82,0,.22,1);
  z-index: 140;
  box-shadow: -4px 0 32px 0 rgba(26,79,110,0.08);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  left: 18px;
  font-size: 2rem;
  background: #337D5A;
  color: #fff;
  border-radius: 50%;
  width: 42px; height: 42px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #1A4F6E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 80px;
  width: 100vw;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Ubuntu', 'Roboto', Arial, sans-serif;
  font-size: 1.3rem;
  color: #1A4F6E;
  font-weight: 500;
  border-radius: 9px;
  padding: 10px 24px;
  margin: 0;
  background: transparent;
  width: auto;
  text-align: center;
  transition: background 0.2s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #337d5a;
}

@media (max-width: 980px) {
  .main-nav {
    gap: 13px !important;
  }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 5px;
    font-size: 0.95rem;
    padding: 13px 5px 8px 8px;
  }
  .main-nav > a {
    padding: 6px 7px;
  }
}
@media (max-width: 720px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 721px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ---------------------- BANNERS & CTAS --------------------- */
.cta-btn, .cta-link {
  display: inline-block;
  font-family: 'Ubuntu', 'Roboto', Arial, sans-serif;
  background: #337D5A;
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 1.135rem;
  box-shadow: 0 3px 15px 0 rgba(26,79,110,0.13);
  margin-top: 8px;
  margin-bottom: 8px;
  letter-spacing: .01em;
  transition: background 0.22s, color 0.13s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus, .cta-link:hover, .cta-link:focus {
  background: #1A4F6E;
  color: #fff;
  box-shadow: 0 7px 22px 0 rgba(26,79,110,0.21);
}
.cta-link {
  background: transparent;
  color: #337D5A !important;
  box-shadow: none;
  font-size: 1.09rem;
  margin: 4px 0 14px 0;
  padding: 8px 16px;
}
.cta-link:hover,
.cta-link:focus {
  background: #337D5A;
  color: #fff;
}
.cta-banner {
  background: #E8F1F8;
  border-left: 8px solid #1A4F6E;
  border-radius: 14px;
  padding: 36px 26px;
  text-align: center;
  box-shadow: 0 2px 10px 0 rgba(42,68,92,0.09);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
}
.cta-banner h2 {
  margin-bottom: 8px;
}

/* ----------------------- BADGES & ELEMENTS ------------------- */
.badge {
  display: inline-block;
  background: #1A4F6E;
  color: #fff;
  border-radius: 17px;
  padding: 3px 14px;
  font-size: 0.95rem;
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ------------- TESTIMONIALS & HIGHLIGHT CARDS --------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F4F9FB;
  border-radius: 13px;
  box-shadow: 0 2px 9px 0 rgba(26,79,110,0.06);
  margin-bottom: 24px;
  border-left: 4px solid #337D5A;
  position: relative;
}
.testimonial-card blockquote {
  flex: 1;
  color: #25394a;
}
.testimonial-card cite {
  margin-left: 20px;
  font-size: 1rem;
  color: #1A4F6E;
  font-weight: 500;
  font-style: normal;
}
.testimonial-card.highlighted {
  background: #e3f0ff;
  border-left: 4px solid #1A4F6E;
  box-shadow: 0 5px 19px 0 rgba(26,79,110,0.11);
}

/* ------------- FAQ Accordions (Simple Responsive) ----------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.faq-accordion > div {
  background: #F4F9FB;
  border-left: 4px solid #337D5A;
  border-radius: 9px;
  padding: 14px 18px;
  font-size: 1.05rem;
  color: #1a4f6e;
}

/* ----------------- GENERAL TABLES/LISTS ---------------------- */
ul, .text-section ul {
  list-style: none outside;
  padding-left: 0;
  margin-bottom: 16px;
}
ul > li, .text-section ul > li {
  margin-bottom: 10px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
}
ul ul {
  margin-top: 7px;
  margin-bottom: 7px;
  padding-left: 20px;
}

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

/* ------------------ FOOTER ------------------------ */
footer {
  background: #1A4F6E;
  color: #fff;
  padding: 44px 0 22px 0;
  box-shadow: 0 -3px 13px 0 rgba(26,79,110,0.08);
  margin-top: 80px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.90;
  font-weight: 500;
  font-size: 1.025rem;
  transition: color 0.16s, opacity 0.14s;
  padding: 5px 10px;
  border-radius: 7px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  opacity: 1;
  color: #337D5A;
  background: #F3F6ED;
}
.footer-contact {
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: #E4EDF3;
}
.footer-contact img {
  height: 44px; width: auto; margin-bottom: 9px; margin-top: 0;
}
.footer-contact address {
  font-style: normal;
}
.footer-contact span {
  font-size: 0.92rem;
}

/* ------------------ COOKIE CONSENT ---------------------- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #25394a;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 22px 18px;
  z-index: 2000;
  box-shadow: 0 -2px 24px 0 rgba(26,79,110,0.12);
  font-size: 1rem;
  animation: cookieSlideIn 0.5s cubic-bezier(0.7,0,0.22,1);
}
@keyframes cookieSlideIn {
  from {transform: translateY(50px); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-banner .cookie-btn {
  background: #337D5A;
  color: #fff;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  margin-right: 8px;
  transition: background 0.16s, color 0.14s;
  cursor: pointer;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #1A4F6E;
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: #fff;
  border: 1.5px solid #E4EDF3;
  margin-left: 5px;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #F3F6ED;
  color: #1A4F6E;
  border-color: #1A4F6E;
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 2400;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,41,58,0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.23s cubic-bezier(.61,-0.04,.6,.94);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #25394a;
  border-radius: 16px;
  box-shadow: 0 8px 46px 0 rgba(26,79,110,0.19);
  padding: 36px 30px 26px 30px;
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 16px 0 8px 0;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category-row label {
  font-weight: 500;
  font-size: 1.05rem;
}
.cookie-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}
.cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.18s;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background: #337D5A;
}
.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 4px; top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 13px;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 21px;
  right: 19px;
  background: #1A4F6E;
  color: #fff;
  border-radius: 50%;
  font-size: 1.15rem;
  width: 33px; height: 33px;
  display: flex; align-items: center; justify-content: center;
  border: none;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: #337D5A;
}

/* Essential cookies row: always enabled */
.cookie-category-row.essential label {
  opacity: 0.68;
  cursor: default;
}
.cookie-category-row.essential .cookie-toggle-switch {
  opacity: 0.5;
  pointer-events: none;
}

/* ----------------- UTILITIES & MICRO-EFFECTS ---------------- */
.shadow-sm {
  box-shadow: 0 1.5px 4px 0 rgba(27,56,78,0.09) !important;
}
.shadow-md {
  box-shadow: 0 5px 17px 0 rgba(27,56,78,0.13) !important;
}
.rounded-lg {
  border-radius: 14px !important;
}
.text-center { text-align: center; }

/* -------------------- RESPONSIVE LAYOUTS ------------------- */
@media (max-width: 1080px) {
  .container { max-width: 960px; }
}
@media (max-width: 920px) {
  .container { max-width: 820px; }
  .card { min-width: 180px; }
}
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.45rem;}
  .container { max-width: 98vw; }
  .section { padding: 28px 10px; }
  .content-wrapper { gap: 14px; }
  .subcategory-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .text-image-section, .card-grid, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 17px;
  }
  .footer-contact {
    font-size: 0.92rem;
  }
}
@media (max-width: 480px) {
  h1 {font-size: 1.43rem;}
  h2 {font-size: 1.18rem;}
  .container { padding: 0 7px; }
  .cta-banner { padding: 16px 5px; font-size: 1rem; }
  .card { padding: 12px; }
}

/* ------------------- RESPONSIVE SPACING & ALIGNMENT --------- */
.section, .card, .card-container, .card-grid, .content-grid, .testimonial-card, .text-image-section, .feature-item {
  margin-bottom: 20px;
}
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ----------------- SPECIAL ELEMENTS -------------------------- */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  background: #f3f6ed;
  border: 1px solid #CED7E1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  resize: vertical;
  color: #23303a;
  transition: border 0.13s, background 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #1A4F6E;
  background: #fff;
  outline: none;
}

::-webkit-input-placeholder {color: #99A6B5;}
::-moz-placeholder {color: #99A6B5;}
:-ms-input-placeholder {color: #99A6B5;}
::placeholder {color: #99A6B5;}

/* -------------------- VISUAL MICROANIMATIONS -------------------------- */
a, button, .cta-btn, .cta-link, .cookie-btn, .mobile-menu-close {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s, opacity 0.16s;
}
.card, .testimonial-card, .cta-banner {
  transition: box-shadow 0.23s, transform 0.18s;
}
.card:hover, .testimonial-card:hover, .cta-banner:hover {
  box-shadow: 0 9px 32px 0 rgba(27,56,78,0.11);
  transform: translateY(-2px) scale(1.012);
}

/* Avoid content overlapping and ensure min-spacings */
.section, .card, .card-container, .feature-item {
  margin-bottom: 20px !important;
}

/* -------------------- ACCESSIBILITY FOCUS OUTLINE ----------------------- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid #337D5A;
  outline-offset: 1px;
}

/* Hide visually: utility class for e.g. screen-reader only text */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* END STYLES */
