body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

header nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #222;
  font-weight: bold;
}

h1 {
  text-align: center;
  margin-top: 40px;
  font-size: 2em;
}

p {
  text-align: center;
  font-size: 1.2em;
  color: #555;
}

/* Karten */
.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px;
}

.card {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.05);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-title-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card-title-hover {
  opacity: 1;
}

/* Popup Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10;
}

.popup {
  display: none;
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  padding: 20px;
  z-index: 20;
  width: 80%;
  max-width: 900px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);

  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start; /* Inhalte oben ausrichten */
}

.popup-img {
  width: 40%;
  height: auto;
  max-height: calc(100vh - 100px);
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.popup-content {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.popup-content {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.popup-content h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.popup-content p {
  margin: 0;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 10px; /* oben rechts */
  cursor: pointer;
  color: red;
  font-size: 24px;
  z-index: 30;
}

/* Language Switcher */
.language-switcher {
  position: relative;
  width: 120px;
  height: 120px;
  margin-right: 20px;
  transform-origin: 60px 60px;
}

.triangle-lines line {
  stroke: #333;
  stroke-width: 2;
}

.lang-circle {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: transform 0.3s;
}

.lang-de { top: 0; left: 40px; }
.lang-en { bottom: 0; left: 0; }
.lang-zh { bottom: 0; right: 0; }

.lang-circle.active {
  background: #222;
  color: #fff;
}

