/* ========== GLOBAL STYLES ========== */
@import url("https://fonts.googleapis.com/css?family=Roboto");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", Arial, sans-serif;
}

body {
  background-color: #1c1f2b;
  color: white;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========== NAVIGATION ========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  text-decoration: none; 
}

.nav-links {
  background-color: #444;
  padding: 10px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;   /* entfernt Punkte */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-decoration: none; 
  border-radius: 5px;
}

.nav-links li {
  list-style: none;   /* falls <li> drin ist */
}

.nav-links a {
  color: white;              /* Standardfarbe */
  text-decoration: none;     /* kein Unterstrich */
  font-size: 1.2em;
  transition: color 0.3s ease, background 0.3s ease;
  padding: 6px 12px;
  border-radius: 5px;
}

.nav-links a:visited {
  color: white; /* bleibt weiß */
}

.nav-links a:hover {             
  background: #fff;        /* Hintergrund weiß */
  text-decoration: none;
  color: #050505;
}

.nav-links a:active {
  background: #ddd;        /* beim Klicken leicht grau */
  color: #000;
}

.nav-text {
  text-align: center;
  margin-top: 20px;
  font-size: 2em;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========== TEXT BOX MIT LEUCHTENDEN RAND ========== */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.text {
  margin: 50px auto;
  padding: 2em;
  width: 300px;
  background: #1c1f2b;
  text-align: center;
  border-radius: 10px;
  position: relative;
  font-size: 1.2em;
  line-height: 1.6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.text::after,
.text::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(
    from var(--angle),
    #ff4545,
    #00ff99,
    #006aff,
    #ff0095,
    #ff4545
  );
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: 10px;
  animation: spin 3s linear infinite;
}

.text::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}

@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

/* ========== KLEINER BUTTON / LINK ========== */
.smol {
  font-size: 0.8em;
  margin: 20px auto;
  background-color: #444;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  color: white;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.smol:hover {
  background-color: #666;
}

/* ========== SECTION TITLE ========== */
.Contact {
  text-align: center;
  margin: 40px auto 20px auto;
  font-size: 5em;
  color: #ccc;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  background-color: #444;
  padding: 10px;
  border-radius: 5px;
}

/* ========== CONTENT BOX ========== */
.content {
  padding: 20px;
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  font-size: 1.2em;
  line-height: 1.6;
  color: #ddd;
  background-color: #2a2d3a;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* ========== ABOUT ME SECTION ========== */
.aboutme {
  background-color: #444;
  padding: 1%;
  width: 100%;
  display: flex;
  justify-content: center;
}

.aboutmetext {
  color: white;
  font-size: 1.5em;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 10px 20px;
  margin: 20px 0;
  background-color: #283360;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

.aboutmetext:hover {
  background-color: #212740;
}

.img2 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto 20px auto;
  transition: transform 0.5s ease;
}

.img2:hover {
  transform: scale(1.1);
}

/* ========== CONTACT FORM ========== */
form[name="contact"] {
  background-color: #e0e0e0;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  margin: 2rem auto;
}

form[name="contact"] p {
  margin-bottom: 1.2rem;
}

form[name="contact"] label {
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 0.4rem;
}

form[name="contact"] input,
form[name="contact"] textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background-color: #d6d6d6;
  font-size: 1rem;
  margin-bottom: 1rem;
}

form[name="contact"] input:focus,
form[name="contact"] textarea:focus {
  outline: 2px solid #888;
  background-color: #f0f0f0;
}

form[name="contact"] button {
  width: 100%;
  padding: 0.8rem;
  background-color: #555;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

form[name="contact"] button:hover {
  background-color: #333;
}

/* ========== CALCULATOR ========== */
#calculator {
  font-family: Arial, Helvetica, sans-serif;
  background-color: rgb(46, 46, 46);
  border-radius: 15px;
  max-width: 500px;
  overflow: hidden;
  margin: 2rem auto;
}

#display {
  width: 100%;
  padding: 20px 5%;
  font-size: 5rem;
  text-align: left;
  border: none;
  background-color: rgb(91, 89, 89);
  color: white;
}

#keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 25px;
}

button {
  cursor: pointer;
  width: 100px;
  height: 100px;
  border-radius: 50px;
  border: none;
  background-color: #444;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

button:hover {
  background-color: #666;
  transform: scale(1.1);
}

.btn2 {
  background-color: #ef8930;
  color: black;
}

.btn2:hover {
  background-color: #ff9c4d;
  transform: scale(1.1);
}
a{
  text-decoration: none;
  list-style: none;
  color: white;
}
.li.text::marker{
  list-style: none;
}
.text{
  list-style: none;
  
}
.text:hover {
  transform: scale(1.1); /* vergrößert den Link beim drüberfahren */
  color: #ffcc00; /* optional: Farbe ändern beim Hover */


}