/*
 Theme Name: Poseidon Child
 Template: poseidon
 Version: 1.7
 Description: Dual-Branding Header (Wirtschaftsforensik + Fraud Directory) + WF Glossary/Sources UI
*/

/* ============================================================
   Variables / CI
   ============================================================ */
:root{
  --wf-green: #00AE73;
  --wf-blue:  #003399;
  --wf-petrol:#008BB5;

  --wf-line: #e5e7eb;
  --wf-hair: rgba(0,0,0,.08);
  --wf-border: rgba(0,0,0,.12);

  --wf-accent: var(--wf-petrol);
  --wf-accent-soft: rgba(0,139,181,.12);

  --wf-shadow: 0 10px 26px rgba(0,0,0,.05);

  /* Sticky offsets (tune once, done) */
  --wf-sticky-offset-desktop: 0px;  /* falls Header überlappt: z.B. 90px */
  --wf-sticky-offset-mobile:  0px;  /* falls Mobile Header überlappt: z.B. 70px */
}

/* ============================================================
   Header Branding (Logo + Fraud Directory)
   ============================================================ */
.site-header .site-branding{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:100%;
  flex-wrap:wrap;
  gap:12px;
  padding-bottom:8px;
  margin-bottom:8px;
  border-bottom:1px solid var(--wf-hair);
}

/* Linkes Logo */
.site-header .site-branding .custom-logo-link img{
  max-height:49px !important;
  height:auto;
  width:auto;
  display:block;
}

/* Rechter Fraud-Block */
.site-header .site-branding .wf-fraud-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.site-header .site-branding .wf-fraud-brandimg img{
  max-height:49px !important;
  height:auto;
  width:auto;
  display:block;
}

/* Claim unsichtbar */
.wf-claim-sr{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,1px,1px);
  white-space:nowrap;
  border:0;
}

/* Hairline unter Navigation */
.site-header .main-navigation{
  border-bottom:1px solid var(--wf-hair);
}

/* Desktop: Logo oben, Menü darunter, links */
@media (min-width:960px){
  .site-header .header-main{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
  }

  .site-header .primary-navigation{
    width:100%;
    margin-top:4px;
  }

  .site-header .main-navigation{
    float:none !important;
    text-align:left !important;
  }

  .site-header .main-navigation #primary-menu.menu{
    display:flex !important;
    justify-content:flex-start !important;
    align-items:center;
    flex-wrap:nowrap;
    margin:0 !important;
    padding:0 !important;
    list-style:none;
  }

  .site-header .main-navigation #primary-menu.menu > li{
    float:none !important;
    margin:0 19px 0 0 !important;
  }
  .site-header .main-navigation #primary-menu.menu > li:last-child{
    margin-right:0 !important;
  }

  .site-header .main-navigation #primary-menu.menu > li > a{
    padding:10px 0 !important;
    white-space:nowrap;
    font-size:15px;
  }
}

/* Responsive header */
@media (max-width:980px){
  .site-header .site-branding{
    gap:10px;
    padding-bottom:6px;
    margin-bottom:6px;
  }
  .site-header .site-branding .custom-logo-link img{
    max-height:38px !important;
  }
  .site-header .site-branding .wf-fraud-right{
    margin-left:0;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
  }
  .site-header .site-branding .wf-fraud-brandimg img{
    max-height:34px !important;
  }
}

@media (max-width:640px){
  .site-header .site-branding{
    align-items:flex-start;
  }
}

/* Polylang Sprachumschalter-Dropdown (Desktop Hover) */
@media (min-width: 960px) {
  .site-header .main-navigation .pll-parent-menu-item{
    position: relative;
  }
  .site-header .main-navigation .pll-parent-menu-item > .sub-menu{
    left: 0 !important;
    right: auto !important;
    display: none;
  }
  .site-header .main-navigation .pll-parent-menu-item:hover > .sub-menu,
  .site-header .main-navigation .pll-parent-menu-item:focus-within > .sub-menu{
    display: block;
  }
  .site-header .main-navigation .pll-parent-menu-item > .sub-menu li a{
    text-align: left;
  }
}

