/* ============================
   GLOBAL
============================ */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: #f5f7fa;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #333;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ============================
   LOADER
============================ */
#loader {
  position: fixed;
  inset: 0;
  background: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#loaderText {
  font-size: 2.8rem;
  font-weight: 600;
  background: linear-gradient(90deg, #00a8ff, #00d2aa);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00a8ff;
  width: 0;
  animation: typing 2.7s steps(30) forwards, blink 0.6s infinite;
}
@keyframes typing { from { width: 0; } to { width: 26ch; } }
@keyframes blink { 50% { border-color: transparent; } }
#loader.fade { animation: fadeAway 0.9s forwards; }
@keyframes fadeAway { to { opacity: 0; visibility: hidden; } }

/* ============================
   DARK MODE BUTTON
============================ */
#darkToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(90deg, #00a8ff, #00d2aa);
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  z-index: 10000;
}
#darkToggle:hover { transform: translateY(-1px) scale(1.03); }
#darkToggle:active { transform: scale(0.98); }

/* ============================
   TITLE
============================ */
.title {
  font-size: 3rem;
  text-align: center;
  margin-top: 80px;
  background: linear-gradient(90deg, #00a8ff, #00d2aa);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%{transform:translateY(0)}50%{transform:translateY(-10px)}100%{transform:translateY(0)} }

/* ============================
   IMAGE + MODAL
============================ */
.image-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
#mainImg {
  width: 260px;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 25px rgba(0,0,0,0.10);
}
#mainImg:hover { transform: scale(1.05); }

#modal {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9000;
}
#modal img {
  width: 80%;
  max-width: 850px;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
#closeBtn {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 3rem;
  cursor: pointer;
  color: #444;
  user-select: none;
}

/* ============================
   INFO LIST (kein Swipe)
============================ */
.info-list {
  max-width: 900px;
  margin: 40px auto 160px;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.info-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.info-box h2 {
  font-size: 2rem;
  margin-top: 0;
  color: #00a8ff;
}

.info-box ul {
  margin: 0;
  padding-left: 20px;
  line-height: 2;
}

/* ============================
   DARK MODE
============================ */
.darkmode body { background: #121212; color: #e7e7e7; }
.darkmode #loader { background: #121212; }
.darkmode #loaderText {
  border-right-color: #00ffcc;
  background: linear-gradient(90deg, #4dc9ff, #00ffcc);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}
.darkmode .title {
  background: linear-gradient(90deg, #4dc9ff, #00ffcc);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}
.darkmode #modal { background: rgba(0,0,0,0.82); }
.darkmode #closeBtn { color: #e7e7e7; }

.darkmode .info-box {
  background: #1e1e1e;
  color: #e7e7e7;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.darkmode .info-box h2 { color: #4dc9ff; }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 600px) {
  .title { font-size: 2.3rem; margin-top: 72px; }
  #mainImg { width: 200px; }
  .info-box { padding: 22px; }
  .info-box h2 { font-size: 1.6rem; }
}