/* =========================
   RESET & VARIABLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --slc-orange: #ff7313;
  --slc-blue: #272d72;
  --black: #000;
  --white: #fff;
  --header-height: 20px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

h3 {
  font-weight: 600;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

p,
li {
  font-weight: 400;
  line-height: 1.6;
}

/* =========================
        Hidden H1 
SEO without visual change
========================= */

.visually-hidden-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   HEADER
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.navbar {
  height: 80px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

/*  LOGO HOVER SWAP */

.logo-link {
  position: relative;
  display: inline-block;
  height: 36px;
}

/* Base logo sizing */
.brain-logo {
  height: 36px;
  display: block;
  transition: opacity 0.25s ease;
}

/* Stack logos */
.logo-orange {
  position: relative;
  z-index: 2;
}

.logo-blue {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
}

/* Hover swap */
.logo-link:hover .logo-orange {
  opacity: 0;
}

.logo-link:hover .logo-blue {
  opacity: 1;
}

.brain-logo {
  height: 36px;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--slc-blue);
  text-transform: lowercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--slc-orange);
}

/* Push content below fixed header */
main {
  margin-top: 80px;
}

/* =========================
   HERO SECTIONS
========================= */
.hero-orange,
.hero-blue {
  padding: 100px 20px;
  text-align: center;
}

.hero-orange {
  background: var(--slc-orange);
  color: #fff;
}

.hero-blue {
  background: var(--slc-blue);
  color: #fff;
}

.hero-orange img {
  max-width: 260px;
  margin-bottom: 30px;
}

.hero-orange p {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
}

/* HERO LOGO SWAP */

.hero-logo {
  position: relative;
  width: 340px;
  height: 220px;
  max-width: 92%;
  margin: 0 auto 75px;
}

.hero-logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;

  transform: translate(-50%, -50%);
  display: block;

  transition: opacity 0.65s ease-in-out;
}

.hero-logo-default {
  opacity: 1;
}

.hero-logo-hover {
  opacity: 0;
}

.hero-logo:hover .hero-logo-default {
  opacity: 0;
}

.hero-logo:hover .hero-logo-hover {
  opacity: 1;
}

.hero-logo-hover {
  opacity: 0;
  transition-delay: 0.04s;
}

