/*
 This CSS file is used to override the existing styles of the theme.
 You can change the article headings, fonts, colors, etc.
*/

/* ---------------------------------------------------------------
   Schriftarten (selbst gehostet, siehe /fonts/b612 und /fonts/lexend)
   B612   -> Überschriften / Titel
   Lexend -> Fließtext
--------------------------------------------------------------- */
@font-face {
  font-family: 'B612';
  src: url('/fonts/b612/B612-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'B612';
  src: url('/fonts/b612/B612-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'B612';
  src: url('/fonts/b612/B612-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'B612';
  src: url('/fonts/b612/B612-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lexend';
  src: url('/fonts/lexend/Lexend-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------
   Farbpalette Epsilon Consult
--------------------------------------------------------------- */
:root {
  --e-dunkelblau: #003366;
  --e-mittelblau: #0073e6;
  --e-hellgrau: #e6e6e6;
  --e-dunkelgrau: #333333;
  --e-gruen: #4caf50;
  --e-orange: #ffa500;
}

/* ---------------------------------------------------------------
   Basistypografie
--------------------------------------------------------------- */
html,
body {
  font-family: 'Lexend', 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: var(--e-dunkelgrau);
}
h1,
h2,
h3,
h4,
h5,
h6,
.title {
  font-family: 'B612', 'Noto Sans JP', sans-serif;
  color: var(--e-dunkelblau);
}
.content {
  font-family: 'Lexend', 'Noto Sans JP', sans-serif;
}
a {
  color: var(--e-mittelblau);
}

/* Markenfarben/-schriften auch innerhalb von @tailwindcss/typography (.prose)
   erzwingen, dessen eigene Vorgaben sonst Vorrang hätten. */
.content,
.content :where(p, li) {
  color: var(--e-dunkelgrau);
}
.content :where(h1, h2, h3, h4, h5, h6) {
  font-family: 'B612', 'Noto Sans JP', sans-serif;
  color: var(--e-dunkelblau);
}
.content :where(a) {
  color: var(--e-mittelblau);
}
.content :where(strong) {
  color: inherit;
}

/* ---------------------------------------------------------------
   Skip-Link (nur bei Tastaturfokus sichtbar)
--------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--e-dunkelblau);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-family: 'Lexend', sans-serif;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------------------------------------------------------------
   Header / Navigation
--------------------------------------------------------------- */
header nav {
  border-bottom: 1px solid var(--e-hellgrau);
}
header nav a,
#overlay a {
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
}
header nav a:hover,
#overlay a:hover {
  color: var(--e-mittelblau) !important;
  opacity: 1;
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
footer .bg-gray-800,
footer .bg-tlgray-700 {
  background-color: var(--e-dunkelblau);
}
footer .copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
footer a:hover {
  color: var(--e-mittelblau) !important;
}
.footer-company .text-xl {
  font-family: 'B612', sans-serif;
  margin-bottom: 0.5rem;
}
.footer-address,
.footer-contact {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #d1d5db;
}
.footer-contact a {
  color: #d1d5db;
}
.footer-contact a:hover {
  color: #fff !important;
}

/* ---------------------------------------------------------------
   Zurück-nach-oben-Button
--------------------------------------------------------------- */
.scroll-top {
  background-color: var(--e-dunkelblau);
  border: none;
  font: inherit;
  appearance: none;
}

/* ---------------------------------------------------------------
   Hero-Slider: kompaktere, ruhigere Darstellung statt 85vh
--------------------------------------------------------------- */
.swiper-wrapper img,
.slide-wrap img {
  height: 46vh;
  min-height: 320px;
  max-height: 520px;
  object-fit: cover;
  filter: brightness(0.62);
}
.swiper-slide {
  position: relative;
}
.swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 51, 102, 0.1) 0%, rgba(0, 51, 102, 0.6) 100%);
  pointer-events: none;
}
.swiper-slide .s-fade-txt {
  width: 90%;
  max-width: 46rem;
  text-align: center;
  z-index: 1;
}
.swiper-slide .s-fade-txt .slide-caption {
  color: #fff;
  font-family: 'B612', 'Noto Sans JP', sans-serif;
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  margin: 0;
}
.slider-wrapper {
  position: relative;
}
.slider-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 51, 102, 0.65);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.7rem;
  cursor: pointer;
}
.slider-toggle:hover {
  background: var(--e-dunkelblau);
}
.slide-link {
  display: block;
  height: 100%;
  text-decoration: none;
}

