@import url('global.css');

/*All*/
.container-fluid.tab-content {
  all: unset;
}

.tab-content {
  width: 100%;
}

.tab-pane {
  display: none;
  padding: 60px 0;
}

.tab-pane:target {
  display: block;
}

.tab-pane>h2,
.tab-pane>h3,
.tab-pane>div>h2,
.tab-pane>div>h3 {
  text-align: center;
}

h2+hr {
  all:unset;
  display: block;
  margin: 25px auto; 
  width: 10%;
  height: 2px;
  background-color: var(--primary-color);
}
/*All*/
/*News*/
#news-container {
  display: flex;
  gap: 10px;
  padding: 20px;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #f9f9f9;
}
#news-container>.news-item:first-child {
  flex: 0 0 46%;
  max-width: 46%;
}
.news-column {
  display: flex;
  flex-direction: column;
  flex: 0 0 48%;
  max-width: 48%;
}
.news-column .news-item {
  flex: 0 0 100%;
  max-width: 100%;
}
.news-column .news-item:not(:last-child) {
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  #news-container {
    flex-wrap: wrap;
  }
  #news-container>.news-item,
  .news-column,
  #news-container>.news-item:first-child {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
  }
  .news-column .news-item:not(:last-child) {
    margin-bottom: 15px;
  }
}
.news-item {
  border-radius: 4px;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
  box-sizing: border-box;
}
.news-image {
  width: 100%;
  max-height: 228px;
  object-fit: cover;
  object-position: 0 50%;
}
.news-title {
  font-size: 4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.news-date {
  font-size: 1.8rem;
  font-style: italic;
  color: #666;
  margin-bottom: 10px;
}
.news-content {
  font-size: 2.4rem;
  color: #000;
  line-height: 1.5;
}
.read-more-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 5px 10px;
  font-size: 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}
.read-more-btn:hover {
  background-color: var(--tertiary-color);
}
/*News*/
/*Ziele*/
.material-symbols-outlined {
  color:var(--primary-color);
  font-size: 86px !important;
  padding-top: 20px;
}
#Goals>.row {
  padding-bottom:50px;
}
span+h4 {
  font-size: 25px;
  margin-top: 30px;
}
h4+hr{
  all:unset;
  display: block;
  margin: 25px auto; 
  width: 20%;
  height: 2px;
  background-color: var(--primary-color);
}
/*Ziele*/
/*Aufgaben*/
#Mission.container-fluid {
  margin: auto;
  padding: 40px 20px;
  background-image: linear-gradient(to bottom right, var(--primary-color), var(--tertiary-color),var(--primary-color));
  color: #fff;
}
#Mission.container-fluid >h2+hr {
  background-color:#fff;
}
/*Aufgaben*/
/*Vorstand*/
#Board.container-fluid {
margin: auto;
  padding: 40px 20px;
}
#board-members{
  max-width: 80%;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.board {
  margin-top: 8%;
}
.board > div >.row .col-sm-6 {
  text-align: left;
  margin: 10px 0;
}
.col-sm-6 > h5 {
  font-size: large;
}
/*Vorstand*/
/*Mitgliedschaft*/
#Membership>.row {
  margin:unset;
  padding: 0 20px 40px 20px;
}
.btn-primary {
  color: #fff;
  font-size: 16px;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}
/*Mitgliedschaft*/
/*Publications*/
#Publications>.row +.row{
  margin-top: 30px;
  margin-bottom: 60px;
  background-image: linear-gradient(to bottom right, var(--primary-color), var(--tertiary-color),var(--primary-color));
  color: #fff;
  padding: 40px 0; 
}
.public-txt {
  padding-top: 10%;
}
.public-txt > p > a {
  text-decoration:
underline;
}
#public-txt2 {
  text-align: right;
}
#public-txt2 > p > a {
  color: white;
}
#public1 {
  max-width: 50%;
  margin: auto;
}
#public2 {
  width: 60%;
  max-width: 390px;
  margin: auto;
}
@media (max-width: 768px) {
  #Publications .row {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
  .col-sm-6 {
      width: 100%;
  }
  #public1, #public2 {
    width: unset;
    max-width: 80% !important;
    margin-bottom: 15px;
  }

  .public-txt {
      text-align: left !important;
      padding:20px; 
      order: 1;
  
  }
#public-txt2 > p > a {
  color: white;
}
}
/*Publications*/
/*Links*/
#furtherLinks >li >a{
  color: var(--primary-color);
}
/*Links*/
/*Contact*/
#Contact > .row {
  margin:0;
  padding:20px;
}
/*Contact*/
/* === Embedded PDF block in news === */
.news-pdf {
  margin-top: 24px;
  background-color: #f3f3f3;
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.news-pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-color);
}

.news-pdf-link {
  font-size: 1.4rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-pdf-link:hover {
  color: var(--tertiary-color);
  text-decoration: underline;
}

.news-pdf-embed {
  width: 100%;
  height: 70vh; /* Responsive height, adjust if needed */
  border: none;
  background-color: #e0e0e0;
}

.news-pdf-fallback {
  padding: 16px;
  font-size: 1.4rem;
  color: #444;
  text-align: center;
}
/* --- Overrides: first news item full width on desktop --- */
#news-container > .news-item.news-item--full {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* Keep the remaining column below the first on desktop (your current layout) */
/* If you ever want two columns below, we can add a .news-row layout later. */

/* --- PDF embed sizing --- */
.news-pdf {
  margin-top: 24px;
  background-color: #f3f3f3;
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.news-pdf-header {
  display: flex;
  justify-content: flex-end; /* only the "Open PDF" link on the right */
  align-items: center;
  margin-bottom: 8px;
}

.news-pdf-link {
  font-size: 1.4rem;
  color: var(--primary-color);
  text-decoration: none;
}
.news-pdf-link:hover { color: var(--tertiary-color); text-decoration: underline; }

/* Default height */
.news-pdf-embed {
  width: 100%;
  height: 70vh;
  border: none;
  background: #e0e0e0;
}

/* Bigger on desktop */
@media (min-width: 992px) {
  .news-pdf-embed {
    height: 85vh;
  }
}
/* Make the news card fill the full parent width */
#news-container {
  display: flex;         /* keep your flex layout */
  flex-wrap: wrap;       /* allow full-width rows */
}

#news-container > .news-card,
#news-container > .news-item {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* Optional: if an old rule targets the first child specifically, neutralize it */
#news-container > .news-item:first-child {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}
