/* Local Open Sans Fonts */
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/Open_Sans_Static/OpenSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/Open_Sans_Static/OpenSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/Open_Sans_Static/OpenSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/Open_Sans_Static/OpenSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


:root {

  /* color definition */
  /* --body-bg: #f7f5f2; */
  --body-bg: white;
  --section-bg: #f7f5f2;

  --gold: #b19c5d;
  /* #c8b98d   #baa875 */
  --purple: #74799d;
  /* #454b6a */

  --text-title: #3c3d41;
  --text-color-2: #555;
  --text-color-3: #74799d;
  /* purple */
  --text-color-4: #9ea1b9;
  /* lighter purple */

  --primary-color: #74799d;
  /* Bootstrap Primary Blue */
  --secondary-color: #6c757d;


  /* Light gray for backgrounds */
  --bg-lightgrey: #f7f7f7;


  /* sidebar */
  --sidebar-bg: #ffffff;
  --sidebar-link-color: #b19c5d;

  /* sidebar active */
  --sidebar-link-active-color: var(--text-color-2);
  --sidebar-link-active-bg: var(--bg-lightgrey);
  --sidebar-link-active-border: var(--gold);
  --header-height: 0px;
  --sidebar-width: 250px;

  /* Component tokens */
  --card-radius: 14px;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 6px 20px rgba(0,0,0,0.14);
}

.text-title {
  color: var(--text-title);
  word-break: break-all;
}

.text-gold {
  color: #b19c5d;
}

.text-puple {
  color: #74799d;
}

.text-muted {
  color: var(--text-color-3) !important;
}

.bold {
  font-weight: bold;
}


.form-control {
  border-radius: 0 !important;
}



.section {
  background-color: #ffffff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 1.25rem 1.25rem;
}

.section:hover {
  box-shadow: var(--card-shadow-hover);
  transition: box-shadow 0.2s ease;
}








body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background-color: #f4f5f7;
  color: var(--text-title);
  font-family: 'Open Sans', BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.app-container {
  display: flex;
  flex: 1;
  padding-top: 0;
}

.main-content {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: margin-left 0.3s ease;
}

/* Page Header */
.page-header {
  padding: 1rem 0;
  /* border-bottom: 1px solid #dee2e6; */
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-weight: 600;
}

.page-header h5:focus,
.page-header h3:focus {
  outline: none;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .main-content {
    padding-left: 0;
    padding-right: 0;
  }

  .page-header {
    padding: 0.75rem 1rem;
    margin: 0 -1rem 1rem -1rem;
    /* background-color: #f8f9fa; */
  }
}

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  bottom: 0;
  right: calc(-1 * var(--sidebar-width));
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sidebar .header {
  background-color: #454b6a;
  color: white;
  text-decoration: none;
}

.sidebar .header p {
  color: var(--gold);
}


.sidebar.show {
  right: 0;
}

.sidebar .nav-link {
  color: var(--text-color-2);
  padding: 0.7rem 1.25rem;
  border-left: 4px solid transparent;
  border-radius: 0 10px 10px 0;
  margin: 2px 10px 2px 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.sidebar-toggle i {
  color: var(--gold);
  font-size: 2rem;
}

.sidebar-toggle:focus {
  box-shadow: none;
}

.sidebar .nav-link.active {
  background-color: rgba(116, 121, 157, 0.12);
  border-left-color: var(--purple);
  color: var(--purple);
  font-weight: 600;
}

.sidebar .nav-link:hover {
  background-color: rgba(116, 121, 157, 0.07);
  border-left-color: var(--gold);
  color: var(--text-color-2);
}

.sidebar .nav-link i {
  width: 22px;
  text-align: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}



/* Navbar removed */

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* sidebar ausgeklappt  */
@media (min-width: 992px) {
  .sidebar {
    left: 0;
  }

  .main-content {
    margin-left: var(--sidebar-width);
  }

  .sidebar-overlay {
    display: none !important;
    /* Ensure overlay is hidden on larger screens */
  }

  .sidebar-toggle {
    display: none !important;
  }

  h3:before {
    content: "";
    height: 2.1rem;
    width: 4px;
    background-color: #c8b98d;
    display: inline-block;
    position: relative;
    transform: translate(-4px, 6px);
  }

}

@media (max-width: 991.98px) {
  .sidebar.show+.sidebar-overlay {
    display: block;
  }
}

/* Smooth fade transition for page content */
.main-content {
  animation: fadeIn 0.3s ease-out;
  will-change: opacity;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}