/* Für die vertikale Anordnung von Label und Container */
.form-group {
    display: flex;
    flex-direction: column; /* Ordnet Kinder vertikal an */
    margin-bottom: 1rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    width: 100%; /* Oder so, dass es das Label über dem Input positioniert */
}

/* Neuer Container für Input und Icon */
.password-input-container {
    position: relative; /* Basis für absolute Positionierung des Icons */
    width: 100%; /* Stellt sicher, dass der Container die volle Breite einnimmt */
    display: flex; /* Optional: Um sicherzustellen, dass der Input die volle Breite des Containers ausfüllt */
    align-items: center; /* Zentriert das Icon vertikal, falls es nicht perfekt passt */
}

.password-input-container input {
    width: 100%; /* Input füllt den verfügbaren Platz aus */
    padding-right: 40px; /* Platz für das Icon lassen, damit Text nicht überlappt */
    /* Behalten Sie Ihre anderen Input-Stile bei (padding, border, etc.) */
}

.password-toggle-icon {
    position: absolute; /* Absolut innerhalb des password-input-container positionieren */
    right: 10px; /* Abstand vom rechten Rand des Inputs */
    cursor: pointer;
    color: #6c757d; /* Eine dezente Farbe */
    font-size: 1.2em; /* Größe des Icons anpassen */
    line-height: 1; /* Wichtig, damit das Icon sauber vertikal zentriert wird */
    display: flex; /* Für bessere vertikale Zentrierung des Icons selbst */
    align-items: center;
    justify-content: center;
    height: 100%; /* Macht das Icon anklickbarer in der Höhe des Inputs */
    top: 0;
}

.password-toggle-icon:hover {
    color: #007bff; /* Hover-Effekt */
}

h4 , .section-title-reg {
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  padding: 5px 5px;
}


.registration-container { max-width: 420px; margin: 50px auto; padding: 2rem; font-family: sans-serif; min-height: 700px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 2px solid #fff; }
.social-auth { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-social { padding: 10px; border: none; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: bold; }
.google { background: #white; border: 1px solid #ddd; color: #555; }
.apple { background: #000; color: #fff; }
.samsung { background: #034EA2; color: #fff; }
.divider { text-align: center; border-bottom: 1px solid #ddd; line-height: 0.1em; margin: 20px 0; }
.divider span { background:#f9f9f9; padding:0 10px; color: #888; }
.password-wrapper { position: relative; }
.btn-primary { width: 100%; padding: 12px; background: #007bff; color: white; border: none; border-radius: 6px; margin-top: 15px; cursor: pointer; }

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Höhe anpassen, damit beide Badges gleich groß wirken */
    height: 60px;
    margin-top: 15px;
    margin-right: 8px;
    border-radius: 10px; /* Optional: Abgerundete Ecken */
    overflow: hidden;
    transition: transform 0.2s ease; /* Sanfter Effekt beim Hovern */
}

.store-button img {
    height: 60px;
    width: auto;
    object-fit: contain; /* PNG wird sauber skaliert, ohne Verzerrung */
}

/* Hover-Effekt für Interaktivität */
.store-button:hover {
    transform: translateY(-2px); /* Hebt den Button leicht an */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Spezifische Anpassung, falls die PNGs unterschiedliche Proportionen haben */
.apple-button img {
    background: #fff;
}

.google-button {
  background: #ccc;
}

.google-button img {
  background: #fff;
}

.stats-grid-btn {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 5px;
}


/* Toggle Switch Styles - Smartphone optimiert */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success, #28a745);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Info Icon Styles */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--primary, #007bff);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
}

.info-icon:active {
    transform: scale(0.95);
    background: var(--primary-dark, #0056b3);
}

/* Modal Styles für Smartphone */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 90%;
    width: 400px;
    max-height: 80%;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:active {
    color: #333;
}

.modal-body {
    line-height: 1.5;
    color: #333;
}

/* Card und List-Item Styles */
.card {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.list-item {
    padding: 15px;
    border-left: 5px solid var(--success, #28a745);
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.toggle-info {
    flex: 1;
    padding-right: 15px;
}

.toggle-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.toggle-title h4 {
    margin: 0;
    font-size: 1rem;
    color: #000;
}

.toggle-description {
    margin: 5px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
}

/* Datenschutz-Link */
.privacy-link {
    color: var(--primary, #007bff);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.privacy-link:active {
    opacity: 0.7;
}

/* Button Styles */
.btn-save-site {
    background: var(--primary, #007bff);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-save-site:active {
    transform: scale(0.98);
    background: var(--primary-dark, #0056b3);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-danger:active {
    transform: scale(0.98);
    background: #c82333;
}


* {
    -webkit-overflow-scrolling: touch;
}

/* SweetAlert Scroll-Fix */
.swal2-container {
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.swal2-popup {
    display: flex !important;
    flex-direction: column !important;
    max-height: 90vh !important;
}

.swal2-html-container {
    overflow-y: auto !important;
    flex: 1 !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: 60vh !important;
}

/* Verhindert das Springen auf iPhones */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


@media (prefers-color-scheme: dark) {
  /* Restfarben Dark-Modus immer gan zu schluß*/

    body, .app-content {
       background-color: #000 !important;
    }

    h4, .section-title-reg {
        color: #000 !important;
        background: #fff !important;
        padding: 5px 15px:
    }

    .registration-container h2 {
        color: #000 !important;
        background: transparent !important;
    }



}

.switch input:disabled + .slider {
    background-color: #00AE57;
    cursor: not-allowed;
    opacity: 0.6;
}

.switch input:disabled + .slider:before {
    cursor: not-allowed;
}