/*
Theme Name: neurodivergent-toschke-de Forum Edition
Theme URI: https://neurodivergent.toschke.de
Description: Redesign-Theme fuer neurodivergent.toschke.de
Author: Toschke e.V.
Version: 1.0.3
Text Domain: neurodivergent-toschke-de
*/

:root {
  --ndn-bg: #f9fbfc;
  --ndn-bg-alt: #f3f7fa;
  --ndn-surface: #ffffff;
  --ndn-text: #102234;
  --ndn-muted: #4d6273;
  --ndn-primary: #0d5e94;
  --ndn-primary-strong: #083d61;
  --ndn-secondary: #0a7f55;
  --ndn-highlight: #f2a23a;
  --ndn-border: #dbe5ee;
  --ndn-radius: 18px;
  --ndn-shadow: 0 10px 24px rgba(16, 42, 66, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ndn-text);
  background:
    radial-gradient(circle at 6% -6%, rgba(13, 94, 148, 0.09), transparent 38%),
    radial-gradient(circle at 96% 8%, rgba(10, 127, 85, 0.07), transparent 32%),
    radial-gradient(circle at 82% 88%, rgba(242, 162, 58, 0.06), transparent 28%),
    linear-gradient(180deg, var(--ndn-bg) 0%, #fbfbff 60%, var(--ndn-bg-alt) 100%);
  font-family: "Plus Jakarta Sans", "Noto Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title {
  margin-top: 0;
  line-height: 1.25;
  font-family: "Outfit", "Segoe UI", sans-serif;
}

a {
  color: var(--ndn-primary);
}

a:hover,
a:focus {
  color: var(--ndn-primary-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ndn-border);
}

.tos-shell,
.site-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.inside-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 0 10px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-title {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
}

.site-title a {
  text-decoration: none;
  color: var(--ndn-text);
}

.site-title a:hover,
.site-title a:focus {
  color: var(--ndn-primary);
}

.site-description {
  margin: 4px 0 0;
  color: var(--ndn-muted);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
}

.header-legal-navigation {
  border-bottom: 1px solid var(--ndn-border);
  padding: 5px 0;
}

.header-legal-inner .header-legal-menu,
.footer-nav-inner .footer-menu,
.main-navigation .main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.header-legal-inner .header-legal-menu {
  justify-content: flex-end;
}

.header-legal-inner .header-legal-menu li a,
.footer-nav-inner .footer-menu li a {
  text-decoration: none;
  color: var(--ndn-muted);
  font-size: 0.84rem;
  padding: 4px 9px;
  border-radius: 8px;
}

.header-legal-inner .header-legal-menu li a:hover,
.header-legal-inner .header-legal-menu li a:focus,
.footer-nav-inner .footer-menu li a:hover,
.footer-nav-inner .footer-menu li a:focus {
  background: rgba(15, 76, 129, 0.1);
  color: var(--ndn-primary);
}

.site-logo img,
.site-logo .custom-logo {
  display: block;
  max-height: 150px;
  max-width: min(100%, 520px);
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.main-navigation {
  border-top: 1px solid var(--ndn-border);
  padding: 8px 0 12px;
}

.main-navigation .main-nav {
  position: relative;
}

.main-navigation .main-nav > ul {
  position: relative;
}

.main-navigation .main-nav ul li a {
  display: inline-block;
  text-decoration: none;
  color: var(--ndn-text);
  font-weight: 650;
  font-size: 0.96rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  background: rgba(13, 94, 148, 0.1);
  color: var(--ndn-primary-strong);
}

.main-navigation .main-nav ul ul {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  min-width: 220px;
  z-index: 1001;
  padding: 8px;
  border: 1px solid var(--ndn-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(14, 42, 71, 0.14);
}

.main-navigation .main-nav ul li {
  position: relative;
}

.main-navigation .main-nav ul li:hover > ul,
.main-navigation .main-nav ul li:focus-within > ul {
  display: block;
}

.main-navigation .main-nav ul ul li {
  width: 100%;
}

.main-navigation .main-nav ul ul li a {
  width: 100%;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 600;
}

.site-content {
  padding: 30px 0 48px;
}

.site-main {
  display: grid;
  gap: 18px;
}

.inside-article {
  background: var(--ndn-surface);
  border: 1px solid var(--ndn-border);
  border-radius: var(--ndn-radius);
  box-shadow: var(--ndn-shadow);
  padding: clamp(20px, 3vw, 36px);
}

.entry-meta,
.tos-news-date {
  color: var(--ndn-muted);
  font-size: 0.92rem;
}

.entry-content p,
.entry-content li {
  max-width: 72ch;
}

.tos-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 650;
  border: 1px solid transparent;
}

.tos-btn--primary {
  background: var(--ndn-primary);
  color: #ffffff;
}

.tos-btn--primary:hover,
.tos-btn--primary:focus {
  color: #ffffff;
  background: var(--ndn-primary-strong);
}

.tos-btn--ghost {
  background: #ffffff;
  border-color: var(--ndn-border);
  color: var(--ndn-primary);
}

.ndn-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 94, 148, 0.92), rgba(10, 127, 85, 0.88));
  color: #ffffff;
  border-radius: clamp(18px, 2vw, 26px);
  box-shadow: var(--ndn-shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(22px, 4vw, 48px);
}

.ndn-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(242, 162, 58, 0.14);
}

