body {
  background-color: white;
  color: #2F4672;
  margin-left: 2.5em;
  margin-right: 2.5em;
  margin-top: 2.5em;
  margin-bottom: 2.5em; 
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

/* === Links === */
a:not(.nav-btn) {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    transition: background-color 0.1s ease, color 0.1s ease;
}

a:not(.nav-btn):hover {
    background-color: #f1f4fd;
    color: #2F4672;
    border-radius: 3px;
}

html.dark-mode a:not(.nav-btn) {
    color: inherit;
}

html.dark-mode a:not(.nav-btn):hover {
    background-color: #2e3850;
    color: #e8edf8;
    border-radius: 3px;
}

a:not(.nav-btn)[href^="http"]::after {
    content: " \2197";
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
}


#main {
	width: 1500px;
	margin:auto;
}

#info_wrapper {
	display: -webkit-flex; 
	display: flex;
}

#uebersicht_wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
}

.box_left{
	margin-right:50px;
}

.small_icon {
	margin-right: 0.5em;
}

.align_with_img  a, img, span {
	vertical-align: middle;
}

div.align_with_img {
	margin-bottom: 1em;
}

.intro {
	margin-top: 1em;
	margin-bottom: 1.5em;
}

.version_info{
	vertical-align:top;
	display: inline-block;
	width: 50%;
}

.version_hinweis{
	padding-left: 2.5em;
	padding-right: 3.5em;
	padding-top:1em;
	padding-bottom:1em;
	background: #fff2c1;
	border: 1px dashed #88aa88;
	
}

.hinweis_entries {
	border:none;
	padding-left: 1em;
}

.hinweis {
	list-style-type: circle;
	line-height: 1.5;
	padding-left: 1em;
}

.hinweis_message {
	display: block;
}

.hinweis_title {
	font-weight: bold;
}

.inline_hinweis_normal {
	margin-left: 2.0em;
	margin-top: 2em;
	margin-bottom: 2em;
}

.inline_hinweis_critical {
	margin-left: 2.0em;
	color: #DF0101;
}

.changelog_entries {
	margin-bottom: 3em;
	padding-bottom:1em;
	padding-top:1em;
	padding-left: 2.5em;
	padding-right: 3.5em;
	background: #fefefe;
	border: 1px dashed #8a96b0;
	border-radius: 5px;
}

div.changelog_entries {
  padding-left: 0.7em;
  padding-right: 3em;
  background: #fefefe;
  border: 1px dashed #8a96b0;
}

li.changelog_entry {
  list-style-type: none;
  margin-left: 0px;
  padding-left: 0px;
  margin-top: 0.8em;
  border-top: 1px solid #dddddd;
  background: #f8f8f8;
}

li.changelog_subchange {
  list-style-type: square;
  margin-left: 1em;
  line-height: 1.5;
}

li.changelog_change {
  list-style-type: circle;
  line-height: 1.5;
}

span.changelog_date {
  color: black;
}

span.changelog_author {
  color: #111188;
}

.changelog_revision {
  font-size: 80%;
  color: #881111;
  background: #fff4f4;
}

.changelog_revision a {
  color: inherit;
}

.changelog_files {
  font-size: 80%;
  font-family: monospace;
  color: #116611;
}

.changelog_files:after {
  content: ':';
}

.changelog_message {
  display: block;
}

.changelog_message_minor {
  display: block;
  color: #FF0000;
  font-style:italic;
}

p.changelog_footer {
  margin-top: 1.5em;
  margin-bottom: 6em;
}

p.changelog_footer a {
  text-decoration: none;
  color: inherit;
}

#prosoz_logo {
	margin-left: auto;
}

.dark-mode #prosoz_logo {
	content: url('img/prosoz_logo_alpha_dark.png');
}

.title_text {
	padding-top:0.2em;
	margin-left: 0.5em;
	font-size: 240%;
	font-weight: bold;
	color: #2F4672;
}

div.title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 50px;
}

.step{
	margin-bottom: 40px;
}

hr {
	border-style: solid none none;
	border-top: 1px dashed #88aa88;
	margin-top: 1em;	
	margin-bottom: 1em;
	margin-right: 1em;
}

.sublist {
	margin-top: 0.7em;
}

li {
	margin-bottom: 0.7em;
}
/* === Navigationsleiste === */
.nav-wrapper {
    margin-bottom: 3em;
    display: -webkit-flex;
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: -webkit-fit-content;
    width: fit-content;
}

.nav-group {
    display: -webkit-flex;
    display: flex;
    border: 1px solid #2F4672;
    border-radius: 5px;
    overflow: hidden;
}


