@import "../vendor/bootstrap/dist/css/bootstrap.min-cf4cd0b7e86ca2d4039dfed2b7d527d5.css";

@import "../vendor/leaflet/dist/leaflet.min-eca67356f10ad8812f66fd3ac8e63d08.css";

@font-face {
    font-family: 'Roboto';
    src: url("../fonts/Roboto/Roboto-VariableFont_wdth,wght-7eeb4cc61f8e9aca1d1f8f4e99839c93.ttf") format('truetype');
}

@font-face {
    font-family: 'Archivo';
    src: url("../fonts/Archivo/Archivo-VariableFont_wdth,wght-0faa64b31a27b8ddc47ac1e2f90186f4.ttf") format('truetype');
}

:root {
  --primary-highlight: #6C1EE3; /*#6C1EE3*/ /*temporäre Alternative: #730DD9*/
  --primary-green-highlight: #8CF226; /*#34ED5E*/
  --timeline-cluster: #6C1EE3; /*#6C1EE3*/ 
  --timeline-cluster-point: #6C1EE3;
  --primary-bg-color: #ffffff;
  --primary-color: #050505;
  --primary-grey: #5d5d5d;
}

/*colour tests: #356c23 #8DE31E*/

body {
    background-color: var(--primary-bg-color);
    color: #121212;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.container-padding {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

@media (min-width: 575.98px) { /* Bootstrap 'sm' breakpoint */
	.container-padding {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

@media (min-width: 991.98px) { /* Bootstrap 'lg' breakpoint */
	.container-padding {
        padding-right: 3rem;
        padding-left: 3rem;
    }
}

/*
.section + .section::before {
    content: " ";
    width: 100%;
    background-color: var(--primary-highlight);
    height: 1px;
    display: block;
    margin-bottom: 50px;
}*/

.section {
    border-top: 1px solid var(--primary-highlight);
    padding-top: 50px;
    margin-bottom: 60px;
}

.section:first-child {
    border-top: none;
}

/*
.section, header .container {
  border-bottom: 1px solid black;
}

.section:last-child {
    border: none;
}*/

/*designs for hero*/
.jumbo-subtitle h1 {
    /*font-size: 5rem;*/
    font-size: 2.5rem;
    text-align: center;
}

h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 20px;
    font-size: 1.75rem;
    line-height: 1.1;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.1;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.1;
}

@media (min-width: 575.98px) { /* Bootstrap 'sm' breakpoint */
	.jumbo-subtitle h1 {
        text-align: left;
        font-size: 3rem;
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/*designs for navbar*/
.navbar {
    /*background-color: #A2A629; rgb(0, 25, 118);*/
    background-color: var(--primary-highlight);
    font-size: 1rem;
}

.navbar-brand, .navbar-brand:hover {
    color: var(--primary-bg-color);
    font-family: 'Archivo', sans-serif;
    text-decoration: none;
}

.navbar-brand h4 {
    color: var(--primary-bg-color);
    line-height: 110%;
    /*padding: 0.5rem;
    border: 2px solid #F0EFFE;*/
}

.nav-item .nav-link {
    color: var(--primary-bg-color);
    font-family: 'Roboto', sans-serif;
    font-weight: 350;
    text-transform: uppercase;
}

.navbar-nav .nav-link.show {
  color: var(--primary-bg-color);
}

.nav-link:hover, .nav-link.selected, .dropdown-menu.show .dropdown-item:hover {
    text-decoration-line: underline;
    text-decoration-thickness: 10%;
    text-underline-offset: 0.3rem;
    /*color: #FA5401;*/
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23F0EFFE' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler {
  border-color: rgba(240, 239, 254, 0.6);
}

.navbar-toggler:focus {
  box-shadow: none; /* entfernt den blauen Bootstrap-Fokusring */
}

.dropdown-menu.show {
    /*background-color: #A2A629; rgb(0, 25, 118);*/
    background-color: var(--primary-highlight);
    /*border-color: rgb(94, 66, 138);*/
    border-radius: 0%;
}

.dropdown-menu.show .dropdown-item {
    color: var(--primary-bg-color);
}

.dropdown-menu.show .dropdown-item:hover {
    background-color: var(--primary-highlight);
}

/* rgb(0, 25, 118);*/
/*
footer {
    background-color: #A65D03; 
    color: #F2EFE9;
    margin-top: 5rem;
    padding: 30px 30px;
}*/

/*designs for footer*/
footer {
    font-size: 1rem;
}

footer .container {
    border-top: 1px solid var(--primary-highlight);
}

a, .footer-link {
    color: var(--primary-highlight);
    text-decoration: none;
}

.partner a {
    color: var(--primary-color);
}
/*.footer-link:hover {
    color: var(--primary-highlight);
    text-decoration: none;
}*/

#map {
    height: 35vh;
    width: 100%
}

.card-text {
    margin-bottom: 0.3rem;
}

.card-text a {
    color: var(--primary-color);
}

.card-text.reference, .card-text.reference a {
    color: var(--primary-grey);
    font-size: 0.9rem;
}

a:hover, .footer-link:hover, .card-text a:hover {
    color: var(--primary-highlight);
    text-decoration: underline;
}

/*designs for section institutes*/
.houses p {
    font-size: 1rem;
    text-align: justify;
}

.houses img {
    margin-bottom: 1rem;
}

/*other designs*/
.caption, .detail-source {
	font-family: 'Roboto', sans-serif;
	font-size: 0.9rem;
    line-height: 1.1;
	color: #4B4B4B;
	margin-top: 5px;
}

/*designs for footnotes*/
li a, sup a {
	text-decoration: none;
}

/*bibliography*/
.bibliography {
	list-style-type: none;
	padding-left: 0;
}

.bibliography li {
	margin-top: 0.4rem;
}

/*designs for navigation-1
.container-fluid {
    padding: 100px 25px;
}*/

/* Designs for language Switch*/
.language-switch span, .language-switch span a {
    color: var(--primary-bg-color);
    font-weight: 350;
    text-decoration: none;
}

/* Designs for Search-bars */
input {
    /*background-color:  rgba(242, 211, 153, 0.5);*/
    border: 2px solid var(--primary-color);
    border-radius: 0px;
    color: var(--primary-color);
    font-size: 1rem;
    width: 70%;
}

input::placeholder {
    color: grey;
    font-size: 1rem;
}

/*change blue glow around (bootstrap) input element when focused*/
input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(115, 13, 217, 0.4);
}

form button {
    background-color: var(--primary-bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 0px;
    color: var(--primary-color);
    font-size: 1rem;
}

form button:hover, .detail-close:hover {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-bg-color);
}

/*styles for keydocumte-cards*/
.card, .card-img-top {
    border-radius: 0;
    border-width: 1px;
    border-top-width: 10px;
}

.card-text {
    font-size: 1rem;
    line-height: 1.2;
}

.card-text a {
    text-decoration: none;
}

.card-text a:hover {
    text-decoration: underline;
}

/*Styles for contents on history-template*/
.content {
	border-style: solid;
	border-color: var(--primary-green-highlight);
	border-width: 1px;
	padding: 0.5rem;
}

.content a {
	font-size: 0.9rem;
    color: var(--primary-color);
}

.info-box {
	border-style: solid;
	border-color: var(--primary-green-highlight); /*var(--primary-highlight)*/
	border-width: 1px;
	padding: 0.5rem;
}

.info-box p:last-of-type {
    margin-bottom: 0;
}

/*
.archive-ref {
    font-family: 'Roboto', sans-serif;
	font-size: 0.9rem;
	color: #4B4B4B;
    margin-bottom: 0rem;
}

.archive-ref a {
    color: #4B4B4B;
}

.archive-ref a:hover {
    color: var(--primary-highlight);
}
    */

/*
STYLES FOR TIMELINE
*/

/* Detail-Bereich */
.timeline-detail {
    display: none;
    padding: /*2rem*/ 0.5rem;
    /*border: 1px solid var(--primary-color);
    border-bottom: none;*/
    /*border-radius: 0.5rem 0.5rem 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;*/
    position: relative;
    min-height: 300px;
}

.timeline-detail.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Close-Button für Detail-Bereich, für hover siehe oben bei form button:hover*/
.detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    /*background: rgba(255,255,255,0.2);*/
    background-color: var(--primary-bg-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    /*transition: background 0.2s;*/
}

/*Datumsangabe im Detail-Bereich*/
.detail-date {
    opacity: 0.9;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;/*0.5rem;*/
}

/*Überschrift*/
/*
.detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}*/
h4.detail-title {
    font-family: 'Archivo', sans-serif;
    margin-bottom: 0.3rem;
}

/*Text*/
.detail-text {
    /*font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 1.5rem;*/
    margin-top: 0.75rem;
}

/*Link zu Biografie*/
.detail-link {
    /*display: inline-flex;
    align-items: center;
    gap: 0.5rem;*/
    color: var(--primary-highlight);
    text-decoration: none;
    font-size: 0.9rem;
    /*padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background: rgba(255,255,255,0.2);
    transition: background 0.2s;*/
}

.detail-link:hover {
    /*background: rgba(255,255,255,0.3);
    color: white;*/
    text-decoration: underline;
}

/* Zitat-Bereich, source siehe oben bei caption, grün */
.detail-quote {
    background: rgba(140, 242, 38,0.1);
    border-left: 4px solid rgba(140, 242, 38,0.5);
    padding: 1rem;
    border-radius: 0.375rem;
    margin: /*1.5rem*/ 0.9rem 0;
    backdrop-filter: blur(10px);
}

.detail-quote blockquote {
    font-size: /*1.2rem*/ 1rem;
    font-style: italic;
    /*margin-bottom: 1rem;*/
    line-height: 1.5;
    position: relative;
}

/*
.detail-quote blockquote::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    opacity: 0.3;
}
*/    

/*bisher nicht gebraucht -> löschen?!*/
.detail-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
    margin-top: 1.5rem;
}

/*Ende Styles Detail-Bereich*/

/* Scrollbarer Zeitstrahl-Bereich */

/*gesamter Timeline-Container/Bereich*/
.timeline-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding: /*2.5rem 0.5rem*/ 1.5rem 0.5rem 2.5rem 0.5rem;
    background: var(--primary-bg-color);
    /*border-radius: 0 0 0.5rem 0.5rem;*/
    /*border: 1px solid var(--primary-color);*/
}

