/* --- RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #f5f5f3;
  color: #333;
  text-align: justify;
}

/* --- HEADER --- */
header {
  background: #004aad;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

header h1 {
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.hauptseite {
  width: 5%;
  margin: 0;
  align-self: left;
  align-content: left;
  padding:0;
}

h1 {
  color: white;
  text-decoration: none;
  align-self: left;
  align-items: left;
  padding-left: 0;
  margin-left: 0;
  text-align: left;
}

nav a.active,
nav a:hover {
  text-decoration: underline;
}

/* --- MAIN CONTAINER --- */
.container {
  padding: 2rem;
  min-height: 70vh;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

/* Flexbox principal */
.flex-section-principal {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1%;
  margin-bottom: 1%;
  align-items: stretch;
}

.flex-section-card {
  display: grid;
  grid-template-columns: 50% 50%;
  flex-wrap: wrap; 
  gap: 1rem; 
  max-width: 100%; 
}

.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  flex: 1 1 calc(50% - 1rem); 
  min-width: 250px; 
  text-align: center;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box; 
}

.card-img {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.card:hover,
.card-img:hover {
  transform: translateY(-5px);
}

/* Base */

a {
  text-decoration: none;
  color: inherit;
}

h2 {
  margin: 2% 0% 3% 0%;
  text-align: center;
  font-size: 250%;
  color: rgb(0, 0, 0);
}

h3 {
  margin: 2% 0% 2% 0%;
  color: rgb(1, 45, 56);
  text-align: center;
  font-size: 150%;
}

.h3-rouge {
  display: inline-block;
  padding: 2% 40%; 
  border: 0.2em solid #004aad;
  background-color: transparent;
  border-radius: 15px 15px 15px 15px;
  margin: 10x 0; 
}

h4 {
  margin: 1% 0% 1% 0%;
  color: rgb(1, 45, 56);
}

.source {
  font-size: 0.8rem;
  color: gray;
  margin-top: 0.5rem;
  font-family: cursive;
  text-align: center;
}

ul {
  margin-left: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}


/* Flexbox Elysee-Vertrag */

.flex-section-elysee {
  display: flex;
  gap: 1.5rem;
  margin-top: 1%;
  margin-bottom: 1%;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.img-elysee {
  width: 100%;
  height: 100%;         
  border-radius: 2%;
}

.texte-elysee {
  text-align: justify;
  width:auto;
}

/* --- Flexbox Karikatur --- */
.flex-section-karikatur {
  display: flex;
  gap: 1.5rem;
  margin-top: 1%;
  margin-bottom: 1%;
  align-items: flex-start;
  grid-auto-rows: 1fr;
}

.img-karikatur{
  flex: 0 1 40%;
  max-width: 100%;
  height: 100%;         
  border-radius: 5%;
  border-width: 2px;
  border-style: solid;
  border-color: black;
}

.flex-section-karikatur > div:last-child {
  position: relative;
  flex: 1 1 50%;             
  min-width: 250px;         
}

.flex-section-karikatur > div:last-child {
  position: relative; 
}


.source_longue {
  font-size: 0.8rem;
  color: gray;
  margin-top: 0.5rem;
  font-family: cursive;
  text-align: center;
  cursor: help;
  display: inline-block;
}

.drop_source {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: #fff;
  color: gray;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  z-index: 50;
  width: 450px;
  white-space: normal;
}

.flex-section-karikatur > div:last-child .source_longue:hover + .drop_source,
.flex-section-karikatur > div:last-child .source_longue:focus + .drop_source {
  display: block;
  position:absolute;
}

/* --- Flexbox Zeitung --- */
.flex-section-Zeitung {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 1.5rem;
  margin-top: 1%;
  margin-bottom: 1%;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.img-zeitung {
  width: 100%;
  height: 100%;         
  border-radius: 2%;
  border-width: 1%;
  border-style: solid;
  border-color: black;
}

/* --- Flexbox Zeitung 2 --- */
.flex-section-Zeitung2 {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 1.5rem;
  margin-top: 1%;
  margin-bottom: 1%;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.img-Zeitung2 {
  width: 100%;
  height: 100%;         
  border-radius: 2%;
  border-width: 1%;
  border-style: solid;
  border-color: black;
}

/* --- Genially --- */

.genially {
  margin-top: 2rem;
  margin-bottom: 2rem;
  justify-content: center;
}

/* --- IFRAME VIDEO --- */

.video {
  display: block;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.audio {
  display: block;
  margin: 1rem;
}

/* --- FOOTER --- */

footer {
  background: #004aad;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Flexbox Podcast Napo */

.flex-section-podcastNapo {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 1.5rem;
  margin-top: 1%;
  margin-bottom: 1%;
  align-items: stretch;
}

.textenapo {
  text-align: justify;
  width:auto;
  margin:2%;
}

/* From Uiverse.io by ahmed150up */ 
.voice-chat-card {
  width: 100%;
  margin: 3%;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 2px 2px 10px #ccc;
  padding: 10px;
  background-color: #9fc9ff;
}

.voice-chat-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.username {
  margin: 0;
  font-size: 18px;
  color: black;
  text-align: left;
}

.voice-chat-card-body {
  padding: 10px;
}

.status-text {
  font-size: 14px;
  margin-bottom: 10px;
}

.audio-container {
  display: flex;
  align-items: center;
}

audio {
  width: 100%;
}