/* HERO TEXT EXTENSION */
.hero-content {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero-intro {
  max-width: 900px;
  margin: 0 auto 10px;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.95;
  text-align: justify;
}
.hero-intro-ressourcen {
  max-width: 900px;
  margin: 0 auto 10px;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.95;
  text-align: justify;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.hero-line-2 {
  display: block;
}

/* HERO QUOTE */

.hero-quote {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}

.hero-quote p {
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-quote cite {
  display: block;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.85;
  font-style: normal;
}

/*Responsive */

.hero-rest-mobile {
  display: none;
}

@media (max-width: 600px) {
  .hero-subtitle .hero-rest-desktop {
    display: none;
  }

  .hero-subtitle .hero-rest-mobile {
    display: inline;
  }
}

@media (max-width: 600px) {
  .hero-quote p {
    font-size: 1.1rem;
  }

  .hero-quote cite {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 280px;
    margin-bottom: 75px;
  }
}

@media (max-width: 600px) {
  .hero-subtitle {
    line-height: 1.4;
  }

  .hero-break {
    display: block;
  }

  .hero-rest {
    display: block;
  }
}

/* =========================
   BUTTON
========================= */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--slc-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.btn-team-section {
  display: inline-block;
  padding: 12px 26px;
  background: var(--slc-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-team-section:hover {
  background: var(--slc-blue);
}
/* =========================
========================= */
/* =========================
   SECTIONS
========================= */
/* =========================
========================= */
section {
  padding: 70px 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* =========================
   HOME
========================= */

.home-section {
  text-align: justify;
}

/* =========================
   TEAM SECTION
========================= */

.team-section h2 {
  margin-bottom: 48px;
}

/* ---------- MAIN TEAM ROW ---------- */
.main-team-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 72px;
}

/* ---------- BASE TEAM CARD ---------- */
.team-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: #222; /* RESET text color */
  transition: background 0.25s ease, transform 0.25s ease;
}

.team-card:hover {
  background: var(--slc-orange);
  transform: translateY(-2px);
}

/* ---------- HORIZONTAL MAIN CARDS ---------- */
.team-card-horizontal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 20px;
  align-items: center;
}

/* IMAGE */
.team-card-horizontal img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* TEXT BOX  */
.team-card-text {
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
}

/* NAME */
.team-card-text h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #222;
}

/* ROLE */
.team-card-text p {
  font-size: 0.95rem;
  color: #444;
}

/* ---------- SECONDARY TEAM GRID ---------- */
.team-grid-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* SIMPLE CARDS */
.team-card-simple {
  padding: 24px 18px;
  text-align: center;
}

.team-card-simple h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #222;
}

.team-card-simple p {
  font-size: 0.9rem;
  color: #555;
}

/* ---------- RESPONSIVE ---------- */
/* Tablet */
@media (max-width: 900px) {
  .main-team-row {
    grid-template-columns: 1fr;
  }

  .team-grid-secondary {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-team-row {
    margin-bottom: 36px;
  }
}

/* Mobile  */
@media (max-width: 600px) {
  .team-card-horizontal {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 16px;
    align-items: center;
  }

  .team-card-horizontal img {
    width: 110px;
    height: 110px;
  }

  .team-card-text {
    height: auto;
    min-height: 110px;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .team-card-text h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .team-card-text p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .team-grid-secondary {
    grid-template-columns: 1fr;
  }
  .main-team-row {
    margin-bottom: 36px;
  }
}

/* =========================
   PARTNER SECTION
========================= */

.partner-section {
  background: #f4f4f4;
  text-align: center;
  padding: 70px 20px;
}

.partner-section h2 {
  margin-bottom: 40px;
}

/* GRID */
.partner-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* CARD */
.partner-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Hover effect */
.partner-card:hover {
  transform: translateY(-2px);
}

/* LOGOS */
.partner-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

/* TEXT-ONLY PARTNER */
.partner-card-text {
  flex-direction: column;
  font-weight: 600;
  color: #222;
  font-size: 1rem;
  line-height: 1.4;
}

.partner-card-text span {
  display: block;
}

/* RESPONSIVE */

/* Tablet */
@media (max-width: 900px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 500px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    padding: 20px;
  }

  .partner-card img {
    max-height: 70px;
  }

  .partner-card {
    min-height: 110px;
  }
}

/* =========================
   RESSOURCEN
========================= */
.resources-intro {
  max-width: 900px;
  margin: 80px auto 60px;
  padding: 0 24px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.resources-wrapper {
  max-width: 1100px;
  margin: 0 auto 120px;
  padding: 0 24px;
}

.resource-block {
  margin-bottom: 90px;
}

.resource-block h2 {
  margin-bottom: 30px;
  font-size: 1.6rem;
  color: var(--slc-blue);
}

/* Grid for link cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Card-style links */
.resource-card {
  display: block;
  padding: 26px 32px;
  background: var(--slc-orange);
  color: #fff;
  text-decoration: none;
  font-weight: 500;

  border-radius: 30px;

  transition: transform 0.2s ease, background 0.2s ease;
  text-align: left;
}

.resource-card small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  opacity: 0.85;
}

.resource-card:hover {
  transform: translateY(-4px);
  background: var(--slc-blue);
}

.resource-grid.centered .resource-card {
  text-align: center;
}

.resource-card-text {
  text-align: left;
  border-radius: 48px;
}

.resource-card-text p {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Text blocks */
.resource-text {
  max-width: 800px;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* RECOVERY HIGHLIGHT */

.recovery-card {
  position: relative;
  max-width: 700px;
  width: 100%;
  padding: 48px 40px;
  background: var(--slc-orange);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  border-radius: 48px;
}

.recovery-bg-text {
  position: absolute;
  inset: 0;
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.12;
  filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

/* FEATURED RECOVERY STORY */
.featured-recovery {
  display: flex;
  justify-content: center;
  margin: 4rem 1rem 3rem;
}

.recovery-o-card {
  position: relative;
  width: 700px;
  height: 140px;
  border: 11px solid var(--slc-orange);
  border-radius: 48px;
  text-decoration: none;
  color: #111;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.recovery-o-card:hover {
  border-color: var(--slc-blue);
}

/* BLURRED TEXT BACKGROUND */
.recovery-text-bg {
  position: absolute;
  inset: 2px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.15);
  filter: blur(2.1px);
  user-select: none;
  text-align: justify;
}

/* CENTER CONTENT */
.recovery-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.recovery-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.recovery-content p {
  font-size: 0.95rem;
  max-width: 460px;
  margin-top: 6px;
  font-weight: 300;
}

/* HOVER COLOR SHIFT */
.recovery-o-card:hover .recovery-content {
  color: var(--slc-blue);
}

/* ARTICLE LIST */
.article-list {
  max-width: 1100px;
  margin: 0 auto;
}

.article-item {
  padding: 20px 24px;
  margin-bottom: 24px;

  border-left: 5px solid var(--slc-orange);
  background: #f8f8f8;

  text-decoration: none;
  color: #222;
  display: block;

  transition: background 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease;
}

.article-item strong {
  font-weight: 600;
}

.article-item small {
  display: block;
  margin-top: 4px;
  color: #666;
}

.article-item blockquote {
  margin-top: 12px;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

.article-item:hover {
  background: #eef0fa;
  border-left-color: var(--slc-blue);
  transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 900px) {
  .recovery-o-card {
    width: 100%;
    max-width: 520px;
    height: 130px;
  }

  .recovery-content h3 {
    font-size: 1.2rem;
  }

  .recovery-content p {
    font-size: 0.9rem;
  }

  .recovery-text-bg {
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .recovery-o-card {
    height: 120px;
    border-width: 9px;
  }

  .recovery-content {
    padding: 1.4rem;
  }

  .recovery-content h3 {
    font-size: 1.05rem;
  }

  .recovery-content p {
    font-size: 0.78rem;
  }

  .recovery-text-bg {
    font-size: 0.75rem;
  }
}
/* =========================
          STORY 
========================= */

/* STORY HERO */
.story-hero {
  padding: 90px 20px 70px;
  text-align: center;
}

.story-hero-intro {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* STORY CONTAINER */
.story-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px 120px;
}

.story-title {
  text-align: center;
  margin-bottom: 45px;
  letter-spacing: 0.08em;
}

/* BACK LINK */
.back-link {
  display: inline-block;
  margin-bottom: 35px;
  font-size: 0.9rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* STORY TITLE */
.story-container h3 {
  margin-bottom: 15px;
}

/* STORY TEXT */
.story-text p {
  text-align: justify;
  margin-bottom: 32px;
  line-height: 1.85;
  font-size: 1rem;
}

.story-text a {
  color: var(--slc-orange);
  text-decoration: none;
}

.story-text ul,
.story-text ol {
  margin: 24px 0 36px 36px;
  padding: 0;
}

.story-text li {
  margin-bottom: 12px;
  line-height: 1.7;
  text-align: justify;
}

.story-text li:last-child {
  margin-bottom: 0;
}

.story-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #555;
}

.story-meta span {
  display: inline;
}

.story-meta .meta-update::before {
  content: " | ";
}

@media (max-width: 600px) {
  .story-meta {
    text-align: center;
    line-height: 1.4;
  }

  .story-meta span {
    display: block;
  }

  .story-meta .meta-update::before {
    content: "";
  }
}

@media (max-width: 420px) {
  .featured-recovery .recovery-content h3 {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
}

/* =========================
   QR CODE Einzahlungsschein
========================= */

.qrcode {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;

  margin: 40px auto 0;

  border-radius: 12px;
}

/* Tablet */
@media (max-width: 900px) {
  .qrcode {
    max-width: 90%;
    margin-top: 32px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .qrcode {
    max-width: 100%;
    margin-top: 24px;
  }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #000;
  color: #fff;
  padding: 36px 20px;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.footer-logo {
  color: var(--slc-orange);
  font-size: 1.4rem;
}

.footer-note {
  margin-top: 8px;
  margin-bottom: 18px;
  opacity: 0.9;
}

.footer-link {
  display: inline-block;
  color: var(--slc-orange);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-impressum {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
}

/* For Small Screens */
@media (max-width: 600px) {
  .resource-card {
    border-radius: 32px;
  }
}

/* =========================
   MOBILE NAVIGATION
========================= */

/* Hide hamburger on desktop */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-btn img {
  height: 28px;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;

  width: 38vw;
  min-width: 160px;
  max-width: 360px;

  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.18);

  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 2000;

  padding-top: var(--header-height);

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* OPEN STATE */
.mobile-menu.open {
  transform: translateX(0);
}

/* CLOSE BUTTON (X) */
.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: 400;
  cursor: pointer;
  color: #000;

  margin-bottom: 32px;
}

/* NAV LINKS */
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav-links a {
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--slc-orange);
}

/* RESPONSIVE*/
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }
}

/* @media (max-width: 420px) {.mobile-menu {   width: 80vw; min-width: unset; max-width: unset; }}*/
