body {
  font-family: Roboto, sans-serif;
}



.language {
  padding: 10px 15px 0;
  text-align: right;
}

.language a {
  color: #000;
  text-decoration: none;
  margin-left: 12px;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
}
.language a:hover {
  color: #c45025;
}
.language a.active {
  color: #c45025;
}






li {
  list-style-type: none;
  margin: 0;
  padding: 10;
}

.hr{
  border: 0px;
  border-bottom: 1px solid #d8d8d8
}
.welcome {
  background-color: #f1f1f1;
  font-weight: 400;
  font-size: 20px;
  color: #292929;
  line-height: 21px;
}
.welcome b {
  font-weight: 500;
  color:  #c45025;
}
.welcome div.row {
  max-width: 1000px;
}
.welcome p {
  margin: 8px 0;
}


.welcome-title h1 {
    max-width: 90%;
    font-size: 45px;
    color: #000000;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 15px;
    margin-top: 25px;
    padding: 20px 0;
}

.welcome-title h1 .orange {
    color: #EC7A58;
}

@media screen and (max-width: 768px) {
    .welcome-title h1 {
        font-size: 30px;
        margin-bottom: 15px;
        line-height: 1.3;
        padding: 15px 0;
    }
}


h1 {
  padding-top: 70px;
  font-size: 35px;
  font-weight: 500;
  color: #292929;

}

h2 {
  padding-top: 50px;
  font-size: 35px;
  font-weight: 400;
  color: #292929;
}

/* new h2 styles used in data.html */
.datasets-heading {
    padding-top: 20;
    margin-left: 50;  /* Remove the left margin to align with LEAD Data Hub */
    font-size: 30px;
    font-weight: 500;
    color: #292929;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .datasets-heading {
        margin-left: 1.5rem;  /* Keep alignment consistent on mobile */
        font-size: 28px;
    }
}
/* -------*/



.impres p {
  font-weight: 400;
  padding-top: 50px;
  line-height: 30px;
}

.inter p {
  font-weight: 350;
  padding-top: 5px;
  max-width: 870px;
  line-height: 35px;
}




.story-card {
  border: 1px solid #aaa;
  height: 300px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 15px;
  position: relative;
}
.stories a:hover .story-card {
  background-color: #535b9c90;
  background-blend-mode: overlay;
}

.story-card .title {
  color: #292929;
  background-color: #ddd;
  opacity: 0.85;
  padding: 7px;
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #aaa;
  min-height: 65px;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}
.story-card .title b {
  color: #535b9c;
}
.story-card .title .sub {
  font-size: 15px;
  font-weight: 300;
}
.story-card p {
  font-weight: 300;
  font-size: 15px;
  margin-top: 10px;
}

.more.stories .story-card {
  height: 200px;
  border: 1px solid #eee;
}
.more.stories a:hover .story-card {
  background-color: #535b9c;
  background-blend-mode: overlay;
}
.more.stories .story-card .title {
  top: 0;
  height: 100%;
  background-color: #fff;
  border: 0;
  padding: 15px;
}
.more.stories .arr {
  position: absolute;
  bottom: 0;
  right: 10px;
}


.more.stories .arrr {
  position: absolute;
  bottom: 0;
  right: 10px;
}


.arr {
  color: #535b9c;
  font-size: 2rem;
}
.arr a {
  color: #535b9c;
}
.arr a:hover {
  color: #2a2e50;
}



.arrr {
  color: #08090F ;
  font-size: 2rem;
}
.arrr a {
  color: #08090F;
}
.arrr a:hover {
  color: #181B2E;
}



.story, .datahub, .about {
  /* Maximum length of a line in a story */
  max-width: 900px;
}

.story {
  font-weight: 300;
}

.story h1 {
  padding-top: 20px;
  text-transform: none;
  font-size: 40px;
  font-weight: 400;
  line-height: 47px;
}
.story h2 {
  padding-top:  0;
  font-size: 20px;
  font-weight: 300;
  margin-top: -9px;
  line-height: 35px;
}
.story p.author {
  font-family: Lora; 
  padding-top:  0;
  font-size: 12px;
  font-weight: 500;
  margin-top: -9px;
  line-height: 18px;
}

.story .img {
  margin: 20px 0 30px 0;
  text-align: left;
  font-weight: 400;
}
.story .img img {
  width: 100%;
  max-width: 1000px;
  display: block;
}
.story .img p {
  font-family: Lora; 
  margin: 0;
  font-size: 16px;
}
.story .img p.source {
  font-family: Lora;
  font-size: 12px;
}

.img p.source {
  font-family: Lora;
  font-size: 12px;
}


.story .source {
  font-family: Lora;
  font-size: 12px;
}

