@import url("fonts.css");

:root {
  --accent-color: #e6c7ff;
  --kristall-text: #dbbef3;
  --kristall-textglow: 1px 1px 4px black, 0 0 8px purple, 0 0 12px rebeccapurple;
  --nav-shadow: 0 0 4px #b891ff;
  --dark-bg: #1c1b2d;
  --light-text: #eee;
  --font-main: "Crimson Text", serif;
  --background: radial-gradient(ellipse at center, #1c1b2d 0%, #0f0e1a 100%);
  --footer-text: #aaa;
  --button: #444;
  --button-hover: #666;
  --navbackground: rgba(0, 0, 0, 0.2);
  --section-background: rgba(255, 255, 255, 0.05);
  --modal-background: rgba(0, 0, 0, 0.5);
  --section-frame: rgba(255, 255, 255, 0.15);
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --naru-shadow: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
  --luma-glow: drop-shadow(0 0 6px gold);
  --logo-shadow: drop-shadow(0 0 6px #5405d3);
  --gold-shadow: drop-shadow(0 0 6px goldenrod);
  --silver-shadow: drop-shadow(0 0 6px silver);
  --purple-shadow: drop-shadow(0 0 6px purple);
  --fuchsia-shadow: drop-shadow(0 0 6px fuchsia);
  --orange-shadow: drop-shadow(0 0 6px #ff8a00);
  --pink-shadow: drop-shadow(0 0 6px pink);
  --red-shadow: drop-shadow(0 0 6px red);
  --blue-shadow: drop-shadow(0 0 6px blue);
  --turquoise-shadow: drop-shadow(0 0 6px turquoise);
  --green-shadow: drop-shadow(0 0 6px #07f557); /*hängt an astro, nicht ändern*/
  --black-shadow: drop-shadow(0 0 6px black);
  --cyan-shadow: drop-shadow(0 0 6px cyan);
  --lgreen-shadow: drop-shadow(0 0 6px springgreen);
  --firefly-glow: radial-gradient(circle, white, deeppink, indigo, transparent);
}

/*Efeu Button Bewegung + Glühwurm*/
@keyframes pulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.1);
    filter: brightness(1.2);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
/*Luma Bewegung*/
@keyframes twinkle {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/*Sunmoon-Header Bewegung*/
@keyframes float {
  0%,
  100% {
    transform: translateY(0) /*rotate(5deg)*/;
  }
  50% {
    transform: translateY(-5px) /*rotate(5deg)*/;
  }
}
/*Rotation Meditationsportal */
@keyframes rotatePortal {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/*für Portalbutton Meditation*/
@keyframes flickerGlow {
  0%,
  100% {
    text-shadow: 0 0 4px var(--dark-bg);
  }
  50% {
    text-shadow: 0 0 10px var(--medi-glow);
  }
}
/*für Glühwürmchenstartseite*/
@keyframes glowFade {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}
/*für Naru*/
@keyframes sneakAcross {
  0% {
    transform: translateX(-200px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(110vw);
    opacity: 0;
  }
}
@keyframes naruBreath {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(1deg) scale(1.02);
  }
}
/*
#naru-container {
  position: absolute;
  opacity: 0;
  /*bottom: 80px;
  /*right: 80px;
  /*height: auto;
  width: 100px;
  z-index: 1000;
  transition: opacity 1s ease;
}
*/

#naru {
  /*width: 100%;*/
  width: 80px;
  height: 80px;
  transform-origin: center;
  animation: naruBreath 3s infinite ease-in-out;
  position: fixed;
  filter: var(--naru-shadow);
  background-image: url("images/naru.png"); /* dein Bildpfad */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
}

/*lokale Glühwürmchen*/
.floating-areaglow {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--firefly-glow);
  pointer-events: none;
  animation: glowFade 4s ease-out forwards;
  opacity: 0.8;
}
#glow-area {
  /*  border: 1px dashed limegreen; nur zum test */
  position: relative; /* wichtig! für korrekte Platzierung der Glühwürmer mit absolute */
  overflow: hidden; /* optional, damit keine Würmchen über den Rand hinauslaufen */
}

/*Header*/
.onyx-header {
  display: flex;
  flex-direction: column;
  /*justify-content: center;*/
  align-items: center;
  padding: 0.5rem;
  background-image: url("images/sternenhimmel.png");
  background-color: var(--dark-bg);
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  /*height: 200px;
  gap: 1rem;
  flex-wrap: wrap;*/
  text-align: center;
}
.symbol-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.onyx-header .logo {
  height: 150px;
  max-width: 80vw;
}
.onyx-header .symbol {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}
.onyx-header .symbol:hover {
  transform: scale(1.1) rotate(5deg);
}
.description {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}
.logo {
  filter: var(--logo-shadow);
}

/*Layout - Body*/
body {
  margin: 0;
  font-family: "calibri", sans-serif;
  background: var(--background);
  color: var(--light-text);
  overflow-x: hidden;
}

header h2 {
  font-size: 1rem;
  font-family: "Marcellus SC", cursive;
  margin-bottom: 0.5rem;
}

nav {
  text-align: center;
  padding: 0.5rem 3rem;
  background-color: var(--navbackground);
}
nav a {
  font-family: "Apollo ASM", serif;
  color: var(--light-text);
  text-decoration: none;
  font-weight: normal;
  font-size: 1.3rem;
  margin: 1rem;
  letter-spacing: 0.08rem;
  transition: all 0.3s ease; /* weiche Übergänge beim Hover */ /*Glow für Smartphoneanzeige*/
}
nav a:hover {
  text-shadow:
    0 0 6px #d06fff,
    0 0 12px #d06fff,
    0 0 18px #944dbd;
  transform: scale(1.07);
}
/*Luma*/
.stern-button {
  width: 45px;
  vertical-align: middle;
  animation: twinkle 2s infinite ease-in-out;
  filter: var(--purple-shadow);
}
img.stern-button:hover {
  filter: var(--luma-glow);
  transform: scale(1.2);
}
h1 {
  font-family: "Marcellus SC", "calibri", sans-serif;
  font-size: 1.5rem;
  
}
h2 {
  font-family: "Marcellus SC", "calibri", sans-serif;
  font-size: 1.5rem;
}

h3 {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

section {
  padding: 1rem 3rem;
  margin: auto;
  text-align: center; /* zentriert Texte und inline-Inhalte */
}

.site-text {
  margin: auto;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: center;
  max-width: 1400px;
}

.layout-wrapper {
  padding: 1rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/*für Gridtexte*/
.grid-container {
  display: block;
  justify-content: center;
  gap: 2rem;
  height: 100%;
}

/*Textboxen*/
.text-container {
  margin: 2rem auto; /* steuert Smartphoneabstand*/
  width: 100%; /*gleiche Breite im Grid*/
}

.text-section {
  background-color: var(--section-background);
  border: 1px solid var(--section-frame);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--box-shadow); /* optional: soft glow */
  text-align: center;
  justify-content: center;
  line-height: 1.8;
  font-size: 1.1rem;
  max-width: 1400px;
}
.text-section ul {
  list-style-position: inside; /* Aufzählungszeichen nah an Text */
  padding-left: 1rem;
  margin: 1rem 0;
  text-align: left;
  display: inline-block; /* sorgt dafür, dass ul in zentrierter Umgebung nicht 100% Breite nimmt */
}
.text-section ul li {
  text-indent: -1.4em;
  padding-left: 1em;
}

.text-section img {
  margin: auto;
  width: 500px;
  max-width: 100%;
  border-radius: 0.5rem;
}

/*Kristallbuttons*/
.kristall-row {
  display: flex;
  gap: 2rem; /* Abstand zwischen Buttons */
  justify-content: center; /* optional: zentrieren */
  max-width: 100%; /* optional: Grenzen setzen */
}
.kristall-row .kristall-button {
  min-width: 100px;
  max-width: 150px;
  aspect-ratio: 1 / 1;
}
.kristall-button {
  all: unset; /* <- entfernt ALLE default styles vom Button, gegen button class werte */
  display: inline-block;
  min-width: 200px;
  max-width: 250px; /* maximale Breite (optional) */
  width: 100%; /* passt sich Elterncontainer an */
  aspect-ratio: 2 / 1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  vertical-align: middle;
  position: relative;
  filter: var(--silver-shadow);
  text-decoration: none;
  transition:
    filter 0.3s,
    transform 0.3s;
  cursor: pointer;
}
.kristall-button span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* macht nur den gesamten Button klickbar, nicht den Text einzeln */
  font-family: "Marcellus SC", serif;
  color: var(--kristall-text); /* oder was du willst */
  text-shadow: var(--kristall-textglow);
  font-size: clamp(1.1rem, 3vmin, 1.3rem); /*responsive Schriftgröße */
  text-align: center;
  white-space: inherit;
}
.kristall-button:hover {
  filter: var(--purple-shadow);
  transform: scale(1.1);
}
.kristall1a {
  background-image: url("images/kristall1a.png");
}
.kristall1b {
  background-image: url("images/kristall1b.png");
}
.kristall2 {
  background-image: url("images/kristall2.png");
}
.kristall3 {
  background-image: url("images/kristall3.png");
}
.kristall4a {
  background-image: url("images/kristall4a.png");
}
.kristall4b {
  background-image: url("images/kristall4b.png");
}
.kristall5 {
  background-image: url("images/kristall5.png");
}
.kristall6 {
  background-image: url("images/kristall6.png");
}
.kristall7 {
  background-image: url("images/kristall7.png");
}

/* Basistyp für alle Buttons, egal ob einzeln oder in der Reihe */
.button,
a.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background-color: var(--button);
  color: var(--light-text);
  font-family:
    Segoe UI,
    Calibri,
    sans-serif;
  text-decoration: none;
  border-radius: 0.6rem;
  font-size: 1rem;
  border: 1px solid var(--section-frame);
  cursor: pointer;
  transition: all 0.3s ease;
  margin: auto;
}
.button:hover {
  background-color: var(--button-hover);
}
/* Layout für eine Button-Reihe */

.button-area {
  margin: auto;
}

.button-row {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem; /* Abstand zwischen buttons */
}

/*Efeuseitensäulen*/
.ivy-side {
  filter: none !important;
  mix-blend-mode: normal;
  isolation: isolate;
  will-change: transform;
  position: fixed;
  bottom: 0;
  width: 40px;
  height: 100%;
  background-repeat: repeat-y;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
  top: 0;
}
.ivy-left {
  filter: none !important;
  mix-blend-mode: normal;
  isolation: isolate;
  will-change: transform;
  left: 0;
  background-image: url("images/ivy_dark.png");
}
.ivy-right {
  right: 0;
  background-image: url("images/ivy_right.png");
}

/*Bildbereiche*/
.image-section {
  max-width: 1400px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  background-color: var(--section-background); /* leicht transparent weiß */
  border: 1px solid var(--section-frame); /* dezente Linie */
  border-radius: 1.2rem;
  margin: auto;
}
.image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 250px;
  justify-content: center; /* zentriert das Bild horizontal */
  margin: 1rem; /*Abstand zueinander*/
}
.image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}
.image-description {
  font-family: "Marcellus SC", cursive;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--light-text);
  text-shadow: var(--nav-shadow);
  pointer-events: none;
}

