/* cassiopeia_wh – user.css | Version 1.3 */

:root {
  --wh-header: #3c4858;
  --wh-nav: #526070;
  --wh-akzent: #2a7cc1;
  --wh-text: #2c2c2c;
  --wh-bg: #f7f8fa;
}

body { color: var(--wh-text); background-color: var(--wh-bg); font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; line-height: 1.7; }
h1, h2, h3, h4 { color: var(--wh-header); font-weight: 600; }
a { color: var(--wh-akzent); }
a:hover { color: var(--wh-nav); }

.header { background-color: var(--wh-header) !important; background-image: none !important; padding: 0.2rem 1rem !important; }
.header .navbar-brand img { max-height: 42px !important; width: auto !important; }
.container-header { max-width: 100% !important; width: 100% !important; padding: 0 !important; }

nav.navbar { background-color: var(--wh-nav) !important; width: 100% !important; max-width: 100% !important; padding: 0 !important; }
nav.navbar a, nav.navbar .nav-link { color: #ffffff !important; }

div.search { background-color: var(--wh-nav) !important; padding: 2px 1rem !important; margin: 0 !important; }
div.search input { background: rgba(255,255,255,0.15) !important; border: 1px solid rgba(255,255,255,0.3) !important; color: #ffffff !important; border-radius: 4px !important; padding: 3px 8px !important; font-size: 0.85rem !important; width: 200px !important; }
div.search input::placeholder { color: rgba(255,255,255,0.6) !important; }
div.search button { background: transparent !important; border: none !important; color: #ffffff !important; }

ul.metismenu ul a { color: #ffffff !important; }
ul.metismenu > li > ul { background-color: #3a4d60 !important; border-top: 2px solid var(--wh-akzent) !important; }
ul.metismenu ul ul { background-color: #5a7080 !important; }
ul.metismenu ul ul ul { background-color: #7a9aaa !important; }
ul.metismenu ul ul ul ul { background-color: #9ab4c4 !important; }
ul.metismenu li > button.mm-toggler { background: transparent !important; border: none !important; color: rgba(255,255,255,0.85) !important; cursor: pointer !important; }

footer.footer { background-color: var(--wh-header) !important; background-image: none !important; color: #cccccc !important; }
footer.footer a { color: #aabbcc !important; }
footer.footer a:hover { color: #ffffff !important; }
.footer-wrapper, .footer-inner, .site-footer, #footer { background-image: none !important; background-color: var(--wh-header) !important; }
.mod-footer p + p { display: none !important; }
.mod-footer p:nth-child(2) { display: none !important; }

/* ============================================================
   FLIP-CARDS – Lernkarten (Thermodynamik und weitere Seiten)
   Ergänzung für: user.css des Cassiopeia Child-Templates
   Einfügen am Ende der bestehenden user.css
   ============================================================ */

/* Grid-Wrapper */
.lk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 2rem 0;
}

/* Karte äußere Box – definiert die Perspektive */
.lk-card {
  height: 180px;
  perspective: 900px;
  cursor: pointer;
}

/* Inneres Element dreht sich */
.lk-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.55s ease;
  transform-style: preserve-3d;
}

/* Flip-Effekt bei Klick */
.lk-card.flipped .lk-inner {
  transform: rotateY(180deg);
}

/* Vorder- und Rückseite gemeinsam */
.lk-front,
.lk-back {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Vorderseite */
.lk-front {
  background: #3c4858;
  color: #fff;
  border-left: 4px solid #2a7cc1;
}

.lk-front p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #fff;
}

/* Nummern-Badge */
.lk-num {
  display: inline-block;
  background: #2a7cc1;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

/* Rückseite – gespiegelt damit nach dem Drehen lesbar */
.lk-back {
  background: #f0f5fb;
  color: #1a2533;
  border-left: 4px solid #2a7cc1;
  transform: rotateY(180deg);
}

.lk-back p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #1a2533;
}

/* Hover-Hinweis auf Vorderseite */
.lk-card:not(.flipped) .lk-front::after {
  content: "antippen zum Aufdecken";
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

/* Hover-Effekt */
.lk-card:hover .lk-inner {
  box-shadow: 0 6px 18px rgba(42,124,193,0.25);
}