.story h1.text {
  padding-top: 20px;
  text-transform: none;
  font-size: 40px;
  font-weight: 400;
  line-height: 47px;
}
.story h2.text {
  padding-top: 20px;
  font-size: 30px;
  font-weight: 400;
  line-height: 35px;
}

.story hr {
  border: 0;
  border-bottom: 2px solid #5D5D5D;
}

.story h3{
  padding-top: 20px;
  text-transform: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 10px;
}
.story p.method {
  padding-top: 0 px;
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
}

/* The about used in about.html and index.html */


.about a {
  color: #535b9c;
  font-weight: 400;
}
.about a:hover {
  color: #2a2e50;
}
.about ul {
  padding-left: 45px;
}
.about li {
  margin-bottom: 15px;
}

.about p,
.about li {
  font-weight: 300;
}
.about .bi-arrow-right-circle {
  font-size: 130%;
}

.about ul.bulleted {
  list-style: none !important;
  padding-left: 0 !important;
  
}

.about ul.bulleted li {
  position: relative;
  padding-left: 5em;   /* push text to right */
  margin-bottom: 15px;
  font-weight: 300;
}

.about ul.bulleted li::before {
  content: "•";
  position: absolute;
  left: 4em;
  top: 0.5em;          /* fine-tune vertical position */
  color: black;
  font-size: 16px;    /* fixed pixel size so bullet size won't change */
  line-height: 1;
}



.about-intro {
  max-width: 900px;
  margin: 0 auto 0 auto;
  padding: 0 1rem;
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
}
.about-intro p {
  font-style: italic;
  font-weight: 300;
}

.about-intro h2,
.about-section h2 {
  font-style: normal;
  font-weight: 600; /* or 700 depending on your typeface */
}
.about-section {
  display: flex;
  flex-wrap: wrap;          /* allow wrapping on smaller screens */
  gap: 1.5rem;              /* space between columns */
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.about-section p {
  flex: 1 1 45%;            /* flex-grow:1, flex-shrink:1, basis 45% to get 2 columns approx */
  min-width: 300px;         /* avoid shrinking too small on wider screens */
  padding-left: 3rem;          /* remove left padding for consistent alignment */
  margin-bottom: 1.5rem;
  font-family: Roboto, sans-serif;
}
.about-section a {
  word-break: break-word;
  overflow-wrap: anywhere; /* modern, more aggressive option */
}

/* On small/mobile screens: stack paragraphs */
@media (max-width: 600px) {
  .about-section {
    flex-direction: column;
  }

  .about-section p {
    flex-basis: 100%;
    min-width: auto;
    padding-left: 1rem;     /* optional for some padding */
  }
}

/* This is the two paragraphs in index.html */

.intro-text {
    font-size: 18px;
    line-height: 1.5;
}

.intro-text.bold {
    font-weight: 300;
}

@media screen and (max-width: 768px) {
    .intro-text {
        font-size: 16px;
    }
}
/* This part might need to be deleted later. not sure if we use it. check in data page */

.datahub {
  font-weight: 300;
}
.datahub a {
  color: #535b9c;
  font-weight: 400;
}
.datahub a:hover {
  color: #2a2e50;
}
.datahub .dataset a:first-child {
  display: inline-block;
  margin-right: 20px;
  font-weight: 500;
}
.datahub hr {
  border: 0;
  border-bottom: 2px solid #c45025;
}
/* till here */




/* The two orange-box are used in data.html  and about.html page */

.orange-box-light,
.orange-box-dark {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
  padding: 20px 0; /* vertical padding only */
}

.orange-box-light {
  background: #FFF8F0;
  margin-bottom: 20px;
  padding: 0px 0 48px 0; /* top 20px, right 0, bottom 48px, left 0 */
}

.orange-box-dark {
  background: #FAA085;
  /*margin-bottom: 40px; Remove bottom margin */
  padding: 0px 0 48px 0; /* top 20px, right 0, bottom 48px, left 0 */
  position: relative;  /* Add this */
}

.orange-box-light .datasets-list {
    margin-left: 50px;
    padding-bottom: 50px; /* Add some padding at the bottom */
}
/* Remove any floating or positioning that might cause extension */
.orange-box-light .row {
    margin-left: 0px;
}
.orange-box-dark .datasets-list {
    margin-left: 60px;
    padding-bottom: 80px; /* Add some padding at the bottom */
}

/* Mobile view */
@media (max-width: 768px) {
  .orange-box-light  {
    padding-left: 1rem;
    padding-right: 1.5rem;
  }
}
@media (max-width: 768px) {
    .datasets-heading {
        margin-left: 0;  /* Mobile margin */
        font-size: 28px;
    }
    
    .orange-box-light .container {
        padding: 0;  /* Remove container padding on mobile */
    }
}
/*  funding-list if in about.html at Finanzielle Förderung*/

.funding-list {
    margin-left: 55px;
    padding-right: 55px;
}

.funding-list p {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 300;
}

.funding-list a {
    color: #000000;
    text-decoration: underline;
}

.funding-list a:hover {
    color: #2a2e50;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .funding-list {
        margin-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
/* -------------------------------------------------- */
/* data list in the data.html */
.datasets-list .dataset {
    margin-top: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;  /* Space between link and download icon */
}

.datasets-list a {
    font-size: 16px;
    font-weight: 300;
    color: #000000;
    text-decoration: underline;
    text-decoration-color: #c45025;
    text-decoration-thickness: 1px;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
}

.datasets-list .bi-download {
    font-size: 15px;
    color: #000000;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .datasets-list .dataset {
        margin-left: 0;
        padding-right: 1.5rem;
    }
}


/* data is in dataset.html */
.data {
  font-weight: 300;
  max-width: 750px;
}
.data a {
  color: #535b9c;
  font-weight: 400;
}
.data a:hover {
  color: #2a2e50;
}
.data label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  margin: 0 0 10px 0;
}
.data .download a {
  text-decoration: none;
}
.data .arr {
  padding-top: 40px;
}
.data h1 {
  padding-top: 20px;
  font-size: 24px;
  margin-bottom: 20px;
}
.data ol li {
  list-style-type: decimal;
}
.data ul li {
  list-style-type: disc;
}


