/* ==========================================================================
   FONS Academy – WordPress-Ergänzungen zum Original-Design
   Ergänzt ausschließlich das, was im statischen Export nicht vorkam.
   ========================================================================== */

/* --- Zugänglichkeit ------------------------------------------------------ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  left: 16px;
  top: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: #038dce;
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #038dce;
  outline-offset: 2px;
}

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

/* --- Header-Anpassungen -------------------------------------------------- */
/* Das Design erzwingt für das Platzhalter-Logo ein festes Seitenverhältnis
   (11/2). Ein echtes Logo mit anderem Verhältnis wird dadurch gequetscht –
   deshalb hier: Höhe begrenzen, Breite frei, nie verzerren. */
header .logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  max-width: 260px;
}

header .logo,
header .logo-link img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 52px;
  aspect-ratio: auto !important;
  object-fit: contain;
}

.footer-logo {
  display: inline-flex;
  max-width: 240px;
}

.footer-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

@media screen and (max-width: 600px) {
  header .logo-link {
    max-width: 190px;
  }
  header .logo,
  header .logo-link img {
    max-height: 40px;
  }
}

header .menu {
  border: 0;
  cursor: pointer;
}

header nav ul li a {
  transition: color 0.16s ease;
}

header nav ul li.is-current > a,
header nav ul li.is-current-ancestor > a {
  color: #038dce;
}

/* Submenü je Menüpunkt – Position bleibt wie im Design (relativ zur Nav). */
header nav {
  position: relative;
}

/* --- Sprachumschalter ---------------------------------------------------- */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

/* Im Header bleibt – wie im Entwurf – nur das Icon sichtbar. */
header .contact .lang-switch .lang-code {
  display: none;
}

.lang-switch .lang-code {
  font-size: 14px;
  font-weight: 600;
  color: #21292e;
  letter-spacing: 0.02em;
}

/* Die Pill-Styles der Kopfzeile dürfen nicht auf die Sprachliste durchschlagen. */
header .contact .lang-switch .lang-list a {
  width: auto;
  padding: 9px 12px;
  justify-content: flex-start;
  background: transparent;
  color: #21292e;
  border-radius: 9px;
}

header .contact .lang-switch .lang-list a:hover,
header .contact .lang-switch .lang-list a[aria-current="true"] {
  background: #f1f8fc;
  color: #038dce;
}

.mobile-menu-actions .lang-switch {
  position: relative;
}

.lang-switch .lang-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 22px 48px -20px rgba(15, 35, 55, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 300;
}

.lang-switch.is-open .lang-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch .lang-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: #21292e;
  font-size: 15px;
  text-decoration: none;
}

.lang-switch .lang-list a:hover,
.lang-switch .lang-list a[aria-current="true"] {
  background: #f1f8fc;
  color: #038dce;
}

.mobile-menu-actions .lang-switch .lang-list {
  right: auto;
  left: 0;
  bottom: calc(100% + 10px);
  top: auto;
}

/* --- Kategorie-Tabs als Links ------------------------------------------- */
a.category-tab {
  text-decoration: none;
}

/* --- Breadcrumbs --------------------------------------------------------- */
.fons-crumbs {
  margin-bottom: 18px;
}

.fons-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
}

.fons-crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.45;
}

.fons-crumbs a,
.fons-crumbs span {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
}

.fons-crumbs a:hover {
  opacity: 1;
  text-decoration: underline;
}

.product-hero .fons-crumbs {
  color: #eaf6fd;
}

/* --- Einfache Hero-Variante für Seiten ---------------------------------- */
.phero-content--simple {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 0 70px;
  display: block;
}

.phero-content--simple .phero-left {
  max-width: 780px;
}

.page-hero {
  padding-bottom: 0;
}

.blog-meta--single {
  margin-bottom: 14px;
  color: #eaf6fd;
}

