/* Allgemeine Stile */

@font-face {
  font-family: 'Roboto';
  src: url('../fonts_thectr/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  height: 100%;
  width: 100%;
}

.line_search{
  color: #fff;
}

a {
  text-decoration: none;
  color: #0d14a2;
  font-weight: bold;
}

a:hover {
  text-shadow: 0px 0px 1px #000;
}

/* Semantic element selectors matching existing layout classes */
main.content {
  width: 100%;
  float: left;
  display: flex;
  gap: 10px;
  margin: 10px;
  margin-top: 120px;
}

aside.left-sidebar {
  width: 15%;
  flex-shrink: 0;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  flex-direction: column;
}

.sidebar-links li {
  margin-bottom: 12px;
}

.sidebar-links a {
  font-size: 1.05em;
  color: #0d14a2;
}

.sidebar-links a:hover {
  color: #53546c;
}

aside.left-sidebar_mobile {
  display: none;
}

address.address {
  text-align: center;
  font-style: normal;
}

address.address p {
  margin: 2px 0;
}

address.address_mobile {
  font-style: normal;
}

address.address_mobile p {
  margin: 2px 0;
}

#email-link_mobile{
	display: none;
}

/* Header */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 1in;
  background-color: #53546c;
}

.logo img {
  height: 80px;
}

.mobile-menu{
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 15px;
  cursor: pointer;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #fff;
}


nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-right: 20px;
  margin-left: 50px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-family: roboto, sans-serif;
  font-size: 22px;
}

nav ul li a:hover {
  text-decoration: none;
  color: #0d14a2;

  }

