* {
  box-sizing: border-box;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  /* font-family: Arial, Helvetica, sans-serif */
  font-size: 13pt;
}

/* ------------------------------------------------- Commons */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

ul {
  list-style-type: circle;
}


main p {
  margin-top: 10px;
  margin-bottom: 4px;  
}

/* ------------------------------------------------- Colors */


/* Normal blue #304a85ff */
/* Hover blue midnightblue #1e2f68ff */
/* independIT blue #224A7C*/
/* Content #122547*/

/* ------------------ Background */

/*  Header, Footer und Menüs normal blue*/
header, nav, .menu a, .submenu, .sidemenu, footer, .menu, .btn-readmore-arrow {
  background-color: #304a85ff;  
}
/*  Menu hover midnightblue*/
.menu a:hover {
  background-color: midnightblue;  
}

/* -----------------  Font */

main {
color: #122547;
}

.breadcrumbs, 
.breadcrumbs a, 
H1, H2, H3, H4, 
.date, 
.article-list li a, 
.content-img-title {
  color: #304a85ff;
}

main a,
footer a,
.highlights a {
  color: #304a85ff;            
  text-decoration: underline;
  transition: color 0.3s ease;
}

main a:hover,
footer a:hover,
.highlights a:hover {
  color: midnightblue;           
  text-decoration: none;
}

/* ---------------------------------------------- Site elements*/


/* Header */
header {
  color: white;
  padding: 25px 0;
  text-align: center;
}


/* Navigation */
nav {
  border-top: solid 1px;
  border-color: white;
  position: sticky;
  top: 0px;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  padding: 15px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 8px 0;
}

.menu li {
  position: relative;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  border-radius: 0px;
}

/* Submenu */
.submenu, .sidemenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  min-width: 180px;
  border-radius: 0 0 5px 5px;
  padding-left: 0px;
  margin: 0;
}

.sidemenu {
  top: -4px;
  left: 150px;
  z-index: 2;
}

.dropdown:hover .submenu {
  display: block;
}

.dropside:hover .sidemenu {
  display: block;
}

.submenu li a {
  padding: 10px 15px;
}

/* Breadcrumbs */

.breadcrumbs {
  font-size: 0.9rem;
  margin: 10px 0 5px 0;
  text-align: center; 
}

.breadcrumbs a {
  text-decoration: none;
}

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


/*  Main */
main {
  flex: 1;
  padding: 20px 0 10px 0;
  line-height: 1.5;
  background-color: white;
}

/*   Footer */
footer {
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* ---------------------------------------------Responsive Design */
@media (max-width: 767px) {
  .container {
    padding: 0 24px;
  }
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 5px;
  }

  .menu.open {
    display: flex;
  }

  .menu-icon {
    display: block;
  }

  .menu li a {
    border-radius: 0;
    padding: 7px;
  }

  .submenu, .sidemenu {
    position: static;
    padding-left: 8px;
  }
}

/* ------------------------------------------------content elements */

/* Headlines */

h1 {
  font-size: 25pt; 
  text-align: center;
}

h2, h3, h4 {
  text-align: left; 
  scroll-margin-top: 75px;
  margin-top: 15px;
  margin-bottom: 0px; 
}


h2 {
  font-size: 16pt; 
}

h3 {
  font-size: 14pt;
  margin-bottom: -10px
}

h4 {
  font-size: 12pt; 
  font-weight: bold;
}

hr {
  border: none;              
  height: 1px;               
  background-color: #ccc;   
  margin: 30px 0;            
  opacity: 0.5;              
}

/* Links without underlining */

.article-list {
  list-style: none;   
  padding: 0;
  margin: 0 0 20px 0; 
}

.article-list li {
  margin-bottom: 8px; 
  line-height: 1.3; 
}

.article-list li a {
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}


/* feature gallery*/

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  padding: 16px;
}

.feature-item {
  width: 100px;
  height: 100px;
  position: relative;
  overflow: visible; 
}

.feature-item img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center center;
}


.feature-item:hover img {
  transform: scale(1.5);
  position: relative;
  z-index: 10;          
}

.features-w {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  padding: 16px;
}

/* highlights gallery */

.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}

