/**
 * WFO – Modernes UI (alle Seiten)
 */

/* ─── Basis & Hintergrund ─── */
body {
  background-color: #eef3f8;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(26, 108, 181, 0.12), transparent),
    linear-gradient(180deg, #eef3f8 0%, #f8fafc 320px);
}

/* ─── Navigation (modern, übersichtlich) ─── */
.wfo-header {
  background: rgba(255, 255, 255, calc(0.92 + 0.08 * var(--scroll-p)));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wfo-header .wfo-nav > ul,
.wfo-header .wfo-nav ul.menu {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.25rem;
  margin: 0;
  list-style: none;
  background: var(--wfo-gray-50);
  border-radius: 999px;
  border: 1px solid var(--wfo-gray-100);
}

.wfo-nav a {
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: var(--wfo-gray-600);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.wfo-nav a:hover {
  background: var(--wfo-white);
  color: var(--wfo-blue);
  box-shadow: 0 2px 8px rgba(13, 61, 107, 0.08);
}

.wfo-nav .current-menu-item > a,
.wfo-nav .current_page_item > a {
  background: linear-gradient(135deg, var(--wfo-blue), var(--wfo-blue-dark));
  color: var(--wfo-white);
  box-shadow: 0 4px 12px rgba(26, 108, 181, 0.35);
}

.wfo-nav .menu-item a[href*="/archiv"] {
  opacity: 0.85;
}

.wfo-nav-toggle {
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(26, 108, 181, 0.25);
}

/* ─── Hero Startseite ─── */
.wfo-hero {
  padding: 4.5rem 1.5rem 5rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(13, 61, 107, 0.92) 0%, rgba(26, 108, 181, 0.88) 45%, rgba(45, 122, 56, 0.9) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wfo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.15), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(74, 159, 212, 0.2), transparent 40%);
  pointer-events: none;
}

.wfo-hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.wfo-hero p {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 38rem;
}

.wfo-hero__badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.wfo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ─── Buttons ─── */
.wfo-btn {
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.wfo-btn--primary {
  background: var(--wfo-white);
  color: var(--wfo-blue-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.wfo-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.wfo-btn--secondary {
  margin-left: 0;
  border-width: 2px;
  backdrop-filter: blur(4px);
}

.wfo-btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--wfo-blue);
  border: 2px solid var(--wfo-blue);
  font-family: var(--wfo-font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}

.wfo-btn--outline:hover {
  background: var(--wfo-blue);
  color: var(--wfo-white);
  transform: translateY(-2px);
}

/* ─── Seiten-Layout (alle Unterseiten) ─── */
.wfo-page-hero {
  background: linear-gradient(135deg, var(--wfo-blue-dark) 0%, var(--wfo-blue) 100%);
  color: var(--wfo-white);
  padding: 2.5rem 1.25rem 3rem;
  margin-bottom: 0;
}

.wfo-page-hero__inner {
  max-width: var(--wfo-max-width);
  margin: 0 auto;
}

.wfo-page-hero__kicker {
  font-family: var(--wfo-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 0.5rem;
}

.wfo-page-hero h1 {
  color: var(--wfo-white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}

.wfo-main {
  background: var(--wfo-white);
  border-radius: 20px 20px 0 0;
  margin-top: -1.25rem;
  padding: 2.5rem 1.5rem 4rem;
  box-shadow: 0 -8px 40px rgba(13, 61, 107, 0.06);
  position: relative;
  z-index: 1;
}

body.home .wfo-main {
  margin-top: 0;
  border-radius: 20px 20px 0 0;
  margin-top: -1.5rem;
}

.wfo-page-header {
  display: none;
}

/* ─── Typografie im Inhalt ─── */
.wfo-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--wfo-gray-800);
}

.wfo-content > h2:first-child,
.wfo-content .wfo-section > h2:first-child {
  margin-top: 0;
}

.wfo-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wfo-gray-100);
  position: relative;
}

.wfo-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--wfo-green), var(--wfo-blue));
  border-radius: 2px;
}

.wfo-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wfo-blue);
  margin: 1.5rem 0 0.5rem;
}

.wfo-lead,
.wfo-content > p:first-of-type.wfo-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--wfo-blue-dark);
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(26, 108, 181, 0.06), rgba(61, 158, 79, 0.06));
  border-radius: 12px;
  border-left: 4px solid var(--wfo-blue);
}

.wfo-content ul:not(.wfo-archive-list) {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.wfo-content ul:not(.wfo-archive-list) li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--wfo-gray-100);
}

.wfo-content ul:not(.wfo-archive-list) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wfo-green), var(--wfo-blue));
}

/* ─── Sektionen & Karten ─── */
.wfo-section {
  margin: 2.5rem 0;
  padding: 0;
}

.wfo-section--alt {
  background: linear-gradient(180deg, var(--wfo-gray-50) 0%, var(--wfo-white) 100%);
  margin-left: 0;
  margin-right: 0;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--wfo-gray-100);
  box-shadow: 0 4px 20px rgba(13, 61, 107, 0.04);
}