.search input[type="text"] {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.search input[type="submit"] {
  background-color: #0d14a2;
  color: #fff;
  border: none;
  padding: 5px 10px 5px 10px;
  border: 1px solid #0d14a2;
  border-radius: 5px;
}

.search input:hover[type="submit"] {
  background-color: #fff;
  color: #0d14a2;

}

.search_mobile {
  display: none;
}

/* ... */

.menu li:hover > .submenu {
  display: block;
}

.menu li > .submenu:hover {
  display: block;
}

.submenu {
  display: none;
  padding: 10px;
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: #53546c;
  box-shadow: #333 10px 10px 10px;
}

.menu li:hover .submenu {
  opacity: 1;
  background-color: #53546c;
  color: black;
}

.submenu li {
  margin-bottom: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu li:hover .submenu li {
  opacity: 1;
}

.submenu li:last-child {
  margin-bottom: 0;
}

.submenu li a {
  color: #fff;
  display: block;
  text-decoration: none;

}

.submenu li a:hover {
  color: #0d14a2;
  display: block;
  text-decoration: none;
}


/* Content */

.left-sidebar_mobile {
  display: none;
}

.left-sidebar img {
  display: flex;
}

.main-content {
  flex: 1;
  padding: 3px 0.25in 3px 0;
}

.main-content h1 {
  margin-bottom: 0.5in;
  margin-top: 0;
  text-align: center;
}

.main-content p {
  margin-right: 60px;
  margin-left: 60px;
}

/* Course tiles */
.tiles {
  display: flex;
  gap: 16px;
  padding: 0 20px;
}

.tile {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.tile:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tile h3 {
  color: #0d14a2;
  margin: 0 0 8px 0;
  font-size: 1.5em;
}

.tile p {
  font-size: 1em;
  color: #000;
  margin: 0 0 12px 0;
}

.tile a {
  display: block;
  margin-top: 14px;
  font-size: 1em;
  color: #0d14a2;
}

img {
  display: block;
  margin: 0 auto;
}

img#email-image {
  float: left;
}

.text-left {
  padding-top: 20px;
  margin-left: 75px;
  margin-right: 80px;
  text-align: center;
  font-size: 0.8em;
  display: block;
}

.text-left img {
  width: auto;
  height: 40px;
  margin-top: 0;
}


/* Footer */

footer {
  clear: both;
  padding-top: 1in;
}

footer .footer{
  background-color: #f2f2f2;
  display: flex;
  padding: 30px 1in;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  font-size: 0.85em;
  color: #000;
  box-sizing: border-box;
}

.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.footer-menu ul li {
  margin-right: 0px;
}

.footer-menu ul li a {
  text-decoration: none;
  color: #000;
  font-weight: normal;
  font-size: inherit;
}

.copyright {
  text-align: left;
  margin-right: 10px;
}

footer .footer_mobile{
  display: none;
}

/* ------------- 1156px -----------------*/


@media (max-width: 1156px) {

  .tiles {
    flex-wrap: wrap;
  }

  .tile {
    flex: 1 1 calc(33% - 16px);
    min-width: 160px;
  }

  body {
    margin: 0;
    padding: 0;
    font-family: roboto, sans-serif;
    width: 100%;
  }

  .main-content {
    padding: 0;
    margin-top: 100px;

  }

  p{
    padding: 30px;
  }

  img {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .left-sidebar {
    width: 100%;
    margin-top: 80px;
    margin-bottom: 80px;
  }
  h1{
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  header {
    display: flex;
    padding: 10px;
    background-color: #53546c;
  }
  .search {
    display: none;
  }

  .line_mobile {
    margin-bottom: 6px;
  }

  .search input[type="submit"] {
    display: none;
  }

  .search_mobile input[type="submit"] {
    background-color: #0d14a2;
    color: #fff;
    border: none;
    padding: 5px 10px 5px 10px;
    margin-top: 6px;
    border: 1px solid #0d14a2;
    border-radius: 5px;
  }

  .search_mobile input:hover[type="submit"] {
    background-color: #fff;
    color: #0d14a2;
  }

  .search_mobile input[type="text"] {
    background-color: #ebebeb;
    color: #333;
    border: 1px solid gray  ;
    padding: 5px 10px 5px 10px;
    margin-top: 6px;
    border-radius: 5px;
  }

  .desktop-menu {
    display: none;
  }


  .mobile-menu {
    display: none;
  }

  .mobile-menu.show {
    display: block;
    box-shadow: #333 0px 0px 10px;
    color: #0d14a2;
  }
  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    padding: 20px;
    background-color: #f2f2f2;
    z-index: 9998;
    transform: translateX(-250px);
    transition: transform 2s ease;
    text-align: center;
  }

  .mobile-menu.show {
    transform: translateX(0);
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    background-color: #f2f2f2;
  }

  .menu li {
    margin-bottom: 10px;
    padding: 0;
  }

  .menu li:last-child {
    margin-bottom: 0;
  }

  .menu li a {
    color: #333;
    font-size: 16px;
  }

  .menu li a:hover {
    color: #0d14a2;
  }

  .submenu {
    display: none;
    background-color: #e5e5e5;
    width: 100%;
    position: absolute;
    left: 0;
    color: #0d14a2;
  }

  .menu li:hover .submenu {
    display: block;
  }
  .li_sub {
    text-align: center;
    padding-bottom: 5px;
    padding-top: 5px;
  }
  .li_mobile {
    text-align: center;
    padding-bottom: 5px;
    padding-top: 5px;
  }
  footer .footer {
    display: none;
  }

  footer .footer_mobile{
    display: block;
    width: 100%;
    text-align: center;
    align-items: center;
  }
  footer .footer-menu ul li a{
    text-align: center;
  }

  .footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    display: block;
  }

  .footer-menu ul li {
    margin-right: 10px;
    text-align: center;
  }

  .footer-menu ul li a {
    text-decoration: none;
    color: #333;
  }
  .address{
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .copyright {
    text-align: center;
    margin-bottom: 15px;
  }
  .content {
    display: block;
    margin: 20px;
  }
  .left-sidebar {
    display: none;
  }

  .left-sidebar_mobile {
    display: inline;
    width: 100%;
    margin-top: 80px;
    margin-bottom: 80px;
  }

  .left-sidebar_mobile .text-left {
    margin-bottom: 30px;
  }


  .main-content {
    width: 100%;
  }

  img {
    display: block;
    margin: 0 auto;
  }
  .logo img {
    height: 50px;
  }
  .menu li:hover .submenu {
    opacity: 1;
    background-color: #c2c2c2;
    color: black;
  }
  .search_mobile {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 30px;
  }
  .search_mobile .line-search {
    color: #333;
  }
  .text-left {
    display: block;
    padding-left: 90px;
    padding-right: 90px;
  }
  .text-left img{
    display: none;
  }
}

/* ------------- 768px -----------------*/

@media (max-width: 768px) {

  .tiles {
    flex-direction: column;
    padding: 0 10px;
  }

  .tile {
    flex: 1 1 100%;
  }

  body {
    margin: 0;
    padding: 0;
    font-family: roboto, sans-serif;
    width: 100%;
  }

  .main-content {
    padding: 0;
    margin-top: 100px;

  }

  .contact {
    margin-left: 0%;
}

  p{
    padding: 30px;
  }

  img {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0;
  }

  .left-sidebar {
    display: none;
  }

  .left-sidebar_mobile {
    display: inline;
    width: 100%;
    margin-top: 80px;
    margin-bottom: 80px;
  }

  .left-sidebar_mobile .text-left {
    margin-bottom: 30px;
  }

  h1{
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  header {
    display: flex;
    padding: 10px;
    background-color: #53546c;
  }
  .search {
    display: none;
  }

  .line_mobile {
    margin-bottom: 6px;
  }

  .search input[type="submit"] {
    display: none;
  }

  .search_mobile input[type="submit"] {
    background-color: #0d14a2;
    color: #fff;
    border: none;
    padding: 5px 10px 5px 10px;
    margin-top: 6px;
    border: 1px solid #0d14a2;
    border-radius: 5px;
  }

  .search_mobile input:hover[type="submit"] {
    background-color: #fff;
    color: #0d14a2;
  }

  .search_mobile input[type="text"] {
    background-color: #ebebeb;
    color: #333;
    border: 1px solid gray  ;
    padding: 5px 10px 5px 10px;
    margin-top: 6px;
    border-radius: 5px;
  }

  .desktop-menu {
    display: none;
  }


  .mobile-menu {
    display: none;
  }

  .mobile-menu.show {
    display: block;
    box-shadow: #333 0px 0px 10px;
    color: #0d14a2;
  }
  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    padding: 20px;
    background-color: #f2f2f2;
    z-index: 9998;
    transform: translateX(-250px);
    transition: transform 2s ease;
    text-align: center;
  }

  .mobile-menu.show {
    transform: translateX(0);
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    background-color: #f2f2f2;
  }

  .menu li {
    margin-bottom: 10px;
    padding: 0;
  }

  .menu li:last-child {
    margin-bottom: 0;
  }

  .menu li a {
    color: #333;
    font-size: 16px;
  }

  .menu li a:hover {
    color: #0d14a2;
  }

  .submenu {
    display: none;
    background-color: #e5e5e5;
    width: 100%;
    position: absolute;
    left: 0;
    color: #0d14a2;
  }

  .menu li:hover .submenu {
    display: block;
  }
  .li_sub {
    text-align: center;
    padding-bottom: 5px;
    padding-top: 5px;
  }
  .li_mobile {
    text-align: center;
    padding-bottom: 5px;
    padding-top: 5px;
  }
  footer .footer {
    display: none;
  }

  footer .footer_mobile{
    display: block;
    width: 100%;
    text-align: center;
    align-items: center;
  }
  footer .footer-menu ul li a{
    text-align: center;
  }

  .footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    display: block;
  }

  .footer-menu ul li {
    margin-right: 10px;
    text-align: center;
  }

  .footer-menu ul li a {
    text-decoration: none;
    color: #333;
  }
.address {
   display: none;
}

	.address_mobile{
	display: flex;
    justify-content: center;
   	align-items: center;
	padding-top: 10px;
	padding-bottom: 10px;
}

  .copyright {
    text-align: center;
    margin-bottom: 15px;
  }
  .content {
    display: block;
    margin: 0px;
  }
  .left-sidebar {
    width: 100%;
  }

  .main-content {
    width: 100%;
  }

  img {
   	display: flex;
    justify-content: center;
   	align-items: center;
  }
  .logo img {
    height: 50px;
  }
  .menu li:hover .submenu {
    opacity: 1;
    background-color: #c2c2c2;
    color: black;
  }
  .search_mobile {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 30px;
  }
  .search_mobile .line-search {
    color: #333;
  }
  .text-left {
    display: flex;
    padding-left: 10px;
    padding-right: 10px;
  }
  .text-left img{
    display: none;
  }
  .main-content p {
    margin-right: 10px;
    margin-left: 10px;
    text-align: center;
  }
}

/* ============================================================
   TOC Page Styles - adapted from LP site for CTR courses
   ============================================================ */

.toc-page {
  background-color: #f2f2f2;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

.toc-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 40px;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.toc-logo {
  width: 400px;
  height: auto;
  max-width: 50%;
  flex-shrink: 0;
}

.toc-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.toc-content h1 {
  font-size: 1.5em;
  margin-bottom: 2px;
  color: #0d14a2;
}

.toc-subtitle {
  font-size: 1.3em;
  color: #000;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 2px;
}

.toc-edition {
  font-size: 0.95em;
  color: #000;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 20px;
}

.toc-main-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.toc-main-left {
  flex: 1;
}

/* Sidebar */
.toc-sidebar {
  flex: 0 0 250px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  font-size: 0.9em;
  line-height: 1.6;
}

.toc-sidebar p {
  margin: 0 0 1em 0;
}

.toc-sidebar p:last-child {
  margin-bottom: 0;
}

.toc-sidebar ul {
  list-style: disc;
  padding-left: 20px;
  margin: 5px 0 1em 0;
}

.toc-sidebar li {
  margin-bottom: 3px;
}

/* Sections */
.toc-content h2 {
  font-size: 1.3em;
  margin-top: 20px;
  margin-bottom: 15px;
  color: #0d14a2;
}

.toc-section {
  margin-bottom: 10px;
}

.toc-section h3 {
  font-size: 1.1em;
  font-weight: normal;
  line-height: 1.2;
  margin-top: 8px;
  margin-bottom: 4px;
  color: #000;
}

.toc-section .toc-label {
  color: #0d14a2;
}

.toc-section > ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.toc-section.toc-numbered ul {
  list-style: none;
  padding-left: 20px;
}

.toc-section li {
  margin-bottom: 4px;
}

/* Buy button */
.btn-buy {
  display: inline-block;
  background-color: #0d14a2;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.2s ease;
}

.btn-buy:hover {
  background-color: #53546c;
  color: #fff;
}

.btn-buy.btn-buy-top {
  float: right;
}

.buy-contact-bottom {
  text-align: center;
  margin-top: 30px;
}

.buy-now-label {
  font-weight: bold;
  color: #0d14a2;
  margin-right: 8px;
}

/* Footer */
.toc-page footer {
  padding-top: 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #000;
}

.modal-header {
  color: #0d14a2;
  text-align: center;
  margin-top: 0;
}

.order-modal-course-title {
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  color: #000;
  margin: 15px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

.order-intro {
  text-align: center;
  margin-bottom: 20px;
}

.order-section {
  margin-bottom: 15px;
}

.order-include {
  margin: 10px 0 5px 0;
  font-weight: bold;
}

.order-list {
  list-style: disc;
  padding-left: 20px;
  margin: 5px 0;
}

.order-staff-note {
  font-size: 0.9em;
  color: #000;
  margin-top: 10px;
}

.order-divider {
  text-align: center;
  margin: 15px 0;
  font-style: italic;
  color: #000;
}

.order-thankyou {
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
  color: #0d14a2;
}

.modal-contact-info a {
  color: #0d14a2;
  text-decoration: none;
  font-weight: bold;
}

.modal-contact-info a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .toc-container {
    padding: 10px 15px;
  }

  .toc-header {
    flex-direction: column;
    text-align: center;
  }

  .toc-logo {
    max-width: 80%;
  }

  .toc-main-wrapper {
    flex-direction: column;
  }

  .toc-sidebar {
    flex: 1 1 100%;
  }

  .toc-content {
    padding: 20px 15px;
  }
}

/* ============================================================
   Additional shared rules
   ============================================================ */

/* Article fragment styles (from special/articles/*.htm) */
#article h1 {
    color: #00CC33;
    font-weight: bold;
    font-size: larger;
    text-align: center;
}
#article h2 {
    color: #00CC33;
    font-size: large;
    text-align: center;
}
#article p {
    text-indent: 20px;
}

