/* Grundstil */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background-color 0.3s, color 0.3s;
  }
  
  /* Darkmode */
  body.dark {
    background-color: #111;
    color: #eee;
  }
  
  .switch {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 26px;
  }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    cursor: pointer;
    border-radius: 34px;
    transition: 0.4s;
  }
  .slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
  }
  input:checked + .slider {
    background-color: #4caf50;
  }
  input:checked + .slider::before {
    transform: translateX(24px);
  }
  
  /* Profilkarte */
  .card {
    position: relative;
    padding-top: 3rem;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, color 0.3s;
  }
  body.dark .card {
    background: #1c1c1c;
  }

  h1 {
    margin: 0.2em 0;
    font-size: 1.8rem;
  }

  /* Responsive */
  @media (max-width: 500px) {
    .profile-card {
      margin: 1rem;
      padding: 1.5rem;
    }
  }

  /* === Zurück-Button === */
  .back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid;
  }
  
  /* ===== Lightmode ===== */
  body:not(.dark) .back-btn {
    background-color: rgba(0, 0, 0, 0.05);
    color: #222;
    border-color: rgba(0, 0, 0, 0.15);
  }
  
  body:not(.dark) .back-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.25);
  }
  
  /* ===== Darkmode ===== */
  body.dark .back-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: #b4f0c1;
    border-color: rgba(255, 255, 255, 0.15);
  }
  
  body.dark .back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #d2ffe0;
    border-color: rgba(255, 255, 255, 0.25);
  }
  
  /* Pfeil-Animation */
  .back-btn::before {
    content: "←";
    font-size: 1.1rem;
    transition: transform 0.3s ease;
  }
  
  .back-btn:hover::before {
    transform: translateX(-3px);
  }

  .card {
    position: relative; /* wichtig für absolute Platzierung innerhalb */
    padding-top: 3rem;  /* Platz für Buttons oben */
  }
  
  .card-ui {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
  }

  .comingSoon {
    position: absolute;
    top: 340px;
  }