/* Custom Scrollbar */
.timeline-scroll-wrapper::-webkit-scrollbar {
    height: 12px;
}

.timeline-scroll-wrapper::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 6px;
}

.timeline-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

.timeline-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}

/* Der eigentliche Zeitstrahl */
.timeline {
    position: relative;
    min-width: max-content;
    height: 60px;
}

/* Die horizontale Linie */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: translateY(-50%);
    border-radius: 2px;
}

/* Container für Punkte */
.timeline-points {
    position: relative;
    height: 100%;
    display: flex;
    gap: 0;
}

/* Einzelner Punkt */
.timeline-point {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Der Kreis */
.timeline-point .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 3px solid var(--primary-bg-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-color), 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

/* Gebündelter Punkt (Cluster), lila */
.timeline-point.cluster .circle {
    width: 24px;
    height: 24px;
    background: var(--timeline-cluster);
    box-shadow: 0 0 0 3px var(--timeline-cluster), 0 3px 12px rgba(115, 13, 217, 0.4); /*hier lila als rgb*/
    animation: pulse 2s infinite;
}

/*
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px var(--timeline-cluster), 0 3px 12px rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.3), 0 3px 12px rgba(220, 53, 69, 0.6);
    }
}*/

.timeline-point.cluster .circle::after {
    content: attr(data-count);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: var(--primary-bg-color);
}

/* Hover-Effekt auf Kreisen (jetzt grün)*/
.timeline-point:hover .circle {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 0 5px rgba(140, 242, 38, 0.3), 0 3px 12px rgba(0,0,0,0.3);
}

/*lila*/
.timeline-point.cluster:hover .circle {
    width: 28px;
    height: 28px;
    box-shadow: 0 0 0 5px rgba(115, 13, 217, 0.3), 0 3px 12px rgba(0,0,0,0.3);
}

/*grün*/
.timeline-point.active .circle {
    background: var(--primary-green-highlight);
    box-shadow: 0 0 0 5px var(--primary-green-highlight), 0 3px 12px rgba(154, 205, 50, 0.5);
}

/* Label unter dem Punkt */
.timeline-point .label {
    position: absolute;
    top: calc(50% + 35px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: /*#6c757d*/ var(--primary-grey);
    white-space: nowrap;
    font-weight: 500;
}

.timeline-point.cluster .label {
    color: var(--timeline-cluster);
    font-weight: 600;
}

/* Sub-Events */
.sub-event .circle {
    width: 14px;
    height: 14px;
    background: var(--timeline-cluster-point);
    box-shadow: 0 0 0 3px var(--timeline-cluster-point), 0 2px 6px rgba(0,0,0,0.2);
}

.sub-event:hover .circle {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    /*.detail-title {
        font-size: 1.5rem;
    }
    
    .detail-quote blockquote {
        font-size: 1.1rem;
    }*/
    
    .timeline-scroll-wrapper {
        padding: 2.5rem 1rem;
    }
}