.blog-meta--single .blog-cat {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* --- Fließtext-Sektionen ------------------------------------------------- */
.fons-prose-section {
  padding: 70px 20px;
}

.fons-prose {
  max-width: 820px;
  margin: 0 auto;
  color: #21292e;
  font-size: 17px;
  line-height: 1.75;
}

.fons-prose > * + * {
  margin-top: 20px;
}

.fons-prose h2 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin-top: 44px;
}

.fons-prose h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 32px;
}

.fons-prose ul,
.fons-prose ol {
  padding-left: 22px;
}

.fons-prose li + li {
  margin-top: 8px;
}

.fons-prose a {
  color: #038dce;
}

.fons-prose blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid #cad51e;
  background: #f7fbfe;
  border-radius: 0 14px 14px 0;
}

.fons-prose img,
.fons-prose figure img {
  border-radius: 16px;
}

.fons-prose table {
  width: 100%;
  border-collapse: collapse;
}

.fons-prose th,
.fons-prose td {
  padding: 12px 14px;
  border-bottom: 1px solid #e4e7ec;
  text-align: left;
}

.fons-post-image {
  max-width: 1000px;
  margin: 0 auto 44px;
  padding: 0 20px;
}

.fons-post-image img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.fons-post-footer {
  max-width: 820px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #e4e7ec;
}

.fons-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 15px;
}

.fons-post-nav a {
  color: #038dce;
  text-decoration: none;
}

.fons-tags {
  margin-bottom: 16px;
  font-size: 14px;
}

.fons-tags a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 5px 12px;
  border-radius: 100px;
  background: #f1f8fc;
  color: #0270a3;
  text-decoration: none;
}

.fons-comments {
  max-width: 820px;
  margin: 48px auto 0;
}

/* --- Archive ------------------------------------------------------------- */
.fons-archive {
  padding: 70px 20px 90px;
}

.fons-archive-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.blog-grid--archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.blog-grid--archive .blog-card {
  height: auto;
}

.blog-grid--archive .blog-card p {
  color: #5b6b78;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}

.fons-empty {
  padding: 40px 0;
  color: #5b6b78;
  font-size: 17px;
}

.pagination,
.navigation.pagination {
  margin-top: 48px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 100px;
  background: #f2f4f7;
  color: #21292e;
  text-decoration: none;
  font-weight: 500;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: #038dce;
  color: #fff;
}

.fons-results {
  display: grid;
  gap: 24px;
}

.fons-result {
  padding: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
}

.fons-result h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.fons-result h2 a {
  color: #21292e;
  text-decoration: none;
}

.fons-result p {
  color: #5b6b78;
  line-height: 1.6;
}

.fons-result-url {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #038dce;
}

.fons-hero-search input[type="search"],
.fons-archive-inner input[type="search"] {
  width: 100%;
  max-width: 420px;
  height: 54px;
  padding: 0 20px;
  border: 1px solid #e4e7ec;
  border-radius: 100px;
  font: inherit;
}

/* --- Kursarchiv ---------------------------------------------------------- */
.fons-cat-block + .fons-cat-block {
  margin-top: 64px;
}

.fons-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.fons-cat-head h2 a {
  color: inherit;
  text-decoration: none;
}

.courses5-track--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  overflow: visible;
}

/* --- Team ---------------------------------------------------------------- */
.fons-team-section {
  padding: 80px 20px;
  background: #f7fbfe;
}

.fons-team-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.fons-team-head {
  max-width: 700px;
  margin-bottom: 40px;
}

.fons-team-head h2 {
  color: #1a1d1f;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.fons-team-head p {
  color: #5b6b78;
  font-size: 17px;
  line-height: 1.6;
}

.fons-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.fons-team-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 44px -32px rgba(15, 35, 55, 0.4);
  display: flex;
  flex-direction: column;
}

.fons-team-photo {
  aspect-ratio: 7 / 8;
  background: #e6f7ff;
}

.fons-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fons-team-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.fons-team-body h3 {
  color: #1a1d1f;
  font-size: 21px;
  letter-spacing: -0.4px;
}