.nav-group:first-child {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
}
.nav-btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 0.5em 1.2em;
    text-decoration: none;
    color: #2F4672;
    background-color: #f1f4fd;
    font-weight: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.nav-btn::after {
    content: attr(data-text);
    font-weight: bold;
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.nav-btn + .nav-btn {
    border-left: 1px solid #2F4672;
}

.nav-btn-active {
    color: #ffffff;
    background-color: #2F4672;
    font-weight: bold;
}

.nav-btn:hover {
    background-color: #d7deee;
    color: #2F4672;
}

.nav-btn-active:hover {
    background-color: #2F4672;
    color: #ffffff;
}

/* === Timeline === */
html {
    scroll-behavior: smooth;
}

#changelog-layout {
    display: flex;
    gap: 4em;
    align-items: flex-start;
}

#timeline {
    position: sticky;
    top: 1em;
    width: 110px;
    min-width: 110px;
    max-height: calc(100vh - 2em);
    overflow-y: auto;
    background-color: transparent;
    border: none;
    padding: 24px 0.8em 1em 0;
    box-sizing: border-box;
}

#changelog-content {
    flex: 1;
    min-width: 0;
}

#timeline .tl-year {
    font-weight: 600;
    color: #8a96b0;
    background-color: transparent;
    display: block;
    padding: 0.15em 0.3em;
    margin-top: 1em;
    margin-bottom: 0.2em;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    user-select: none;
}

#timeline .tl-year:first-child {
    margin-top: 0;
}

#timeline ul {
    list-style: none;
    padding: 0 0 0 1.4em;
    margin: 0 0 0.3em 0;
}

#timeline li {
    margin-bottom: 0;
}

#timeline a {
    text-decoration: none;
    color: #7a88a6;
    display: block;
    padding: 0.15em 0.3em;
    border-radius: 3px;
	transition: background-color 0.1s ease, color 0.1s ease;
}

#timeline a:hover {
    background-color: #f1f4fd;
    color: #2F4672;
	
}

/* === Collapsible Timeline Years === */
#timeline .tl-year::before {
    content: "\25BC";
    margin-right: 0.5em;
    font-size: 0.85em;
    display: inline-block;
    opacity: 0.6;
}

#timeline .tl-year.collapsed::before {
    content: "\25BA";
    margin-right: 0.5em;
}

#timeline .tl-year.collapsed + ul {
    display: none;
}

/* === Versions�berschriften === */
#changelog-content h1 {
    margin-bottom: 0.1em;
}

#changelog-content h1 + h3 {
    margin-top: 0;
}

/* === Versionsbl�cke === */
.version-entry {
    margin-bottom: 5em;
}

/* === Anker-Offset f�r Timeline-Navigation === */
#changelog-content h1 {
    scroll-margin-top: 1.5em;
}

/* === Theme Toggle Button === */
.theme-toggle-btn {
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 0.5em 0.8em;
    color: #2F4672;
    line-height: 1;
}

/* === Dark Mode === */
html.dark-mode body {
    background-color: #1c2032;
    color: #cdd5e8;
}

html.dark-mode .title_text {
    color: #cdd5e8;
}

html.dark-mode .nav-group {
    border-color: #4a5878;
}

html.dark-mode .nav-btn {
    background-color: #252d42;
    color: #cdd5e8;
}

html.dark-mode .nav-btn + .nav-btn {
    border-left-color: #4a5878;
}

html.dark-mode .nav-btn-active {
    background-color: #4a5878;
    color: #ffffff;
}

html.dark-mode .nav-btn:hover {
    background-color: #2e3850;
    color: #e8edf8;
}

html.dark-mode .nav-btn-active:hover {
    background-color: #4a5878;
    color: #ffffff;
}

html.dark-mode .theme-toggle-btn {
    color: #cdd5e8;
}

html.dark-mode .changelog_entries,
html.dark-mode div.changelog_entries {
    background: #202436;
    border-color: #5a6880;
}

html.dark-mode .version_hinweis {
    background: #2a2718;
    border-color: #5a5828;
}

html.dark-mode .inline_hinweis_normal,
html.dark-mode .inline_hinweis_critical {
    color: #e87878;
}

html.dark-mode .inline_hinweis_normal {
    color: inherit;
}

html.dark-mode li.changelog_entry {
    background: #252a3c;
    border-top-color: #3a4060;
}

html.dark-mode hr {
    border-top-color: #3a4060;
}

html.dark-mode #timeline .tl-year {
    color: #5a6880;
}

html.dark-mode #timeline a {
    color: #6a7a9a;
}

html.dark-mode #timeline a:hover {
    background-color: transparent;
    color: #cdd5e8;
}

.dark-mode #prosozbau_logo_new {
	content: url('img/prosozbau_logo_new_dark.png');
}