/* SES Safety Website Fixes - Dezember 2025 */

/* 1. CTA Button im Hero */
.hero-cta {
  display: inline-block;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: #fff;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  margin-top: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-cta:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Ensure hero CTA is readable inside .page-hero (overrides link color) */
.page-hero .hero-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}
.page-hero .hero-cta:hover {
  background: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
  color: #fff !important;
}

.page-hero a.btn.btn--white {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.page-hero a.btn.btn--white:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
  border-color: var(--color-primary-dark) !important;
}

.solar-cta {
  padding: 0.6rem 1.2rem !important;
  font-size: 0.95rem !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.solar-cta:hover {
  background: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

/* 2. Info-Boxen gleiche Höhe + Hover */
.info-boxes {
  display: flex;
  gap: 30px;
}
.info-box {
  flex: 1;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 3. FAQ Accordion */
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  background: #f8f9fa;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question:hover {
  background: var(--color-primary);
  color: #fff;
}
.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
}
.faq-item.active .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 20px;
}

/* 4. Sticky FAQ Navigation */
.faq-nav {
  position: sticky;
  top: 70px;
  background: #fff;
  padding: 15px 0;
  border-bottom: 2px solid var(--color-primary);
  z-index: 100;
  margin-bottom: 30px;
}

/* 5. Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: transparent;
  color: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 20px;
  box-shadow: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* 10. Utility classes replacing inline styles */