/* Disclaimer paragraph */
.disclaimer {
    font-size: 11px;
}

/* Modal subtitle (used in TOC order modals) */
.modal-subtitle {
    font-size: 18px;
    font-weight: normal;
}

/* ============================================================
   Contact Modal Form
   ============================================================ */

.modal-form label {
  display: block;
  margin: 12px 0 4px;
  font-weight: bold;
}
.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.modal-form textarea {
  min-height: 100px;
  resize: vertical;
}
.modal-form button[type="submit"] {
  background: #0d14a2;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 12px;
}
.modal-form button[type="submit"]:hover   { opacity: 0.85; }
.modal-form button[type="submit"]:disabled { background: #ccc; cursor: not-allowed; }

/* Honeypot — invisible to humans, bots fill it */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* OR divider (extends existing .modal-divider rule) */
.modal-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}
.modal-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ccc;
}
.modal-divider span {
  position: relative;
  background: #fff; /* must match .modal-content background */
  padding: 0 12px;
  font-weight: bold;
  font-size: 14px;
  color: #555;
}

/* Contact details block */
.contact-details {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}
.contact-details p {
  margin: 6px 0;
  line-height: 1.6;
  font-size: 14px;
}
.contact-details .company-name { font-size: 15px; margin-bottom: 10px; }

