/* ===============================
   Global & Variablen
   =============================== */
:root {
  --primary-dark: rgb(2, 45, 45);
  --primary-medium: rgb(0, 75, 75);
  --accent-teal: #00a3a3;
  --accent-bright: #00cccc;
  --text-light: aliceblue;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, rgb(2, 45, 45) 0%, rgb(0, 75, 75) 100%);
  background-attachment: fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 163, 163, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0, 204, 204, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===============================
   Hauptüberschrift
   =============================== */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--text-light);
  margin-bottom: 4rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #fff, var(--accent-bright), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 30px rgba(0, 204, 204, 0.3);
  position: relative;
  z-index: 1;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===============================
   Container & Boxen
   =============================== */
.container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1400px;
  position: relative;
  z-index: 1;
}

.kasten, .kasten2, .kasten3 {
  background: linear-gradient(145deg, rgba(0, 75, 75, 0.9), rgba(0, 100, 100, 0.7));
  backdrop-filter: blur(10px);
  height: 350px;
  width: 280px;
  border-radius: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(0, 163, 163, 0.3);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.kasten::before, 
.kasten2::before, 
.kasten3::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 204, 204, 0.15) 0%, transparent 70%);
  transition: all 0.8s ease;
  opacity: 0;
}

.kasten:hover::before,
.kasten2:hover::before,
.kasten3:hover::before {
  opacity: 1;
  top: -25%;
  left: -25%;
  transform: rotate(45deg);
}

.kasten:hover,
.kasten2:hover,
.kasten3:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 163, 163, 0.4);
  border-color: var(--accent-bright);
}

.kasten:hover::after,
.kasten2:hover::after,
.kasten3:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-bright));
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { width: 0; }
  to { width: 100%; }
}

/* ===============================
   Links in Boxen
   =============================== */
.Reg, .Anleit, .Anmel {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.Reg:hover, .Anleit:hover, .Anmel:hover {
  color: var(--accent-bright);
  transform: scale(1.05);
}

/* ===============================
   Icons
   =============================== */
.registericon, .anmeldeicon, .anleitungicon {
  font-size: 6rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 15px rgba(0, 163, 163, 0.5));
}

.kasten:hover .registericon,
.kasten2:hover .anleitungicon,
.kasten3:hover .anmeldeicon {
  transform: scale(1.2) rotateY(360deg);
  filter: drop-shadow(0 0 25px rgba(0, 204, 204, 0.8));
}

/* ===============================
   Text unter Icons
   =============================== */
.registrierungstxt, .Anleitungstxt, .Anmeldungstxt {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  left: 0 !important;
  transform: none !important;
}

/* ===============================
   Formular-Box (Login/Registrierung)
   =============================== */
.form-box {
  background: linear-gradient(145deg, rgba(0, 75, 75, 0.95), rgba(0, 100, 100, 0.85));
  backdrop-filter: blur(15px);
  width: 90%;
  max-width: 500px;
  margin: 10vh auto;
  padding: 3rem;
  border-radius: 2rem;
  border: 2px solid rgba(0, 163, 163, 0.3);
  box-shadow: var(--shadow-lg);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.form-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 204, 204, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-box h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  text-align: center;
}

.form-box form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.form-box label {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.form-box input {
  padding: 1rem;
  border-radius: 0.8rem;
  border: 2px solid rgba(0, 163, 163, 0.3);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.form-box input:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 204, 204, 0.3);
}

.form-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-box button {
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-bright));
  color: white;
  border: none;
  border-radius: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 163, 163, 0.3);
}

.form-box button:hover {
  background: linear-gradient(135deg, var(--accent-bright), #00ffff);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 204, 204, 0.5);
}

.form-box p {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.form-box a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-box a:hover {
  color: #00ffff;
  text-decoration: underline;
}

.form-box .checkbox {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: left;
}

.form-box .checkbox input {
  width: auto;
  margin: 0;
  cursor: pointer;
}

/* ===============================
   Choice Buttons
   =============================== */
.choice-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.choice-buttons .btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-bright));
  color: white;
  text-decoration: none;
  border-radius: 3rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.choice-buttons .btn:hover {
  background: linear-gradient(135deg, var(--accent-bright), #00ffff);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 163, 163, 0.4);
}

/* ===============================
   Anleitung Box
   =============================== */
.anleitung-box {
  font-size: 1.2rem;
  line-height: 1.8;
  padding: 3rem;
  color: white;
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(0, 75, 75, 0.95), rgba(18, 140, 120, 0.9));
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 163, 163, 0.3);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

.anleitung-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 204, 204, 0.1) 0%, transparent 70%);
  animation: rotate 25s linear infinite;
}

.anleitung-box h1,
.anleitung-box h2,
.anleitung-box p,
.anleitung-box ul,
.anleitung-box li {
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.anleitung-box h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-bright);
}

.anleitung-box h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ===============================
   Zurück Button
   =============================== */
.zurueck-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--primary-medium), var(--accent-teal));
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 3rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.zurueck-btn:hover {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-bright));
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 163, 163, 0.4);
}

/* ===============================
   Responsive Design
   =============================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .container {
    gap: 2rem;
  }

  .kasten, .kasten2, .kasten3 {
    height: 280px;
    width: 220px;
  }

  .registericon, .anmeldeicon, .anleitungicon {
    font-size: 4.5rem;
  }

  .registrierungstxt, .Anleitungstxt, .Anmeldungstxt {
    font-size: 1.2rem;
  }

  .form-box {
    padding: 2rem;
  }

  .anleitung-box {
    padding: 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .container {
    gap: 1.5rem;
  }

  .kasten, .kasten2, .kasten3 {
    height: 240px;
    width: 180px;
  }

  .registericon, .anmeldeicon, .anleitungicon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }

  .registrierungstxt, .Anleitungstxt, .Anmeldungstxt {
    font-size: 1rem;
  }
}
/* --- NAVBAR / DASHBOARD STYLE --- */
:root{
  --bg-dark: #023331;
  --panel: #064b46;
  --accent-teal: #0db0a3;
  --accent-light: #00e5ff;
  --muted: rgba(255,255,255,0.85);
}

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 32px;
  background: linear-gradient(180deg, rgba(2,51,51,0.95), rgba(0,45,45,0.9));
  color:var(--muted);
  position: fixed;
  top:0;left:0;right:0;
  z-index:1000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.navbar .logo {
  display:flex; gap:12px; align-items:center;
  font-size:1.3rem; font-weight:800; color:var(--accent-light);
}

.logo {
  height: .5rem;      /* Logo-Größe */
  width: auto;
  display: block;
}

.nav-main ul { list-style:none; margin:0; padding:0; display:flex; gap:28px; align-items:center; }
.nav-main a { color:var(--muted); text-decoration:none; padding:10px 12px; border-radius:8px; transition:0.25s; }
.nav-main a:hover { background: rgba(255,255,255,0.03); color:#fff; transform:translateY(-2px); }
.nav-main a.active { background: rgba(0,0,0,0.12); color:var(--accent-light); box-shadow: inset 0 -3px 0 var(--accent-teal); }

.nav-right { display:flex; gap:12px; align-items:center; }
.nav-right .hello { color:rgba(255,255,255,0.95); font-weight:600; }
.logout-btn { background: linear-gradient(135deg, var(--accent-teal), #088f84); color:#002b29; padding:8px 14px; border-radius:12px; text-decoration:none; font-weight:700; box-shadow: 0 6px 12px rgba(0,0,0,0.3); transition:0.25s; }
.logout-btn:hover { transform: translateY(-2px); }