.mybutton {
    border: none; 
    cursor: pointer; 
    font-size: 1.5rem; 
    color: var(--text); 
    text-decoration: none; 
    background-color: var(--header);
}

/* Hero-Bereich */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(90deg, #a8d0ff 0%, #004a99 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 3rem;
  gap: 3rem;
  color: white;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero svg {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 15px;
}

.hero-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content h1 {
  margin: 0;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.subtitle {
  margin-top: 0.3rem;
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Button */
.btn-primary {
  margin-top: 1.2rem;
  padding: 0.7rem 1.8rem;
  background-color: #FFA500;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  align-self: center;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #cc8400;
  color: white;
  outline: none;
  text-decoration: none;
}
  
/* Magisches Quadrat */
.svg-container {
  perspective: 1000px;
}

.abi-know-how-mathematik-img {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center;
  animation: rotateSequence 8s ease-in-out 1 forwards;
}

@keyframes rotateSequence {
  0% {
	transform: rotateY(0deg);
  }
  25% {
	transform: rotateY(360deg);
  }
  50% {
	transform: rotateY(360deg) rotateX(360deg);
  }
  75% {
	transform: rotateY(360deg) rotateX(360deg) rotate3d(1, 1, 0, 360deg);
  }
  100% {
	transform: rotateY(360deg) rotateX(360deg) rotate3d(1, 1, 0, 360deg) rotate3d(-1, 1, 0, 360deg);
  }
}         
       
    mjx-container[jax="CHTML"][display="true"] {
      max-width: 100%;
      overflow-x: auto;       /* horizontal scroll wenn zu breit */
      overflow-y: hidden;
      display: block;         /* sicherstellen, dass Block-Element */
      padding: 0.5em 0;       /* optional etwas Abstand */
      -webkit-overflow-scrolling: touch; /* flüssiges Scrollen auf iOS */
      box-sizing: border-box; /* besseres Box-Modell */
    }

    .formel-liste {
	    background-color: #f5f6f7; 
	    padding: 10px 30px 0px 0px; 
	    display: inline-block; 
	    margin-top: 0px; 
	    margin-bottom: 20px; 
	    box-shadow: var(--shadow);
	    border-radius: var(--radius);
    }

    .formel {
	    background-color: azure; 
	    padding:10px 20px 10px 20px; 
	    display: inline-block; 
	    margin-top: 0px; 
	    margin-bottom: 20px; 
	    box-shadow: var(--shadow);
	    border-radius: var(--radius);	
    }

/* Medienabfrage für Bildschirme ab 800px */
@media (min-width: 800px) {
  .hero {
    flex-direction: row;
    align-items: flex-start;
    padding: 2rem 3rem;
    gap: 3rem;
    text-align: left;
  }

  .hero svg {
    width: 280px;
    height: 280px;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
    padding-top:1rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .btn-primary {
    margin-top: 2rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    align-self: start;
  }
}