/* ---------------------------------------------------------------
   Werte-Kacheln (Startseite, data/features.json)
--------------------------------------------------------------- */
.bg-tlgray-200 .bg-white {
  border-top: 3px solid var(--e-mittelblau);
}

/* ---------------------------------------------------------------
   Expertisen: Karten
--------------------------------------------------------------- */
.expertise-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.expertise-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.expertise-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--e-hellgrau);
  border-top: 4px solid var(--e-dunkelblau);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -12px rgba(0, 51, 102, 0.35);
  border-top-color: var(--e-mittelblau);
}
.expertise-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.expertise-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem 1.5rem 1.75rem;
}
.expertise-card h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.expertise-card p {
  font-family: 'Lexend', sans-serif;
  color: var(--e-dunkelgrau);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}
.expertise-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--e-dunkelblau);
}
.expertise-card:hover .expertise-more {
  color: var(--e-mittelblau);
}

/* ---------------------------------------------------------------
   Expertise-Detailseite: Hero-Bild & passende Stories
--------------------------------------------------------------- */
.expertise-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  margin-bottom: 1.5rem;
}
.related-stories {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--e-hellgrau);
}

/* ---------------------------------------------------------------
   Gemeinsamer Button-Stil (Kontaktformular, "Alle Stories" u.a.)
--------------------------------------------------------------- */
a.btn,
input.btn,
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  padding: 0.6rem 2rem;
  background-color: var(--e-dunkelblau) !important;
  color: #fff !important;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
a.btn:hover,
input.btn:hover,
.btn:hover {
  background-color: var(--e-mittelblau) !important;
  color: #fff !important;
}

/* ---------------------------------------------------------------
   Kontaktformular
--------------------------------------------------------------- */
form[name='contact'] input:focus,
form[name='contact'] textarea:focus {
  border-color: var(--e-mittelblau) !important;
}

/* ---------------------------------------------------------------
   Sprachumschalter (dezentes Dropdown im bestehenden Menü)
--------------------------------------------------------------- */
.lang-dropdown {
  position: relative;
  margin-left: 0.25rem;
}
.lang-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--e-dunkelgrau);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--e-hellgrau);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-dropdown summary::-webkit-details-marker {
  display: none;
}
.lang-dropdown summary::after {
  content: '\25BE';
  font-size: 0.7rem;
}
.lang-dropdown[open] summary::after {
  content: '\25B4';
}
.lang-dropdown summary:hover {
  color: var(--e-mittelblau);
  border-color: var(--e-mittelblau);
}
.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: #fff;
  border: 1px solid var(--e-hellgrau);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.2);
  min-width: 8rem;
  z-index: 20;
}
.lang-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  color: var(--e-dunkelgrau);
  text-decoration: none;
}
.lang-dropdown-menu a:hover {
  background: var(--e-hellgrau);
  color: var(--e-mittelblau);
}
/* #overlay (theme default) lays its direct children out as a row by
   default, which put the menu list and the language links side by
   side as two columns on mobile -- force a single stacked column. */
#overlay {
  flex-direction: column;
}
.lang-dropdown-mobile {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lang-dropdown-mobile a {
  color: #fff;
  font-size: 1rem;
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   Zurück-Link (Expertise-/Stories-Detailseiten)
--------------------------------------------------------------- */
.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--e-dunkelblau);
}
.back-link:hover {
  color: var(--e-mittelblau);
}