/* ============================================================
   Footer cleanup (Poseidon dark widget bar)
   ============================================================ */
.footer-widgets,
.footer-widgets-wrap,
.footer-widgets-background,
.footer-widgets-area,
.footer-wrap,
.site-footer{
  background: #fff !important;
}
.footer-widgets .container,
.footer-widgets-wrap .container{
  background: transparent !important;
}
.footer-widgets:empty,
.footer-widgets-wrap:empty{
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-widgets,
.footer-widgets-wrap{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ============================================================
   WF: Shared boxes (Singles)
   ============================================================ */
.wf-source-box,
.wf-glossary-box{
  border:1px solid var(--wf-hair);
  border-radius:12px;
  padding:16px;
  margin:0 0 16px 0;
  background:#fff;
}

.wf-source-pill{
  display:inline-block;
  border:1px solid var(--wf-hair);
  border-radius:999px;
  padding:4px 10px;
  margin:0 0 10px 0;
  font-size:13px;
}

.wf-source-cite{ margin-top:12px; }
.wf-source-cite-text{
  margin-top:6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  line-height:1.45;
  white-space:pre-wrap;
}

/* ============================================================
   WF GLOSSARY (List) – Dropdown + Search + A–Z (no pills)
   ============================================================ */

/* layout safety */
.wf-glossary,
.wf-glossary-top,
.wf-glossary-groups,
.wf-sticky-az{
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* --- Top bar: sticky, left aligned, one column --- */
.wf-glossary-top{
  position: sticky;
  top: var(--wf-sticky-offset-desktop);
  z-index: 999;

  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.06);

  padding: 12px 0;
  margin: 0 0 16px;

  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start; /* left */
}

@media (max-width: 780px){
  .wf-glossary-top{
    top: var(--wf-sticky-offset-mobile);
  }
}

/* --- Kill pills everywhere (desktop + mobile) --- */
.wf-cat-pills{
  display: none !important;
}

/* --- Dropdown always visible --- */
.wf-cat-dropdown{
  display: flex !important;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.wf-filter-label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  opacity:.9;
}

.wf-cat-select{
  min-width: 260px;
  max-width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 0 12px;
  background:#fff;
}

.wf-filter-reset{
  display:inline-flex;
  align-items:center;
  height:38px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.10);
  text-decoration:none;
  font-weight:700;
  color: var(--wf-blue);
  background:#fff;
}

/* --- Search left-aligned --- */
.wf-glossary-search{
  width: min(520px, 100%);
}

.wf-glossary-search-input{
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
  padding: 0 12px;
  font-size: 14px;
}

.wf-glossary-search-input:focus{
  outline: none;
  border-color: rgba(0,139,181,.55);
  box-shadow: 0 0 0 4px rgba(0,139,181,.12);
}

/* --- A–Z bar (width like entries) --- */
.wf-sticky-az{
  position: static;
  width: 100%;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 16px;
}

.wf-glossary-az{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.wf-az-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  line-height:1;
  background:#fff;

  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.wf-az-btn.is-empty{
  opacity:.30;
  pointer-events:none;
  background: transparent;
}

.wf-az-btn.is-used{
  opacity:1;
  color: var(--wf-blue);
  border-color: rgba(0,51,153,.18);
  background: rgba(0,139,181,.08);
  pointer-events:auto;
}

.wf-az-btn.is-used:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  border-color: rgba(0,51,153,.28);
  background: rgba(0,139,181,.14);
}

/* Anchor jump should not hide under sticky top row */
.wf-letter-group{
  scroll-margin-top: calc(var(--wf-sticky-offset-desktop) + 90px);
}
@media (max-width: 780px){
  .wf-letter-group{
    scroll-margin-top: calc(var(--wf-sticky-offset-mobile) + 90px);
  }
}

/* Cards */
.wf-letter-heading{
  margin: 18px 0 10px;
  font-size: 22px;
  font-weight: 800;
}

.wf-glossary-card{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 16px 16px 14px;
  background:#fff;
  margin: 0 0 14px;
  box-shadow: var(--wf-shadow);
}

.wf-glossary-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}