/* *************************************** */


* {
  box-sizing: border-box;
}

/* Position the image container (needed to position the left and right arrows) */
.container {
  position: relative;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 0;
  top: 30%;

  padding: 46px;
  margin-top: -12px;
  color: #c45025;
  font-weight: bold;
  font-size: 35px;
  transition: linear;
  
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}



/* Container for image text */
.caption-container {
  text-align: center;
  font-size: 13px;
  padding: 2px 16px;
  color: black;
}

.spaced-image {
    margin-bottom: 2rem;
    margin-top: 10px; /* Adjust this value as needed */
}
.spaced-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.landing-source {
    font-size: 14px;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    color: #292929;
    line-height: 1.4;
    margin-top: 8px;
}


.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.column {
  float: left;
  width: 16.66%;
}

.quote {
  display: inline-block;
  margin-left: 40px; 
}

.charts {
  position:  relative;
}
.annDiv {
  font-size: 12px;
  position: absolute;
  background-color: #fff;
  border:  1px solid #ccc;
  padding:  15px;
  max-width: 300px;
}
.annDiv p {
  margin-bottom: 0;
}



.col-lg-4 {
  display: flex;
  justify-content: center;
}


.more-stories-box {
  display: flex;
  flex-direction: column;
  align-items: left;
  height: 100%;
  flex: 1;
  background: #fff8f0; /* Optional: match background */
  box-sizing: border-box;
}

.more-stories-box img {
  width: 100%;
  max-width: 320px; /* Prevents stretching on large screens */
  height: 250px;
  object-fit: cover;
  margin-bottom: 10px;
  margin-top: 50px;
  border-radius: 10px;
}
/* Responsive fix for mobile */

.more-stories-box .title {
  font-weight: 500;
  padding-top: 5px;
  max-width: 870px;
  line-height: 25px;
  font-size: 18px;
  color: #292929;
}

.more-stories-box p {
  font-weight: 300;
  font-size: 15px;
  margin-top: 5px;
  max-width: 250px; /* You can adjust this value */
  line-height: 1.5; /* Optional: improves readability */
}

.more-stories-box a {
  color: #c45025;
  font-weight: normal;
  text-decoration: underline;
}

.more-stories-box a:hover {
  text-decoration: none;
}


/* Equal height rows */
.row {
  display: flex;
  flex-wrap: wrap;
}
.col-lg-4 {
  display: flex;
}


.story-card .label-link {
  display: inline-block;
  font-size: 15px;
  color: #828282;
  text-decoration: underline;
  margin-bottom: 10px;
  cursor: pointer;
}

.story-card .label-link:hover {
  text-decoration: underline;
  color: #302f2f;
}


/* Orange box used in Videos.html and stories.html */
.stories-container {
    padding: 48px 0;
}
.stories-intro {
    max-width: 900px;
    margin-bottom: 2rem;
}

.stories-intro p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
    color: #292929;
}

.content-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #FFF8F0;
    padding: 48px 0;
    margin: 2rem 0;
}

.story-item {
    display: flex;
    gap: 32px;
    margin: 0 55px 32px;
    padding-bottom: 32px;
}

.story-item:last-child {
    border-bottom: none;  /* Remove border from last item */
}

