
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #f8f9fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

nav.navbar {
  padding-top: env(safe-area-inset-top, 0px); /* für Notch-Schutz */
}

.main-content {
  margin-top: 4rem; /* Standardhöhe der Bootstrap Navbar */
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 60px;
}

@supports (padding-top: env(safe-area-inset-top)) {
  .main-content {
    margin-top: calc(env(safe-area-inset-top, 0px) + 4rem);
  }
}

footer {
  background-color: #fff;
  text-align: center;
}

h1 { font-size: 30px;}
h2 { font-size: 24px;}
h3 { font-size: 16px;}
h4 { font-size: 14px;}

footer {
      height: 60px;
      font-size: 0.875rem;
    }

.todo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  color: black;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  z-index: 10;
}


.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
}
.popup-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.task-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;         /* Max. Breite des Bildcontainers */
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;      /* sanfte Hintergrundfarbe */
}

.task-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

/* Das rote X oben rechts */
.delete-image {
    position: absolute;
    top: 8px;
    right: 8px;
    color: red;
    background: none;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    z-index: 10;
}

/* Optional: Hovereffekt für Maus */
@media (hover: hover) {
  .delete-image:hover {
      color: darkred;
      cursor: pointer;
  }
}
.bike-list, .booked-list { margin: 20px 0; }
        .bike { margin: 5px; padding: 10px; display: inline-block; }

	.appointment {
            background-color: #ffffff;
            border-left: 5px solid #198754;
            border-radius: 10px;
            padding: 12px 15px;
            margin: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
            cursor: pointer;
        }
        
	.appointment:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
        #add-appointment {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            font-size: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
            z-index: 1000;
        }


.bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
}

@media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
}

.divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}


.list-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.list-dropdown {
    font-size: 18px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    width: 100%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-appearance: none; /* Entfernt Standard-Pfeil auf iOS */
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
margin-left: 20px;
}

.list-dropdown:focus {
    border-color: #007aff;
    outline: none;
    box-shadow: 0px 0px 4px #007aff;
}

.list-dropdown option {
    padding: 10px;
    font-size: 16px;
}

/* Für mobile Geräte */
@media (max-width: 768px) {
    .list-dropdown {
        font-size: 20px;
        padding: 12px;
    }
}


.task-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.task-form input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
}

.task-form button {
    background-color: #007aff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
}

.task-list {
    list-style: none;
    padding: 0;
}

.task {
    padding: 10px;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.task.started {
    background-color: #d4f0d4;
}

.task.completed {
    background-color: #f8d7da;
}

.task.archived {
    background-color: #fff3cd;
}

.edit-list-form, .filter-form {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.edit-list-form input, .filter-form select {
    flex: 1;
    padding: 10px;
    font-size: 16px;
}

.edit-list-form button {
    background-color: #007aff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}


.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: env(safe-area-inset-top, 20px); /* Safe area fix */
}


/* Aktionen (Stift und Plus) rechtsbündig */
.list-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen den Symbolen */
}

/* Stift-Symbol */
.edit-icon {
    font-size: 20px;
    color: #007aff;
    cursor: pointer;
    transition: color 0.2s ease;
}

.edit-icon:hover {
    color: #005bb5;
}

/* Plus-Symbol-Button */
.add-list-form {
    margin: 0;
}

.add-list {
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-list:hover {
    background-color: #005bb5;
}

.add-list i {
    margin: 0;
    padding: 0;
    font-size: 16px;
}


/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 300px; /* Maximale Breite des Popups */
    width: 90%; /* Responsive Breite */
    box-sizing: border-box; /* Verhindert Überlagerung durch Padding */
}

.popup-content label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.popup-content input {
    width: 100%; /* Passt sich der Popup-Breite an */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Padding wird in die Breite mit einbezogen */
}

.popup-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.popup-actions button {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.popup-actions button:first-child {
    background-color: #007aff;
    color: #fff;
}

.popup-actions button:first-child:hover {
    background-color: #005bb5;
}

.popup-actions button:last-child {
    background-color: #f2f2f2;
}

.popup-actions button:last-child:hover {
    background-color: #ddd;
}


.form-signin {
  width: 100%;
  max-width: 420px;
  padding: 15px;
  margin: 0 auto;
}

.form-label-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-label-group > input,
.form-label-group > label {
  padding: var(--input-padding-y) var(--input-padding-x);
}

.form-label-group > label {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  margin-bottom: 0; /* Override default `<label>` margin */
  line-height: 1.5;
  color: #495057;
  border: 1px solid transparent;
  border-radius: .25rem;
  transition: all .1s ease-in-out;
}

.form-label-group input::-webkit-input-placeholder {
  color: transparent;
}

.form-label-group input:-ms-input-placeholder {
  color: transparent;
}

.form-label-group input::-ms-input-placeholder {
  color: transparent;
}

.form-label-group input::-moz-placeholder {
  color: transparent;
}

.form-label-group input::placeholder {
  color: transparent;
}

.form-label-group input:not(:placeholder-shown) {
  padding-top: calc(var(--input-padding-y) + var(--input-padding-y) * (2 / 3));
  padding-bottom: calc(var(--input-padding-y) / 3);
}

.form-label-group input:not(:placeholder-shown) ~ label {
  padding-top: calc(var(--input-padding-y) / 3);
  padding-bottom: calc(var(--input-padding-y) / 3);
  font-size: 12px;
  color: #777;
}

.tile-link {
  text-decoration: none;
  color: white;
}

.tile-card {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.tile-card:hover {
  transform: scale(1.03);
}

.tile-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Quadrat */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}


.tile-card {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* macht nur das Bild + Titel grau */
.disabled-content {
  opacity: 0.4;
  filter: grayscale(100%);
  pointer-events: none;
}

/* Badge bleibt voll sichtbar */
.tile-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e63946; /* z. B. rot */
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 10;
  text-transform: uppercase;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto;
}

.tile-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.tile-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  border-radius: 0 0 10px 10px;
}