.wfo-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.wfo-card {
  background: var(--wfo-white);
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--wfo-gray-100);
  border-left: none;
  box-shadow: 0 4px 20px rgba(13, 61, 107, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.wfo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wfo-green), var(--wfo-blue), var(--wfo-gold));
}

.wfo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 61, 107, 0.12);
}

.wfo-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.65rem;
  color: var(--wfo-blue-dark);
  padding-top: 0.25rem;
}

.wfo-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--wfo-gray-600);
}

/* Feature-Kacheln Startseite */
.wfo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.wfo-feature {
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--wfo-white);
  border: 1px solid var(--wfo-gray-100);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wfo-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13, 61, 107, 0.1);
}

.wfo-feature__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(26, 108, 181, 0.12), rgba(61, 158, 79, 0.12));
}

.wfo-feature h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--wfo-blue-dark);
}

.wfo-feature p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--wfo-gray-600);
  line-height: 1.5;
}

/* Highlight-Box */
.wfo-highlight {
  padding: 1.75rem 2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--wfo-blue-dark), var(--wfo-blue));
  color: var(--wfo-white);
  margin: 2rem 0;
  text-align: center;
}

.wfo-highlight h2,
.wfo-highlight h3 {
  color: var(--wfo-white);
  border: none;
  margin-top: 0;
}

.wfo-highlight h2::after {
  display: none;
}

.wfo-highlight p {
  opacity: 0.95;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.wfo-highlight .wfo-btn--primary {
  margin-top: 0.5rem;
}

.wfo-highlight .wfo-btn--outline {
  color: var(--wfo-white);
  border-color: rgba(255, 255, 255, 0.85);
}

.wfo-highlight .wfo-btn--outline:hover {
  background: var(--wfo-white);
  color: var(--wfo-blue-dark);
}

/* CTA-Zeile */
.wfo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.wfo-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wfo-gray-100), transparent);
  margin: 3rem 0;
  opacity: 1;
}

/* Kontakt */
.wfo-contact-grid {
  gap: 1.25rem;
}

.wfo-contact-card {
  background: var(--wfo-white);
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--wfo-gray-100);
  box-shadow: 0 4px 16px rgba(13, 61, 107, 0.05);
  transition: box-shadow 0.2s;
}

.wfo-contact-card:hover {
  box-shadow: 0 8px 28px rgba(13, 61, 107, 0.1);
}

.wfo-contact-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wfo-green-dark);
  margin-bottom: 0.75rem;
}

/* Archiv */
.wfo-archive-notice {
  background: linear-gradient(135deg, #fffbeb, #fff8e6);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.wfo-archive-notice::before {
  content: "ℹ";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--wfo-gold);
  color: var(--wfo-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.wfo-archive-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.wfo-archive-list a {
  padding: 1.25rem 1.5rem;
  background: var(--wfo-white);
  border: 1px solid var(--wfo-gray-100);
  border-left: 4px solid var(--wfo-blue);
  border-radius: 12px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(13, 61, 107, 0.04);
}

.wfo-archive-list a:hover {
  border-left-color: var(--wfo-green);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(13, 61, 107, 0.1);
}

body.wfo-is-archive-page .wfo-main {
  border-top: none;
}

body.wfo-is-archive-page .wfo-page-hero {
  background: linear-gradient(135deg, #5a4a2a 0%, var(--wfo-gold) 50%, #8b6914 100%);
}

/* Footer */
.wfo-footer {
  background: linear-gradient(180deg, var(--wfo-blue-dark) 0%, #0a2d4d 100%);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 0;
}

.wfo-footer__inner {
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
  gap: 2.5rem;
}

.wfo-footer__brand strong {
  font-family: var(--wfo-font-sans);
  font-size: 1.125rem;
  display: block;
  margin-bottom: 0.5rem;
}

.wfo-footer__brand p {
  opacity: 0.88;
  line-height: 1.6;
  max-width: 28rem;
}

.wfo-footer .wfo-nav > ul {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  flex-direction: column;
  align-items: stretch;
  border-radius: 12px;
  padding: 0.5rem;
}

.wfo-footer .wfo-nav a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.wfo-footer .wfo-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--wfo-white);
}

.wfo-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.wfo-footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hinweis / Meta */
.wfo-meta {
  font-size: 0.9rem;
  color: var(--wfo-gray-600);
  padding: 1rem 1.25rem;
  background: var(--wfo-gray-50);
  border-radius: 10px;
  border: 1px dashed var(--wfo-gray-100);
}

/* Mobile Anpassungen */
@media (max-width: 991px) {
  .wfo-header .wfo-nav > ul,
  .wfo-header .wfo-nav ul.menu {
    border-radius: 12px;
    background: var(--wfo-white);
    flex-direction: column;
    align-items: stretch;
  }

  .wfo-page-hero {
    padding: 2rem 1.25rem 2.5rem;
  }

  .wfo-main {
    padding: 2rem 1.25rem 3rem;
    border-radius: 16px 16px 0 0;
  }

  .wfo-hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .wfo-hero__actions .wfo-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .wfo-footer__inner {
    grid-template-columns: 1fr;
  }

  .wfo-grid {
    grid-template-columns: 1fr;
  }
}