/*Modal*/
.modal {
  display: none; /* Unsichtbar zu Beginn */
  position: fixed;
  z-index: 1000;
  padding: 1rem;
  left: -1rem;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--modal-background); /* dunkler Hintergrund */
}

.modal-content {
  background: var(--background);
  margin: 20% auto;
  padding: 1.5rem;
  border-radius: 1rem;
  width: 80%;
  max-width: 500px;
  box-shadow: var(--box-shadow); 
  position: relative;

}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/*Footer*/
footer {
  text-align: center;
  font-family: "Marcellus SC", serif;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
footer a {
  color: var(--footer-text);
}

/* Smartphone */
@media (max-width: 480px) {
  .onyx-header {
    flex-direction: column;
    height: auto;
  }
  .onyx-header .symbol {
    height: 50px;
  }
  .onyx-header .logo {
    height: 80px;
  }
  .description {
    margin-top: 0.3rem;
    font-size: 0.8rem;
  }

  nav a {
    text-shadow: var(--nav-shadow);
    display: block;
    margin: 0.5rem auto;
    font-size: 1rem;
    text-align: center;
  }

  h3 {
    font-size: 1.5em;
  }

  .site-text {
    font-size: 1rem;
    line-height: 1.6rem;
    text-align: center;
  }

  .text-section {
    font-size: 1rem;
    line-height: 1.6rem;
    padding: 1rem;
  }

  .stern-button {
    margin-left: 0;
  }

  .image-wrapper {
    margin: 0;
  }
  .image-section {
    gap: 1rem;
  }

  footer {
    margin: 0.5rem 2rem auto;
    font-size: 0.7rem;
  }
}
/* Tablets */
@media (min-width: 481px) and (max-width: 899px) {
  nav {
    flex-direction: row;
    flex-wrap: wrap; /* erlaubt Umbruch */
    padding: 0.5rem 3rem;
  }
  nav a {
    text-align: center;
  }

  footer {
    margin: 0.5rem 2rem auto;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    align-items: stretch;
  }
}