.wf-glossary-card-title{
  margin:0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.wf-glossary-card-title a{
  color: var(--wf-blue);
  text-decoration:none;
}

.wf-glossary-card-title a:hover{
  text-decoration: underline;
}

.wf-glossary-block{
  margin-top: .55rem;
}

.wf-glossary-block-label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  opacity: .65;
  margin-bottom: .2rem;
}

.wf-glossary-block-text{
  font-size: 14px;
  line-height: 1.55;
}

.wf-sources-list{
  margin: .25rem 0 0 1.1rem;
}

.wf-sources-item{
  margin: .15rem 0;
}

/* ============================================================
   WF GLOSSARY (Single) – aligned with list design
   ============================================================ */

/* Make single page look like the list cards */
.single-glossar .entry-header{
  margin-bottom: 10px !important;
}
.single-glossar .entry-content{
  margin-top: 0 !important;
}

/* Title */
.single-glossar h1.entry-title,
.single-glossar .entry-header .entry-title{
  font-size: clamp(26px, 3vw, 40px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em;
  margin: 10px 0 14px !important;
}

/* Top navigation row */
.wf-single-topnav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  margin: 6px 0 12px;
}

/* Pills (same visual language as list) */
.wf-pill--ghost{
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color: var(--wf-blue);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  line-height:1;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.wf-pill--ghost:hover{
  background: rgba(0,139,181,.10);
  border-color: rgba(0,139,181,.30);
}

/* Subtle active state if you add class is-active in PHP later */
.wf-pill--ghost.is-active{
  background: rgba(0,139,181,.14);
  border-color: rgba(0,139,181,.45);
}

/* Right side language switch grouping */
.wf-langswitch{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* Single content cards */
.wf-glossary-single-card{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  background:#fff;
  padding: 16px 16px 14px;
  margin: 0 0 14px;
  box-shadow: var(--wf-shadow);
}

.wf-glossary-single-card h2{
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  opacity: .65;
  text-transform: uppercase;
}

.wf-glossary-single-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

/* Sources list on single */
.wf-glossary-single-sources ul{
  margin: 8px 0 0 18px;
}
.wf-glossary-single-sources li{
  margin: 4px 0;
}

/* Optional citation style */
.wf-citation-block{
  border-left: 4px solid rgba(0,139,181,.6);
  background: rgba(0,139,181,.06);
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 12px;
}
.wf-citation-block h3{
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(0,0,0,.6);
}
.wf-citation-block ol{ margin: 0 0 0 18px; }
.wf-citation-block li{ margin: 6px 0; }
.wf-citation-meta{
  display: block;
  color: rgba(0,0,0,.65);
  font-size: 13px;
  margin-top: 2px;
}

/* ============================================================
   WF SOURCES DIRECTORY (List) – consolidated
   ============================================================ */
.wf-sources{ margin: 0 0 40px; }

.wf-sources-top{
  display:flex;
  justify-content:flex-end;
  gap: 12px;
  margin: 10px 0 18px;
}
@media (max-width: 640px){
  .wf-sources-top{ justify-content:flex-start; }
}

.wf-sources-search input[type="search"]{
  width: min(520px, 100%);
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}
.wf-sources-search input[type="search"]:focus{
  outline: none;
  border-color: rgba(0,139,181,.55);
  box-shadow: 0 0 0 3px rgba(0,139,181,.15);
}

.wf-source-card{
  position: relative;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 16px 16px 14px 18px;
  margin: 0 0 16px;
  box-shadow: var(--wf-shadow);
}
.wf-source-card:before{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:4px;
  border-radius: 4px;
  background: var(--wf-blue);
}

.wf-source-meta-top{
  display:flex;
  align-items:center;
  gap:10px;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 6px;
}
.wf-source-meta-top .wf-source-id{
  font-weight: 600;
  color: #4b5563;
}
.wf-source-meta-top a.wf-source-edit{
  text-decoration: none;
  color: #6b7280;
}
.wf-source-meta-top a.wf-source-edit:hover{
  color: var(--wf-blue);
}

.wf-source-title{
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}
.wf-source-title a{
  color: var(--wf-blue);
  text-decoration: none;
}
.wf-source-title a:hover{
  text-decoration: underline;
}

.wf-source-kv{
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.wf-source-kv .k{
  font-weight: 700;
  color: #111827;
}
.wf-source-kv .v{ color: #111827; }
.wf-source-kv .v-muted{ color: #6b7280; }

.wf-source-link a{
  word-break: break-word;
  color: var(--wf-petrol);
  text-decoration: none;
}
.wf-source-link a:hover{
  text-decoration: underline;
}

.wf-source-citation{
  margin-top: 10px;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #111827;
}

.wf-sources-empty{
  padding: 14px 0;
  color: #6b7280;
}

/* Auto-linked glossary terms inside articles */
.wf-glossary-link{
  color: var(--wf-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.wf-glossary-link:hover{
  color: var(--wf-petrol);
}

/* ============================================================
   WF ARTICLES HUB (Template: WF Articles Hub)
   Put at END of child theme style.css
   ============================================================ */

.wf-hub{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

/* HERO */
.wf-hub-hero{
  margin: 22px 0 18px;
}
.wf-hub-title{
  font-size: clamp(30px, 4.0vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.wf-hub-subtitle{
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 10px;
  color: rgba(0,0,0,.78);
}
.wf-hub-meta{
  font-size: 14px;
  margin: 0;
  color: rgba(0,0,0,.60);
}

/* Shared card */
.wf-card{
  background:#fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  box-shadow: var(--wf-shadow);
  padding: 18px 18px 16px;
}
.wf-card-title{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}
.wf-card-teaser{
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(0,0,0,.75);
}

.wf-card-meta{
  margin-bottom: 10px;
}

/* Badge */
.wf-badge{
  display:inline-flex;
  align-items:center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,139,181,.08);
  color: var(--wf-blue);
}

/* Links */
.wf-link{
  color: var(--wf-blue);
  text-decoration: none;
}
.wf-link:hover{
  text-decoration: underline;
}

/* Buttons */
.wf-card-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.wf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,.10);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.wf-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.wf-btn:active{
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
.wf-btn-primary{
  background: var(--wf-blue);
  border-color: var(--wf-blue);
  color:#fff;
}
.wf-btn-primary:hover{
  background: #002b80;
  border-color: #002b80;
}
.wf-btn-ghost{
  background:#fff;
  border-color: rgba(0,0,0,.12);
  color: var(--wf-blue);
}
.wf-btn-ghost:hover{
  background: rgba(0,139,181,.10);
  border-color: rgba(0,139,181,.30);
}

/* Sections spacing */
.wf-hub-featured{ margin: 16px 0 26px; }

.wf-section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 14px;
  margin: 26px 0 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.wf-section-title{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}
.wf-section-lead{
  margin: 0;
  font-size: 14px;
  color: rgba(0,0,0,.65);
}

/* CLUSTERS grid */
.wf-cluster-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 980px){
  .wf-cluster-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .wf-cluster-grid{ grid-template-columns: 1fr; }
}

/* Cluster card */
.wf-cluster{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background:#fff;
  box-shadow: var(--wf-shadow);
  padding: 16px 16px 14px;
  display:flex;
  flex-direction:column;
  min-height: 100%;
}

.wf-cluster-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}
.wf-cluster-lead{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0,0,0,.70);
}

/* Lists inside clusters + latest */
.wf-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.wf-list-item{
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 10px;
}
.wf-list-item:first-child{
  border-top: none;
  padding-top: 0;
}
.wf-list-title{
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}
.wf-list-teaser{
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0,0,0,.72);
}
.wf-list-meta{
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

.wf-empty{
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(0,0,0,.55);
}

/* Cluster footer link */
.wf-cluster-footer{
  margin-top: auto;
  padding-top: 12px;
}
.wf-link-more{
  font-weight: 800;
  font-size: 13px;
  color: var(--wf-petrol);
}

/* LATEST section: compact list card */
.wf-hub-latest .wf-list-compact{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background:#fff;
  box-shadow: var(--wf-shadow);
  padding: 14px 16px;
}

.wf-section-footer{
  margin-top: 10px;
}

/* CTA */
.wf-hub-cta{
  margin-top: 28px;
}
.wf-cta-card{
  border-left: 4px solid var(--wf-blue);
}

/* ============================================================
   WF CORNERSTONE PAGE (page-cornerstone.php)
   Put this at END of style.css
   ============================================================ */

.wf-cornerstone{
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.wf-cornerstone-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
  margin: 10px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.wf-cornerstone-title{
  margin:0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 900;
}

/* Sprachumschalter (DE/EN) */
.wf-lang-switch{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  padding: 8px 12px;
  background:#fff;
  box-shadow: var(--wf-shadow);
  font-weight: 800;
  font-size: 13px;
}

.wf-lang-switch a{
  text-decoration:none;
  color: var(--wf-blue);
  opacity: .75;
}

.wf-lang-switch a:hover{
  opacity: 1;
  text-decoration: underline;
}

.wf-lang-switch .is-active{
  color: #111827;
}

/* Content Typografie */
.wf-cornerstone-content{
  font-size: 16px;
  line-height: 1.75;
}

.wf-cornerstone-content h2{
  margin: 26px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.wf-cornerstone-content h3{
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.wf-cornerstone-content p{
  margin: 0 0 14px;
}

.wf-cornerstone-content ul,
.wf-cornerstone-content ol{
  margin: 0 0 14px 18px;
}

.wf-cornerstone-content li{
  margin: 6px 0;
}

/* optional: Inline "Box" Look für wichtige Abschnitte */
.wf-cornerstone-content .wf-box{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 16px 18px;
  background:#fff;
  box-shadow: var(--wf-shadow);
  margin: 16px 0;
}

/* Footer Navigation */
.wf-cornerstone-footer{
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: 14px;
  opacity: .9;
}

.wf-cornerstone-footer .wf-link{
  text-decoration:none;
  color: var(--wf-blue);
  font-weight: 800;
}

.wf-cornerstone-footer .wf-link:hover{
  text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 640px){
  .wf-cornerstone-head{
    align-items:flex-start;
  }
  .wf-lang-switch{
    padding: 7px 11px;
  }
}

/* ------------------------------------------------------------
   WF Article Top Navigation (Back + Language switch)
------------------------------------------------------------ */
.wf-article-topnav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 6px 0 14px;
  flex-wrap:wrap;
}

.wf-article-backlink{
  text-decoration:none;
  color: var(--wf-blue);
  font-weight: 700;
  font-size: 14px;
}
.wf-article-backlink:hover{ text-decoration: underline; }

.wf-lang-switch{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  font-size: 12px;
}

.wf-lang-switch a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  text-decoration:none;
  color: var(--wf-blue);
  background:#fff;
}

.wf-lang-switch a:hover{
  border-color: rgba(0,51,153,.28);
  background: rgba(0,139,181,.08);
}

.wf-lang-switch a.is-active{
  background: rgba(0,139,181,.14);
  border-color: rgba(0,139,181,.45);
}

/* === Articles Hub: Topic badge in cluster cards === */
.wf-cluster-badge{
  margin: 0 0 10px 0;
}

.wf-badge.wf-badge-topic{
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,139,181,.08);
  color: var(--wf-blue);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

/* Technical WP title (above article) */
.wf-article-meta-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa0a6;
  margin-bottom: 6px;
}

/* Meta line (date / author / category) */
.wf-article-meta {
  font-size: 13px;
  color: #9aa0a6;
  margin-bottom: 24px;
}

/* Single topnav layout */
.wf-single-topnav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 10px 0 18px;
  flex-wrap:wrap;
}
.wf-single-topnav-right{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* Technischer WP-Titel oberhalb Meta */
.wf-wp-tech-title{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .55;
  margin: 0 0 6px;
}

/* --- WF About Tabs --- */
.wf-about { max-width: 1100px; margin: 0 auto; padding: 16px 18px; }

.wf-abouttabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px 0;
  padding: 0;
}

.wf-abouttabs__nav, .wf-abouttabs__langs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wf-abouttabs__item { margin: 0; padding: 0; }

.wf-abouttabs__link, .wf-abouttabs__lang a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  font-size: 13px;
}

.wf-abouttabs__link:hover, .wf-abouttabs__lang a:hover {
  border-color: rgba(0,0,0,.22);
}

.wf-abouttabs__link.is-active,
.wf-abouttabs__lang.current-lang a {
  font-weight: 600;
  border-color: rgba(0,0,0,.35);
}

.wf-abouttabs__sep { opacity: .35; padding: 0 2px; }

/* --- Header meta like article template --- */
.wf-about__kicker { font-size: 12px; opacity: .75; margin-bottom: 6px; }
.wf-about__title { margin: 0 0 18px 0; }

/* --- Layout --- */
.wf-about__layout.no-sidebar .wf-about__main { max-width: 820px; }
.wf-about__layout.has-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
@media (max-width: 900px) { .wf-about__layout.has-sidebar { grid-template-columns: 1fr; } }

.wf-content--legal { font-size: 15px; line-height: 1.65; }

/* --- WF About Cards --- */
.wf-aboutcards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 820px){
  .wf-aboutcards{ grid-template-columns: 1fr; }
}

.wf-aboutcard{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.wf-aboutcard__link{
  display: block;
  padding: 14px 14px 12px;
  text-decoration: none;
}

.wf-aboutcard__title{
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1.25;
}

.wf-aboutcard__excerpt{
  margin: 0 0 10px 0;
  opacity: .85;
  font-size: 13.5px;
  line-height: 1.45;
}

.wf-aboutcard__cta{
  display: inline-block;
  font-size: 13px;
  opacity: .9;
}

/* --- About/Legal templates --- */

.wf-about-tabs { margin: 0 0 18px; }
.wf-about-tabs__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.wf-about-tab,
.wf-about-lang__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  font-size: 13px;
}

.wf-about-tab.is-active,
.wf-about-lang__link.is-active {
  font-weight: 700;
  border-color: rgba(0,0,0,.28);
}

.wf-about-tabs__sep {
  width: 1px;
  height: 18px;
  background: rgba(0,0,0,.18);
  margin: 0 4px;
}

.wf-about-meta { margin: 0 0 14px; font-size: 13px; opacity: .85; }
.wf-about-meta__line { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-about-meta__sep { opacity: .6; }

.wf-about-title { margin: 0 0 14px; }

.wf-about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.wf-about-card {
  display: block;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  text-decoration: none;
}

.wf-about-card__title { margin: 0 0 8px; font-size: 18px; }
.wf-about-card__excerpt { margin: 0 0 10px; opacity: .85; }
.wf-about-card__cta { font-weight: 600; }

/* ------------------------------------------------------------------
   WF About/Legal – Tabs + Meta + Cards
   Works with: template-parts/about/about-tabs.php + about-meta.php
------------------------------------------------------------------- */

/* Meta line (date/author) like article template */
.wf-aboutmeta{
  font-size: 14px;
  line-height: 1.4;
  color: #6b7280;
  margin: 10px 0 18px;
}
.wf-aboutmeta__sep{ margin: 0 6px; opacity: .6; }
.wf-aboutmeta a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(107,114,128,.35);
}
.wf-aboutmeta a:hover{
  border-bottom-color: rgba(107,114,128,.8);
}

/* Tabs bar wrapper */
.wf-abouttabs{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 6px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(0,0,0,.06);
}

/* Left side: nav pills */
.wf-abouttabs__left{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.wf-abouttabs__nav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wf-abouttabs__nav li{ margin: 0; padding: 0; }

.wf-abouttabs__nav a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  color: #374151;              /* weniger blau */
  transition: all .12s ease;
}

.wf-abouttabs__nav a:hover{
  border-color: rgba(0,0,0,.18);
  transform: translateY(-1px);
}

/* Active tab (current page) */
.wf-abouttabs__nav a.is-active{
  font-weight: 600;
  color: #111827;
  border-color: rgba(0,0,0,.22);
  background: rgba(0,0,0,.03);
}

/* Right side: DE/EN switch */
.wf-abouttabs__right{
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.wf-abouttabs__divider{
  opacity: .35;
}

.wf-abouttabs__lang a{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  color: #374151;
}

.wf-abouttabs__lang a:hover{
  border-color: rgba(0,0,0,.18);
}

.wf-abouttabs__lang a.is-active{
  font-weight: 700;
  color: #111827;
  border-color: rgba(0,0,0,.22);
  background: rgba(0,0,0,.03);
}

/* ------------------------------------------------------------------
   About index cards (overview page that lists child pages)
   Target generic WP blocks + typical theme wrappers
------------------------------------------------------------------- */

/* Reduce "all links look like primary action" */
.entry-content a{
  text-decoration-thickness: .08em;
  text-underline-offset: 2px;
}

/* If your overview uses a custom wrapper, this keeps it calm */
.wf-about__layout{
  margin-top: 10px;
}

/* Card look for the overview blocks (safe defaults) */
.wf-about-cards,
.wf-about__cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

/* If your cards are output as articles/divs with a known class */
.wf-about-card,
.wf-about__card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

/* Make card titles not scream-blue */
.wf-about-card h2,
.wf-about-card h3,
.wf-about__card h2,
.wf-about__card h3{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.wf-about-card a,
.wf-about__card a{
  color: #1f2937;
  text-decoration: none;
}
.wf-about-card a:hover,
.wf-about__card a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile responsiveness */
@media (max-width: 900px){
  .wf-about-cards,
  .wf-about__cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .wf-abouttabs{
    align-items: flex-start;
    flex-direction: column;
  }
  .wf-abouttabs__right{ width: 100%; justify-content: flex-start; }
  .wf-about-cards,
  .wf-about__cards{ grid-template-columns: 1fr; }
}

/* ------------------------------
EVENT SINGLE LAYOUT
------------------------------ */

.wf-event-single {
  max-width: 760px;
}

/* Titel stärker gewichten */
.wf-event-header .entry-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  line-height: 1.3;
}

/* ------------------------------
EVENT META CARD
------------------------------ */

.wf-event-meta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  background: #f3f4f6;
  border-radius: 10px;

  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

/* linke Seite der Karte */

.wf-event-meta-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wf-event-when {
  font-weight: 600;
  font-size: 1.05rem;
}

.wf-event-venue {
  color: #444;
}

.wf-event-cpe {
  font-size: 0.9rem;
  color: #555;
}

/* ------------------------------
CTA
------------------------------ */

.wf-event-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.wf-event-cta .wf-btn {
  padding: 0.45rem 0.9rem;
}

/* ------------------------------
ORGANISER
------------------------------ */

.wf-event-organizer {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
}

.wf-event-organizer a {
  text-decoration: underline;
}

/* ------------------------------
EXCERPT
------------------------------ */

.wf-event-excerpt {
  margin: 0.5rem 0 1rem;
  color: #333;
}

/* ------------------------------
BODY
------------------------------ */

.wf-event-body {
  margin-top: 1rem;
}

/* ------------------------------
RESPONSIVE
------------------------------ */

@media (max-width: 700px) {

  .wf-event-meta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .wf-event-cta {
    margin-top: 0.5rem;
  }

}

.wf-article-citation-box {
  margin-top: 2rem;
}

.wf-article-citation-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
}

.wf-copy-article-citation,
.wf-copy-citation {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #4a67a1;
  background: #ffffff;
  color: #4a67a1 !important;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  display: inline-block;
}

.wf-copy-article-citation:hover,
.wf-copy-citation:hover {
  background: #f4f7fc;
  color: #2f4f8f !important;
}

.wf-copy-article-citation:visited,
.wf-copy-citation:visited,
.wf-copy-article-citation:active,
.wf-copy-citation:active,
.wf-copy-article-citation:focus,
.wf-copy-citation:focus {
  color: #4a67a1 !important;
}

.wf-author-header {
  margin-bottom: 2rem;
}

.wf-author-name {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.wf-author-position {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.4rem;
}

.wf-author-focus {
  color: #555;
  margin-bottom: 1rem;
}

.wf-author-bio {
  background: #f7f7f7;
  padding: 1rem;
  border-radius: 6px;
}

.wf-article-card {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.wf-article-title {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.wf-article-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.wf-read-more {
  font-size: 0.9rem;
  color: #2a7ae2;
}

.wf-source-note {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  color: #444;
}
