/* AyoCraft Welten-Downloads */
:root {
  --gruen: #7be04f;
  --gruen-hell: #b5f27a;
  --gruen-dunkel: #3f9a2a;
  --stein: #3a3d40;
  --stein-hell: #50545a;
  --text: #f2f2f2;
  --text-leise: #c9ccd0;
  --rand: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #14110e;
  line-height: 1.45;
}

/* Hintergrundbild als feste Ebene (funktioniert auch auf iPhones, anders als background-attachment: fixed) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #14110e;
  background-size: cover;
  background-position: center top;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.35) 0%, rgba(10, 8, 6, 0.6) 55%, rgba(10, 8, 6, 0.8) 100%);
}

a { color: var(--gruen-hell); }

.seite {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.kopf { text-align: center; margin: 4px 0 8px; }
.logo-link { display: inline-block; }
.logo { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)); }
.logo.klein { max-width: 300px; margin: 8px auto 4px; }

.menue {
  text-align: center;
  background: rgba(20, 20, 22, 0.62);
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 20px 16px 22px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

h1 { margin: 0 0 4px; font-size: 1.55rem; letter-spacing: 0.02em; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.unterzeile { margin: 0 0 16px; color: var(--text-leise); }

.knoepfe { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 0 auto; }

.welt { display: flex; flex-direction: column; gap: 6px; }

.knopf {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  font: inherit;
  background: linear-gradient(180deg, var(--stein-hell), var(--stein));
  border: 2px solid #1d1f21;
  border-bottom-width: 4px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.08s, border-color 0.15s, background 0.15s;
}
a.knopf:hover, a.knopf:focus-visible, button.knopf:hover, button.knopf:focus-visible {
  border-color: var(--gruen-dunkel);
  background: linear-gradient(180deg, #5b6066, #43474b);
  outline: none;
}
a.knopf:active, button.knopf:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }

.knopf.gross { min-height: 68px; }
.knopf-block { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.knopf-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #10240a;
  background: linear-gradient(180deg, var(--gruen-hell), var(--gruen));
  box-shadow: inset 0 -3px 0 var(--gruen-dunkel);
}
.knopf-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.titel { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.info { font-size: 0.85rem; color: var(--text-leise); }
.weiter { font-size: 1.8rem; line-height: 1; color: var(--gruen); }

.knopf.aus { opacity: 0.55; cursor: default; }
.knopf.aus .knopf-icon { filter: grayscale(1); }

.alt-link {
  align-self: flex-end;
  font-size: 0.9rem;
  padding: 2px 4px;
}

.extra { max-width: 460px; margin: 18px auto 0; padding-top: 18px; border-top: 1px solid var(--rand); }
.knopf.ressourcen { border-color: var(--gruen-dunkel); }

.zurueck {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--rand);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}
.zurueck:hover { border-color: var(--gruen); }

.hinweis {
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-leise);
  background: rgba(20, 20, 22, 0.62);
  border: 1px solid var(--rand);
  border-radius: 14px;
}
.hinweis h2 { margin: 0 0 8px; font-size: 1rem; color: var(--text); }
.hinweis p { margin: 0 0 8px; }
.hinweis p:last-child { margin-bottom: 0; }
.hinweis .copy { color: var(--text); font-weight: 600; }

.fuss { margin-top: 16px; text-align: center; font-size: 0.85rem; color: var(--text-leise); text-shadow: 0 1px 3px #000; }

/* Admin */
.admin { text-align: left; }
.admin h1, .admin .login { text-align: center; }
.login { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; }
.login input { font: inherit; padding: 10px 12px; width: 100%; max-width: 280px; border-radius: 8px; border: 1px solid #666; background: #111; color: var(--text); }
.knopf.klein { width: auto; min-height: 0; padding: 8px 18px; justify-content: center; }
.fehler { color: #ff9c8a; font-weight: 600; }
.tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; border: 1px solid var(--rand); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: rgba(0, 0, 0, 0.35); }
.tabelle th, .tabelle td { padding: 7px 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.tabelle th { text-align: left; background: rgba(255, 255, 255, 0.07); }
.tabelle .zahl { text-align: right; }
.tabelle .gruppe td { font-weight: 700; color: var(--gruen-hell); background: rgba(123, 224, 79, 0.08); }
.marke { font-size: 0.75rem; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); color: var(--text-leise); }
.abmelden { text-align: center; margin-top: 20px; }

@media (min-width: 700px) {
  .seite { padding-top: 24px; }
  .menue { padding: 26px 28px 28px; }
}

/* Kleine Handys: mehr Platz für die Namen */
@media (max-width: 400px) {
  .seite { padding-left: 10px; padding-right: 10px; }
  .menue { padding: 16px 10px 18px; }
  h1 { font-size: 1.35rem; }
  .knopf { padding: 10px 12px; gap: 10px; }
  .knopf-icon { width: 34px; height: 34px; }
  .titel { font-size: 1rem; }
}