.fons-team-role {
  color: #038dce;
  font-size: 14px;
  font-weight: 600;
}

.fons-team-body p {
  color: #5b6b78;
  font-size: 15px;
  line-height: 1.6;
}

.fons-team-langs {
  font-size: 13px !important;
  color: #6b7780 !important;
}

.fons-team-links {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.fons-team-links a {
  color: #0270a3;
  text-decoration: none;
}

.fons-team-links a:hover {
  text-decoration: underline;
}

.fons-value-icon img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

/* --- Kennzahlen im Hero -------------------------------------------------- */
.fons-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 30px;
}

.fons-stat strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1px;
}

.fons-stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

/* --- Kontaktkarten ------------------------------------------------------- */
.fons-contact-cards {
  padding: 70px 20px 20px;
}

.fons-contact-cards-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.fons-contact-card {
  padding: 28px;
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fons-contact-icon img {
  width: 40px;
  height: 40px;
}

.fons-contact-card h3 {
  color: #1a1d1f;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.fons-contact-card p {
  color: #5b6b78;
  font-size: 16px;
  line-height: 1.6;
}

.fons-contact-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #038dce;
  font-weight: 600;
  text-decoration: none;
}

.fons-contact-link img {
  width: 18px;
  height: 18px;
}

.fons-address,
.fons-opening {
  margin-top: 22px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.fons-opening strong {
  display: block;
  margin-bottom: 4px;
}

.pcc-inner--cta {
  justify-content: center;
}

/* --- Karte (DSGVO-freundlich) ------------------------------------------- */
.fons-map {
  padding: 20px 20px 80px;
}

.fons-map-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.fons-map-embed {
  position: relative;
  min-height: 380px;
  border-radius: 24px;
  overflow: hidden;
  background: #eef3f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fons-map-embed iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

.fons-map-note {
  text-align: center;
  padding: 30px;
  max-width: 460px;
}

.fons-map-note p {
  color: #5b6b78;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* --- Formular-Ergänzungen ------------------------------------------------ */
.fons-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pcc-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #5b6b78;
}

.pcc-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.pcc-consent a {
  color: #038dce;
}

.pcc-form-feedback.is-success {
  color: #157347;
}

.pcc-form-feedback.is-error {
  color: #c02b2b;
}

/* --- Zusätzlicher Status ------------------------------------------------- */
.status-badge.status-full {
  background: #fdecec;
  color: #c02b2b;
}

.status-badge.status-full::before {
  background: #c02b2b;
}

/* --- Karten-Titel als Links --------------------------------------------- */
.course5-card h3 a,
.pc5-card h3 a,
.course-card h3 a,
.blog-card h3 a,
.blog-featured h3 a {
  color: inherit;
  text-decoration: none;
}

.course5-card h3 a:hover,
.pc5-card h3 a:hover,
.blog-card h3 a:hover,
.blog-featured h3 a:hover {
  color: #038dce;
}

.pc5-card[hidden],
.course5-card[hidden] {
  display: none !important;
}

/* --- Footer-Zusatz ------------------------------------------------------- */
.footer-extra {
  padding: 24px 0;
  color: #5b6b78;
  font-size: 15px;
}

.footer-widget-title {
  color: #21292e;
  font-size: 17px;
  margin-bottom: 8px;
}

.footer-legal-nav {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- WordPress-Standardklassen ------------------------------------------ */
.alignwide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.alignleft {
  float: left;
  margin: 0 24px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 24px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption-text,
.wp-element-caption {
  font-size: 13px;
  color: #6b7780;
  margin-top: 8px;
}

.sticky .blog-card {
  outline: 2px solid #cad51e;
}

@media screen and (max-width: 800px) {
  .fons-prose-section {
    padding: 48px 20px;
  }

  .fons-team-head h2 {
    font-size: 30px;
  }

  .phero-content--simple {
    padding: 20px 0 50px;
  }

  .fons-stats {
    gap: 22px;
  }

  .fons-stat strong {
    font-size: 26px;
  }
}