.highlights img {
  box-sizing: border-box;
  padding: 30px;
  width: 20%; /* 5 rows */
  height: auto;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.highlights img:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.highlights a {
  display: inline-block;
  text-decoration: none;
  width: 20%;
  box-sizing: border-box;
  padding: 30px;
}


.highlights a img {
  width: 100%;
  height: auto;
  padding: 0; 
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.highlights a:hover img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

/* Responsive Tables */
@media (max-width: 900px) {
  .highlights img, 
  .highlights a {
    width: 25%; /* 4 per row */
  }
}

@media (max-width: 600px) {
  .highlights img, 
  .highlights a {
    width: 50%; /* 2 per row */
  }
}

@media (max-width: 400px) {
  .highlights img, 
  .highlights a {
    width: 100%; /* 1 per row */
  }
}

/* images and subtitles*/

.content-img {
  max-width: 100%;            
  display: block;
  margin: auto;
  margin-top: 30px;
  margin-bottom: 15px;
  height: auto;
}

.content-img-title {
  max-width: 100%;
  text-align: center;
  font-style: italic;
  margin: auto;
  height: auto;
}

/* ------------- media blocks video list */

/*picture and text in rows */

.video-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

/* Container */

.video-item {
  display: flex;
  gap: 20px;               /* Abstand zwischen Bild und Text */
  flex-wrap: wrap;          /* erlaubt Umbruch bei kleinen Bildschirmen */
  align-items: flex-start;
}

/* Bild-Link */
.video-item > a {
  flex: 1 1 45%;           /* Basisbreite ca. 45%, kann schrumpfen/grow */
  max-width: 450px;        /* maximale Breite für große Bildschirme */
  min-width: 200px;        /* minimale Breite für kleine Bildschirme */
  display: block;
}

/* Bild selbst */
.video-item > a img {
  display: block;
  width: 100%;             /* Bild füllt Link-Container */
  height: auto;            /* proportional bleiben */
}

/* Text */
.video-text {
  flex: 1 1 50%;           /* nimmt den restlichen Platz */
  min-width: 0;             /* verhindert Überlaufen bei langen Texten */
}

/* Responsiv: untereinander bei schmalen Bildschirmen */
@media (max-width: 768px) {
  .video-item {
    flex-direction: column;
  }

  .video-item > a,
  .video-text {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/*                                           Tabelle Edition Comparition 


/* Grundlayout der Tabelle */
/* Titel zentriert */
.table1 {
  border-collapse: collapse;   /* keine doppelten Linien */
  width: 100%;                 /* volle Containerbreite nutzen */
  margin: 0;                   /* keinen extra Außenabstand */
  padding: 0;                  /* kein Innenabstand */
  border: none;                /* kein äußerer Rahmen */
}

/* Alle Zellen */
.table1 td {
  border: 1px solid #ccc;      /* nur Trennlinien zwischen Feldern */
  padding: 6px 8px;
  vertical-align: middle;
}

/* Kopfzeilen */
.table1 .fheader {
  font-weight: bold;
  background-color: #f9f9f9;   /* optional */
  text-align: center;
}

/* Erste Spalte (Feature-Namen) */
.table1 .ftitle {
  font-weight: 500;
  text-align: left;
}

/* Titel linksbündig */
.table2 {
  border-collapse: collapse;   /* keine doppelten Linien */
  width: 100%;                 /* volle Containerbreite nutzen */
  margin: 0;                   /* keinen extra Außenabstand */
  padding: 0;                  /* kein Innenabstand */
  border: none;                /* kein äußerer Rahmen */
}

/* Alle Zellen */
.table2 td {
  border: 1px solid #ccc;      /* nur Trennlinien zwischen Feldern */
  padding: 6px 8px;
  vertical-align: middle;
}

/* Kopfzeilen */
.table2 .fheader {
  font-weight: bold;
  background-color: #f9f9f9;   /* optional */
  text-align: left;
}

/* Erste Spalte (Feature-Namen) */
.table2 .ftitle {
  font-weight: 500;
  text-align: left;
}


/* ------------- Button */

.btn-readmore-arrow {
  display: inline-block;
  padding: 2px 4px;
  color: white;                
  font-size: 14px;
  font-weight: 520;
  border: 1px solid white;
  /* border: 1px solid #0a3c8bff; */
  border-radius: 4px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover */
.btn-readmore-arrow:hover,
.btn-readmore-arrow:focus {
  background-color: white;
  color: #0a3c8bff;
  border: 1px solid #0a3c8bff;
  transform: translateY(-2px);
}

/* Hover über besuchten Link explizit */
.btn-readmore-arrow:visited:hover,
.btn-readmore-arrow:visited:focus {
  background-color: white;
  color: #0a3c8bff;
  border: 1px solid #0a3c8bff;
  transform: translateY(-2px);
}

/* Besucht-Zustand, ohne Hover */
.btn-readmore-arrow:visited {
  color: white;  
}

/* Nach oben Button*/
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}