body {
  font-family: system-ui, sans-serif;
  background-color: #0d4d2e;
  color: #fff;
  text-align: center;
  margin: 0;
}

/* === Kopfbereich === */
header {
  background: #07331f;
  padding: 16px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

.lang-switch button {
  background: #14532d;
  color: #fff;
  border: 1px solid #1a4731;
  border-radius: 6px;
  padding: 6px 10px;
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
}
.lang-switch button.active {
  background: #ffe77a;
  color: #222;
}

h1 {
  margin: 0;
  font-size: 1.5em;
}
p {
  color: #cce3d3;
  margin: 4px 0 0;
}
h2 {
  margin-top: 40px;
  color: #ffefc1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* === Tabellenlayout === */
table {
  border-collapse: collapse;
  margin: 20px auto;
  background: #14532d;
  border: 4px solid #1a4731;
  width: 80%;
  max-width: 950px;
  min-width: 700px;
}

th {
  background: #0b3d23;
  padding: 10px;
  color: #ffefc1;
  border: 2px solid #1a4731;
  font-size: 0.9em;
  width: 140px;
}

/* ===================== Zellen ===================== */
td {
  width: 90px;
  height: 100px;
  border: 2px solid #1a4731;
  background: #1e6b3e;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
  padding: 8px;
}

/* IPA-Bereich (oben) */
.ipa-box {
  flex: 1;
  width: 85%;
  border: 2px solid transparent; /* kein Rahmen anfangs */
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-color 0.25s ease, transform 0.1s ease;
  font-size: 1.6em;
  font-weight: bold;
  color: #fff;
  margin-top: 6px;
}

/* Wort-Bereich (unten) */
.word-box {
  border: 2px solid transparent; /* kein Rahmen anfangs */
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: #ffd966;
  align-self: flex-end;
  transition: border-color 0.25s ease, transform 0.1s ease;
  margin-bottom: 4px;
}

/* Hovereffekte — nur Rahmen sichtbar */
.ipa-box:hover {
  border-color: #fff799;
  cursor: pointer;
  transform: scale(1.05);
}
.word-box:hover {
  /*border-color: #fff799;*/
  cursor: pointer;
  transform: scale(1.05);
}

/* Markierter Buchstabe (aktiv & normal) */
.word-box .highlight {
  color: inherit;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.word-box .highlight.active {
  color: #ff4444;
  transform: scale(1.1); /* Zoom-Effekt */
}

/* Zelle leicht vergrößern beim Überfahren */
td:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

footer {
  color: #b4d4b8;
  font-size: 0.9em;
  margin: 20px 0;
}

/* Sprachumschaltung */
.cn {
  display: none;
}

/* ====== Englisches Alphabet (statisch) ====== */
#alphabet-table td {
  /* background: #1e4b2e; /* etwas dunkler, um "nicht klickbar" zu wirken */
  background: #1e6b3e; /* gleiche Farbe wie oben */
  cursor: default;
  transform: none !important;
}

#alphabet-table td:hover,
#alphabet-table .ipa-box:hover,
#alphabet-table .word-box:hover {
  border-color: transparent !important;
  transform: none !important;
}
/*  */