/*
 * Global stylesheet for the Soul First Society website.
 *
 * The design uses a dark background with warm golden accents to
 * complement the provided logo. Text is kept high‑contrast for
 * readability, and the layout is responsive to different screen sizes.
 */

body {
  background-color: #0d0d0d;
  color: #f5f5f5;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/*
 * Alternierende Hintergrundfarben für Abschnitte.
 * Dadurch wirken die Inhalte lebendiger und besser voneinander abgegrenzt.
 */
main section:nth-of-type(odd) {
  background-color: #141414;
  padding: 40px 20px;
  border-radius: 6px;
}
main section:nth-of-type(even) {
  background-color: #1a1a1a;
  padding: 40px 20px;
  border-radius: 6px;
}

/* Stil für interaktive Details/summary Elemente. */
details {
  background-color: #141414;
  border-left: 4px solid #caa85e;
  padding: 16px;
  margin: 20px 0;
  border-radius: 4px;
}
details summary {
  cursor: pointer;
  font-weight: bold;
  color: #caa85e;
  margin-bottom: 8px;
}
details[open] {
  background-color: #1a1a1a;
}

/* Vergrößertes Logo für die Startseite */
.hero-logo {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
}

/* Kleine Illustrationen (Icons) neben Überschriften */
.icon {
  width: 36px;
  height: 36px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

header {
  background-color: #1a1a1a;
  color: #caa85e;
  padding: 20px;
  text-align: center;
}

header img.logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}

nav {
  display: block;
  background-color: #141414;
  width: 100%;
  z-index: 100;
}

nav a {
  color: #caa85e;
  padding: 15px 20px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.9rem;
  transition: color 0.2s ease-in-out;
}

nav a:hover {
  color: #ffffff;
}

/* Nav list structure */
nav ul.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

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

nav ul.main-nav > li > a {
  display: block;
}

/* Dropdown menus */
nav ul.main-nav li .dropdown {
  display: none;
  position: absolute;
  background-color: #141414;
  border: 1px solid #333;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  min-width: 220px;
}
nav ul.main-nav li .dropdown li {
  padding: 0;
}
nav ul.main-nav li .dropdown a {
  display: block;
  padding: 8px 20px;
  color: #caa85e;
  font-size: 0.8rem;
  text-transform: none;
}
nav ul.main-nav li .dropdown a:hover {
  background-color: #1f1f1f;
  color: #ffffff;
}

/* Show dropdown on hover or focus */
nav ul.main-nav li.has-submenu:hover > .dropdown,
nav ul.main-nav li.has-submenu:focus-within > .dropdown {
  display: block;
}

/* Show dropdown when menu item has been opened via click */
nav ul.main-nav li.open > .dropdown {
  display: block;
}

/* Styling für persönliche Notizabschnitte */
.personal-note {
  background-color: #1a1a1a;
  border-left: 4px solid #caa85e;
  padding: 20px;
  margin-top: 40px;
  border-radius: 4px;
}
.personal-note h2 {
  color: #caa85e;
  margin-top: 0;
}
.personal-note p {
  margin-bottom: 0;
}

main {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

h1, h2, h3 {
  color: #caa85e;
  margin-top: 0;
}

section {
  margin-bottom: 40px;
}

img.decorative {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
}

footer {
  background-color: #1a1a1a;
  color: #888888;
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
}

/*
 * Additional utility classes added in October 2025 to support expanded
 * content sections and navigation. These styles govern on‑page
 * navigation lists, call‑to‑action buttons for the community link and
 * other highlights without altering the original design language.
 */

/* Navigation section within pages for on‑page links */
.nav-section {
  margin: 20px 0;
}
.nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-section li {
  margin: 5px 0;
}
.nav-section a {
  color: #caa85e;
  text-decoration: none;
}
.nav-section a:hover {
  text-decoration: underline;
}

/* Highlighted button style for community links */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px 0;
  /* Goldfarbener Button vor olivfarbenem Hintergrund */
  background-color: #caa85e;
  color: #2f4931;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
}
.cta-button:hover {
  background-color: #b4934f;
}

/* Tabellenstil für strukturierte Informationen */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
th, td {
  border: 1px solid #333;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.9rem;
}
th {
  background-color: #1f1f1f;
  color: #caa85e;
}
tr:nth-child(even) {
  background-color: #1a1a1a;
}

/* Kästen zur Hervorhebung von Tipps und Definitionen */
.info-box {
  background-color: #141414;
  border-left: 4px solid #caa85e;
  padding: 16px;
  margin: 20px 0;
  border-radius: 4px;
}
.info-box h3 {
  margin-top: 0;
  color: #caa85e;
}

/*
 * Suchfeld und Ergebnisliste – hinzugefügt im Oktober 2025
 *
 * Diese Stile steuern die Positionierung, Farben und das Verhalten
 * des Suchfeldes oben auf jeder Seite sowie der angezeigten
 * Ergebnisse. Der Container nutzt eine relativ platzierte Box, so
 * dass die Liste der Ergebnisse absolute Positionierung nutzen kann.
 */
.search-container {
  position: relative;
  text-align: right;
  padding: 10px 20px;
}

.search-container input[type="text"] {
  padding: 6px 10px;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #2f4931;
  color: #f5f5f5;
  font-size: 0.9rem;
}

.search-container input[type="text"]::placeholder {
  color: #888;
}

#search-results {
  position: absolute;
  right: 20px;
  top: 40px;
  background-color: #3c583d;
  border: 1px solid #2a3f26;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  min-width: 240px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

#search-results a {
  display: block;
  padding: 8px 10px;
  color: #caa85e;
  text-decoration: none;
  border-bottom: 1px solid #333;
}

#search-results a:hover {
  background-color: #354f37;
  color: #ffffff;
}

#search-results small {
  display: block;
  color: #aaa;
  font-size: 0.8rem;
}