﻿*{
  box-sizing: border-box;
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('font/montserrat-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}*

/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('font/open-sans-v43-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

.container {
    max-width: 1200px;
    min-width: 400px;
    margin: 20px auto;
	background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;}

header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1200px;
    min-width: 400px;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #E0E8F5;
    margin-bottom: 20px;
}

.logo {
	margin-right: 20px;
	margin-left:15px;
}

.menu {
  	display: flex;
  	align-items: flex-end;
  	margin-left: 15px;
}	

nav {
    display: flex;
    flex-direction: row;
    margin-top: 15px;
    padding: 0;
    float: right;
}

nav a {
    text-decoration: none;
    color: #0D59AB;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;}

nav a:hover {
    color: #0099FF;
    transform: scale(1.05);
}

.social-link {
  display: inline-block;    /* Wichtig für margin */
  margin-top: 2px;          /* Verschiebt das Element 5 Pixel nach unten */
}

svg {
  	fill: #0d59ab;
  	transition: fill 0.3s, transform 0.3s;
}

svg:hover {
	stroke: #0099FF;
  	fill: #0099FF;
  	scale: 1.1;
}

body {
    background-color: #F2F7FF;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    min-width: 538px;
    margin: 0;
    padding: 0;
}
main {
    display: flex;
    flex-direction: column;
    flex-flow: wrap;
    max-width: 1200px;
    min-width: 370px;
    padding: 0px;
    justify-content: center;
    border-bottom: 1px solid #E0E8F5;
}
.main-text {
	display: flex;
	flex: 1 1 100%;         /* Wächst mit main mit */
  	width: 95%;
    flex-direction: column;
    flex-wrap: nowrap;
  	box-sizing: border-box;
	justify-content: center;
	margin: 15px;
    background: #FFFFFF;
    border: 1px solid #eee;
    border-radius: 5px;
    align-items: center;
    min-width: 380px;
    min-height: 200px;
    padding: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.main-content {
  flex: 2 1 300px;          /* wächst stärker, schrumpft bis 300px */
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;      /* Standard: 1 Spalte */
  grid-template-areas:
    "item1"
    "item2"
    "item3"
    "item4";
  gap: 16px;
  max-width: 1200px;
  margin: auto;
}

.item1 { grid-area: item1; padding: 10px; }
.item2 { grid-area: item2; padding: 10px; }
.item3 { grid-area: item3; padding: 10px; }
.item4 { grid-area: item4; padding: 10px; }

/* Für breite Fenster: 2 und 3 nebeneinander */
@media (min-width: 700px) {
  .grid-container {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "item1  item1"
      "item2  item3"
      "item4  item4";
  }
  .item1,
  .item4 {
    grid-column: 1 / span 2;
  }
  .item2, .item3 {
    grid-column: auto;
  }
}
.item3 img {
  width: 100%;
  height: auto;
  display: block;
  /* Optional: Damit das Bild nicht größer als der Container wird */
  max-width: 100%;
}
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    min-width: 380px;
    min-height: 300px;
}

@media (min-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}


@media all and (min-width: 30em) {
.gallery {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 380px;
    min-height: 150px;
    margin-bottom: 15px;
    margin-top: 4px;
  }
}

.gallery-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Wichtig für das Overlay-Positionieren */
    flex: 1 1 0;
    overflow: hidden;
    margin-left: 15px;
    margin-right: 15px;
    background: #FFFFFF;
    border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.gallery-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    object-fit: cover;
}

.gallery-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    transform: scale(1.02);
}

.overlay-text {
  position: absolute;
  bottom: 0; /* Oder top: 0; für oben */
  left: 0;
  width: 100%;
  background: rgba(0,89,171,0.7); /* Halbtransparenter Hintergrund */
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 1.2em;
  font-weight: 600;
  box-sizing: border-box;
  transition: background 0.3s;
  pointer-events: none; /* Overlay ist nicht klickbar */
}

.pdf-overlay {
  display: none; /* Standard: versteckt */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.pdf-overlay.active {
  display: flex;
}

.pdf-overlay-content {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  height: 90vh;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.pdf-overlay .close-overlay {
  position: absolute;
  top: 10px; right: 20px;
  background: none;
  border: none;
  font-size: 2em;
  color: #0059ab;
  cursor: pointer;
  z-index: 10;
}

#pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 10px 10px;
  flex: 1;
}

.video-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.video-overlay.active {
  display: flex;
}

.video-overlay-content {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  height: 90vh;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video-overlay .close-overlay {
  position: absolute;
  top: 10px; right: 20px;
  background: none;
  border: none;
  font-size: 2em;
  color: #0059ab;
  cursor: pointer;
  z-index: 10;
}

#video-player {
  width: 100%;
  height: 100%;
  border-radius: 0 0 10px 10px;
  background: #000;
  max-height: 80vh;
  max-width: 100%;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 600px;
  margin: 40px auto;
}

.word-grid a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 8px;
  border: 1px solid #b0b0b0;
  border-radius: 8px;
  text-decoration: none;
  color: #0059ab;
  font-weight: 500;
  font-size: 1.1em;
  background: #fff;
  transition: 
    transform 0.18s cubic-bezier(.4,2,.6,1),
    border-color 0.18s,
    box-shadow 0.18s;
}

.word-grid a:hover,
.word-grid a:focus {
  transform: scale(1.07);
  border-color: #0059ab;
  box-shadow: 0 2px 12px rgba(0,89,171,0.08);
  outline: none;
}

.footer-style {
		text-align: center;
		color: #0D59AB;
		font-size: 0.9rem;
}

.text-style {
		color: #555555;
}

.auto-style3 {
		text-decoration: none;
}

.auto-style4 {
		font-size: smaller;
}

.auto-style5 {
		font-size: smaller;
		color: #555555;
}

.auto-style7 {
		text-align: center;
	}
	.auto-style8 {
		display: flex;
		flex: 1 1 100%; /* Wächst mit main mit */;
		width: 100%;
		box-sizing: border-box;
		justify-content: center;
		margin: 15px;
		background: #FFFFFF;
		border: 1px solid #eee;
		border-radius: 5px;
		align-items: center;
		min-width: 380px;
		min-height: 200px;
		padding: 15px;
		font-size: 1.1rem;
		line-height: 1.6;
		text-align: center;
	}
.textblau-style {
		color: #0D59AB;
		font-weight: 600;
}

.textblaulight-style {
		color: #0D59AB;
		font-weight: 300;
}

/* Standard-Linkfarbe */
a {
  color: #0D59AB; /* Beispiel: Blau */
  text-decoration: underline; /* Optional: Unterstreichung entfernen */
}

/* Hover-Farbe */
a:hover {
  color: #0099FF;
  transform: scale(1.05);
}