/* ================================================================
   Schübeler Consulting - CI Pro Light 1.0
   Strict Light Scheme • MyBB 1.8.38
   Datum: 23. April 2025
   Optimiert und kommentiert
================================================================== */

/* ---------------------------------------------------------------
   Fonts und Grundfarben definieren (CI-konform)
---------------------------------------------------------------- */
@import url(https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap);

:root {
  --blue: #0056A3;
  --orange: #FF6600;
  --dark: #333333;
  --light: #FFFFFF;
  --muted: #F5F7FA;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.05);
  --transition: .25s;
}

/* ---------------------------------------------------------------
   Grundlayout und Typografie
---------------------------------------------------------------- */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: var(--muted);
  color: var(--dark);
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.wrapper {
  width: 92%;
  max-width: 1500px;
  margin: 24px auto;
  padding: 32px;
  background: var(--light);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------
   HEADER Bereich: Logo, Navigation, Begrüßung
---------------------------------------------------------------- */
#logo {
  padding: 18px;
  border-bottom: 4px solid var(--blue);
  background: var(--light);
}
#logo img {
  max-height: 120px;
}
/* ---------------------------------------------------------------
   Logo: abgerundete Ecken (Schübeler CI)
---------------------------------------------------------------- */
#logo img,
.header-logo img {       /* beide Selektoren abdecken */
    border-radius: 16px; /* ↑ 16 px wirkt sichtbar, aber noch dezent   */
    overflow: hidden;    /* verhindert, dass Ecken überstehen          */
}

#header ul.menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#header ul.menu li a {
  font-weight: 600;
  padding-bottom: 4px;
  position: relative;
}
#header ul.menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
#header ul.menu li a:hover::after {
  width: 100%;
}

/* Strukturierter neuer Header-Aufbau */
.header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  background-color: var(--light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-logo img {
  max-height: 80px;
}

.header-title {
  font-size: 2em;
  font-weight: bold;
  color: var(--blue);
  text-align: center;
  margin: 15px 0;
  font-family: 'Open Sans', sans-serif;
}

.header-nav {
  margin-top: 10px;
}

.header-nav .top_links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.header-nav .top_links li {
  display: inline;
}

.header-nav .top_links a {
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--blue);
}

.header-nav .top_links a:hover {
  color: var(--orange);
}

/* Begrüßungszeile und Panel */
#panel .wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  margin-bottom: 10px;
}

.topstrip {
  padding: 18px 32px;
}

/* ---------------------------------------------------------------
   Tabellen-Layouts (Foren-Ansicht)
---------------------------------------------------------------- */
.tborder {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;
}

.thead, .tcat {
  background: var(--blue);
  color: #fff;
  padding: 10px;
  font-weight: 600;
  border-radius: var(--radius) var(--radius) 0 0;
}

.tcat a,
.thead a,
.tcat a:link,
.thead a:link,
.tcat a:visited,
.thead a:visited,
.tcat a:hover,
.thead a:hover,
.tcat a:active,
.thead a:active {
  color: #fff !important;
  text-decoration: none;
}

.tcat a:hover,
.thead a:hover {
  color: #FFE6CC !important;
  text-decoration: underline;
}

.trow1, .trow2 {
  background: var(--light);
  border: 1px solid #e0e0e0;
  padding: 10px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.trow1:hover, .trow2:hover {
  transform: translateY(-3px);
}

.trow_sep {
  background: var(--muted);
  padding: 6px;
  font-weight: 600;
  color: var(--dark);
}

/* ---------------------------------------------------------------
   Buttons (z.B. Antwort, Neuer Beitrag)
---------------------------------------------------------------- */
button, input.button, a.button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
}
button:hover, input.button:hover, a.button:hover {
  opacity: .85;
}

