/*
Theme Name: Reha Wissen
Theme URI:
Author: Martin Fellinghauer
Author URI:
Description: Professionelle Informationsseite zu ambulanter Rehabilitation, RV Fit und IRena Nachsorge.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: reha-wissen
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1A3A5C;
  --navy-dark:  #0F2540;
  --navy-mid:   #24527A;
  --navy-light: #E8EFF6;
  --gold:       #C9A84C;
  --gold-light: #F5EDD6;
  --gold-dark:  #A07830;
  --white:      #FFFFFF;
  --off-white:  #F8F7F4;
  --text:       #1a1a1a;
  --text-muted: #5a5a6a;
  --border:     rgba(26,58,92,0.12);
  --radius:     12px;

  --blue:        var(--navy);
  --blue-light:  var(--navy-light);
  --blue-mid:    #C2D4E6;
  --green:       #1a6b3c;
  --green-light: #eaf4ee;
  --green-mid:   #b6d9c3;
  --orange:      var(--gold-dark);
  --orange-light:var(--gold-light);
  --orange-mid:  #e8d09a;
  --gray-50:     var(--off-white);
  --gray-100:    #F0EDE8;
  --gray-200:    #DDD9D2;
  --gray-400:    #9a9494;
  --gray-600:    var(--text-muted);
  --gray-700:    #3a3a4a;
  --gray-900:    var(--text);
  --shadow:      0 2px 12px rgba(26,58,92,.10);
  --shadow-lg:   0 8px 32px rgba(26,58,92,.16);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  line-height: 1.65;
  background: var(--white);
  font-size: 16px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mt { margin-top: 1.25rem; }

/* ===== NAVIGATION ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -.3px;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: .25rem;
  align-items: center;
}

.nav-links a {
  padding: .4rem .75rem;
  border-radius: 6px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--gray-100); color: var(--gray-900); text-decoration: none; }

.btn-nav {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  border-radius: 6px;
  font-weight: 700;
}
.btn-nav:hover { background: var(--gold-dark) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-dark); text-decoration: none; color: var(--white); }
.btn-outline { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); text-decoration: none; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 80px 0 72px;
}

.hero-content { max-width: 700px; }

.badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: .3rem .9rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.hero-sub {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-pills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-pills span {
  background: rgba(255,255,255,.15);
  padding: .3rem .8rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
}

/* ===== OVERVIEW CARDS ===== */
.overview {
  padding: 48px 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.overview-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
}
.overview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }

.card-blue  { background: var(--navy-light);  border-color: #C2D4E6; }
.card-green { background: var(--green-light); border-color: var(--green-mid); }
.card-orange{ background: var(--gold-light);  border-color: var(--orange-mid); }

.card-icon { font-size: 2rem; margin-bottom: .75rem; }

.overview-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.overview-card p  { font-size: .92rem; color: var(--gray-600); margin-bottom: 1rem; }

.card-link { font-size: .88rem; font-weight: 700; }
.card-blue  .card-link { color: var(--navy); }
.card-green .card-link { color: var(--green); }
.card-orange .card-link { color: var(--gold-dark); }

/* ===== TOPIC SECTIONS ===== */
.topic-section { padding: 72px 0; }
.topic-alt     { background: var(--gray-50); }

.topic-header  { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

.topic-badge {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.badge-blue   { background: var(--navy-light); color: var(--navy-dark); }
.badge-green  { background: var(--green-light); color: #14532d; }
.badge-orange { background: var(--gold-light);  color: var(--gold-dark); }

.topic-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.topic-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== TWO COLUMN ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.info-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.info-block p { margin-bottom: .85rem; color: var(--gray-600); }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: var(--navy-light);
  border-left: 4px solid var(--navy);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.25rem;
  font-size: .93rem;
  color: var(--gray-700);
}
.highlight-green  { background: var(--green-light);  border-color: var(--green); }
.highlight-orange { background: var(--gold-light);   border-color: var(--gold-dark); }

/* ===== CHECKLISTS ===== */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: .45rem 0 .45rem 1.6rem;
  position: relative;
  color: var(--gray-600);
  font-size: .93rem;
  border-bottom: 1px solid var(--gray-100);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ===== PROCESS STEPS ===== */
.process-steps { margin-bottom: 2.5rem; }
.process-steps h3 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.5rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.steps-4 { grid-template-columns: repeat(4, 1fr); }

.step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.step-num {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
  margin: 0 auto .75rem;
}
.step-orange .step-num { background: var(--gold-dark); }

.step h4 { font-size: .9rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.step p   { font-size: .83rem; color: var(--gray-600); line-height: 1.55; }

/* ===== INFO BOX ROW ===== */
.info-box-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-item { display: flex; gap: .75rem; align-items: flex-start; }
.info-icon { font-size: 1.5rem; flex-shrink: 0; }
.info-item strong { display: block; color: var(--gray-900); font-size: .88rem; margin-bottom: .2rem; }
.info-item p      { font-size: .83rem; color: var(--gray-600); margin: 0; }

/* ===== PILLAR GRID ===== */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }

.pillar {
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.pillar-move  { background: var(--navy-light); }
.pillar-food  { background: var(--green-light); }
.pillar-stress{ background: var(--gold-light); }

.pillar-icon  { font-size: 1.5rem; margin-bottom: .4rem; display: block; }
.pillar strong { display: block; font-size: .9rem; font-weight: 700; color: var(--gray-900); margin-bottom: .3rem; }
.pillar p      { font-size: .8rem; color: var(--gray-600); margin: 0; }

/* ===== TAG LIST ===== */
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.tag-list li {
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: #166534;
  padding: .2rem .7rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
}

/* ===== CTA BOX ===== */
.cta-box {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; color: var(--white); }
.cta-box p  { opacity: .9; font-size: .95rem; }
.cta-box .btn { background: var(--gold); color: var(--navy-dark); font-weight: 700; white-space: nowrap; }
.cta-box .btn:hover { background: var(--gold-dark); color: var(--white); text-decoration: none; }

/* ===== THERAPY FIELDS ===== */
.therapy-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1rem 0; }

.field {
  border-radius: var(--radius);
  padding: .9rem;
  border-top: 4px solid;
}
.field-I   { background: var(--navy-light);  border-color: var(--navy); }
.field-II  { background: #f0eaf8;            border-color: #7c5cbf; }
.field-III { background: var(--gold-light);  border-color: var(--gold-dark); }

.field-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .35rem;
  opacity: .6;
}
.field strong { display: block; font-size: .88rem; color: var(--gray-900); margin-bottom: .3rem; }
.field p      { font-size: .8rem; color: var(--gray-600); margin: 0; }

/* ===== DURATION TABLE ===== */
.duration-table { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
.duration-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.duration-row:last-child { border-bottom: none; }
.duration-row:nth-child(even) { background: var(--gray-50); }
.duration-label { font-size: .9rem; color: var(--gray-600); }
.duration-value { font-size: .9rem; }

.info-block h4 { font-size: .98rem; font-weight: 700; color: var(--gray-900); margin: 1.25rem 0 .5rem; }

/* ===== SMALL NOTE ===== */
.small-note { font-size: .78rem; color: var(--gray-400); margin-top: 1rem; }

/* ===== FAQ ===== */
.faq-section {
  padding: 72px 0;
  background: var(--navy-dark);
  color: var(--white);
}

.section-title { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; color: var(--white); text-align: center; margin-bottom: .5rem; }
.section-sub   { text-align: center; color: #9aacbe; margin-bottom: 2.5rem; }

.faq-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: .5rem 1.25rem;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,.25);
  background: transparent;
  color: #9aacbe;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.tab-btn:hover  { border-color: rgba(255,255,255,.5); color: var(--white); }
.tab-active     { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--navy-dark) !important; }

.faq-content  { max-width: 760px; margin: 0 auto; }
.faq-hidden   { display: none; }

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: .98rem;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 0 1.1rem;
  color: #9aacbe;
  font-size: .93rem;
  line-height: 1.7;
}
.faq-item p a { color: var(--gold); }

/* ===== SOURCES ===== */
.sources-section {
  background: var(--gray-50);
  padding: 48px 0;
  border-top: 1px solid var(--gray-200);
}

.sources-section h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); margin-bottom: .4rem; }
.sources-section p  { color: var(--gray-600); font-size: .9rem; margin-bottom: 1.5rem; }

.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.source-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
}
.source-item strong { display: block; font-size: .87rem; color: var(--gray-900); margin-bottom: .3rem; }
.source-item a      { font-size: .82rem; color: var(--navy); word-break: break-all; }

/* ===== CONTACT ===== */
.contact-section { padding: 72px 0; }
.contact-section h2 { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); margin-bottom: .75rem; text-align: center; }
.contact-section > .container > p { text-align: center; color: var(--gray-600); margin-bottom: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.contact-icon { font-size: 2rem; margin-bottom: .75rem; }
.contact-card h4 { font-weight: 700; color: var(--gray-900); margin-bottom: .4rem; }
.contact-card p  { font-size: .9rem; color: var(--gray-600); }
.contact-card small { font-size: .8rem; color: var(--gray-400); }

.disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .87rem;
  color: #92400e;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: #9aacbe;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 48px 24px 32px;
}

.footer-brand .nav-logo-text { color: var(--white); }
.footer-brand .nav-logo-text span { color: var(--gold); }
.footer-brand p { font-size: .88rem; margin-top: .75rem; line-height: 1.6; }

.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.footer-links a  { color: #9aacbe; font-size: .88rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 24px;
  text-align: center;
  font-size: .8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards-grid         { grid-template-columns: 1fr; }
  .two-col            { grid-template-columns: 1fr; }
  .steps-grid         { grid-template-columns: repeat(2, 1fr); }
  .steps-4            { grid-template-columns: repeat(2, 1fr); }
  .info-box-row       { grid-template-columns: repeat(2, 1fr); }
  .therapy-fields     { grid-template-columns: 1fr; }
  .pillar-grid        { grid-template-columns: 1fr; }
  .sources-grid       { grid-template-columns: 1fr 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .footer-inner       { grid-template-columns: 1fr 1fr; }
  .footer-brand       { grid-column: 1 / -1; }
  .cta-box            { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .nav-links          { display: none; }
  .nav-toggle         { display: block; }
  .nav-links.open     { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 1rem 1.5rem; gap: .25rem; box-shadow: var(--shadow); }
  .steps-grid         { grid-template-columns: 1fr; }
  .info-box-row       { grid-template-columns: 1fr 1fr; }
  .sources-grid       { grid-template-columns: 1fr; }
  .footer-inner       { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero               { padding: 48px 0; }
  .duration-table     { font-size: .88rem; }
}