.ndn-hero__badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ndn-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.ndn-hero p {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.ndn-hero__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ndn-hero__visual {
  position: relative;
  z-index: 1;
  align-self: center;
}

.ndn-hero__visual img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.entry-content img,
.wp-block-image img,
.wp-block-post-featured-image img,
.post-thumbnail img,
.attachment-post-thumbnail {
  width: auto;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}

.ndn-orb {
  width: min(360px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3) 30%, transparent 50%),
    radial-gradient(circle at 65% 62%, rgba(242, 162, 58, 0.76), transparent 52%),
    radial-gradient(circle at 45% 52%, rgba(10, 127, 85, 0.8), rgba(13, 94, 148, 0.34));
}

.ndn-section {
  background: var(--ndn-surface);
  border: 1px solid var(--ndn-border);
  border-radius: var(--ndn-radius);
  box-shadow: var(--ndn-shadow);
  padding: clamp(20px, 3vw, 34px);
}

.ndn-section__head {
  margin-bottom: 14px;
}

.ndn-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ndn-secondary);
}

.ndn-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ndn-card {
  border: 1px solid var(--ndn-border);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
}

.ndn-card h3 {
  margin-bottom: 8px;
}

.ndn-news-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ndn-page-relaunch {
  display: grid;
  gap: 16px;
}

.ndn-page-relaunch__hero {
  border-radius: var(--ndn-radius);
  border: 1px solid var(--ndn-border);
  box-shadow: var(--ndn-shadow);
  padding: clamp(20px, 3vw, 34px);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(13, 94, 148, 0.92), rgba(10, 127, 85, 0.88));
}

.ndn-page-relaunch__hero p {
  margin: 10px 0 0;
  max-width: 68ch;
}

.ndn-page-relaunch__content {
  background: var(--ndn-surface);
  border: 1px solid var(--ndn-border);
  border-radius: var(--ndn-radius);
  box-shadow: var(--ndn-shadow);
  padding: clamp(20px, 3vw, 36px);
}

.ndn-page-relaunch__quicklinks {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ndn-page-relaunch__quicklinks a {
  text-decoration: none;
  color: var(--ndn-text);
  border: 1px solid var(--ndn-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  font-weight: 650;
}

.ndn-page-relaunch__quicklinks a:hover,
.ndn-page-relaunch__quicklinks a:focus {
  color: var(--ndn-primary-strong);
  border-color: rgba(13, 94, 148, 0.35);
  background: rgba(13, 94, 148, 0.07);
}

.ndn-forum-shell {
  overflow: hidden;
}

#bbpress-forums {
  font-size: 0.98rem;
  color: var(--ndn-text);
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  border: 0;
  color: #ffffff;
  background: var(--ndn-primary);
}

#bbpress-forums li.bbp-header a,
#bbpress-forums li.bbp-footer a {
  color: #ffffff;
}

#bbpress-forums .bbp-forums-list li {
  margin-bottom: 4px;
}

#bbpress-forums .bbp-forum-info .bbp-forum-title,
#bbpress-forums .bbp-topic-title .bbp-topic-permalink {
  color: var(--ndn-primary);
  font-weight: 700;
  text-decoration: none;
}

#bbpress-forums .bbp-forum-info .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-title .bbp-topic-permalink:hover {
  color: var(--ndn-primary-strong);
}

#bbpress-forums .bbp-template-notice {
  border: 1px solid var(--ndn-border);
  border-radius: 12px;
  background: #f7fbff;
}

#bbpress-forums fieldset.bbp-form {
  border: 1px solid var(--ndn-border);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums input[type="url"],
#bbpress-forums textarea,
#bbpress-forums select {
  border: 1px solid var(--ndn-border);
  border-radius: 10px;
  color: var(--ndn-text);
  padding: 8px 10px;
}

#bbpress-forums button,
#bbpress-forums input[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color: #ffffff;
  background: var(--ndn-primary);
}

.tos-news-item {
  border: 1px solid var(--ndn-border);
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
}

.tos-news-item h3 {
  margin-bottom: 8px;
}

.site-footer,
.site-info {
  background: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--ndn-border);
  margin-top: 26px;
}

.footer-navigation {
  border-bottom: 1px solid var(--ndn-border);
  padding: 14px 0;
}

.footer-nav-inner .footer-menu {
  justify-content: flex-end;
}

.site-info {
  text-align: center;
  padding: 14px 0 20px;
  color: var(--ndn-muted);
}

.tos-reveal-ready .tos-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.tos-reveal-ready .tos-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .ndn-hero {
    grid-template-columns: 1fr;
  }

  .ndn-hero__visual {
    justify-self: center;
  }

  .ndn-card-grid,
  .ndn-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-content {
    padding-top: 20px;
  }

  .site-main,
  .tos-shell {
    width: min(1120px, calc(100% - 1.2rem));
  }

  .header-legal-inner .header-legal-menu,
  .main-navigation .main-nav ul,
  .footer-nav-inner .footer-menu {
    justify-content: flex-start;
  }

  .site-branding {
    align-items: flex-start;
    gap: 10px;
  }

  .site-logo img,
  .site-logo .custom-logo {
    max-height: 110px;
    max-width: min(100%, 380px);
  }

  .ndn-page-relaunch__quicklinks {
    grid-template-columns: 1fr;
  }

  .ndn-card-grid,
  .ndn-news-grid {
    grid-template-columns: 1fr;
  }
}