/* Ethics page table borders (from css/global.css) */
.cellborder {
    border: 1px solid #CCCCCC;
}
.tablegraybord {
    border: 1px solid #666666;
}

/* ============================================================
   Glossary two-column layout
   #terms = word list (left); sibling div with margin-left = definitions (right)
   ============================================================ */

/* Right margin and font for the whole glossary block */
#notab {
  margin-right: 50px;
  font-family: 'Roboto', 'Noto Sans', Arial, sans-serif;
}

/* Word list column */
#terms {
  float: left;
  width: 200px;
  padding-right: 20px; /* gap to definitions */
  box-sizing: border-box;
}

/* Hanging indent so wrapped term names indent on second line */
#terms p b {
  display: block;
  padding-left: 10px;
  text-indent: -10px;
}

/* Definitions column: BFC makes it auto-sit beside the float;
   overrides inline margin-left:170px in the .htm files */
#notab > div[style] {
  overflow: hidden;
  margin-left: 0 !important;
}

/* Clearfix so #notab contains the floated #terms */
#notab::after {
  content: '';
  display: table;
  clear: both;
}

/* Override .main-content p margin so definitions aren't double-indented */
#notab p {
  margin-left: 0;
  margin-right: 0;
}

/* Collapse to single-column on mobile */
@media (max-width: 768px) {
  #notab {
    margin-right: 0;
  }
  #terms {
    float: none;
    width: auto;
    padding-right: 0;
  }
  #notab > div[style] {
    overflow: visible;
  }
}