.u-m-0 { margin: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-05 { margin-bottom: 0.5rem; }
.u-mb-1 { margin-bottom: 1rem; }
.u-mb-15 { margin-bottom: 1.5rem; }
.u-mb-2 { margin-bottom: 2rem; }
.u-mb-3 { margin-bottom: 3rem; }
.u-mt-1 { margin-top: 1rem; }
.u-mt-05 { margin-top: 0.5rem; }
.u-mt-2 { margin-top: 2rem; }
.u-mt-3 { margin-top: 3rem; }
.u-my-3 { margin: 3rem 0; }

.u-pt-2 { padding-top: 2rem; }
.u-p-05 { padding: 0.5rem; }
.u-p-1 { padding: 1rem; }
.u-p-2 { padding: 2rem; }
.u-py-2 { padding: 2rem 0; }
.u-py-3 { padding: 3rem 0; }
.u-pl-12 { padding-left: 1.2rem; }
.u-pl-15 { padding-left: 1.5rem; }

.u-fs-10 { font-size: 10px; }
.u-fs-11 { font-size: 11px; }
.u-fs-12 { font-size: 12px; }
.u-fs-13 { font-size: 13px; }
.u-fs-14 { font-size: 14px; }
.u-fs-15 { font-size: 15px; }
.u-fs-09 { font-size: 0.9em; }
.u-fs-17 { font-size: 17px; }
.u-fs-19 { font-size: 19px; }
.u-fs-21 { font-size: 21px; }
.u-fs-22 { font-size: 22px; }
.u-fs-24 { font-size: 24px; }
.u-fs-28 { font-size: 28px; }
.u-lh-155 { line-height: 1.55; }
.u-lh-18 { line-height: 1.8; }
.u-lh-26 { line-height: 26px; }
.u-fw-bold { font-weight: bold; }
.u-fw-normal { font-weight: normal; }
.u-italic { font-style: italic; }
.u-underline { text-decoration: underline; }
.u-no-underline { text-decoration: none; }

.u-text-left { text-align: left; }
.u-text-center { text-align: center; }
.u-text-red { color: var(--color-primary); }
.u-text-red-alt { color: var(--color-primary-dark); }
.u-text-green { color: #3f9118; }
.u-text-gray { color: #5c5c5c; }
.u-text-gray-dark { color: #3d3d3d; }
.u-text-muted { color: #666; }
.u-text-muted-light { color: #7a7a7a; }
.u-text-white { color: #ffffff; }
.u-text-black { color: #000000; }

.u-bg-white { background: #ffffff; }
.u-bg-red { background: var(--color-primary); }
.u-bg-light { background: #e5e5e5; }
.u-bg-gray { background: #e0e0e0; }
.u-bg-green { background: #3f9118; }

.u-border-card { border: 1px solid #adadad; }
.u-border-light { border-top: 1px solid #ddd; }
.u-border-white { border: 1px solid #ffffff; }
.u-border-gray { border: 1px solid #969696; }
.u-rounded-4 { border-radius: 4px; }
.u-rounded-5-bottom { border-radius: 0 0 5px 5px; }

.u-w-100 { width: 100%; }
.u-max-w-100 { max-width: 100%; }
.u-max-w-900 { max-width: 900px; }

.u-img-full { width: 100%; height: auto; }
.u-img-contain { max-width: 100%; max-height: 100%; object-fit: contain; }
.u-img-thumb { width: 190px; height: 140px; object-fit: contain; border-radius: 4px; flex: 0 0 190px; }
.u-icon-24 { width: 24px; height: 24px; }

.u-grid-360 { display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: start; }
.u-grid-349 { display: grid; grid-template-columns: 349px 1fr; gap: 2rem; align-items: start; }
.u-grid-348 { display: grid; grid-template-columns: 348px 1fr; gap: 2rem; align-items: start; }
.u-grid-346 { display: grid; grid-template-columns: 346px 1fr; gap: 2rem; align-items: start; }
.u-grid-345 { display: grid; grid-template-columns: 345px 1fr; gap: 2rem; align-items: start; }
.u-grid-330 { display: grid; grid-template-columns: 1fr 330px; gap: 2rem; align-items: start; }
.u-grid-286 { display: grid; grid-template-columns: 1fr 286px; gap: 2rem; align-items: start; }
.u-grid-280 { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.u-grid-280-118 { display: grid; grid-template-columns: 280px 118px 1fr; gap: 1.5rem; align-items: start; }
.u-grid-237 { display: grid; grid-template-columns: 237px 1fr; gap: 2rem; }
.u-grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.u-grid-1-270 { display: grid; grid-template-columns: 1fr 270px; gap: 2rem; margin-bottom: 2rem; }
.u-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.u-flex-gap-1-start { display: flex; gap: 1rem; align-items: flex-start; }
.u-flex-center { display: flex; justify-content: center; }

@media (max-width: 1024px) {
  .u-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .u-grid-360,
  .u-grid-349,
  .u-grid-348,
  .u-grid-346,
  .u-grid-345,
  .u-grid-330,
  .u-grid-286,
  .u-grid-280,
  .u-grid-280-118,
  .u-grid-237,
  .u-grid-1-1,
  .u-grid-1-270 {
    grid-template-columns: 1fr !important;
  }

  .u-flex-gap-1-start { flex-direction: column; }
  .u-img-thumb { width: 100%; max-width: 240px; height: auto; }
}

@media (max-width: 768px) {
  .nav__menu {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 0;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
    transition: opacity 0.3s ease;
  }
  .nav__menu.active {
    max-height: 80vh;
    padding: var(--spacing-md) 0;
  }
  .header__contact { width: 100%; text-align: left; }
  main p, main li { text-align: left; hyphens: auto; overflow-wrap: anywhere; }
}

@media (max-width: 600px) {
  .u-grid-3 { grid-template-columns: 1fr; }
}

iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

.u-list-disc { list-style: disc; margin-left: 2rem; line-height: 1.8; }
.u-list-compact { margin: 0; padding-left: 1.5rem; font-size: 13px; line-height: 1.55; }

.u-hidden { display: none; }

.catalog-card {
  background: #fff;
  border: 1px solid #adadad;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
}
.catalog-card__media {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #fff;
}
.catalog-card__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.catalog-card__label {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  font-weight: bold;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
  padding: 0.5rem;
}

.btn--gray {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary);
  text-decoration: none !important;
}

.btn--gray:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff !important;
}

.note-box {
  background: #ffffff;
  padding: 1rem;
  border-radius: 4px;
  color: var(--color-text) !important;
}

.about-content--single {
  grid-template-columns: 1fr;
}

/* 6. Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  margin-bottom: 20px;
  font-size: 14px;
}
.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  color: #666;
  margin: 0 10px;
}

/* 7. Kontakt-Boxen Unterscheidung */
.contact-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-box:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 8. Form Submit Button */
.form-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 15px 50px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  margin-top: 20px;
}
.form-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(220, 38, 38, 0.3);
}

/* 9. Pflichtfeld Hinweis */
.required-hint {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}
.required-hint span {
  color: var(--color-primary);
}

/* 10. Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* 11. Focus States für Accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(220, 38, 38, 0.5);
  outline-offset: 2px;
}

/* 12. Link Hover Verbesserung */
a:hover {
  text-decoration: underline;
}

/* 13. Mobile Navigation Padding */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    padding: 15px 20px !important;
  }
  .dropdown-menu {
    padding: 10px 0;
  }
  .dropdown-item {
    padding: 12px 25px;
  }
}

/* 14. Lesbarkeit (Dezember 2025) */
:root {
  --color-primary: #DC2626;
  --color-primary-dark: #B91C1C;
  --color-secondary: #111827;
  --color-text: #374151;
  --color-text-light: #374151;
}

/* HERO & CONTENT-BEREICHE */
main section,
section,
.page-hero,
.mod_article,
.ce_text {
  background: #FFFFFF !important;
  border-left: none !important;
}

.highlight-box {
  border-left: none !important;
}

.page-hero {
  background: #FFFFFF !important;
  background-image: none !important;
  color: var(--color-text) !important;
}

.page-hero > .container {
  border-left: none !important;
}

main h1,
main h2,
main h3,
main h4 {
  color: var(--color-secondary) !important;
}

main p,
main li {
  color: var(--color-text) !important;
}

/* Normalize utility text colors in main content */
main :where(.u-text-gray, .u-text-gray-dark, .u-text-muted, .u-text-muted-light, .u-text-green, .u-text-white, .u-text-black, .u-text-red-alt):not(a):not(h1):not(h2):not(h3):not(h4) {
  color: var(--color-text) !important;
}

/* contact.css forces hero text to white via !important — reset for readability */
.page-hero :where(p, li, strong, span, em) {
  color: var(--color-text) !important;
}

.page-hero :where(h1, h2, h3, h4) {
  color: var(--color-secondary) !important;
}

/* Links (main content only; footer has its own palette) */
main a:not(.btn):not(.hero-cta) {
  color: var(--color-primary) !important;
}

main a:not(.btn):not(.hero-cta) * {
  color: inherit !important;
}

main a:not(.btn):not(.hero-cta):hover {
  color: var(--color-primary-dark) !important;
}

main a:not(.btn):not(.hero-cta):hover * {
  color: inherit !important;
}

/* Buttons */
.btn:not(.btn--link),
.btn--primary {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #FFFFFF !important;
}

.btn:not(.btn--link) *,
.btn--primary * {
  color: inherit !important;
}

.btn:not(.btn--link):hover,
.btn--primary:hover {
  background: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
  color: #FFFFFF !important;
}

/* FOOTER */
footer,
.footer {
  background: #1F2937 !important;
  padding: 40px 0 24px !important;
  color: #D1D5DB;
  font-size: 13px;
}

.footer__col h4,
footer h4 {
  color: #FFFFFF !important;
  font-size: 14px !important;
}

footer p,
.footer p,
footer li,
.footer li,
.footer__bottom {
  color: #D1D5DB;
  font-size: 13px;
}

footer a,
.footer a {
  color: #F87171 !important;
}

footer a:hover,
.footer a:hover {
  color: #FFFFFF !important;
}