/* ---------------------------------------------------------------
   Beiträge und Postbit
---------------------------------------------------------------- */
.post {
  background: var(--light);
  border: 1px solid #e0e0e0;
  margin-bottom: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post_author {
  background: var(--muted);
  padding: 12px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 14px;
  font-weight: 600;
}

.post_content {
  padding: 20px;
  font-size: 15px;
}

/* ---------------------------------------------------------------
   Zitate und Codeblöcke
---------------------------------------------------------------- */
blockquote {
  border-left: 4px solid var(--blue);
  background: var(--muted);
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
}

.codeblock {
  background: #fbfbfb;
  border: 1px solid #ddd;
  padding: 14px;
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------
   Footer - Abschlussbereich der Seite
---------------------------------------------------------------- */
#footer {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 24px;
  margin-top: 48px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 14px;
}

#footer a {
  color: #fff;
  text-decoration: underline;
}

#footer .upper {
  background: var(--muted);
  color: var(--dark);
}

#footer .upper a {
  color: var(--blue) !important;
}

#footer .upper a:hover {
  color: var(--orange) !important;
}

#footer .lower {
  background: var(--muted);
  color: var(--dark);
}

#footer .lower a {
  color: var(--blue);
}

#footer .lower a:hover {
  color: var(--orange);
}

.scopyright {
  display: inline-block;
  margin-left: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.scopyright a {
  color: var(--blue);
}

.scopyright a:hover {
  color: var(--orange);
}

/* ---------------------------------------------------------------
   Navigation-Überschrift im Contentbereich
---------------------------------------------------------------- */
.navigation .active {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  padding: 12px 16px;
  background-color: var(--muted);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------
   Responsive Anpassungen
---------------------------------------------------------------- */
@media (max-width: 768px) {
  .header-wrapper {
    padding: 10px;
  }

  .header-nav .top_links {
    flex-direction: column;
    gap: 10px;
  }

  #panel .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------------------
   Topbar-Links optimiert
---------------------------------------------------------------- */
.topbar-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px 10px;
  background: var(--light);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  margin-top: 0;
  margin-bottom: 10px;
}

.topbar-links a {
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.topbar-links a:hover {
  color: var(--orange);
  background: var(--muted);
}

/* Benutzer-CP: Hintergrundbilder aus usercp_nav entfernen (ohne usercp.css anzufassen) */
.usercp_nav_item,
.usercp_nav_composepm,
.usercp_nav_pmfolder,
.usercp_nav_sub_pmfolder,
.usercp_nav_trash_pmfolder,
.usercp_nav_pmtracking,
.usercp_nav_pmfolders,
.usercp_nav_profile,
.usercp_nav_email,
.usercp_nav_password,
.usercp_nav_username,
.usercp_nav_editsig,
.usercp_nav_avatar,
.usercp_nav_options,
.usercp_nav_usergroups,
.usercp_nav_editlists,
.usercp_nav_attachments,
.usercp_nav_drafts,
.usercp_nav_subscriptions,
.usercp_nav_fsubscriptions,
.usercp_nav_viewprofile,
.usercp_nav_home {
    background: none !important;
}

/* Benutzer-CP Icons Standard */
.usercp_nav_item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 600;
  color: #0056A3; /* Hier fix: Standard-Blau */
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Benutzer-CP Icons und Text Standard */
.usercp_nav_item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 600;
  color: #0056A3; /* Textfarbe Blau */
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hovereffekt: Icon + Text */
.usercp_nav_item:hover {
  color: #FF6600; /* Text wird Orange */
}



#usercp_nav {
  width: 280px;
  max-width: 280px;
}

#usercp_content {
  width: auto;
}


/* Benutzer-CP Inhaltsbereich rechts */
#usercp_content {
  width: auto;
  vertical-align: top;
}

.usercp_nav_item {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Abstand zwischen Icon und Text */
  text-decoration: none;
  color: var(--blue); /* Oder dein CI-Farbton */
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.3s, background-color 0.3s;
}

.usercp_nav_item:hover i {
  color: #FF6600; /* Icon wird Orange */
  transform: translateY(-2px); /* kleines Hüpfen */
}

/* === Schübeler Forum: Button sauber und CI-konform platzieren === */

.new-thread-wrapper {
  display: flex;
  justify-content: left;
  margin: 16px 0 24px 0;
}

.new_thread_button {
  background-color: #FF6600;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: background 0.2s ease-in-out;
}

.new_thread_button:hover {
  background-color: #e05500;
  color: #fff;
}