.story-item img {
    width: 280px;
    height: auto;
    object-fit: cover;
}

.content-text {
    flex: 1;
    max-width: 600px;  /* Control line length */
}

.content-text h3 {
    font-size: 20px;
    font-weight: 400;
    color: #292929;
    margin-bottom: 1rem;
    max-width: 600px;  /* Control heading length */
}

.content-text p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #292929;
    margin-bottom: 1rem;
    max-width: 600px;  /* Control paragraph length */
}

.content-text a {
    color: #c45025;
    text-decoration: none;
    font-weight: 400;
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .stories-intro {
        padding: 0 1.5rem;
    }

    .story-item {
        flex-direction: column;
        margin: 0 1.5rem 2rem;
        gap: 16px;
    }

    .story-item img {
        width: 100%;
    }

    .content-text,
    .content-text h3,
    .content-text p {
        max-width: 100%;  /* Full width on mobile */
    }
}
.story-divider {
    border: none;
    border-top: 2px solid #63666A;
    max-width: 900px;  /* Match content width */
    margin: 32px auto;  /* Center the line */
    margin-left: 55px;  /* Align with content */
}


@media (max-width: 768px) {
    .story-item {
        margin: 0 1.5rem 2rem;
    }
    
    .story-divider {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}
/* ----------------------------- */
footer {
    margin-top: 40px;
}

.footer-main {
    background-color: #F5F5F5;
    padding: 40px 0;
}

.footer-bottom {
    background-color: #FFFFFF;
    padding: 15px 0;
}

/* Keep existing footer styles but update some values */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: left;
}

.footer-text .project-title,
.footer-text .project-subtitle {
    font-size: 14px;
    color: #F98866;
    margin: 0;
    line-height: 1.4;
}

.footer-text .project-title {
    margin-bottom: 4px;
}

.footer-logos {
    display: flex;
    align-items: left;
    gap: 55px;
}

.footer-logos img {
    height: 62px;
    width: auto;
}

.footer-copyright {
    margin: 0;
    padding: 0;
    text-align: left;  /* Changed from center to left */
}

.footer-copyright li {
    font-size: 12px;
    color: #292929;
    display: inline-block;
    margin-right: 15px;
    text-align: left;  /* Ensure text alignment is left */
}

.footer-copyright li:first-child {
    margin-left: 0;
}

.footer-copyright a {
    color: #292929;
    text-decoration: underline; /* Add underline */
    margin-left: 8px; /* Add space after © 2025 */
}

.footer-copyright a:hover {
    color: #f59069;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: left;
        gap: 20px;
    }
    
    .footer-copyright {
        text-align: left;
    }

}
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

.footer-logos {
    display: flex;
    align-items: center;
    gap: 25px;
}

    .footer-logos img {
        height: 42px;
        width: auto;
        object-fit: contain;
    }


    .footer-main {
        padding: 30px 0;
    }

    .footer-text {
        margin-bottom: 10px;
        text-align: left;  /* Ensure text is left-aligned */

    }
}

@media (max-width: 768px) {
    .footer-logos img {
        height: 40px;
        max-width: 100%;
    }
}
    .footer-text .project-title,
    .footer-text .project-subtitle {
        font-size: 13px;
    }

.footer-main .container,
.footer-bottom .container {
    padding-left: 40px;  /* Reduce from default padding */
    padding-right: 40px; /* Reduce from default padding */
}

@media (max-width: 768px) {
    .footer-main .container,
    .footer-bottom .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}


.tonhalle-intro {
  max-width: 900px;      /* same width as .story/.about */
  margin: 3rem 0 1.5rem 0;    /* left-aligned, with bottom space */
  padding: 0;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 400;
  color: #292929;
}


/* change orange box when used inside a story page */
.story .orange-box-light.stories-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 16px 0 0 0; /* even less vertical padding inside story */
}

.story .orange-box-light.stories-container .container {
    max-width: 900px;
    margin: 0;
    padding: 0;
}


.story .orange-box-light.stories-container .story-item {
  margin: 8px 16px 8px;   /* less left/right and vertical margin */
  padding-bottom: 8px;    /* reduce gap below each item */
  gap: 16px;              /* a bit narrower gap between video and text */
}

.story .orange-box-light.stories-container .story-divider {
  margin-left: 16px;      /* align divider with reduced margins */
  margin-right: 16px;
  margin-top: 8px;
  margin-bottom: 8px;
}



.story-item .story-video {
    flex-shrink: 0;
  width: 600px;     /* fixed width for video */
  height: 338px;         /* 16:9 for 600px */
    max-width: 100%;       /* don’t overflow on small screens */
}

@media (max-width: 768px) {
    .story-item .story-video {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}




.story-video-thumb { cursor: pointer; }